diff --git a/appservice/resource-manager/v2016_03_01/pom.xml b/appservice/resource-manager/v2016_03_01/pom.xml index 2457b9c871753..540976c2a57b9 100644 --- a/appservice/resource-manager/v2016_03_01/pom.xml +++ b/appservice/resource-manager/v2016_03_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.appservice.v2016_03_01 - - com.microsoft.azure - azure-arm-parent - 1.0.0 - ../../../pom.xml - - azure-mgmt-appservice - 1.0.0-beta-1 - jar - Microsoft Azure SDK for Web Management - This package contains Microsoft Web Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.appservice.v2016_03_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-web + 1.0.0-beta + jar + Microsoft Azure SDK for Web Management + This package contains Microsoft Web 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.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/AnalysisDefinition.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/AnalysisDefinition.java index edfe33751fac8..66d383a614fa2 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/AnalysisDefinition.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/AnalysisDefinition.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AnalysisDefinitionInner; /** * Type representing AnalysisDefinition. */ -public interface AnalysisDefinition extends HasInner, HasManager { +public interface AnalysisDefinition extends HasInner, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ApplicationStack.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ApplicationStack.java index 2b7e1a6f92d51..665174ff62823 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ApplicationStack.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ApplicationStack.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.ApplicationStackInner; import java.util.List; /** * Type representing ApplicationStack. */ -public interface ApplicationStack extends HasInner, HasManager { +public interface ApplicationStack extends HasInner, HasManager { /** * @return the dependency value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/BillingMeter.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/BillingMeter.java index c5e3d1e71302d..1d1a88afa9361 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/BillingMeter.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/BillingMeter.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.BillingMeterInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; /** * Type representing BillingMeter. */ -public interface BillingMeter extends HasInner, HasManager { +public interface BillingMeter extends HasInner, HasManager { /** * @return the billingLocation value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Certificate.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Certificate.java index be1b2d209509e..372839adfbc31 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Certificate.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Certificate.java @@ -17,7 +17,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import java.util.List; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.CertificateInner; @@ -25,7 +25,7 @@ /** * Type representing Certificate. */ -public interface Certificate extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface Certificate extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the cerBlob value. */ @@ -159,66 +159,80 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup hostNames); } /** - * The stage of the certificate update allowing to specify KeyVaultId. + * The stage of the certificate definition allowing to specify KeyVaultId. */ interface WithKeyVaultId { /** * Specifies keyVaultId. + * @param keyVaultId Key Vault Csm resource Id + * @return the next definition stage */ WithCreate withKeyVaultId(String keyVaultId); } /** - * The stage of the certificate update allowing to specify KeyVaultSecretName. + * The stage of the certificate definition allowing to specify KeyVaultSecretName. */ interface WithKeyVaultSecretName { /** * Specifies keyVaultSecretName. + * @param keyVaultSecretName Key Vault secret name + * @return the next definition stage */ WithCreate withKeyVaultSecretName(String keyVaultSecretName); } /** - * The stage of the certificate update allowing to specify Kind. + * The stage of the certificate definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } /** - * The stage of the certificate update allowing to specify PfxBlob. + * The stage of the certificate definition allowing to specify PfxBlob. */ interface WithPfxBlob { /** * Specifies pfxBlob. + * @param pfxBlob Pfx blob + * @return the next definition stage */ WithCreate withPfxBlob(byte[] pfxBlob); } /** - * The stage of the certificate update allowing to specify ServerFarmId. + * The stage of the certificate definition allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next definition stage */ WithCreate withServerFarmId(String serverFarmId); } @@ -242,61 +256,73 @@ interface Update extends Appliable, Resource.UpdateWithTags */ interface UpdateStages { /** - * The stage of the certificate {0} allowing to specify HostNames. + * The stage of the certificate update allowing to specify HostNames. */ interface WithHostNames { /** * Specifies hostNames. + * @param hostNames Host names the certificate applies to + * @return the next update stage */ Update withHostNames(List hostNames); } /** - * The stage of the certificate {0} allowing to specify KeyVaultId. + * The stage of the certificate update allowing to specify KeyVaultId. */ interface WithKeyVaultId { /** * Specifies keyVaultId. + * @param keyVaultId Key Vault Csm resource Id + * @return the next update stage */ Update withKeyVaultId(String keyVaultId); } /** - * The stage of the certificate {0} allowing to specify KeyVaultSecretName. + * The stage of the certificate update allowing to specify KeyVaultSecretName. */ interface WithKeyVaultSecretName { /** * Specifies keyVaultSecretName. + * @param keyVaultSecretName Key Vault secret name + * @return the next update stage */ Update withKeyVaultSecretName(String keyVaultSecretName); } /** - * The stage of the certificate {0} allowing to specify Kind. + * The stage of the certificate update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the certificate {0} allowing to specify PfxBlob. + * The stage of the certificate update allowing to specify PfxBlob. */ interface WithPfxBlob { /** * Specifies pfxBlob. + * @param pfxBlob Pfx blob + * @return the next update stage */ Update withPfxBlob(byte[] pfxBlob); } /** - * The stage of the certificate {0} allowing to specify ServerFarmId. + * The stage of the certificate update allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next update stage */ Update withServerFarmId(String serverFarmId); } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CertificatePatchResource.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CertificatePatchResource.java index 6e3ceea405579..af8fe8b6b6330 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CertificatePatchResource.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CertificatePatchResource.java @@ -67,7 +67,7 @@ public class CertificatePatchResource extends ProxyOnlyResource { private DateTime issueDate; /** - * Certificate expriration date. + * Certificate expiration date. */ @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY) private DateTime expirationDate; @@ -240,7 +240,7 @@ public DateTime issueDate() { } /** - * Get certificate expriration date. + * Get certificate expiration date. * * @return the expirationDate value */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmOperationDescription.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmOperationDescription.java index 4151455c6d494..e31b1a4e033f6 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmOperationDescription.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmOperationDescription.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.CsmOperationDescriptionInner; /** * Type representing CsmOperationDescription. */ -public interface CsmOperationDescription extends HasInner, HasManager { +public interface CsmOperationDescription extends HasInner, HasManager { /** * @return the display value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmUsageQuota.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmUsageQuota.java index f84202a672a49..02c006b763a0c 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmUsageQuota.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/CsmUsageQuota.java @@ -16,7 +16,7 @@ */ public class CsmUsageQuota { /** - * Units of measurement for the quota resourse. + * Units of measurement for the quota resource. */ @JsonProperty(value = "unit") private String unit; @@ -46,7 +46,7 @@ public class CsmUsageQuota { private LocalizableString name; /** - * Get units of measurement for the quota resourse. + * Get units of measurement for the quota resource. * * @return the unit value */ @@ -55,7 +55,7 @@ public String unit() { } /** - * Set units of measurement for the quota resourse. + * Set units of measurement for the quota resource. * * @param unit the unit value to set * @return the CsmUsageQuota object itself. diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DataSource.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DataSource.java index 4d3b96de50d7a..a78701a64a75c 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DataSource.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DataSource.java @@ -16,7 +16,7 @@ */ public class DataSource { /** - * Instrunctions if any for the data source. + * Instructions if any for the data source. */ @JsonProperty(value = "instructions") private List instructions; @@ -28,7 +28,7 @@ public class DataSource { private List dataSourceUri; /** - * Get instrunctions if any for the data source. + * Get instructions if any for the data source. * * @return the instructions value */ @@ -37,7 +37,7 @@ public List instructions() { } /** - * Set instrunctions if any for the data source. + * Set instructions if any for the data source. * * @param instructions the instructions value to set * @return the DataSource object itself. diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DeletedSite.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DeletedSite.java index 3c43ee63642dc..964d94ad85cab 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DeletedSite.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DeletedSite.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.DeletedSiteInner; /** * Type representing DeletedSite. */ -public interface DeletedSite extends HasInner, HasManager { +public interface DeletedSite extends HasInner, HasManager { /** * @return the deletedTimestamp value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorAbnormalTimePeriod.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorAbnormalTimePeriod.java index 40cf02fdda109..4ceffdf8ec074 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorAbnormalTimePeriod.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorAbnormalTimePeriod.java @@ -17,13 +17,13 @@ */ public class DetectorAbnormalTimePeriod { /** - * Start time of the corelated event. + * Start time of the correlated event. */ @JsonProperty(value = "startTime") private DateTime startTime; /** - * End time of the corelated event. + * End time of the correlated event. */ @JsonProperty(value = "endTime") private DateTime endTime; @@ -67,7 +67,7 @@ public class DetectorAbnormalTimePeriod { private List solutions; /** - * Get start time of the corelated event. + * Get start time of the correlated event. * * @return the startTime value */ @@ -76,7 +76,7 @@ public DateTime startTime() { } /** - * Set start time of the corelated event. + * Set start time of the correlated event. * * @param startTime the startTime value to set * @return the DetectorAbnormalTimePeriod object itself. @@ -87,7 +87,7 @@ public DetectorAbnormalTimePeriod withStartTime(DateTime startTime) { } /** - * Get end time of the corelated event. + * Get end time of the correlated event. * * @return the endTime value */ @@ -96,7 +96,7 @@ public DateTime endTime() { } /** - * Set end time of the corelated event. + * Set end time of the correlated event. * * @param endTime the endTime value to set * @return the DetectorAbnormalTimePeriod object itself. diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorDefinition.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorDefinition.java index 05498b7112be4..c50b66b34dba7 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorDefinition.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorDefinition.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.DetectorDefinitionInner; /** * Type representing DetectorDefinition. */ -public interface DetectorDefinition extends HasInner, HasManager { +public interface DetectorDefinition extends HasInner, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorResponse.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorResponse.java index 27ee8c59f92a7..b8dbcff79953a 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorResponse.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DetectorResponse.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import java.util.List; /** * Type representing DetectorResponse. */ -public interface DetectorResponse extends HasInner, Indexable, Refreshable, HasManager { +public interface DetectorResponse extends HasInner, Indexable, Refreshable, HasManager { /** * @return the dataset value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticAnalysis.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticAnalysis.java index ef113eae92654..567a0240dbf62 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticAnalysis.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticAnalysis.java @@ -13,14 +13,14 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import java.util.List; import org.joda.time.DateTime; /** * Type representing DiagnosticAnalysis. */ -public interface DiagnosticAnalysis extends HasInner, Indexable, Refreshable, HasManager { +public interface DiagnosticAnalysis extends HasInner, Indexable, Refreshable, HasManager { /** * @return the abnormalTimePeriods value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticCategory.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticCategory.java index ae9ce2cecfd8f..0925814107e7d 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticCategory.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticCategory.java @@ -13,12 +13,12 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; /** * Type representing DiagnosticCategory. */ -public interface DiagnosticCategory extends HasInner, Indexable, Refreshable, HasManager { +public interface DiagnosticCategory extends HasInner, Indexable, Refreshable, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticDetectorResponse.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticDetectorResponse.java index e8930ebe12097..8c3bbc219e0cc 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticDetectorResponse.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/DiagnosticDetectorResponse.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.DiagnosticDetectorResponseInner; import java.util.List; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.DetectorDefinitionInner; @@ -19,7 +19,7 @@ /** * Type representing DiagnosticDetectorResponse. */ -public interface DiagnosticDetectorResponse extends HasInner, HasManager { +public interface DiagnosticDetectorResponse extends HasInner, HasManager { /** * @return the abnormalTimePeriods value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RampUpRule.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RampUpRule.java index 06575a150066a..db3c705a020d0 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RampUpRule.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RampUpRule.java @@ -30,11 +30,11 @@ public class RampUpRule { private Double reroutePercentage; /** - * In auto ramp up scenario this is the step to to add/remove from + * In auto ramp up scenario this is the step to add/remove from * <code>ReroutePercentage</code> until it reaches * <code>MinReroutePercentage</code> or * <code>MaxReroutePercentage</code>. Site metrics are checked - * every N minutes specificed in + * every N minutes specified in * <code>ChangeIntervalInMinutes</code>. * Custom decision algorithm can be provided in TiPCallback site extension * which URL can be specified in @@ -44,7 +44,7 @@ public class RampUpRule { private Double changeStep; /** - * Specifies interval in mimuntes to reevaluate ReroutePercentage. + * Specifies interval in minutes to reevaluate ReroutePercentage. */ @JsonProperty(value = "changeIntervalInMinutes") private Integer changeIntervalInMinutes; @@ -118,8 +118,8 @@ public RampUpRule withReroutePercentage(Double reroutePercentage) { } /** - * Get in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Get in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @return the changeStep value @@ -129,8 +129,8 @@ public Double changeStep() { } /** - * Set in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Set in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @param changeStep the changeStep value to set @@ -142,7 +142,7 @@ public RampUpRule withChangeStep(Double changeStep) { } /** - * Get specifies interval in mimuntes to reevaluate ReroutePercentage. + * Get specifies interval in minutes to reevaluate ReroutePercentage. * * @return the changeIntervalInMinutes value */ @@ -151,7 +151,7 @@ public Integer changeIntervalInMinutes() { } /** - * Set specifies interval in mimuntes to reevaluate ReroutePercentage. + * Set specifies interval in minutes to reevaluate ReroutePercentage. * * @param changeIntervalInMinutes the changeIntervalInMinutes value to set * @return the RampUpRule object itself. diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Recommendation.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Recommendation.java index 0bd4b2cdf51a5..4495e9d9e540e 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Recommendation.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/Recommendation.java @@ -11,7 +11,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.RecommendationInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import org.joda.time.DateTime; import java.util.UUID; import java.util.List; @@ -19,7 +19,7 @@ /** * Type representing Recommendation. */ -public interface Recommendation extends HasInner, HasManager { +public interface Recommendation extends HasInner, HasManager { /** * @return the actionName value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RecommendationRule.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RecommendationRule.java index 15408267f21c0..f6b9b27920256 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RecommendationRule.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/RecommendationRule.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.RecommendationRuleInner; import java.util.UUID; import java.util.List; @@ -18,7 +18,7 @@ /** * Type representing RecommendationRule. */ -public interface RecommendationRule extends HasInner, HasManager { +public interface RecommendationRule extends HasInner, HasManager { /** * @return the actionName value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ResourceHealthMetadata.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ResourceHealthMetadata.java index 622451af120c5..2ecfa43c81a13 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ResourceHealthMetadata.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ResourceHealthMetadata.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_03_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_03_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_03_01.implementation.ResourceHealthMetadataInner; /** * Type representing ResourceHealthMetadata. */ -public interface ResourceHealthMetadata extends HasInner, HasManager { +public interface ResourceHealthMetadata extends HasInner, HasManager { /** * @return the category value. */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SiteConfig.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SiteConfig.java index 846c69c7f4e31..bb2fa459c67bf 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SiteConfig.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SiteConfig.java @@ -214,7 +214,7 @@ public class SiteConfig { private SiteLoadBalancing loadBalancing; /** - * This is work around for polymophic types. + * This is work around for polymorphic types. */ @JsonProperty(value = "experiments") private Experiments experiments; @@ -911,7 +911,7 @@ public SiteConfig withLoadBalancing(SiteLoadBalancing loadBalancing) { } /** - * Get this is work around for polymophic types. + * Get this is work around for polymorphic types. * * @return the experiments value */ @@ -920,7 +920,7 @@ public Experiments experiments() { } /** - * Set this is work around for polymophic types. + * Set this is work around for polymorphic types. * * @param experiments the experiments value to set * @return the SiteConfig object itself. diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SlotSwapStatus.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SlotSwapStatus.java index 610165e24b594..bd65f51a6a97e 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SlotSwapStatus.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/SlotSwapStatus.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The status of the last successfull slot swap operation. + * The status of the last successful slot swap operation. */ public class SlotSwapStatus { /** diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ValidateRequest.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ValidateRequest.java index a8e7e08557034..e7d313a1a52f1 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ValidateRequest.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/ValidateRequest.java @@ -62,7 +62,7 @@ public class ValidateRequest { private Boolean isSpot; /** - * Target capacity of the App Service plan (number of VM's). + * Target capacity of the App Service plan (number of VMs). */ @JsonProperty(value = "properties.capacity") private Integer capacity; @@ -215,7 +215,7 @@ public ValidateRequest withIsSpot(Boolean isSpot) { } /** - * Get target capacity of the App Service plan (number of VM's). + * Get target capacity of the App Service plan (number of VMs). * * @return the capacity value */ @@ -224,7 +224,7 @@ public Integer capacity() { } /** - * Set target capacity of the App Service plan (number of VM's). + * Set target capacity of the App Service plan (number of VMs). * * @param capacity the capacity value to set * @return the ValidateRequest object itself. diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/AnalysisDefinitionImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/AnalysisDefinitionImpl.java index 763192721fd9a..05b2769de911c 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/AnalysisDefinitionImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/AnalysisDefinitionImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class AnalysisDefinitionImpl extends WrapperImpl implements AnalysisDefinition { - private final AppServiceManager manager; - AnalysisDefinitionImpl(AnalysisDefinitionInner inner, AppServiceManager manager) { + private final WebManager manager; + AnalysisDefinitionImpl(AnalysisDefinitionInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ApplicationStackImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ApplicationStackImpl.java index 56377d323cd49..327ba44c8e629 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ApplicationStackImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ApplicationStackImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_03_01.StackMajorVersion; class ApplicationStackImpl extends WrapperImpl implements ApplicationStack { - private final AppServiceManager manager; - ApplicationStackImpl(ApplicationStackInner inner, AppServiceManager manager) { + private final WebManager manager; + ApplicationStackImpl(ApplicationStackInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMeterImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMeterImpl.java index 3c858d4e48c94..53f5da9909820 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMeterImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMeterImpl.java @@ -14,15 +14,15 @@ import rx.Observable; class BillingMeterImpl extends WrapperImpl implements BillingMeter { - private final AppServiceManager manager; + private final WebManager manager; - BillingMeterImpl(BillingMeterInner inner, AppServiceManager manager) { + BillingMeterImpl(BillingMeterInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMetersImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMetersImpl.java index 140807a072d7a..c7b46dece5e4e 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMetersImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/BillingMetersImpl.java @@ -20,9 +20,9 @@ class BillingMetersImpl extends WrapperImpl implements BillingMeters { private PagedListConverter converter; - private final AppServiceManager manager; + private final WebManager manager; - BillingMetersImpl(AppServiceManager manager) { + BillingMetersImpl(WebManager manager) { super(manager.inner().billingMeters()); this.manager = manager; this.converter = new PagedListConverter() { @@ -33,7 +33,7 @@ public Observable typeConvertAsync(BillingMeterInner inner) { }; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateImpl.java index d50bef8c2c141..1283afabc7ea5 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateImpl.java @@ -18,9 +18,9 @@ import com.microsoft.azure.management.appservice.v2016_03_01.KeyVaultSecretStatus; import rx.functions.Func1; -class CertificateImpl extends GroupableResourceCoreImpl implements Certificate, Certificate.Definition, Certificate.Update { +class CertificateImpl extends GroupableResourceCoreImpl implements Certificate, Certificate.Definition, Certificate.Update { private CertificatePatchResource updateParameter; - CertificateImpl(String name, CertificateInner inner, AppServiceManager manager) { + CertificateImpl(String name, CertificateInner inner, WebManager manager) { super(name, inner, manager); this.updateParameter = new CertificatePatchResource(); } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateInner.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateInner.java index b1e2a289e7808..d306881e9f0cd 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateInner.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificateInner.java @@ -70,7 +70,7 @@ public class CertificateInner extends Resource { private DateTime issueDate; /** - * Certificate expriration date. + * Certificate expiration date. */ @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY) private DateTime expirationDate; @@ -249,7 +249,7 @@ public DateTime issueDate() { } /** - * Get certificate expriration date. + * Get certificate expiration date. * * @return the expirationDate value */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificatesImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificatesImpl.java index 90a9f9e7df2d9..6aee259e33b69 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificatesImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CertificatesImpl.java @@ -23,8 +23,8 @@ import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -class CertificatesImpl extends GroupableResourcesCoreImpl implements Certificates { - protected CertificatesImpl(AppServiceManager manager) { +class CertificatesImpl extends GroupableResourcesCoreImpl implements Certificates { + protected CertificatesImpl(WebManager manager) { super(manager.inner().certificates(), manager); } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CsmOperationDescriptionImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CsmOperationDescriptionImpl.java index bb5ce402ef4df..08215370c3d9e 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CsmOperationDescriptionImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/CsmOperationDescriptionImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_03_01.CsmOperationDescriptionProperties; class CsmOperationDescriptionImpl extends WrapperImpl implements CsmOperationDescription { - private final AppServiceManager manager; - CsmOperationDescriptionImpl(CsmOperationDescriptionInner inner, AppServiceManager manager) { + private final WebManager manager; + CsmOperationDescriptionImpl(CsmOperationDescriptionInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedSiteImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedSiteImpl.java index fd10537153633..7359b1ede40ca 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedSiteImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedSiteImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class DeletedSiteImpl extends WrapperImpl implements DeletedSite { - private final AppServiceManager manager; - DeletedSiteImpl(DeletedSiteInner inner, AppServiceManager manager) { + private final WebManager manager; + DeletedSiteImpl(DeletedSiteInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedWebAppsImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedWebAppsImpl.java index 658ad6aae41df..ca47be22d4f71 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedWebAppsImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DeletedWebAppsImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.appservice.v2016_03_01.DeletedSite; class DeletedWebAppsImpl extends WrapperImpl implements DeletedWebApps { - private final AppServiceManager manager; + private final WebManager manager; - DeletedWebAppsImpl(AppServiceManager manager) { + DeletedWebAppsImpl(WebManager manager) { super(manager.inner().deletedWebApps()); this.manager = manager; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorDefinitionImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorDefinitionImpl.java index d6b2a88082c5b..c6d2c993d1548 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorDefinitionImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorDefinitionImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class DetectorDefinitionImpl extends WrapperImpl implements DetectorDefinition { - private final AppServiceManager manager; - DetectorDefinitionImpl(DetectorDefinitionInner inner, AppServiceManager manager) { + private final WebManager manager; + DetectorDefinitionImpl(DetectorDefinitionInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorResponseImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorResponseImpl.java index d656ba1e9a818..a86ea2858df2a 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorResponseImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DetectorResponseImpl.java @@ -16,21 +16,22 @@ import com.microsoft.azure.management.appservice.v2016_03_01.DetectorInfo; class DetectorResponseImpl extends IndexableRefreshableWrapperImpl implements DetectorResponse { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String detectorName; - DetectorResponseImpl(DetectorResponseInner inner, AppServiceManager manager) { + DetectorResponseImpl(DetectorResponseInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "hostingEnvironments"); this.detectorName = IdParsingUtils.getValueFromIdByName(inner.id(), "detectors"); } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticAnalysisImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticAnalysisImpl.java index 43c7aa0b7735b..6ab714ef1b998 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticAnalysisImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticAnalysisImpl.java @@ -19,15 +19,16 @@ import com.microsoft.azure.management.appservice.v2016_03_01.AnalysisData; class DiagnosticAnalysisImpl extends IndexableRefreshableWrapperImpl implements DiagnosticAnalysis { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String siteName; private String diagnosticCategory; private String analysisName; - DiagnosticAnalysisImpl(DiagnosticAnalysisInner inner, AppServiceManager manager) { + DiagnosticAnalysisImpl(DiagnosticAnalysisInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.siteName = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.diagnosticCategory = IdParsingUtils.getValueFromIdByName(inner.id(), "diagnostics"); @@ -35,7 +36,7 @@ class DiagnosticAnalysisImpl extends IndexableRefreshableWrapperImpl implements DiagnosticCategory { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String siteName; private String diagnosticCategory; - DiagnosticCategoryImpl(DiagnosticCategoryInner inner, AppServiceManager manager) { + DiagnosticCategoryImpl(DiagnosticCategoryInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.siteName = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.diagnosticCategory = IdParsingUtils.getValueFromIdByName(inner.id(), "diagnostics"); } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseImpl.java index 6f69574bb66d1..082c07d50edbf 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseImpl.java @@ -18,14 +18,14 @@ import com.microsoft.azure.management.appservice.v2016_03_01.ResponseMetaData; class DiagnosticDetectorResponseImpl extends WrapperImpl implements DiagnosticDetectorResponse { - private final AppServiceManager manager; - DiagnosticDetectorResponseImpl(DiagnosticDetectorResponseInner inner, AppServiceManager manager) { + private final WebManager manager; + DiagnosticDetectorResponseImpl(DiagnosticDetectorResponseInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseInner.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseInner.java index a9d6369803f3f..b9b70bca4983d 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseInner.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticDetectorResponseInner.java @@ -19,7 +19,7 @@ import com.microsoft.azure.management.appservice.v2016_03_01.ProxyOnlyResource; /** - * Class representing Reponse from Diagnostic Detectors. + * Class representing Response from Diagnostic Detectors. */ @JsonFlatten public class DiagnosticDetectorResponseInner extends ProxyOnlyResource { diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticsImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticsImpl.java index 6d3e99954167c..5cb3a680e242c 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticsImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/DiagnosticsImpl.java @@ -22,14 +22,14 @@ import com.microsoft.azure.management.appservice.v2016_03_01.AnalysisDefinition; class DiagnosticsImpl extends WrapperImpl implements Diagnostics { - private final AppServiceManager manager; + private final WebManager manager; - DiagnosticsImpl(AppServiceManager manager) { + DiagnosticsImpl(WebManager manager) { super(manager.inner().diagnostics()); this.manager = manager; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ProvidersImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ProvidersImpl.java index 942e7c4c60720..fc02280d9181a 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ProvidersImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ProvidersImpl.java @@ -18,14 +18,14 @@ import com.microsoft.azure.management.appservice.v2016_03_01.CsmOperationDescription; class ProvidersImpl extends WrapperImpl implements Providers { - private final AppServiceManager manager; + private final WebManager manager; - ProvidersImpl(AppServiceManager manager) { + ProvidersImpl(WebManager manager) { super(manager.inner().providers()); this.manager = manager; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationImpl.java index cde7878c8dc82..6948fc99fbf82 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationImpl.java @@ -20,15 +20,15 @@ import java.util.List; class RecommendationImpl extends WrapperImpl implements Recommendation { - private final AppServiceManager manager; + private final WebManager manager; - RecommendationImpl(RecommendationInner inner, AppServiceManager manager) { + RecommendationImpl(RecommendationInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationRuleImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationRuleImpl.java index 85f3887c87d4d..9b92b783d063e 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationRuleImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationRuleImpl.java @@ -16,14 +16,14 @@ import java.util.List; class RecommendationRuleImpl extends WrapperImpl implements RecommendationRule { - private final AppServiceManager manager; - RecommendationRuleImpl(RecommendationRuleInner inner, AppServiceManager manager) { + private final WebManager manager; + RecommendationRuleImpl(RecommendationRuleInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsImpl.java index f3dee043ff318..4c47ce84183be 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsImpl.java @@ -22,9 +22,9 @@ class RecommendationsImpl extends WrapperImpl implements Recommendations { private PagedListConverter converter; - private final AppServiceManager manager; + private final WebManager manager; - RecommendationsImpl(AppServiceManager manager) { + RecommendationsImpl(WebManager manager) { super(manager.inner().recommendations()); this.manager = manager; this.converter = new PagedListConverter() { @@ -35,7 +35,7 @@ public Observable typeConvertAsync(RecommendationInner inner) { }; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsInner.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsInner.java index 8335669b3342b..3aef0dc212f38 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsInner.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/RecommendationsInner.java @@ -1288,7 +1288,7 @@ public Observable> call(Response getRuleDetailsByWebAppAsync(String * @param siteName Name of the app. * @param name Name of the recommendation. * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. - * @param recommendationId The GUID of the recommedation object if you query an expired one. You don't need to specify it to query an active entry. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RecommendationRuleInner object */ @@ -1344,7 +1344,7 @@ public RecommendationRuleInner call(ServiceResponse res * @param siteName Name of the app. * @param name Name of the recommendation. * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. - * @param recommendationId The GUID of the recommedation object if you query an expired one. You don't need to specify it to query an active entry. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RecommendationRuleInner object */ diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadataImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadataImpl.java index c04b517e705e6..a48148374856f 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadataImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadataImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class ResourceHealthMetadataImpl extends WrapperImpl implements ResourceHealthMetadata { - private final AppServiceManager manager; - ResourceHealthMetadataImpl(ResourceHealthMetadataInner inner, AppServiceManager manager) { + private final WebManager manager; + ResourceHealthMetadataImpl(ResourceHealthMetadataInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadatasImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadatasImpl.java index 5c6f8969153e2..40135f07c0390 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadatasImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceHealthMetadatasImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.appservice.v2016_03_01.ResourceHealthMetadata; class ResourceHealthMetadatasImpl extends WrapperImpl implements ResourceHealthMetadatas { - private final AppServiceManager manager; + private final WebManager manager; - ResourceHealthMetadatasImpl(AppServiceManager manager) { + ResourceHealthMetadatasImpl(WebManager manager) { super(manager.inner().resourceHealthMetadatas()); this.manager = manager; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceNameAvailabilityInner.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceNameAvailabilityInner.java index 950a8b3962cf9..21e1c1e7b8059 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceNameAvailabilityInner.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/ResourceNameAvailabilityInner.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Information regarding availbility of a resource name. + * Information regarding availability of a resource name. */ public class ResourceNameAvailabilityInner { /** diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/UserInner.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/UserInner.java index 1a2aaf23c9ef4..82dcce18fac90 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/UserInner.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/UserInner.java @@ -13,7 +13,7 @@ import com.microsoft.azure.management.appservice.v2016_03_01.ProxyOnlyResource; /** - * User crendentials used for publishing activity. + * User credentials used for publishing activity. */ @JsonFlatten public class UserInner extends ProxyOnlyResource { diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/WebManager.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/WebManager.java new file mode 100644 index 0000000000000..af4232f07b0b8 --- /dev/null +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/WebManager.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2016_03_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.appservice.v2016_03_01.Certificates; +import com.microsoft.azure.management.appservice.v2016_03_01.DeletedWebApps; +import com.microsoft.azure.management.appservice.v2016_03_01.Diagnostics; +import com.microsoft.azure.management.appservice.v2016_03_01.Providers; +import com.microsoft.azure.management.appservice.v2016_03_01.Recommendations; +import com.microsoft.azure.management.appservice.v2016_03_01.ResourceHealthMetadatas; +import com.microsoft.azure.management.appservice.v2016_03_01.BillingMeters; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure Web resource management. + */ +public final class WebManager extends ManagerCore { + private Certificates certificates; + private DeletedWebApps deletedWebApps; + private Diagnostics diagnostics; + private Providers providers; + private Recommendations recommendations; + private ResourceHealthMetadatas resourceHealthMetadatas; + private BillingMeters billingMeters; + /** + * Get a Configurable instance that can be used to create WebManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new WebManager.ConfigurableImpl(); + } + /** + * Creates an instance of WebManager that exposes Web resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the WebManager + */ + public static WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new WebManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of WebManager that exposes Web resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the WebManager + */ + public static WebManager authenticate(RestClient restClient, String subscriptionId) { + return new WebManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of WebManager that exposes Web management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing Web management API entry points that work across subscriptions + */ + WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage Certificates. + */ + public Certificates certificates() { + if (this.certificates == null) { + this.certificates = new CertificatesImpl(this); + } + return this.certificates; + } + + /** + * @return Entry point to manage DeletedWebApps. + */ + public DeletedWebApps deletedWebApps() { + if (this.deletedWebApps == null) { + this.deletedWebApps = new DeletedWebAppsImpl(this); + } + return this.deletedWebApps; + } + + /** + * @return Entry point to manage Diagnostics. + */ + public Diagnostics diagnostics() { + if (this.diagnostics == null) { + this.diagnostics = new DiagnosticsImpl(this); + } + return this.diagnostics; + } + + /** + * @return Entry point to manage Providers. + */ + public Providers providers() { + if (this.providers == null) { + this.providers = new ProvidersImpl(this); + } + return this.providers; + } + + /** + * @return Entry point to manage Recommendations. + */ + public Recommendations recommendations() { + if (this.recommendations == null) { + this.recommendations = new RecommendationsImpl(this); + } + return this.recommendations; + } + + /** + * @return Entry point to manage ResourceHealthMetadatas. + */ + public ResourceHealthMetadatas resourceHealthMetadatas() { + if (this.resourceHealthMetadatas == null) { + this.resourceHealthMetadatas = new ResourceHealthMetadatasImpl(this); + } + return this.resourceHealthMetadatas; + } + + /** + * @return Entry point to manage BillingMeters. + */ + public BillingMeters billingMeters() { + if (this.billingMeters == null) { + this.billingMeters = new BillingMetersImpl(this); + } + return this.billingMeters; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return WebManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private WebManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new WebSiteManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/WebSiteManagementClientImpl.java b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/WebSiteManagementClientImpl.java index 14a00bde611cf..9fba6144f8733 100644 --- a/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/WebSiteManagementClientImpl.java +++ b/appservice/resource-manager/v2016_03_01/src/main/java/com/microsoft/azure/management/appservice/v2016_03_01/implementation/WebSiteManagementClientImpl.java @@ -97,11 +97,11 @@ public String apiVersion() { return this.apiVersion; } - /** Gets or sets the preferred language for the response. */ + /** The preferred language for the response. */ private String acceptLanguage; /** - * Gets Gets or sets the preferred language for the response. + * Gets The preferred language for the response. * * @return the acceptLanguage value. */ @@ -110,7 +110,7 @@ public String acceptLanguage() { } /** - * Sets Gets or sets the preferred language for the response. + * Sets The preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself @@ -120,11 +120,11 @@ public WebSiteManagementClientImpl withAcceptLanguage(String acceptLanguage) { return this; } - /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ private int longRunningOperationRetryTimeout; /** - * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */ @@ -133,7 +133,7 @@ public int longRunningOperationRetryTimeout() { } /** - * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself @@ -143,11 +143,11 @@ public WebSiteManagementClientImpl withLongRunningOperationRetryTimeout(int long return this; } - /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ private boolean generateClientRequestId; /** - * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @return the generateClientRequestId value. */ @@ -156,7 +156,7 @@ public boolean generateClientRequestId() { } /** - * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself @@ -310,7 +310,7 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "WebSiteManagementClient", "2016-03-01"); + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "WebSiteManagementClient", "2016-03-01"); } private void initializeService() { diff --git a/appservice/resource-manager/v2016_08_01/pom.xml b/appservice/resource-manager/v2016_08_01/pom.xml index 4202f4c42479a..dd0b3634bda72 100644 --- a/appservice/resource-manager/v2016_08_01/pom.xml +++ b/appservice/resource-manager/v2016_08_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.appservice.v2016_08_01 - - com.microsoft.azure - azure-arm-parent - 1.0.0 - ../../../pom.xml - - azure-mgmt-appservice - 1.0.0-beta-1 - jar - Microsoft Azure SDK for Web Management - This package contains Microsoft Web Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.appservice.v2016_08_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-web + 1.0.0-beta + jar + Microsoft Azure SDK for Web Management + This package contains Microsoft Web 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.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupItem.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupItem.java index 789791ad257c4..1c48926d778e9 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupItem.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupItem.java @@ -13,14 +13,14 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing BackupItem. */ -public interface BackupItem extends HasInner, Indexable, Refreshable, HasManager { +public interface BackupItem extends HasInner, Indexable, Refreshable, HasManager { /** * @return the backupId value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupRequest.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupRequest.java index a7cc515db2492..23e58c00b4417 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupRequest.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/BackupRequest.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.BackupRequestInner; import java.util.List; /** * Type representing BackupRequest. */ -public interface BackupRequest extends HasInner, HasManager { +public interface BackupRequest extends HasInner, HasManager { /** * @return the backupRequestName value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ConnectionStringDictionary.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ConnectionStringDictionary.java index 284720aa8931e..d2166677e4437 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ConnectionStringDictionary.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ConnectionStringDictionary.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.ConnectionStringDictionaryInner; import java.util.Map; /** * Type representing ConnectionStringDictionary. */ -public interface ConnectionStringDictionary extends HasInner, HasManager { +public interface ConnectionStringDictionary extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ContinuousWebJob.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ContinuousWebJob.java index b54e24522c34e..14fb88564d237 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ContinuousWebJob.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ContinuousWebJob.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.Map; /** * Type representing ContinuousWebJob. */ -public interface ContinuousWebJob extends HasInner, Indexable, Refreshable, HasManager { +public interface ContinuousWebJob extends HasInner, Indexable, Refreshable, HasManager { /** * @return the continuousWebJobName value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CsmUsageQuota.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CsmUsageQuota.java index 0f0390085227b..1654c2649ae81 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CsmUsageQuota.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CsmUsageQuota.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.CsmUsageQuotaInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import org.joda.time.DateTime; /** * Type representing CsmUsageQuota. */ -public interface CsmUsageQuota extends HasInner, HasManager { +public interface CsmUsageQuota extends HasInner, HasManager { /** * @return the currentValue value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CustomHostnameAnalysisResult.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CustomHostnameAnalysisResult.java index e32fc44cefd0b..8982b2b97cc53 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CustomHostnameAnalysisResult.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/CustomHostnameAnalysisResult.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.CustomHostnameAnalysisResultInner; import java.util.List; /** * Type representing CustomHostnameAnalysisResult. */ -public interface CustomHostnameAnalysisResult extends HasInner, HasManager { +public interface CustomHostnameAnalysisResult extends HasInner, HasManager { /** * @return the alternateCNameRecords value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Deployment.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Deployment.java index 03b9ef8a53392..06eed724b9160 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Deployment.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Deployment.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import org.joda.time.DateTime; /** * Type representing Deployment. */ -public interface Deployment extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface Deployment extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the active value. */ @@ -115,6 +115,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -125,6 +128,8 @@ interface WithSite { interface WithActive { /** * Specifies active. + * @param active True if deployment is currently active, false if completed and null if not started + * @return the next definition stage */ WithCreate withActive(Boolean active); } @@ -135,6 +140,8 @@ interface WithActive { interface WithAuthor { /** * Specifies author. + * @param author Who authored the deployment + * @return the next definition stage */ WithCreate withAuthor(String author); } @@ -145,6 +152,8 @@ interface WithAuthor { interface WithAuthorEmail { /** * Specifies authorEmail. + * @param authorEmail Author email + * @return the next definition stage */ WithCreate withAuthorEmail(String authorEmail); } @@ -155,6 +164,8 @@ interface WithAuthorEmail { interface WithDeployer { /** * Specifies deployer. + * @param deployer Who performed the deployment + * @return the next definition stage */ WithCreate withDeployer(String deployer); } @@ -165,6 +176,8 @@ interface WithDeployer { interface WithDeploymentId { /** * Specifies deploymentId. + * @param deploymentId Identifier for deployment + * @return the next definition stage */ WithCreate withDeploymentId(String deploymentId); } @@ -175,6 +188,8 @@ interface WithDeploymentId { interface WithDetails { /** * Specifies details. + * @param details Details on deployment + * @return the next definition stage */ WithCreate withDetails(String details); } @@ -185,6 +200,8 @@ interface WithDetails { interface WithEndTime { /** * Specifies endTime. + * @param endTime End time + * @return the next definition stage */ WithCreate withEndTime(DateTime endTime); } @@ -195,6 +212,8 @@ interface WithEndTime { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -205,6 +224,8 @@ interface WithKind { interface WithMessage { /** * Specifies message. + * @param message Details about deployment status + * @return the next definition stage */ WithCreate withMessage(String message); } @@ -215,6 +236,8 @@ interface WithMessage { interface WithStartTime { /** * Specifies startTime. + * @param startTime Start time + * @return the next definition stage */ WithCreate withStartTime(DateTime startTime); } @@ -225,6 +248,8 @@ interface WithStartTime { interface WithStatus { /** * Specifies status. + * @param status Deployment status + * @return the next definition stage */ WithCreate withStatus(Integer status); } @@ -253,6 +278,8 @@ interface UpdateStages { interface WithActive { /** * Specifies active. + * @param active True if deployment is currently active, false if completed and null if not started + * @return the next update stage */ Update withActive(Boolean active); } @@ -263,6 +290,8 @@ interface WithActive { interface WithAuthor { /** * Specifies author. + * @param author Who authored the deployment + * @return the next update stage */ Update withAuthor(String author); } @@ -273,6 +302,8 @@ interface WithAuthor { interface WithAuthorEmail { /** * Specifies authorEmail. + * @param authorEmail Author email + * @return the next update stage */ Update withAuthorEmail(String authorEmail); } @@ -283,6 +314,8 @@ interface WithAuthorEmail { interface WithDeployer { /** * Specifies deployer. + * @param deployer Who performed the deployment + * @return the next update stage */ Update withDeployer(String deployer); } @@ -293,6 +326,8 @@ interface WithDeployer { interface WithDeploymentId { /** * Specifies deploymentId. + * @param deploymentId Identifier for deployment + * @return the next update stage */ Update withDeploymentId(String deploymentId); } @@ -303,6 +338,8 @@ interface WithDeploymentId { interface WithDetails { /** * Specifies details. + * @param details Details on deployment + * @return the next update stage */ Update withDetails(String details); } @@ -313,6 +350,8 @@ interface WithDetails { interface WithEndTime { /** * Specifies endTime. + * @param endTime End time + * @return the next update stage */ Update withEndTime(DateTime endTime); } @@ -323,6 +362,8 @@ interface WithEndTime { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -333,6 +374,8 @@ interface WithKind { interface WithMessage { /** * Specifies message. + * @param message Details about deployment status + * @return the next update stage */ Update withMessage(String message); } @@ -343,6 +386,8 @@ interface WithMessage { interface WithStartTime { /** * Specifies startTime. + * @param startTime Start time + * @return the next update stage */ Update withStartTime(DateTime startTime); } @@ -353,6 +398,8 @@ interface WithStartTime { interface WithStatus { /** * Specifies status. + * @param status Deployment status + * @return the next update stage */ Update withStatus(Integer status); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionEnvelope.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionEnvelope.java index 7646a39f76996..ea509af65c3b3 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionEnvelope.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionEnvelope.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.Map; /** * Type representing FunctionEnvelope. */ -public interface FunctionEnvelope extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface FunctionEnvelope extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the config value. */ @@ -115,6 +115,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Site name + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -125,6 +128,8 @@ interface WithSite { interface WithConfig { /** * Specifies config. + * @param config Config information + * @return the next definition stage */ WithCreate withConfig(Object config); } @@ -135,6 +140,8 @@ interface WithConfig { interface WithConfigHref { /** * Specifies configHref. + * @param configHref Config URI + * @return the next definition stage */ WithCreate withConfigHref(String configHref); } @@ -145,6 +152,8 @@ interface WithConfigHref { interface WithFiles { /** * Specifies files. + * @param files File list + * @return the next definition stage */ WithCreate withFiles(Map files); } @@ -155,6 +164,8 @@ interface WithFiles { interface WithHref { /** * Specifies href. + * @param href Function URI + * @return the next definition stage */ WithCreate withHref(String href); } @@ -165,6 +176,8 @@ interface WithHref { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -175,6 +188,8 @@ interface WithKind { interface WithScriptHref { /** * Specifies scriptHref. + * @param scriptHref Script URI + * @return the next definition stage */ WithCreate withScriptHref(String scriptHref); } @@ -185,6 +200,8 @@ interface WithScriptHref { interface WithScriptRootPathHref { /** * Specifies scriptRootPathHref. + * @param scriptRootPathHref Script root path URI + * @return the next definition stage */ WithCreate withScriptRootPathHref(String scriptRootPathHref); } @@ -195,6 +212,8 @@ interface WithScriptRootPathHref { interface WithSecretsFileHref { /** * Specifies secretsFileHref. + * @param secretsFileHref Secrets file URI + * @return the next definition stage */ WithCreate withSecretsFileHref(String secretsFileHref); } @@ -205,6 +224,8 @@ interface WithSecretsFileHref { interface WithTestData { /** * Specifies testData. + * @param testData Test data used when testing via the Azure Portal + * @return the next definition stage */ WithCreate withTestData(String testData); } @@ -233,6 +254,8 @@ interface UpdateStages { interface WithConfig { /** * Specifies config. + * @param config Config information + * @return the next update stage */ Update withConfig(Object config); } @@ -243,6 +266,8 @@ interface WithConfig { interface WithConfigHref { /** * Specifies configHref. + * @param configHref Config URI + * @return the next update stage */ Update withConfigHref(String configHref); } @@ -253,6 +278,8 @@ interface WithConfigHref { interface WithFiles { /** * Specifies files. + * @param files File list + * @return the next update stage */ Update withFiles(Map files); } @@ -263,6 +290,8 @@ interface WithFiles { interface WithHref { /** * Specifies href. + * @param href Function URI + * @return the next update stage */ Update withHref(String href); } @@ -273,6 +302,8 @@ interface WithHref { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -283,6 +314,8 @@ interface WithKind { interface WithScriptHref { /** * Specifies scriptHref. + * @param scriptHref Script URI + * @return the next update stage */ Update withScriptHref(String scriptHref); } @@ -293,6 +326,8 @@ interface WithScriptHref { interface WithScriptRootPathHref { /** * Specifies scriptRootPathHref. + * @param scriptRootPathHref Script root path URI + * @return the next update stage */ Update withScriptRootPathHref(String scriptRootPathHref); } @@ -303,6 +338,8 @@ interface WithScriptRootPathHref { interface WithSecretsFileHref { /** * Specifies secretsFileHref. + * @param secretsFileHref Secrets file URI + * @return the next update stage */ Update withSecretsFileHref(String secretsFileHref); } @@ -313,6 +350,8 @@ interface WithSecretsFileHref { interface WithTestData { /** * Specifies testData. + * @param testData Test data used when testing via the Azure Portal + * @return the next update stage */ Update withTestData(String testData); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionSecrets.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionSecrets.java index 9389d1f75e35c..21dc165efdc5f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionSecrets.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/FunctionSecrets.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.FunctionSecretsInner; /** * Type representing FunctionSecrets. */ -public interface FunctionSecrets extends HasInner, HasManager { +public interface FunctionSecrets extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HostNameBinding.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HostNameBinding.java index 90cbe5f0d16eb..28e549b8d6081 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HostNameBinding.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HostNameBinding.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing HostNameBinding. */ -public interface HostNameBinding extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface HostNameBinding extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the azureResourceName value. */ @@ -109,6 +109,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -119,6 +122,8 @@ interface WithSite { interface WithAzureResourceName { /** * Specifies azureResourceName. + * @param azureResourceName Azure resource name + * @return the next definition stage */ WithCreate withAzureResourceName(String azureResourceName); } @@ -129,6 +134,8 @@ interface WithAzureResourceName { interface WithAzureResourceType { /** * Specifies azureResourceType. + * @param azureResourceType Azure resource type. Possible values include: 'Website', 'TrafficManager' + * @return the next definition stage */ WithCreate withAzureResourceType(AzureResourceType azureResourceType); } @@ -139,6 +146,8 @@ interface WithAzureResourceType { interface WithCustomHostNameDnsRecordType { /** * Specifies customHostNameDnsRecordType. + * @param customHostNameDnsRecordType Custom DNS record type. Possible values include: 'CName', 'A' + * @return the next definition stage */ WithCreate withCustomHostNameDnsRecordType(CustomHostNameDnsRecordType customHostNameDnsRecordType); } @@ -149,6 +158,8 @@ interface WithCustomHostNameDnsRecordType { interface WithDomainId { /** * Specifies domainId. + * @param domainId Fully qualified ARM domain resource URI + * @return the next definition stage */ WithCreate withDomainId(String domainId); } @@ -159,6 +170,8 @@ interface WithDomainId { interface WithHostNameType { /** * Specifies hostNameType. + * @param hostNameType Hostname type. Possible values include: 'Verified', 'Managed' + * @return the next definition stage */ WithCreate withHostNameType(HostNameType hostNameType); } @@ -169,6 +182,8 @@ interface WithHostNameType { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -179,6 +194,8 @@ interface WithKind { interface WithSiteName { /** * Specifies siteName. + * @param siteName App Service app name + * @return the next definition stage */ WithCreate withSiteName(String siteName); } @@ -189,6 +206,8 @@ interface WithSiteName { interface WithSslState { /** * Specifies sslState. + * @param sslState SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + * @return the next definition stage */ WithCreate withSslState(SslState sslState); } @@ -199,6 +218,8 @@ interface WithSslState { interface WithThumbprint { /** * Specifies thumbprint. + * @param thumbprint SSL certificate thumbprint + * @return the next definition stage */ WithCreate withThumbprint(String thumbprint); } @@ -227,6 +248,8 @@ interface UpdateStages { interface WithAzureResourceName { /** * Specifies azureResourceName. + * @param azureResourceName Azure resource name + * @return the next update stage */ Update withAzureResourceName(String azureResourceName); } @@ -237,6 +260,8 @@ interface WithAzureResourceName { interface WithAzureResourceType { /** * Specifies azureResourceType. + * @param azureResourceType Azure resource type. Possible values include: 'Website', 'TrafficManager' + * @return the next update stage */ Update withAzureResourceType(AzureResourceType azureResourceType); } @@ -247,6 +272,8 @@ interface WithAzureResourceType { interface WithCustomHostNameDnsRecordType { /** * Specifies customHostNameDnsRecordType. + * @param customHostNameDnsRecordType Custom DNS record type. Possible values include: 'CName', 'A' + * @return the next update stage */ Update withCustomHostNameDnsRecordType(CustomHostNameDnsRecordType customHostNameDnsRecordType); } @@ -257,6 +284,8 @@ interface WithCustomHostNameDnsRecordType { interface WithDomainId { /** * Specifies domainId. + * @param domainId Fully qualified ARM domain resource URI + * @return the next update stage */ Update withDomainId(String domainId); } @@ -267,6 +296,8 @@ interface WithDomainId { interface WithHostNameType { /** * Specifies hostNameType. + * @param hostNameType Hostname type. Possible values include: 'Verified', 'Managed' + * @return the next update stage */ Update withHostNameType(HostNameType hostNameType); } @@ -277,6 +308,8 @@ interface WithHostNameType { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -287,6 +320,8 @@ interface WithKind { interface WithSiteName { /** * Specifies siteName. + * @param siteName App Service app name + * @return the next update stage */ Update withSiteName(String siteName); } @@ -297,6 +332,8 @@ interface WithSiteName { interface WithSslState { /** * Specifies sslState. + * @param sslState SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + * @return the next update stage */ Update withSslState(SslState sslState); } @@ -307,6 +344,8 @@ interface WithSslState { interface WithThumbprint { /** * Specifies thumbprint. + * @param thumbprint SSL certificate thumbprint + * @return the next update stage */ Update withThumbprint(String thumbprint); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnection.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnection.java index 143ba31fe58a4..f56ee1e0ff769 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnection.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnection.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing HybridConnection. */ -public interface HybridConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface HybridConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the hostname value. */ @@ -104,6 +104,10 @@ interface Blank extends WithHybridConnectionNamespace { interface WithHybridConnectionNamespace { /** * Specifies resourceGroupName, name, namespaceName. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name The name of the web app + * @param namespaceName The namespace for this hybrid connection + * @return the next definition stage */ WithCreate withExistingHybridConnectionNamespace(String resourceGroupName, String name, String namespaceName); } @@ -114,6 +118,8 @@ interface WithHybridConnectionNamespace { interface WithHostname { /** * Specifies hostname. + * @param hostname The hostname of the endpoint + * @return the next definition stage */ WithCreate withHostname(String hostname); } @@ -124,6 +130,8 @@ interface WithHostname { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -134,6 +142,8 @@ interface WithKind { interface WithPort { /** * Specifies port. + * @param port The port of the endpoint + * @return the next definition stage */ WithCreate withPort(Integer port); } @@ -144,6 +154,8 @@ interface WithPort { interface WithRelayArmUri { /** * Specifies relayArmUri. + * @param relayArmUri The ARM URI to the Service Bus relay + * @return the next definition stage */ WithCreate withRelayArmUri(String relayArmUri); } @@ -154,6 +166,8 @@ interface WithRelayArmUri { interface WithRelayName { /** * Specifies relayName. + * @param relayName The name of the Service Bus relay + * @return the next definition stage */ WithCreate withRelayName(String relayName); } @@ -164,6 +178,8 @@ interface WithRelayName { interface WithSendKeyName { /** * Specifies sendKeyName. + * @param sendKeyName The name of the Service Bus key which has Send permissions. This is used to authenticate to Service Bus + * @return the next definition stage */ WithCreate withSendKeyName(String sendKeyName); } @@ -174,6 +190,9 @@ interface WithSendKeyName { interface WithSendKeyValue { /** * Specifies sendKeyValue. + * @param sendKeyValue The value of the Service Bus key. This is used to authenticate to Service Bus. In ARM this key will not be returned + normally, use the POST /listKeys API instead + * @return the next definition stage */ WithCreate withSendKeyValue(String sendKeyValue); } @@ -184,6 +203,8 @@ interface WithSendKeyValue { interface WithServiceBusNamespace { /** * Specifies serviceBusNamespace. + * @param serviceBusNamespace The name of the Service Bus namespace + * @return the next definition stage */ WithCreate withServiceBusNamespace(String serviceBusNamespace); } @@ -194,6 +215,8 @@ interface WithServiceBusNamespace { interface WithServiceBusSuffix { /** * Specifies serviceBusSuffix. + * @param serviceBusSuffix The suffix for the service bus endpoint. By default this is .servicebus.windows.net + * @return the next definition stage */ WithCreate withServiceBusSuffix(String serviceBusSuffix); } @@ -222,6 +245,8 @@ interface UpdateStages { interface WithHostname { /** * Specifies hostname. + * @param hostname The hostname of the endpoint + * @return the next update stage */ Update withHostname(String hostname); } @@ -232,6 +257,8 @@ interface WithHostname { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -242,6 +269,8 @@ interface WithKind { interface WithPort { /** * Specifies port. + * @param port The port of the endpoint + * @return the next update stage */ Update withPort(Integer port); } @@ -252,6 +281,8 @@ interface WithPort { interface WithRelayArmUri { /** * Specifies relayArmUri. + * @param relayArmUri The ARM URI to the Service Bus relay + * @return the next update stage */ Update withRelayArmUri(String relayArmUri); } @@ -262,6 +293,8 @@ interface WithRelayArmUri { interface WithRelayName { /** * Specifies relayName. + * @param relayName The name of the Service Bus relay + * @return the next update stage */ Update withRelayName(String relayName); } @@ -272,6 +305,8 @@ interface WithRelayName { interface WithSendKeyName { /** * Specifies sendKeyName. + * @param sendKeyName The name of the Service Bus key which has Send permissions. This is used to authenticate to Service Bus + * @return the next update stage */ Update withSendKeyName(String sendKeyName); } @@ -282,6 +317,9 @@ interface WithSendKeyName { interface WithSendKeyValue { /** * Specifies sendKeyValue. + * @param sendKeyValue The value of the Service Bus key. This is used to authenticate to Service Bus. In ARM this key will not be returned + normally, use the POST /listKeys API instead + * @return the next update stage */ Update withSendKeyValue(String sendKeyValue); } @@ -292,6 +330,8 @@ interface WithSendKeyValue { interface WithServiceBusNamespace { /** * Specifies serviceBusNamespace. + * @param serviceBusNamespace The name of the Service Bus namespace + * @return the next update stage */ Update withServiceBusNamespace(String serviceBusNamespace); } @@ -302,6 +342,8 @@ interface WithServiceBusNamespace { interface WithServiceBusSuffix { /** * Specifies serviceBusSuffix. + * @param serviceBusSuffix The suffix for the service bus endpoint. By default this is .servicebus.windows.net + * @return the next update stage */ Update withServiceBusSuffix(String serviceBusSuffix); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnectionKey.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnectionKey.java index 5db734a7a46b9..a9bb4270a054f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnectionKey.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/HybridConnectionKey.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.HybridConnectionKeyInner; /** * Type representing HybridConnectionKey. */ -public interface HybridConnectionKey extends HasInner, HasManager { +public interface HybridConnectionKey extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Identifier.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Identifier.java index 03ceca0f72f07..11762987e5dd8 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Identifier.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Identifier.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing Identifier. */ -public interface Identifier extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface Identifier extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -69,6 +69,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -79,6 +82,8 @@ interface WithSite { interface WithIdentifierId { /** * Specifies identifierId. + * @param identifierId String representation of the identity + * @return the next definition stage */ WithCreate withIdentifierId(String identifierId); } @@ -89,6 +94,8 @@ interface WithIdentifierId { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -117,6 +124,8 @@ interface UpdateStages { interface WithIdentifierId { /** * Specifies identifierId. + * @param identifierId String representation of the identity + * @return the next update stage */ Update withIdentifierId(String identifierId); } @@ -127,6 +136,8 @@ interface WithIdentifierId { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeploy.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeploy.java index 2abad972d739b..8b7a05b4103f1 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeploy.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeploy.java @@ -9,6 +9,7 @@ package com.microsoft.azure.management.appservice.v2016_08_01; import java.util.Map; +import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; @@ -66,6 +67,13 @@ public class MSDeploy extends ProxyOnlyResource { @JsonProperty(value = "properties.appOffline") private Boolean appOffline; + /** + * List of Add-On packages. Add-On packages implicitly enable the Do Not + * Delete MSDeploy rule. + */ + @JsonProperty(value = "properties.addOnPackages") + private List addOnPackages; + /** * Get package URI. * @@ -214,4 +222,24 @@ public MSDeploy withAppOffline(Boolean appOffline) { return this; } + /** + * Get list of Add-On packages. Add-On packages implicitly enable the Do Not Delete MSDeploy rule. + * + * @return the addOnPackages value + */ + public List addOnPackages() { + return this.addOnPackages; + } + + /** + * Set list of Add-On packages. Add-On packages implicitly enable the Do Not Delete MSDeploy rule. + * + * @param addOnPackages the addOnPackages value to set + * @return the MSDeploy object itself. + */ + public MSDeploy withAddOnPackages(List addOnPackages) { + this.addOnPackages = addOnPackages; + return this; + } + } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployCore.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployCore.java new file mode 100644 index 0000000000000..75e4eb067a28d --- /dev/null +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployCore.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2016_08_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * MSDeploy ARM PUT core information. + */ +public class MSDeployCore { + /** + * Package URI. + */ + @JsonProperty(value = "packageUri") + private String packageUri; + + /** + * SQL Connection String. + */ + @JsonProperty(value = "connectionString") + private String connectionString; + + /** + * Database Type. + */ + @JsonProperty(value = "dbType") + private String dbType; + + /** + * URI of MSDeploy Parameters file. Must not be set if SetParameters is + * used. + */ + @JsonProperty(value = "setParametersXmlFileUri") + private String setParametersXmlFileUri; + + /** + * MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + */ + @JsonProperty(value = "setParameters") + private Map setParameters; + + /** + * Controls whether the MSDeploy operation skips the App_Data directory. + * If set to <code>true</code>, the existing App_Data directory + * on the destination + * will not be deleted, and any App_Data directory in the source will be + * ignored. + * Setting is <code>false</code> by default. + */ + @JsonProperty(value = "skipAppData") + private Boolean skipAppData; + + /** + * Sets the AppOffline rule while the MSDeploy operation executes. + * Setting is <code>false</code> by default. + */ + @JsonProperty(value = "appOffline") + private Boolean appOffline; + + /** + * Get package URI. + * + * @return the packageUri value + */ + public String packageUri() { + return this.packageUri; + } + + /** + * Set package URI. + * + * @param packageUri the packageUri value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withPackageUri(String packageUri) { + this.packageUri = packageUri; + return this; + } + + /** + * Get sQL Connection String. + * + * @return the connectionString value + */ + public String connectionString() { + return this.connectionString; + } + + /** + * Set sQL Connection String. + * + * @param connectionString the connectionString value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withConnectionString(String connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get database Type. + * + * @return the dbType value + */ + public String dbType() { + return this.dbType; + } + + /** + * Set database Type. + * + * @param dbType the dbType value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withDbType(String dbType) { + this.dbType = dbType; + return this; + } + + /** + * Get uRI of MSDeploy Parameters file. Must not be set if SetParameters is used. + * + * @return the setParametersXmlFileUri value + */ + public String setParametersXmlFileUri() { + return this.setParametersXmlFileUri; + } + + /** + * Set uRI of MSDeploy Parameters file. Must not be set if SetParameters is used. + * + * @param setParametersXmlFileUri the setParametersXmlFileUri value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withSetParametersXmlFileUri(String setParametersXmlFileUri) { + this.setParametersXmlFileUri = setParametersXmlFileUri; + return this; + } + + /** + * Get mSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + * + * @return the setParameters value + */ + public Map setParameters() { + return this.setParameters; + } + + /** + * Set mSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + * + * @param setParameters the setParameters value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withSetParameters(Map setParameters) { + this.setParameters = setParameters; + return this; + } + + /** + * Get controls whether the MSDeploy operation skips the App_Data directory. + If set to <code>true</code>, the existing App_Data directory on the destination + will not be deleted, and any App_Data directory in the source will be ignored. + Setting is <code>false</code> by default. + * + * @return the skipAppData value + */ + public Boolean skipAppData() { + return this.skipAppData; + } + + /** + * Set controls whether the MSDeploy operation skips the App_Data directory. + If set to <code>true</code>, the existing App_Data directory on the destination + will not be deleted, and any App_Data directory in the source will be ignored. + Setting is <code>false</code> by default. + * + * @param skipAppData the skipAppData value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withSkipAppData(Boolean skipAppData) { + this.skipAppData = skipAppData; + return this; + } + + /** + * Get sets the AppOffline rule while the MSDeploy operation executes. + Setting is <code>false</code> by default. + * + * @return the appOffline value + */ + public Boolean appOffline() { + return this.appOffline; + } + + /** + * Set sets the AppOffline rule while the MSDeploy operation executes. + Setting is <code>false</code> by default. + * + * @param appOffline the appOffline value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withAppOffline(Boolean appOffline) { + this.appOffline = appOffline; + return this; + } + +} diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployLog.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployLog.java index a7a64f53cb840..c1a49815f7d01 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployLog.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployLog.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.MSDeployLogInner; import java.util.List; /** * Type representing MSDeployLog. */ -public interface MSDeployLog extends HasInner, HasManager { +public interface MSDeployLog extends HasInner, HasManager { /** * @return the entries value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployStatus.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployStatus.java index 6947959a2fbac..bb1485b60ca76 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployStatus.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MSDeployStatus.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.MSDeployStatusInner; import org.joda.time.DateTime; /** * Type representing MSDeployStatus. */ -public interface MSDeployStatus extends HasInner, HasManager { +public interface MSDeployStatus extends HasInner, HasManager { /** * @return the complete value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MigrateMySqlStatus.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MigrateMySqlStatus.java index aa4315deb9989..15deb9b0693b1 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MigrateMySqlStatus.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/MigrateMySqlStatus.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.MigrateMySqlStatusInner; /** * Type representing MigrateMySqlStatus. */ -public interface MigrateMySqlStatus extends HasInner, HasManager { +public interface MigrateMySqlStatus extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/NetworkFeatures.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/NetworkFeatures.java index 7f954e62055e8..01e4e903e10da 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/NetworkFeatures.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/NetworkFeatures.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.List; /** * Type representing NetworkFeatures. */ -public interface NetworkFeatures extends HasInner, Indexable, Refreshable, HasManager { +public interface NetworkFeatures extends HasInner, Indexable, Refreshable, HasManager { /** * @return the hybridConnections value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Operation.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Operation.java index 7858544bd7114..7974d517c9334 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Operation.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Operation.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.OperationInner; import org.joda.time.DateTime; import java.util.List; @@ -19,7 +19,7 @@ /** * Type representing Operation. */ -public interface Operation extends HasInner, HasManager { +public interface Operation extends HasInner, HasManager { /** * @return the createdTime value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PerfMonResponse.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PerfMonResponse.java index 9eb056d6c548c..ec6e1fbfeb16c 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PerfMonResponse.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PerfMonResponse.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.PerfMonResponseInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing PerfMonResponse. */ -public interface PerfMonResponse extends HasInner, HasManager { +public interface PerfMonResponse extends HasInner, HasManager { /** * @return the code value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PremierAddOn.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PremierAddOn.java index c8234ee7ad803..cafff485298a6 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PremierAddOn.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PremierAddOn.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.Map; /** * Type representing PremierAddOn. */ -public interface PremierAddOn extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface PremierAddOn extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -115,6 +115,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithLocation withExistingSite(String resourceGroupName, String name); } @@ -125,6 +128,8 @@ interface WithSite { interface WithLocation { /** * Specifies location. + * @param location Resource Location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -135,6 +140,8 @@ interface WithLocation { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -145,6 +152,8 @@ interface WithKind { interface WithMarketplaceOffer { /** * Specifies marketplaceOffer. + * @param marketplaceOffer Premier add on Marketplace offer + * @return the next definition stage */ WithCreate withMarketplaceOffer(String marketplaceOffer); } @@ -155,6 +164,8 @@ interface WithMarketplaceOffer { interface WithMarketplacePublisher { /** * Specifies marketplacePublisher. + * @param marketplacePublisher Premier add on Marketplace publisher + * @return the next definition stage */ WithCreate withMarketplacePublisher(String marketplacePublisher); } @@ -165,6 +176,8 @@ interface WithMarketplacePublisher { interface WithPremierAddOnLocation { /** * Specifies premierAddOnLocation. + * @param premierAddOnLocation Premier add on Location + * @return the next definition stage */ WithCreate withPremierAddOnLocation(String premierAddOnLocation); } @@ -175,6 +188,8 @@ interface WithPremierAddOnLocation { interface WithPremierAddOnName { /** * Specifies premierAddOnName. + * @param premierAddOnName Premier add on Name + * @return the next definition stage */ WithCreate withPremierAddOnName(String premierAddOnName); } @@ -185,6 +200,8 @@ interface WithPremierAddOnName { interface WithPremierAddOnTags { /** * Specifies premierAddOnTags. + * @param premierAddOnTags Premier add on Tags + * @return the next definition stage */ WithCreate withPremierAddOnTags(Map premierAddOnTags); } @@ -195,6 +212,8 @@ interface WithPremierAddOnTags { interface WithProduct { /** * Specifies product. + * @param product Premier add on Product + * @return the next definition stage */ WithCreate withProduct(String product); } @@ -205,6 +224,8 @@ interface WithProduct { interface WithSku { /** * Specifies sku. + * @param sku Premier add on SKU + * @return the next definition stage */ WithCreate withSku(String sku); } @@ -215,6 +236,8 @@ interface WithSku { interface WithTags { /** * Specifies tags. + * @param tags Resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -225,6 +248,8 @@ interface WithTags { interface WithVendor { /** * Specifies vendor. + * @param vendor Premier add on Vendor + * @return the next definition stage */ WithCreate withVendor(String vendor); } @@ -253,6 +278,8 @@ interface UpdateStages { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -263,6 +290,8 @@ interface WithKind { interface WithMarketplaceOffer { /** * Specifies marketplaceOffer. + * @param marketplaceOffer Premier add on Marketplace offer + * @return the next update stage */ Update withMarketplaceOffer(String marketplaceOffer); } @@ -273,6 +302,8 @@ interface WithMarketplaceOffer { interface WithMarketplacePublisher { /** * Specifies marketplacePublisher. + * @param marketplacePublisher Premier add on Marketplace publisher + * @return the next update stage */ Update withMarketplacePublisher(String marketplacePublisher); } @@ -283,6 +314,8 @@ interface WithMarketplacePublisher { interface WithPremierAddOnLocation { /** * Specifies premierAddOnLocation. + * @param premierAddOnLocation Premier add on Location + * @return the next update stage */ Update withPremierAddOnLocation(String premierAddOnLocation); } @@ -293,6 +326,8 @@ interface WithPremierAddOnLocation { interface WithPremierAddOnName { /** * Specifies premierAddOnName. + * @param premierAddOnName Premier add on Name + * @return the next update stage */ Update withPremierAddOnName(String premierAddOnName); } @@ -303,6 +338,8 @@ interface WithPremierAddOnName { interface WithPremierAddOnTags { /** * Specifies premierAddOnTags. + * @param premierAddOnTags Premier add on Tags + * @return the next update stage */ Update withPremierAddOnTags(Map premierAddOnTags); } @@ -313,6 +350,8 @@ interface WithPremierAddOnTags { interface WithProduct { /** * Specifies product. + * @param product Premier add on Product + * @return the next update stage */ Update withProduct(String product); } @@ -323,6 +362,8 @@ interface WithProduct { interface WithSku { /** * Specifies sku. + * @param sku Premier add on SKU + * @return the next update stage */ Update withSku(String sku); } @@ -333,6 +374,8 @@ interface WithSku { interface WithTags { /** * Specifies tags. + * @param tags Resource tags + * @return the next update stage */ Update withTags(Map tags); } @@ -343,6 +386,8 @@ interface WithTags { interface WithVendor { /** * Specifies vendor. + * @param vendor Premier add on Vendor + * @return the next update stage */ Update withVendor(String vendor); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessInfo.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessInfo.java index bbf74377b547d..7ba45c8bd7bef 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessInfo.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessInfo.java @@ -13,7 +13,7 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.List; import java.util.Map; import org.joda.time.DateTime; @@ -21,7 +21,7 @@ /** * Type representing ProcessInfo. */ -public interface ProcessInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface ProcessInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the children value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessModuleInfo.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessModuleInfo.java index 263dfddfaacda..94092f3a15e8b 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessModuleInfo.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessModuleInfo.java @@ -13,12 +13,12 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing ProcessModuleInfo. */ -public interface ProcessModuleInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface ProcessModuleInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the baseAddress value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessThreadInfo.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessThreadInfo.java index 1858a6534cdb4..67ecfb227fc1e 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessThreadInfo.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ProcessThreadInfo.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import org.joda.time.DateTime; /** * Type representing ProcessThreadInfo. */ -public interface ProcessThreadInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface ProcessThreadInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the basePriority value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PublicCertificate.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PublicCertificate.java index 548d7bd617969..9fc00c97e263b 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PublicCertificate.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PublicCertificate.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing PublicCertificate. */ -public interface PublicCertificate extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface PublicCertificate extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the blob value. */ @@ -79,6 +79,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -89,6 +92,8 @@ interface WithSite { interface WithBlob { /** * Specifies blob. + * @param blob Public Certificate byte array + * @return the next definition stage */ WithCreate withBlob(byte[] blob); } @@ -99,6 +104,8 @@ interface WithBlob { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -109,6 +116,8 @@ interface WithKind { interface WithPublicCertificateLocation { /** * Specifies publicCertificateLocation. + * @param publicCertificateLocation Public Certificate Location. Possible values include: 'CurrentUserMy', 'LocalMachineMy', 'Unknown' + * @return the next definition stage */ WithCreate withPublicCertificateLocation(PublicCertificateLocation publicCertificateLocation); } @@ -137,6 +146,8 @@ interface UpdateStages { interface WithBlob { /** * Specifies blob. + * @param blob Public Certificate byte array + * @return the next update stage */ Update withBlob(byte[] blob); } @@ -147,6 +158,8 @@ interface WithBlob { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -157,6 +170,8 @@ interface WithKind { interface WithPublicCertificateLocation { /** * Specifies publicCertificateLocation. + * @param publicCertificateLocation Public Certificate Location. Possible values include: 'CurrentUserMy', 'LocalMachineMy', 'Unknown' + * @return the next update stage */ Update withPublicCertificateLocation(PublicCertificateLocation publicCertificateLocation); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PushSettings.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PushSettings.java index 0d9a7cb9abee9..14b6b0e38f250 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PushSettings.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/PushSettings.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.PushSettingsInner; /** * Type representing PushSettings. */ -public interface PushSettings extends HasInner, HasManager { +public interface PushSettings extends HasInner, HasManager { /** * @return the dynamicTagsJson value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RampUpRule.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RampUpRule.java index e90557e352764..5c6bddc12f041 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RampUpRule.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RampUpRule.java @@ -30,11 +30,11 @@ public class RampUpRule { private Double reroutePercentage; /** - * In auto ramp up scenario this is the step to to add/remove from + * In auto ramp up scenario this is the step to add/remove from * <code>ReroutePercentage</code> until it reaches * <code>MinReroutePercentage</code> or * <code>MaxReroutePercentage</code>. Site metrics are checked - * every N minutes specificed in + * every N minutes specified in * <code>ChangeIntervalInMinutes</code>. * Custom decision algorithm can be provided in TiPCallback site extension * which URL can be specified in @@ -44,7 +44,7 @@ public class RampUpRule { private Double changeStep; /** - * Specifies interval in mimuntes to reevaluate ReroutePercentage. + * Specifies interval in minutes to reevaluate ReroutePercentage. */ @JsonProperty(value = "changeIntervalInMinutes") private Integer changeIntervalInMinutes; @@ -118,8 +118,8 @@ public RampUpRule withReroutePercentage(Double reroutePercentage) { } /** - * Get in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Get in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @return the changeStep value @@ -129,8 +129,8 @@ public Double changeStep() { } /** - * Set in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Set in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @param changeStep the changeStep value to set @@ -142,7 +142,7 @@ public RampUpRule withChangeStep(Double changeStep) { } /** - * Get specifies interval in mimuntes to reevaluate ReroutePercentage. + * Get specifies interval in minutes to reevaluate ReroutePercentage. * * @return the changeIntervalInMinutes value */ @@ -151,7 +151,7 @@ public Integer changeIntervalInMinutes() { } /** - * Set specifies interval in mimuntes to reevaluate ReroutePercentage. + * Set specifies interval in minutes to reevaluate ReroutePercentage. * * @param changeIntervalInMinutes the changeIntervalInMinutes value to set * @return the RampUpRule object itself. diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RelayServiceConnectionEntity.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RelayServiceConnectionEntity.java index 48f915ca0e6b3..14c463b6d117c 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RelayServiceConnectionEntity.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RelayServiceConnectionEntity.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.RelayServiceConnectionEntityInner; /** * Type representing RelayServiceConnectionEntity. */ -public interface RelayServiceConnectionEntity extends HasInner, HasManager { +public interface RelayServiceConnectionEntity extends HasInner, HasManager { /** * @return the biztalkUri value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetric.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetric.java index 87e3f0ad898ea..47dabde2bfd60 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetric.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetric.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.ResourceMetricInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing ResourceMetric. */ -public interface ResourceMetric extends HasInner, HasManager { +public interface ResourceMetric extends HasInner, HasManager { /** * @return the endTime value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetricDefinition.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetricDefinition.java index f64d6c84c07a9..a0ab34199c86d 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetricDefinition.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/ResourceMetricDefinition.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.ResourceMetricDefinitionInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.List; import java.util.Map; /** * Type representing ResourceMetricDefinition. */ -public interface ResourceMetricDefinition extends HasInner, HasManager { +public interface ResourceMetricDefinition extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreRequest.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreRequest.java index 3e9952afa2f16..d573f971ee544 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreRequest.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreRequest.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.RestoreRequestInner; import java.util.List; /** * Type representing RestoreRequest. */ -public interface RestoreRequest extends HasInner, HasManager { +public interface RestoreRequest extends HasInner, HasManager { /** * @return the adjustConnectionStrings value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreResponse.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreResponse.java index 386674ac08891..683c9d02bb0d8 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreResponse.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/RestoreResponse.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.RestoreResponseInner; /** * Type representing RestoreResponse. */ -public interface RestoreResponse extends HasInner, HasManager { +public interface RestoreResponse extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteAuthSettings.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteAuthSettings.java index e21f8a3c97301..a5ed04b7b81fa 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteAuthSettings.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteAuthSettings.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteAuthSettingsInner; import java.util.List; /** * Type representing SiteAuthSettings. */ -public interface SiteAuthSettings extends HasInner, HasManager { +public interface SiteAuthSettings extends HasInner, HasManager { /** * @return the additionalLoginParams value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteCloneability.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteCloneability.java index 5c1f0d16fd066..b4862e5657b99 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteCloneability.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteCloneability.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteCloneabilityInner; import java.util.List; /** * Type representing SiteCloneability. */ -public interface SiteCloneability extends HasInner, HasManager { +public interface SiteCloneability extends HasInner, HasManager { /** * @return the blockingCharacteristics value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfig.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfig.java index c4b5f1cb5a6b0..94d502295d245 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfig.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfig.java @@ -215,7 +215,7 @@ public class SiteConfig { private SiteLoadBalancing loadBalancing; /** - * This is work around for polymophic types. + * This is work around for polymorphic types. */ @JsonProperty(value = "experiments") private Experiments experiments; @@ -912,7 +912,7 @@ public SiteConfig withLoadBalancing(SiteLoadBalancing loadBalancing) { } /** - * Get this is work around for polymophic types. + * Get this is work around for polymorphic types. * * @return the experiments value */ @@ -921,7 +921,7 @@ public Experiments experiments() { } /** - * Set this is work around for polymophic types. + * Set this is work around for polymorphic types. * * @param experiments the experiments value to set * @return the SiteConfig object itself. diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigResource.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigResource.java index b2e629cfa0100..54b0ef821de54 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigResource.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigResource.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteConfigResourceInner; import java.util.List; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.PushSettingsInner; @@ -19,7 +19,7 @@ /** * Type representing SiteConfigResource. */ -public interface SiteConfigResource extends HasInner, HasManager { +public interface SiteConfigResource extends HasInner, HasManager { /** * @return the alwaysOn value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigurationSnapshotInfo.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigurationSnapshotInfo.java index 1d3ad3e7eb194..3210d518b5717 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigurationSnapshotInfo.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteConfigurationSnapshotInfo.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteConfigurationSnapshotInfoInner; import org.joda.time.DateTime; /** * Type representing SiteConfigurationSnapshotInfo. */ -public interface SiteConfigurationSnapshotInfo extends HasInner, HasManager { +public interface SiteConfigurationSnapshotInfo extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteExtensionInfo.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteExtensionInfo.java index 65e2e32795118..daa545072098d 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteExtensionInfo.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteExtensionInfo.java @@ -16,14 +16,14 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.List; import org.joda.time.DateTime; /** * Type representing SiteExtensionInfo. */ -public interface SiteExtensionInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface SiteExtensionInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the authors value. */ @@ -166,6 +166,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Site name + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteInstance.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteInstance.java index fa429d116537b..89d845a6b8e66 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteInstance.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteInstance.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteInstanceInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing SiteInstance. */ -public interface SiteInstance extends HasInner, HasManager { +public interface SiteInstance extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteLogsConfig.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteLogsConfig.java index e24e7cc07f072..5193377de47a0 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteLogsConfig.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteLogsConfig.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteLogsConfigInner; /** * Type representing SiteLogsConfig. */ -public interface SiteLogsConfig extends HasInner, HasManager { +public interface SiteLogsConfig extends HasInner, HasManager { /** * @return the applicationLogs value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SitePhpErrorLogFlag.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SitePhpErrorLogFlag.java index 41838f90aca20..db81277727381 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SitePhpErrorLogFlag.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SitePhpErrorLogFlag.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SitePhpErrorLogFlagInner; /** * Type representing SitePhpErrorLogFlag. */ -public interface SitePhpErrorLogFlag extends HasInner, HasManager { +public interface SitePhpErrorLogFlag extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteSourceControl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteSourceControl.java index 9b72903f2a5c3..99e129576204a 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteSourceControl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SiteSourceControl.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteSourceControlInner; /** * Type representing SiteSourceControl. */ -public interface SiteSourceControl extends HasInner, HasManager { +public interface SiteSourceControl extends HasInner, HasManager { /** * @return the branch value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Sites.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Sites.java index 1a469c2994f85..c60a1fb007d72 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Sites.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Sites.java @@ -17,7 +17,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.List; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SiteInner; @@ -25,7 +25,7 @@ /** * Type representing Sites. */ -public interface Sites extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface Sites extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the availabilityState value. */ @@ -219,171 +219,207 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup hostNameSslStates); } /** - * The stage of the sites update allowing to specify HttpsOnly. + * The stage of the sites definition allowing to specify HttpsOnly. */ interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next definition stage */ WithCreate withHttpsOnly(Boolean httpsOnly); } /** - * The stage of the sites update allowing to specify Identity. + * The stage of the sites definition allowing to specify Identity. */ interface WithIdentity { /** * Specifies identity. + * @param identity the identity parameter value + * @return the next definition stage */ WithCreate withIdentity(ManagedServiceIdentity identity); } /** - * The stage of the sites update allowing to specify Kind. + * The stage of the sites definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } /** - * The stage of the sites update allowing to specify Reserved. + * The stage of the sites definition allowing to specify Reserved. */ interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next definition stage */ WithCreate withReserved(Boolean reserved); } /** - * The stage of the sites update allowing to specify ScmSiteAlsoStopped. + * The stage of the sites definition allowing to specify ScmSiteAlsoStopped. */ interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next definition stage */ WithCreate withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } /** - * The stage of the sites update allowing to specify ServerFarmId. + * The stage of the sites definition allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next definition stage */ WithCreate withServerFarmId(String serverFarmId); } /** - * The stage of the sites update allowing to specify SiteConfig. + * The stage of the sites definition allowing to specify SiteConfig. */ interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next definition stage */ WithCreate withSiteConfig(SiteConfig siteConfig); } /** - * The stage of the sites update allowing to specify SnapshotInfo. + * The stage of the sites definition allowing to specify SnapshotInfo. */ interface WithSnapshotInfo { /** * Specifies snapshotInfo. + * @param snapshotInfo If specified during app creation, the app is created from a previous snapshot + * @return the next definition stage */ WithCreate withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); } @@ -407,161 +443,195 @@ interface Update extends Appliable, Resource.UpdateWithTags, Upda */ interface UpdateStages { /** - * The stage of the sites {0} allowing to specify ClientAffinityEnabled. + * The stage of the sites update allowing to specify ClientAffinityEnabled. */ interface WithClientAffinityEnabled { /** * Specifies clientAffinityEnabled. + * @param clientAffinityEnabled <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code> + * @return the next update stage */ Update withClientAffinityEnabled(Boolean clientAffinityEnabled); } /** - * The stage of the sites {0} allowing to specify ClientCertEnabled. + * The stage of the sites update allowing to specify ClientCertEnabled. */ interface WithClientCertEnabled { /** * Specifies clientCertEnabled. + * @param clientCertEnabled <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code> + * @return the next update stage */ Update withClientCertEnabled(Boolean clientCertEnabled); } /** - * The stage of the sites {0} allowing to specify CloningInfo. + * The stage of the sites update allowing to specify CloningInfo. */ interface WithCloningInfo { /** * Specifies cloningInfo. + * @param cloningInfo If specified during app creation, the app is cloned from a source app + * @return the next update stage */ Update withCloningInfo(CloningInfo cloningInfo); } /** - * The stage of the sites {0} allowing to specify ContainerSize. + * The stage of the sites update allowing to specify ContainerSize. */ interface WithContainerSize { /** * Specifies containerSize. + * @param containerSize Size of the function container + * @return the next update stage */ Update withContainerSize(Integer containerSize); } /** - * The stage of the sites {0} allowing to specify DailyMemoryTimeQuota. + * The stage of the sites update allowing to specify DailyMemoryTimeQuota. */ interface WithDailyMemoryTimeQuota { /** * Specifies dailyMemoryTimeQuota. + * @param dailyMemoryTimeQuota Maximum allowed daily memory-time quota (applicable on dynamic apps only) + * @return the next update stage */ Update withDailyMemoryTimeQuota(Integer dailyMemoryTimeQuota); } /** - * The stage of the sites {0} allowing to specify Enabled. + * The stage of the sites update allowing to specify Enabled. */ interface WithEnabled { /** * Specifies enabled. + * @param enabled <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline) + * @return the next update stage */ Update withEnabled(Boolean enabled); } /** - * The stage of the sites {0} allowing to specify HostingEnvironmentProfile. + * The stage of the sites update allowing to specify HostingEnvironmentProfile. */ interface WithHostingEnvironmentProfile { /** * Specifies hostingEnvironmentProfile. + * @param hostingEnvironmentProfile App Service Environment to use for the app + * @return the next update stage */ Update withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile); } /** - * The stage of the sites {0} allowing to specify HostNamesDisabled. + * The stage of the sites update allowing to specify HostNamesDisabled. */ interface WithHostNamesDisabled { /** * Specifies hostNamesDisabled. + * @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. + If <code>true</code>, the app is only accessible via API management process + * @return the next update stage */ Update withHostNamesDisabled(Boolean hostNamesDisabled); } /** - * The stage of the sites {0} allowing to specify HostNameSslStates. + * The stage of the sites update allowing to specify HostNameSslStates. */ interface WithHostNameSslStates { /** * Specifies hostNameSslStates. + * @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames + * @return the next update stage */ Update withHostNameSslStates(List hostNameSslStates); } /** - * The stage of the sites {0} allowing to specify HttpsOnly. + * The stage of the sites update allowing to specify HttpsOnly. */ interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next update stage */ Update withHttpsOnly(Boolean httpsOnly); } /** - * The stage of the sites {0} allowing to specify Kind. + * The stage of the sites update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the sites {0} allowing to specify Reserved. + * The stage of the sites update allowing to specify Reserved. */ interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next update stage */ Update withReserved(Boolean reserved); } /** - * The stage of the sites {0} allowing to specify ScmSiteAlsoStopped. + * The stage of the sites update allowing to specify ScmSiteAlsoStopped. */ interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next update stage */ Update withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } /** - * The stage of the sites {0} allowing to specify ServerFarmId. + * The stage of the sites update allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next update stage */ Update withServerFarmId(String serverFarmId); } /** - * The stage of the sites {0} allowing to specify SiteConfig. + * The stage of the sites update allowing to specify SiteConfig. */ interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next update stage */ Update withSiteConfig(SiteConfig siteConfig); } /** - * The stage of the sites {0} allowing to specify SnapshotInfo. + * The stage of the sites update allowing to specify SnapshotInfo. */ interface WithSnapshotInfo { /** * Specifies snapshotInfo. + * @param snapshotInfo If specified during app creation, the app is created from a previous snapshot + * @return the next update stage */ Update withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotConfigNamesResource.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotConfigNamesResource.java index a967192061c27..dc14ed98a716b 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotConfigNamesResource.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotConfigNamesResource.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SlotConfigNamesResourceInner; import java.util.List; /** * Type representing SlotConfigNamesResource. */ -public interface SlotConfigNamesResource extends HasInner, HasManager { +public interface SlotConfigNamesResource extends HasInner, HasManager { /** * @return the appSettingNames value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotDifference.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotDifference.java index df3438aa4bbb6..b8b870b765a2f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotDifference.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotDifference.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SlotDifferenceInner; /** * Type representing SlotDifference. */ -public interface SlotDifference extends HasInner, HasManager { +public interface SlotDifference extends HasInner, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotSwapStatus.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotSwapStatus.java index 400327be42fb7..cd58405280ee1 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotSwapStatus.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/SlotSwapStatus.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The status of the last successfull slot swap operation. + * The status of the last successful slot swap operation. */ public class SlotSwapStatus { /** diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Slots.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Slots.java index 0052510e20f43..f3251c4fad507 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Slots.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Slots.java @@ -16,7 +16,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.List; import org.joda.time.DateTime; import java.util.Map; @@ -24,7 +24,7 @@ /** * Type representing Slots. */ -public interface Slots extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface Slots extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the availabilityState value. */ @@ -223,7 +223,7 @@ public interface Slots extends HasInner, Indexable, Refreshable hostNameSslStates); } @@ -352,6 +425,9 @@ interface WithHostNameSslStates { interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next definition stage */ WithCreate withHttpsOnly(Boolean httpsOnly); } @@ -362,6 +438,8 @@ interface WithHttpsOnly { interface WithIdentity { /** * Specifies identity. + * @param identity the identity parameter value + * @return the next definition stage */ WithCreate withIdentity(ManagedServiceIdentity identity); } @@ -372,6 +450,8 @@ interface WithIdentity { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -382,6 +462,8 @@ interface WithKind { interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next definition stage */ WithCreate withReserved(Boolean reserved); } @@ -392,6 +474,8 @@ interface WithReserved { interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next definition stage */ WithCreate withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } @@ -402,6 +486,8 @@ interface WithScmSiteAlsoStopped { interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next definition stage */ WithCreate withServerFarmId(String serverFarmId); } @@ -412,6 +498,8 @@ interface WithServerFarmId { interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next definition stage */ WithCreate withSiteConfig(SiteConfig siteConfig); } @@ -422,6 +510,8 @@ interface WithSiteConfig { interface WithSnapshotInfo { /** * Specifies snapshotInfo. + * @param snapshotInfo If specified during app creation, the app is created from a previous snapshot + * @return the next definition stage */ WithCreate withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); } @@ -432,6 +522,8 @@ interface WithSnapshotInfo { interface WithTags { /** * Specifies tags. + * @param tags Resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -447,19 +539,70 @@ interface WithCreate extends Creatable, DefinitionStages.WithClientAffini /** * The template for a Slots update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithClientAffinityEnabled, UpdateStages.WithClientCertEnabled, UpdateStages.WithCloningInfo, UpdateStages.WithContainerSize, UpdateStages.WithDailyMemoryTimeQuota, UpdateStages.WithEnabled, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHostNamesDisabled, UpdateStages.WithHostNameSslStates, UpdateStages.WithHttpsOnly, UpdateStages.WithKind, UpdateStages.WithReserved, UpdateStages.WithScmSiteAlsoStopped, UpdateStages.WithServerFarmId, UpdateStages.WithSiteConfig, UpdateStages.WithSnapshotInfo { + interface Update extends Appliable, UpdateStages.WithSkipDnsRegistration, UpdateStages.WithSkipCustomDomainVerification, UpdateStages.WithForceDnsRegistration, UpdateStages.WithTtlInSeconds, UpdateStages.WithClientAffinityEnabled, UpdateStages.WithClientCertEnabled, UpdateStages.WithCloningInfo, UpdateStages.WithContainerSize, UpdateStages.WithDailyMemoryTimeQuota, UpdateStages.WithEnabled, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHostNamesDisabled, UpdateStages.WithHostNameSslStates, UpdateStages.WithHttpsOnly, UpdateStages.WithKind, UpdateStages.WithReserved, UpdateStages.WithScmSiteAlsoStopped, UpdateStages.WithServerFarmId, UpdateStages.WithSiteConfig, UpdateStages.WithSnapshotInfo { } /** * Grouping of Slots update stages. */ interface UpdateStages { + /** + * The stage of the slots update allowing to specify SkipDnsRegistration. + */ + interface WithSkipDnsRegistration { + /** + * Specifies skipDnsRegistration. + * @param skipDnsRegistration If true web app hostname is not registered with DNS on creation. This parameter is + only used for app creation + * @return the next update stage + */ + Update withSkipDnsRegistration(Boolean skipDnsRegistration); + } + + /** + * The stage of the slots update allowing to specify SkipCustomDomainVerification. + */ + interface WithSkipCustomDomainVerification { + /** + * Specifies skipCustomDomainVerification. + * @param skipCustomDomainVerification If true, custom (non *.azurewebsites.net) domains associated with web app are not verified + * @return the next update stage + */ + Update withSkipCustomDomainVerification(Boolean skipCustomDomainVerification); + } + + /** + * The stage of the slots update allowing to specify ForceDnsRegistration. + */ + interface WithForceDnsRegistration { + /** + * Specifies forceDnsRegistration. + * @param forceDnsRegistration If true, web app hostname is force registered with DNS + * @return the next update stage + */ + Update withForceDnsRegistration(Boolean forceDnsRegistration); + } + + /** + * The stage of the slots update allowing to specify TtlInSeconds. + */ + interface WithTtlInSeconds { + /** + * Specifies ttlInSeconds. + * @param ttlInSeconds Time to live in seconds for web app's default domain name + * @return the next update stage + */ + Update withTtlInSeconds(String ttlInSeconds); + } + /** * The stage of the slots update allowing to specify ClientAffinityEnabled. */ interface WithClientAffinityEnabled { /** * Specifies clientAffinityEnabled. + * @param clientAffinityEnabled <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code> + * @return the next update stage */ Update withClientAffinityEnabled(Boolean clientAffinityEnabled); } @@ -470,6 +613,8 @@ interface WithClientAffinityEnabled { interface WithClientCertEnabled { /** * Specifies clientCertEnabled. + * @param clientCertEnabled <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code> + * @return the next update stage */ Update withClientCertEnabled(Boolean clientCertEnabled); } @@ -480,6 +625,8 @@ interface WithClientCertEnabled { interface WithCloningInfo { /** * Specifies cloningInfo. + * @param cloningInfo If specified during app creation, the app is cloned from a source app + * @return the next update stage */ Update withCloningInfo(CloningInfo cloningInfo); } @@ -490,6 +637,8 @@ interface WithCloningInfo { interface WithContainerSize { /** * Specifies containerSize. + * @param containerSize Size of the function container + * @return the next update stage */ Update withContainerSize(Integer containerSize); } @@ -500,6 +649,8 @@ interface WithContainerSize { interface WithDailyMemoryTimeQuota { /** * Specifies dailyMemoryTimeQuota. + * @param dailyMemoryTimeQuota Maximum allowed daily memory-time quota (applicable on dynamic apps only) + * @return the next update stage */ Update withDailyMemoryTimeQuota(Integer dailyMemoryTimeQuota); } @@ -510,6 +661,8 @@ interface WithDailyMemoryTimeQuota { interface WithEnabled { /** * Specifies enabled. + * @param enabled <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline) + * @return the next update stage */ Update withEnabled(Boolean enabled); } @@ -520,6 +673,8 @@ interface WithEnabled { interface WithHostingEnvironmentProfile { /** * Specifies hostingEnvironmentProfile. + * @param hostingEnvironmentProfile App Service Environment to use for the app + * @return the next update stage */ Update withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile); } @@ -530,6 +685,9 @@ interface WithHostingEnvironmentProfile { interface WithHostNamesDisabled { /** * Specifies hostNamesDisabled. + * @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. + If <code>true</code>, the app is only accessible via API management process + * @return the next update stage */ Update withHostNamesDisabled(Boolean hostNamesDisabled); } @@ -540,6 +698,8 @@ interface WithHostNamesDisabled { interface WithHostNameSslStates { /** * Specifies hostNameSslStates. + * @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames + * @return the next update stage */ Update withHostNameSslStates(List hostNameSslStates); } @@ -550,6 +710,9 @@ interface WithHostNameSslStates { interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next update stage */ Update withHttpsOnly(Boolean httpsOnly); } @@ -560,6 +723,8 @@ interface WithHttpsOnly { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -570,6 +735,8 @@ interface WithKind { interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next update stage */ Update withReserved(Boolean reserved); } @@ -580,6 +747,8 @@ interface WithReserved { interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next update stage */ Update withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } @@ -590,6 +759,8 @@ interface WithScmSiteAlsoStopped { interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next update stage */ Update withServerFarmId(String serverFarmId); } @@ -600,6 +771,8 @@ interface WithServerFarmId { interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next update stage */ Update withSiteConfig(SiteConfig siteConfig); } @@ -610,6 +783,8 @@ interface WithSiteConfig { interface WithSnapshotInfo { /** * Specifies snapshotInfo. + * @param snapshotInfo If specified during app creation, the app is created from a previous snapshot + * @return the next update stage */ Update withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Snapshot.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Snapshot.java index 3e1c9de04259a..8bb983668095f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Snapshot.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/Snapshot.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.SnapshotInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing Snapshot. */ -public interface Snapshot extends HasInner, HasManager { +public interface Snapshot extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StorageMigrationResponse.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StorageMigrationResponse.java index 4844a692efb1f..657cb05145362 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StorageMigrationResponse.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StorageMigrationResponse.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.StorageMigrationResponseInner; /** * Type representing StorageMigrationResponse. */ -public interface StorageMigrationResponse extends HasInner, HasManager { +public interface StorageMigrationResponse extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StringDictionary.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StringDictionary.java index 1a54ad9b2fa9f..01b5aaed44c0f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StringDictionary.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/StringDictionary.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.StringDictionaryInner; import java.util.Map; /** * Type representing StringDictionary. */ -public interface StringDictionary extends HasInner, HasManager { +public interface StringDictionary extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredJobHistory.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredJobHistory.java index 724ab37e91a5a..765600fa0bef9 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredJobHistory.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredJobHistory.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.TriggeredJobHistoryInner; import java.util.List; /** * Type representing TriggeredJobHistory. */ -public interface TriggeredJobHistory extends HasInner, HasManager { +public interface TriggeredJobHistory extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredWebJob.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredWebJob.java index 83f615863a923..a5fa6ac9bb55e 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredWebJob.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/TriggeredWebJob.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.Map; /** * Type representing TriggeredWebJob. */ -public interface TriggeredWebJob extends HasInner, Indexable, Refreshable, HasManager { +public interface TriggeredWebJob extends HasInner, Indexable, Refreshable, HasManager { /** * @return the error value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/User.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/User.java index 693271c7d4df3..982d879f9adbd 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/User.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/User.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_08_01.implementation.UserInner; /** * Type representing User. */ -public interface User extends HasInner, HasManager { +public interface User extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetGateway.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetGateway.java index cc1357a225508..2f0cd79a3aceb 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetGateway.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetGateway.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; /** * Type representing VnetGateway. */ -public interface VnetGateway extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface VnetGateway extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -74,6 +74,11 @@ interface Blank extends WithVirtualNetworkConnection { interface WithVirtualNetworkConnection { /** * Specifies resourceGroupName, name, vnetName, slot. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @param vnetName Name of the Virtual Network + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update a gateway for the production slot's Virtual Network + * @return the next definition stage */ WithVpnPackageUri withExistingVirtualNetworkConnection(String resourceGroupName, String name, String vnetName, String slot); } @@ -84,6 +89,8 @@ interface WithVirtualNetworkConnection { interface WithVpnPackageUri { /** * Specifies vpnPackageUri. + * @param vpnPackageUri The URI where the VPN package can be downloaded + * @return the next definition stage */ WithCreate withVpnPackageUri(String vpnPackageUri); } @@ -94,6 +101,8 @@ interface WithVpnPackageUri { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -104,6 +113,8 @@ interface WithKind { interface WithVnetName { /** * Specifies vnetName. + * @param vnetName The Virtual Network name + * @return the next definition stage */ WithCreate withVnetName(String vnetName); } @@ -132,6 +143,8 @@ interface UpdateStages { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -142,6 +155,8 @@ interface WithKind { interface WithVnetName { /** * Specifies vnetName. + * @param vnetName The Virtual Network name + * @return the next update stage */ Update withVnetName(String vnetName); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetInfo.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetInfo.java index f0e50b36ffd47..bb8e40eba3f0d 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetInfo.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/VnetInfo.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.List; /** * Type representing VnetInfo. */ -public interface VnetInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface VnetInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the certBlob value. */ @@ -95,6 +95,10 @@ interface Blank extends WithSlot { interface WithSlot { /** * Specifies resourceGroupName, name, slot. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot + * @return the next definition stage */ WithCreate withExistingSlot(String resourceGroupName, String name, String slot); } @@ -105,6 +109,9 @@ interface WithSlot { interface WithCertBlob { /** * Specifies certBlob. + * @param certBlob A certificate file (.cer) blob containing the public key of the private key used to authenticate a + Point-To-Site VPN connection + * @return the next definition stage */ WithCreate withCertBlob(byte[] certBlob); } @@ -115,6 +122,8 @@ interface WithCertBlob { interface WithDnsServers { /** * Specifies dnsServers. + * @param dnsServers DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses + * @return the next definition stage */ WithCreate withDnsServers(String dnsServers); } @@ -125,6 +134,8 @@ interface WithDnsServers { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -135,6 +146,8 @@ interface WithKind { interface WithVnetResourceId { /** * Specifies vnetResourceId. + * @param vnetResourceId The Virtual Network's resource ID + * @return the next definition stage */ WithCreate withVnetResourceId(String vnetResourceId); } @@ -163,6 +176,9 @@ interface UpdateStages { interface WithCertBlob { /** * Specifies certBlob. + * @param certBlob A certificate file (.cer) blob containing the public key of the private key used to authenticate a + Point-To-Site VPN connection + * @return the next update stage */ Update withCertBlob(byte[] certBlob); } @@ -173,6 +189,8 @@ interface WithCertBlob { interface WithDnsServers { /** * Specifies dnsServers. + * @param dnsServers DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses + * @return the next update stage */ Update withDnsServers(String dnsServers); } @@ -183,6 +201,8 @@ interface WithDnsServers { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -193,6 +213,8 @@ interface WithKind { interface WithVnetResourceId { /** * Specifies vnetResourceId. + * @param vnetResourceId The Virtual Network's resource ID + * @return the next update stage */ Update withVnetResourceId(String vnetResourceId); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebApps.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebApps.java index 5543125601311..22303ee0a8241 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebApps.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebApps.java @@ -329,7 +329,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getWebSiteContainerLogsAsync(String resourceGroupName, String name); + Observable getWebSiteContainerLogsAsync(String resourceGroupName, String name); /** * Fetch a short lived token that can be exchanged for a master key. @@ -340,7 +340,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getFunctionsAdminTokenAsync(String resourceGroupName, String name); + Observable getFunctionsAdminTokenAsync(String resourceGroupName, String name); /** * Gets hybrid connections configured for an app (or deployment slot, if specified). @@ -459,7 +459,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable startWebSiteNetworkTraceAsync(String resourceGroupName, String name); + Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name); /** * Stop ongoing capturing network packets for the site. @@ -470,7 +470,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name); + Observable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name); /** * Generates a new publishing password for an app (or deployment slot, if specified). @@ -504,7 +504,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getProcessDumpAsync(String resourceGroupName, String name, String processId); + Observable getProcessDumpAsync(String resourceGroupName, String name, String processId); /** * Gets the publishing profile for an app (or deployment slot, if specified). @@ -515,7 +515,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name); + Observable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name); /** * Recovers a web app to a previous snapshot. @@ -1162,7 +1162,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getWebSiteContainerLogsZipAsync(String resourceGroupName, String name); + Observable getWebSiteContainerLogsZipAsync(String resourceGroupName, String name); /** * Gets the ZIP archived docker log files for the given site. @@ -1174,7 +1174,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getWebSiteContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot); + Observable getWebSiteContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot); /** * Gets a continuous web job by its ID for an app, or a deployment slot. @@ -2015,7 +2015,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId); + Observable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId); /** * Gets all scale-out instances of an app. @@ -2041,7 +2041,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId); + Observable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId); /** * Get process information by its ID for a specific scaled-out instance in a web site. @@ -2715,8 +2715,8 @@ public interface WebApps { Observable getSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId); /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -2738,8 +2738,8 @@ public interface WebApps { Completable deleteSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId); /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -2983,7 +2983,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot); + Observable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot); /** * Fetch a short lived token that can be exchanged for a master key. @@ -2995,7 +2995,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot); + Observable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot); /** * Gets hybrid connections configured for an app (or deployment slot, if specified). @@ -3097,7 +3097,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); + Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); /** * Stop ongoing capturing network packets for the site. @@ -3109,7 +3109,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); + Observable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); /** * Generates a new publishing password for an app (or deployment slot, if specified). @@ -3146,7 +3146,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot); + Observable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot); /** * Gets the publishing profile for an app (or deployment slot, if specified). @@ -3158,7 +3158,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot); + Observable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot); /** * Recovers a web app to a previous snapshot. diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebJob.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebJob.java index 0787d0e3b6c68..ff2cb1ffb6c3f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebJob.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/WebJob.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_08_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_08_01.implementation.WebManager; import java.util.Map; /** * Type representing WebJob. */ -public interface WebJob extends HasInner, Indexable, Refreshable, HasManager { +public interface WebJob extends HasInner, Indexable, Refreshable, HasManager { /** * @return the error value. */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupItemImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupItemImpl.java index fc752212eb3c9..af1529d49dee9 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupItemImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupItemImpl.java @@ -17,21 +17,22 @@ import com.microsoft.azure.management.appservice.v2016_08_01.BackupItemStatus; class BackupItemImpl extends IndexableRefreshableWrapperImpl implements BackupItem { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String backupId; - BackupItemImpl(BackupItemInner inner, AppServiceManager manager) { + BackupItemImpl(BackupItemInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.backupId = IdParsingUtils.getValueFromIdByName(inner.id(), "backups"); } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupRequestImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupRequestImpl.java index b8f36034f435e..a3de793755f4f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupRequestImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/BackupRequestImpl.java @@ -16,14 +16,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.DatabaseBackupSetting; class BackupRequestImpl extends WrapperImpl implements BackupRequest { - private final AppServiceManager manager; - BackupRequestImpl(BackupRequestInner inner, AppServiceManager manager) { + private final WebManager manager; + BackupRequestImpl(BackupRequestInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ConnectionStringDictionaryImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ConnectionStringDictionaryImpl.java index ef2e71e82ebe3..7c0cddd04b34e 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ConnectionStringDictionaryImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ConnectionStringDictionaryImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.ConnStringValueTypePair; class ConnectionStringDictionaryImpl extends WrapperImpl implements ConnectionStringDictionary { - private final AppServiceManager manager; - ConnectionStringDictionaryImpl(ConnectionStringDictionaryInner inner, AppServiceManager manager) { + private final WebManager manager; + ConnectionStringDictionaryImpl(ConnectionStringDictionaryInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ContinuousWebJobImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ContinuousWebJobImpl.java index bc7cdda6778ff..0527657f8744b 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ContinuousWebJobImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ContinuousWebJobImpl.java @@ -16,21 +16,22 @@ import com.microsoft.azure.management.appservice.v2016_08_01.ContinuousWebJobStatus; class ContinuousWebJobImpl extends IndexableRefreshableWrapperImpl implements ContinuousWebJob { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String webJobName; - ContinuousWebJobImpl(ContinuousWebJobInner inner, AppServiceManager manager) { + ContinuousWebJobImpl(ContinuousWebJobInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.webJobName = IdParsingUtils.getValueFromIdByName(inner.id(), "continuouswebjobs"); } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaImpl.java index 16c50674d2c50..c1f548b90f25c 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaImpl.java @@ -15,15 +15,15 @@ import org.joda.time.DateTime; class CsmUsageQuotaImpl extends WrapperImpl implements CsmUsageQuota { - private final AppServiceManager manager; + private final WebManager manager; - CsmUsageQuotaImpl(CsmUsageQuotaInner inner, AppServiceManager manager) { + CsmUsageQuotaImpl(CsmUsageQuotaInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaInner.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaInner.java index f23a0362137b0..cb24dfd999c5e 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaInner.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaInner.java @@ -17,7 +17,7 @@ */ public class CsmUsageQuotaInner { /** - * Units of measurement for the quota resourse. + * Units of measurement for the quota resource. */ @JsonProperty(value = "unit") private String unit; @@ -47,7 +47,7 @@ public class CsmUsageQuotaInner { private LocalizableString name; /** - * Get units of measurement for the quota resourse. + * Get units of measurement for the quota resource. * * @return the unit value */ @@ -56,7 +56,7 @@ public String unit() { } /** - * Set units of measurement for the quota resourse. + * Set units of measurement for the quota resource. * * @param unit the unit value to set * @return the CsmUsageQuotaInner object itself. diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultImpl.java index be476e0aeefd2..791c7f3bc31ed 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.DnsVerificationTestResult; class CustomHostnameAnalysisResultImpl extends WrapperImpl implements CustomHostnameAnalysisResult { - private final AppServiceManager manager; - CustomHostnameAnalysisResultImpl(CustomHostnameAnalysisResultInner inner, AppServiceManager manager) { + private final WebManager manager; + CustomHostnameAnalysisResultImpl(CustomHostnameAnalysisResultInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultInner.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultInner.java index aad5c2e0735d9..e27497df6e52b 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultInner.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CustomHostnameAnalysisResultInner.java @@ -48,7 +48,7 @@ public class CustomHostnameAnalysisResultInner extends ProxyOnlyResource { private Boolean hasConflictOnScaleUnit; /** - * <code>true</code> if htere is a conflict across + * <code>true</code> if there is a conflict across * subscriptions; otherwise, <code>false</code>. */ @JsonProperty(value = "properties.hasConflictAcrossSubscription", access = JsonProperty.Access.WRITE_ONLY) @@ -128,7 +128,7 @@ public Boolean hasConflictOnScaleUnit() { } /** - * Get <code>true</code> if htere is a conflict across subscriptions; otherwise, <code>false</code>. + * Get <code>true</code> if there is a conflict across subscriptions; otherwise, <code>false</code>. * * @return the hasConflictAcrossSubscription value */ diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/DeploymentImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/DeploymentImpl.java index 180ff7775d0bb..1191df1b58239 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/DeploymentImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/DeploymentImpl.java @@ -14,12 +14,12 @@ import org.joda.time.DateTime; class DeploymentImpl extends CreatableUpdatableImpl implements Deployment, Deployment.Definition, Deployment.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String id; - DeploymentImpl(String name, AppServiceManager manager) { + DeploymentImpl(String name, WebManager manager) { super(name, new DeploymentInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class DeploymentImpl extends CreatableUpdatableImpl implements FunctionEnvelope, FunctionEnvelope.Definition, FunctionEnvelope.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String functionName; - FunctionEnvelopeImpl(String name, AppServiceManager manager) { + FunctionEnvelopeImpl(String name, WebManager manager) { super(name, new FunctionEnvelopeInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class FunctionEnvelopeImpl extends CreatableUpdatableImpl implements FunctionSecrets { - private final AppServiceManager manager; - FunctionSecretsImpl(FunctionSecretsInner inner, AppServiceManager manager) { + private final WebManager manager; + FunctionSecretsImpl(FunctionSecretsInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/HostNameBindingImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/HostNameBindingImpl.java index 536de0d98e7e0..92464bacd1a12 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/HostNameBindingImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/HostNameBindingImpl.java @@ -17,12 +17,12 @@ import com.microsoft.azure.management.appservice.v2016_08_01.SslState; class HostNameBindingImpl extends CreatableUpdatableImpl implements HostNameBinding, HostNameBinding.Definition, HostNameBinding.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String hostName; - HostNameBindingImpl(String name, AppServiceManager manager) { + HostNameBindingImpl(String name, WebManager manager) { super(name, new HostNameBindingInner()); this.manager = manager; // Set resource name @@ -30,12 +30,12 @@ class HostNameBindingImpl extends CreatableUpdatableImpl implements HybridConnection, HybridConnection.Definition, HybridConnection.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String namespaceName; private String relayName; - HybridConnectionImpl(String name, AppServiceManager manager) { + HybridConnectionImpl(String name, WebManager manager) { super(name, new HybridConnectionInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class HybridConnectionImpl extends CreatableUpdatableImpl implements HybridConnectionKey { - private final AppServiceManager manager; - HybridConnectionKeyImpl(HybridConnectionKeyInner inner, AppServiceManager manager) { + private final WebManager manager; + HybridConnectionKeyImpl(HybridConnectionKeyInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/IdentifierImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/IdentifierImpl.java index 4e52bbdf960d0..48c70da50717b 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/IdentifierImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/IdentifierImpl.java @@ -13,12 +13,12 @@ import rx.Observable; class IdentifierImpl extends CreatableUpdatableImpl implements Identifier, Identifier.Definition, Identifier.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String domainOwnershipIdentifierName; - IdentifierImpl(String name, AppServiceManager manager) { + IdentifierImpl(String name, WebManager manager) { super(name, new IdentifierInner()); this.manager = manager; // Set resource name @@ -26,12 +26,12 @@ class IdentifierImpl extends CreatableUpdatableImpl implements MSDeployLog { - private final AppServiceManager manager; - MSDeployLogImpl(MSDeployLogInner inner, AppServiceManager manager) { + private final WebManager manager; + MSDeployLogImpl(MSDeployLogInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MSDeployStatusImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MSDeployStatusImpl.java index 1c74e84f3af89..c1f6b6e08f731 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MSDeployStatusImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MSDeployStatusImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.MSDeployProvisioningState; class MSDeployStatusImpl extends WrapperImpl implements MSDeployStatus { - private final AppServiceManager manager; - MSDeployStatusImpl(MSDeployStatusInner inner, AppServiceManager manager) { + private final WebManager manager; + MSDeployStatusImpl(MSDeployStatusInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MigrateMySqlStatusImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MigrateMySqlStatusImpl.java index 1f26e4c7486a1..63cceea8d4225 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MigrateMySqlStatusImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/MigrateMySqlStatusImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.OperationStatus; class MigrateMySqlStatusImpl extends WrapperImpl implements MigrateMySqlStatus { - private final AppServiceManager manager; - MigrateMySqlStatusImpl(MigrateMySqlStatusInner inner, AppServiceManager manager) { + private final WebManager manager; + MigrateMySqlStatusImpl(MigrateMySqlStatusInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/NetworkFeaturesImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/NetworkFeaturesImpl.java index c772338567ee5..cbdb45649a5cb 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/NetworkFeaturesImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/NetworkFeaturesImpl.java @@ -18,21 +18,22 @@ import com.microsoft.azure.management.appservice.v2016_08_01.VnetInfo; class NetworkFeaturesImpl extends IndexableRefreshableWrapperImpl implements NetworkFeatures { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String view; - NetworkFeaturesImpl(NetworkFeaturesInner inner, AppServiceManager manager) { + NetworkFeaturesImpl(NetworkFeaturesInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.view = IdParsingUtils.getValueFromIdByName(inner.id(), "networkFeatures"); } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/OperationImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/OperationImpl.java index fd08492da094e..ecaaa869ebd42 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/OperationImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/OperationImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.OperationStatus; class OperationImpl extends WrapperImpl implements Operation { - private final AppServiceManager manager; - OperationImpl(OperationInner inner, AppServiceManager manager) { + private final WebManager manager; + OperationImpl(OperationInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PerfMonResponseImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PerfMonResponseImpl.java index bf4a805db3cf4..5e7cc987c1340 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PerfMonResponseImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PerfMonResponseImpl.java @@ -14,15 +14,15 @@ import com.microsoft.azure.management.appservice.v2016_08_01.PerfMonSet; class PerfMonResponseImpl extends WrapperImpl implements PerfMonResponse { - private final AppServiceManager manager; + private final WebManager manager; - PerfMonResponseImpl(PerfMonResponseInner inner, AppServiceManager manager) { + PerfMonResponseImpl(PerfMonResponseInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PremierAddOnImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PremierAddOnImpl.java index c753c83f69ec3..c74d2a2f14f97 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PremierAddOnImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/PremierAddOnImpl.java @@ -14,12 +14,12 @@ import java.util.Map; class PremierAddOnImpl extends CreatableUpdatableImpl implements PremierAddOn, PremierAddOn.Definition, PremierAddOn.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String premierAddOnName; - PremierAddOnImpl(String name, AppServiceManager manager) { + PremierAddOnImpl(String name, WebManager manager) { super(name, new PremierAddOnInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class PremierAddOnImpl extends CreatableUpdatableImpl implements ProcessInfo { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String processId; private String instanceId; - ProcessInfoImpl(ProcessInfoInner inner, AppServiceManager manager) { + ProcessInfoImpl(ProcessInfoInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.processId = IdParsingUtils.getValueFromIdByName(inner.id(), "processes"); @@ -35,7 +36,7 @@ class ProcessInfoImpl extends IndexableRefreshableWrapperImpl implements ProcessModuleInfo { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String processId; private String baseAddress; private String instanceId; - ProcessModuleInfoImpl(ProcessModuleInfoInner inner, AppServiceManager manager) { + ProcessModuleInfoImpl(ProcessModuleInfoInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.processId = IdParsingUtils.getValueFromIdByName(inner.id(), "processes"); @@ -31,7 +32,7 @@ class ProcessModuleInfoImpl extends IndexableRefreshableWrapperImpl implements ProcessThreadInfo { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String processId; private String threadId; private String instanceId; - ProcessThreadInfoImpl(ProcessThreadInfoInner inner, AppServiceManager manager) { + ProcessThreadInfoImpl(ProcessThreadInfoInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.processId = IdParsingUtils.getValueFromIdByName(inner.id(), "processes"); @@ -32,7 +33,7 @@ class ProcessThreadInfoImpl extends IndexableRefreshableWrapperImpl implements PublicCertificate, PublicCertificate.Definition, PublicCertificate.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String publicCertificateName; - PublicCertificateImpl(String name, AppServiceManager manager) { + PublicCertificateImpl(String name, WebManager manager) { super(name, new PublicCertificateInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class PublicCertificateImpl extends CreatableUpdatableImpl implements PushSettings { - private final AppServiceManager manager; - PushSettingsImpl(PushSettingsInner inner, AppServiceManager manager) { + private final WebManager manager; + PushSettingsImpl(PushSettingsInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RelayServiceConnectionEntityImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RelayServiceConnectionEntityImpl.java index 26beb5a7f0111..c3c03b64218d8 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RelayServiceConnectionEntityImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RelayServiceConnectionEntityImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class RelayServiceConnectionEntityImpl extends WrapperImpl implements RelayServiceConnectionEntity { - private final AppServiceManager manager; - RelayServiceConnectionEntityImpl(RelayServiceConnectionEntityInner inner, AppServiceManager manager) { + private final WebManager manager; + RelayServiceConnectionEntityImpl(RelayServiceConnectionEntityInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricDefinitionImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricDefinitionImpl.java index 5f123f5131b6b..c875ea59f6fcc 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricDefinitionImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricDefinitionImpl.java @@ -17,15 +17,15 @@ import com.microsoft.azure.management.appservice.v2016_08_01.ResourceMetricName; class ResourceMetricDefinitionImpl extends WrapperImpl implements ResourceMetricDefinition { - private final AppServiceManager manager; + private final WebManager manager; - ResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, AppServiceManager manager) { + ResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricImpl.java index 9b02f8bb691ad..aa2aa9577a172 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/ResourceMetricImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2016_08_01.ResourceMetricProperty; class ResourceMetricImpl extends WrapperImpl implements ResourceMetric { - private final AppServiceManager manager; + private final WebManager manager; - ResourceMetricImpl(ResourceMetricInner inner, AppServiceManager manager) { + ResourceMetricImpl(ResourceMetricInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreRequestImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreRequestImpl.java index 4910eeff0d890..62f426fdab358 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreRequestImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreRequestImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.BackupRestoreOperationType; class RestoreRequestImpl extends WrapperImpl implements RestoreRequest { - private final AppServiceManager manager; - RestoreRequestImpl(RestoreRequestInner inner, AppServiceManager manager) { + private final WebManager manager; + RestoreRequestImpl(RestoreRequestInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreResponseImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreResponseImpl.java index c29d81ad57c4b..4db2303d238c7 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreResponseImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/RestoreResponseImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class RestoreResponseImpl extends WrapperImpl implements RestoreResponse { - private final AppServiceManager manager; - RestoreResponseImpl(RestoreResponseInner inner, AppServiceManager manager) { + private final WebManager manager; + RestoreResponseImpl(RestoreResponseInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteAuthSettingsImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteAuthSettingsImpl.java index 96eea08a88c64..458fbbbb50a5e 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteAuthSettingsImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteAuthSettingsImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.UnauthenticatedClientAction; class SiteAuthSettingsImpl extends WrapperImpl implements SiteAuthSettings { - private final AppServiceManager manager; - SiteAuthSettingsImpl(SiteAuthSettingsInner inner, AppServiceManager manager) { + private final WebManager manager; + SiteAuthSettingsImpl(SiteAuthSettingsInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteCloneabilityImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteCloneabilityImpl.java index f5c69e2c57cc3..08540054cfc80 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteCloneabilityImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteCloneabilityImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.CloneAbilityResult; class SiteCloneabilityImpl extends WrapperImpl implements SiteCloneability { - private final AppServiceManager manager; - SiteCloneabilityImpl(SiteCloneabilityInner inner, AppServiceManager manager) { + private final WebManager manager; + SiteCloneabilityImpl(SiteCloneabilityInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceImpl.java index 95023a99482b9..71a443c23f977 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceImpl.java @@ -29,14 +29,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.VirtualApplication; class SiteConfigResourceImpl extends WrapperImpl implements SiteConfigResource { - private final AppServiceManager manager; - SiteConfigResourceImpl(SiteConfigResourceInner inner, AppServiceManager manager) { + private final WebManager manager; + SiteConfigResourceImpl(SiteConfigResourceInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceInner.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceInner.java index 71b3c83436abc..80c21607043e1 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceInner.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigResourceInner.java @@ -232,7 +232,7 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { private SiteLoadBalancing loadBalancing; /** - * This is work around for polymophic types. + * This is work around for polymorphic types. */ @JsonProperty(value = "properties.experiments") private Experiments experiments; @@ -929,7 +929,7 @@ public SiteConfigResourceInner withLoadBalancing(SiteLoadBalancing loadBalancing } /** - * Get this is work around for polymophic types. + * Get this is work around for polymorphic types. * * @return the experiments value */ @@ -938,7 +938,7 @@ public Experiments experiments() { } /** - * Set this is work around for polymophic types. + * Set this is work around for polymorphic types. * * @param experiments the experiments value to set * @return the SiteConfigResourceInner object itself. diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigurationSnapshotInfoImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigurationSnapshotInfoImpl.java index 38c3faa259377..d40bc15aac8f1 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigurationSnapshotInfoImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteConfigurationSnapshotInfoImpl.java @@ -13,14 +13,14 @@ import org.joda.time.DateTime; class SiteConfigurationSnapshotInfoImpl extends WrapperImpl implements SiteConfigurationSnapshotInfo { - private final AppServiceManager manager; - SiteConfigurationSnapshotInfoImpl(SiteConfigurationSnapshotInfoInner inner, AppServiceManager manager) { + private final WebManager manager; + SiteConfigurationSnapshotInfoImpl(SiteConfigurationSnapshotInfoInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteExtensionInfoImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteExtensionInfoImpl.java index 6b4fbfc36955d..9179b2608797e 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteExtensionInfoImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteExtensionInfoImpl.java @@ -16,12 +16,12 @@ import com.microsoft.azure.management.appservice.v2016_08_01.SiteExtensionType; class SiteExtensionInfoImpl extends CreatableUpdatableImpl implements SiteExtensionInfo, SiteExtensionInfo.Definition, SiteExtensionInfo.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String siteExtensionId; - SiteExtensionInfoImpl(String name, AppServiceManager manager) { + SiteExtensionInfoImpl(String name, WebManager manager) { super(name, new SiteExtensionInfoInner()); this.manager = manager; // Set resource name @@ -29,12 +29,12 @@ class SiteExtensionInfoImpl extends CreatableUpdatableImpl implements SiteInstance { - private final AppServiceManager manager; + private final WebManager manager; - SiteInstanceImpl(SiteInstanceInner inner, AppServiceManager manager) { + SiteInstanceImpl(SiteInstanceInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteLogsConfigImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteLogsConfigImpl.java index 49ee3b80b8888..7d2318793dfb7 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteLogsConfigImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteLogsConfigImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.HttpLogsConfig; class SiteLogsConfigImpl extends WrapperImpl implements SiteLogsConfig { - private final AppServiceManager manager; - SiteLogsConfigImpl(SiteLogsConfigInner inner, AppServiceManager manager) { + private final WebManager manager; + SiteLogsConfigImpl(SiteLogsConfigInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitePhpErrorLogFlagImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitePhpErrorLogFlagImpl.java index 53468659f37e6..070179381ff2f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitePhpErrorLogFlagImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitePhpErrorLogFlagImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SitePhpErrorLogFlagImpl extends WrapperImpl implements SitePhpErrorLogFlag { - private final AppServiceManager manager; - SitePhpErrorLogFlagImpl(SitePhpErrorLogFlagInner inner, AppServiceManager manager) { + private final WebManager manager; + SitePhpErrorLogFlagImpl(SitePhpErrorLogFlagInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteSourceControlImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteSourceControlImpl.java index 1e97280b58980..c5d8a48c05120 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteSourceControlImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SiteSourceControlImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SiteSourceControlImpl extends WrapperImpl implements SiteSourceControl { - private final AppServiceManager manager; - SiteSourceControlImpl(SiteSourceControlInner inner, AppServiceManager manager) { + private final WebManager manager; + SiteSourceControlImpl(SiteSourceControlInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitesImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitesImpl.java index 30f291d0d8ecb..fa36cc12998a6 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitesImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SitesImpl.java @@ -25,9 +25,9 @@ import com.microsoft.azure.management.appservice.v2016_08_01.ManagedServiceIdentity; import rx.functions.Func1; -class SitesImpl extends GroupableResourceCoreImpl implements Sites, Sites.Definition, Sites.Update { +class SitesImpl extends GroupableResourceCoreImpl implements Sites, Sites.Definition, Sites.Update { private SitePatchResource updateParameter; - SitesImpl(String name, SiteInner inner, AppServiceManager manager) { + SitesImpl(String name, SiteInner inner, WebManager manager) { super(name, inner, manager); this.updateParameter = new SitePatchResource(); } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotConfigNamesResourceImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotConfigNamesResourceImpl.java index d16706a3503c8..4eb5866ce743a 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotConfigNamesResourceImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotConfigNamesResourceImpl.java @@ -13,14 +13,14 @@ import java.util.List; class SlotConfigNamesResourceImpl extends WrapperImpl implements SlotConfigNamesResource { - private final AppServiceManager manager; - SlotConfigNamesResourceImpl(SlotConfigNamesResourceInner inner, AppServiceManager manager) { + private final WebManager manager; + SlotConfigNamesResourceImpl(SlotConfigNamesResourceInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotDifferenceImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotDifferenceImpl.java index 89dad41abe28b..64719b9bf0d1f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotDifferenceImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotDifferenceImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SlotDifferenceImpl extends WrapperImpl implements SlotDifference { - private final AppServiceManager manager; - SlotDifferenceImpl(SlotDifferenceInner inner, AppServiceManager manager) { + private final WebManager manager; + SlotDifferenceImpl(SlotDifferenceInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotsImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotsImpl.java index 6a5c70afa424a..a117f0786a6f4 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotsImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SlotsImpl.java @@ -27,13 +27,21 @@ import rx.functions.Func1; class SlotsImpl extends CreatableUpdatableImpl implements Slots, Slots.Definition, Slots.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String slot; + private Boolean cskipDnsRegistration; + private Boolean cskipCustomDomainVerification; + private Boolean cforceDnsRegistration; + private String cttlInSeconds; + private Boolean uskipDnsRegistration; + private Boolean uskipCustomDomainVerification; + private Boolean uforceDnsRegistration; + private String uttlInSeconds; private SitePatchResource updateParameter; - SlotsImpl(String name, AppServiceManager manager) { + SlotsImpl(String name, WebManager manager) { super(name, new SiteInner()); this.manager = manager; // Set resource name @@ -42,12 +50,12 @@ class SlotsImpl extends CreatableUpdatableImpl impl this.updateParameter = new SitePatchResource(); } - SlotsImpl(SiteInner inner, AppServiceManager manager) { + SlotsImpl(SiteInner inner, WebManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name this.slot = inner.name(); - // resource ancestor names + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.slot = IdParsingUtils.getValueFromIdByName(inner.id(), "slots"); @@ -56,14 +64,14 @@ class SlotsImpl extends CreatableUpdatableImpl impl } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } @Override public Observable createResourceAsync() { WebAppsInner client = this.manager().inner().webApps(); - return client.createOrUpdateSlotAsync(this.resourceGroupName, this.name, this.slot, this.inner()) + return client.createOrUpdateSlotAsync(this.resourceGroupName, this.name, this.slot, this.inner(), this.cskipDnsRegistration, this.cskipCustomDomainVerification, this.cforceDnsRegistration, this.cttlInSeconds) .map(new Func1() { @Override public SiteInner call(SiteInner resource) { @@ -77,7 +85,7 @@ public SiteInner call(SiteInner resource) { @Override public Observable updateResourceAsync() { WebAppsInner client = this.manager().inner().webApps(); - return client.updateSlotAsync(this.resourceGroupName, this.name, this.slot, this.updateParameter) + return client.updateSlotAsync(this.resourceGroupName, this.name, this.slot, this.updateParameter, this.uskipDnsRegistration, this.uskipCustomDomainVerification, this.uforceDnsRegistration, this.uttlInSeconds) .map(new Func1() { @Override public SiteInner call(SiteInner resource) { @@ -323,6 +331,46 @@ public SlotsImpl withTags(Map tags) { return this; } + @Override + public SlotsImpl withSkipDnsRegistration(Boolean skipDnsRegistration) { + if (isInCreateMode()) { + this.cskipDnsRegistration = skipDnsRegistration; + } else { + this.uskipDnsRegistration = skipDnsRegistration; + } + return this; + } + + @Override + public SlotsImpl withSkipCustomDomainVerification(Boolean skipCustomDomainVerification) { + if (isInCreateMode()) { + this.cskipCustomDomainVerification = skipCustomDomainVerification; + } else { + this.uskipCustomDomainVerification = skipCustomDomainVerification; + } + return this; + } + + @Override + public SlotsImpl withForceDnsRegistration(Boolean forceDnsRegistration) { + if (isInCreateMode()) { + this.cforceDnsRegistration = forceDnsRegistration; + } else { + this.uforceDnsRegistration = forceDnsRegistration; + } + return this; + } + + @Override + public SlotsImpl withTtlInSeconds(String ttlInSeconds) { + if (isInCreateMode()) { + this.cttlInSeconds = ttlInSeconds; + } else { + this.uttlInSeconds = ttlInSeconds; + } + return this; + } + @Override public SlotsImpl withClientAffinityEnabled(Boolean clientAffinityEnabled) { if (isInCreateMode()) { diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SnapshotImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SnapshotImpl.java index 7deb2c5df46a3..cdd08f284937f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SnapshotImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/SnapshotImpl.java @@ -13,15 +13,15 @@ import rx.Observable; class SnapshotImpl extends WrapperImpl implements Snapshot { - private final AppServiceManager manager; + private final WebManager manager; - SnapshotImpl(SnapshotInner inner, AppServiceManager manager) { + SnapshotImpl(SnapshotInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StorageMigrationResponseImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StorageMigrationResponseImpl.java index 3e1696b08bb60..e885f5400a9bc 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StorageMigrationResponseImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StorageMigrationResponseImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class StorageMigrationResponseImpl extends WrapperImpl implements StorageMigrationResponse { - private final AppServiceManager manager; - StorageMigrationResponseImpl(StorageMigrationResponseInner inner, AppServiceManager manager) { + private final WebManager manager; + StorageMigrationResponseImpl(StorageMigrationResponseInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StringDictionaryImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StringDictionaryImpl.java index a1725dbd1b16a..e112b4db73eb1 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StringDictionaryImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/StringDictionaryImpl.java @@ -13,14 +13,14 @@ import java.util.Map; class StringDictionaryImpl extends WrapperImpl implements StringDictionary { - private final AppServiceManager manager; - StringDictionaryImpl(StringDictionaryInner inner, AppServiceManager manager) { + private final WebManager manager; + StringDictionaryImpl(StringDictionaryInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredJobHistoryImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredJobHistoryImpl.java index 85a0a5073347a..6ed80496d7b01 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredJobHistoryImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredJobHistoryImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_08_01.TriggeredJobRun; class TriggeredJobHistoryImpl extends WrapperImpl implements TriggeredJobHistory { - private final AppServiceManager manager; - TriggeredJobHistoryImpl(TriggeredJobHistoryInner inner, AppServiceManager manager) { + private final WebManager manager; + TriggeredJobHistoryImpl(TriggeredJobHistoryInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredWebJobImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredWebJobImpl.java index f1de8c8ef4ddd..7b75c74e94a74 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredWebJobImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/TriggeredWebJobImpl.java @@ -16,15 +16,16 @@ import java.util.Map; class TriggeredWebJobImpl extends IndexableRefreshableWrapperImpl implements TriggeredWebJob { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String webJobName; private String slot; - TriggeredWebJobImpl(TriggeredWebJobInner inner, AppServiceManager manager) { + TriggeredWebJobImpl(TriggeredWebJobInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.webJobName = IdParsingUtils.getValueFromIdByName(inner.id(), "triggeredwebjobs"); @@ -32,7 +33,7 @@ class TriggeredWebJobImpl extends IndexableRefreshableWrapperImpl implements User { - private final AppServiceManager manager; - UserImpl(UserInner inner, AppServiceManager manager) { + private final WebManager manager; + UserImpl(UserInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/UserInner.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/UserInner.java index d07bc0af1c211..6835b887c6baf 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/UserInner.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/UserInner.java @@ -13,7 +13,7 @@ import com.microsoft.azure.management.appservice.v2016_08_01.ProxyOnlyResource; /** - * User crendentials used for publishing activity. + * User credentials used for publishing activity. */ @JsonFlatten public class UserInner extends ProxyOnlyResource { diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/VnetGatewayImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/VnetGatewayImpl.java index 31f1fe16a829c..4fb6228678076 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/VnetGatewayImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/VnetGatewayImpl.java @@ -13,27 +13,27 @@ import rx.Observable; class VnetGatewayImpl extends CreatableUpdatableImpl implements VnetGateway, VnetGateway.Definition, VnetGateway.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String vnetName; private String gatewayName; private String slot; - VnetGatewayImpl(String name, AppServiceManager manager) { + VnetGatewayImpl(String name, WebManager manager) { super(name, new VnetGatewayInner()); this.manager = manager; // Set resource name - this.slot = name; + this.gatewayName = name; // } - VnetGatewayImpl(VnetGatewayInner inner, AppServiceManager manager) { + VnetGatewayImpl(VnetGatewayInner inner, WebManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name - this.slot = inner.name(); - // resource ancestor names + this.gatewayName = inner.name(); + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.vnetName = IdParsingUtils.getValueFromIdByName(inner.id(), "virtualNetworkConnections"); @@ -43,7 +43,7 @@ class VnetGatewayImpl extends CreatableUpdatableImpl implements VnetInfo, VnetInfo.Definition, VnetInfo.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String vnetName; private String slot; - VnetInfoImpl(String name, AppServiceManager manager) { + VnetInfoImpl(String name, WebManager manager) { super(name, new VnetInfoInner()); this.manager = manager; // Set resource name - this.slot = name; + this.vnetName = name; // } - VnetInfoImpl(VnetInfoInner inner, AppServiceManager manager) { + VnetInfoImpl(VnetInfoInner inner, WebManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name - this.slot = inner.name(); - // resource ancestor names + this.vnetName = inner.name(); + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.vnetName = IdParsingUtils.getValueFromIdByName(inner.id(), "virtualNetworkConnections"); @@ -43,7 +43,7 @@ class VnetInfoImpl extends CreatableUpdatableImpl implements WebApps { - private final AppServiceManager manager; + private final WebManager manager; - WebAppsImpl(AppServiceManager manager) { + WebAppsImpl(WebManager manager) { super(manager.inner().webApps()); this.manager = manager; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } @@ -656,16 +656,16 @@ public SiteConfigResource call(SiteConfigResourceInner inner) { } @Override - public Completable getWebSiteContainerLogsAsync(String resourceGroupName, String name) { + public Observable getWebSiteContainerLogsAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.getWebSiteContainerLogsAsync(resourceGroupName, name).toCompletable(); - } + return client.getWebSiteContainerLogsAsync(resourceGroupName, name) + ;} @Override - public Completable getFunctionsAdminTokenAsync(String resourceGroupName, String name) { + public Observable getFunctionsAdminTokenAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.getFunctionsAdminTokenAsync(resourceGroupName, name).toCompletable(); - } + return client.getFunctionsAdminTokenAsync(resourceGroupName, name) + ;} @Override public Observable listRelayServiceConnectionsAsync(String resourceGroupName, String name) { @@ -770,16 +770,16 @@ public Operation call(OperationInner inner) { } @Override - public Completable startWebSiteNetworkTraceAsync(String resourceGroupName, String name) { + public Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.startWebSiteNetworkTraceAsync(resourceGroupName, name).toCompletable(); - } + return client.startWebSiteNetworkTraceAsync(resourceGroupName, name) + ;} @Override - public Completable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name) { + public Observable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.stopWebSiteNetworkTraceAsync(resourceGroupName, name).toCompletable(); - } + return client.stopWebSiteNetworkTraceAsync(resourceGroupName, name) + ;} @Override public Completable generateNewSitePublishingPasswordAsync(String resourceGroupName, String name) { @@ -800,16 +800,16 @@ public SitePhpErrorLogFlag call(SitePhpErrorLogFlagInner inner) { } @Override - public Completable getProcessDumpAsync(String resourceGroupName, String name, String processId) { + public Observable getProcessDumpAsync(String resourceGroupName, String name, String processId) { WebAppsInner client = this.inner(); - return client.getProcessDumpAsync(resourceGroupName, name, processId).toCompletable(); - } + return client.getProcessDumpAsync(resourceGroupName, name, processId) + ;} @Override - public Completable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name) { + public Observable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.listPublishingProfileXmlWithSecretsAsync(resourceGroupName, name).toCompletable(); - } + return client.listPublishingProfileXmlWithSecretsAsync(resourceGroupName, name) + ;} @Override public Completable recoverAsync(String resourceGroupName, String name, SnapshotRecoveryRequest recoveryEntity) { @@ -1418,16 +1418,16 @@ public Snapshot call(SnapshotInner inner) { } @Override - public Completable getWebSiteContainerLogsZipAsync(String resourceGroupName, String name) { + public Observable getWebSiteContainerLogsZipAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.getWebSiteContainerLogsZipAsync(resourceGroupName, name).toCompletable(); - } + return client.getWebSiteContainerLogsZipAsync(resourceGroupName, name) + ;} @Override - public Completable getWebSiteContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot) { + public Observable getWebSiteContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.getWebSiteContainerLogsZipSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.getWebSiteContainerLogsZipSlotAsync(resourceGroupName, name, slot) + ;} @Override public Observable getContinuousWebJobAsync(String resourceGroupName, String name, String webJobName) { @@ -2192,10 +2192,10 @@ public SiteInstance call(SiteInstanceInner inner) { } @Override - public Completable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId) { + public Observable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId) { WebAppsInner client = this.inner(); - return client.getInstanceProcessDumpAsync(resourceGroupName, name, processId, instanceId).toCompletable(); - } + return client.getInstanceProcessDumpAsync(resourceGroupName, name, processId, instanceId) + ;} @Override public Observable listInstanceIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot) { @@ -2216,10 +2216,10 @@ public SiteInstance call(SiteInstanceInner inner) { } @Override - public Completable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + public Observable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { WebAppsInner client = this.inner(); - return client.getInstanceProcessDumpSlotAsync(resourceGroupName, name, processId, slot, instanceId).toCompletable(); - } + return client.getInstanceProcessDumpSlotAsync(resourceGroupName, name, processId, slot, instanceId) + ;} @Override public Observable getInstanceProcessAsync(String resourceGroupName, String name, String processId, String instanceId) { @@ -3176,16 +3176,16 @@ public SiteConfigResource call(SiteConfigResourceInner inner) { } @Override - public Completable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot) { + public Observable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.getWebSiteContainerLogsSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.getWebSiteContainerLogsSlotAsync(resourceGroupName, name, slot) + ;} @Override - public Completable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot) { + public Observable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.getFunctionsAdminTokenSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.getFunctionsAdminTokenSlotAsync(resourceGroupName, name, slot) + ;} @Override public Observable listRelayServiceConnectionsSlotAsync(String resourceGroupName, String name, String slot) { @@ -3266,16 +3266,16 @@ public FunctionSecrets call(FunctionSecretsInner inner) { } @Override - public Completable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + public Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.startWebSiteNetworkTraceSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.startWebSiteNetworkTraceSlotAsync(resourceGroupName, name, slot) + ;} @Override - public Completable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + public Observable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.stopWebSiteNetworkTraceSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.stopWebSiteNetworkTraceSlotAsync(resourceGroupName, name, slot) + ;} @Override public Completable generateNewSitePublishingPasswordSlotAsync(String resourceGroupName, String name, String slot) { @@ -3296,16 +3296,16 @@ public SitePhpErrorLogFlag call(SitePhpErrorLogFlagInner inner) { } @Override - public Completable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot) { + public Observable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot) { WebAppsInner client = this.inner(); - return client.getProcessDumpSlotAsync(resourceGroupName, name, processId, slot).toCompletable(); - } + return client.getProcessDumpSlotAsync(resourceGroupName, name, processId, slot) + ;} @Override - public Completable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot) { + public Observable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.listPublishingProfileXmlWithSecretsSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.listPublishingProfileXmlWithSecretsSlotAsync(resourceGroupName, name, slot) + ;} @Override public Completable recoverSlotAsync(String resourceGroupName, String name, String slot, SnapshotRecoveryRequest recoveryEntity) { diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebAppsInner.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebAppsInner.java index be4930961633b..a98a6ff7b2226 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebAppsInner.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebAppsInner.java @@ -16181,8 +16181,8 @@ private ServiceResponse restartDelegate(Response response) t } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -16202,8 +16202,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -16224,8 +16224,8 @@ public Observable>> call(String nex } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -16243,8 +16243,8 @@ public Page call(ServiceResponse>> call(ServiceRes } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Site name. @@ -31760,8 +31760,8 @@ private ServiceResponse restartSlotDelegate(Response respons } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -31782,8 +31782,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -31805,8 +31805,8 @@ public Observable>> call(String nex } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Site name. @@ -31825,8 +31825,8 @@ public Page call(ServiceResponse>> call(ServiceRes } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Site name. @@ -41420,8 +41420,8 @@ private ServiceResponse> listPublicCertificates } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -41440,8 +41440,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -41462,8 +41462,8 @@ public Observable>> call(String nex } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -41480,8 +41480,8 @@ public Page call(ServiceResponse>> call(ServiceRes } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -43864,8 +43864,8 @@ private ServiceResponse> listPublicCertificates } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -43884,8 +43884,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -43906,8 +43906,8 @@ public Observable>> call(String nex } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -43924,8 +43924,8 @@ public Page call(ServiceResponse>> call(ServiceRes } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. + * Get list of site extensions for a web site, or a deployment slot. * ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebJobImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebJobImpl.java index ed73c12b1e4ea..36a342b8e773f 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebJobImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebJobImpl.java @@ -15,15 +15,16 @@ import java.util.Map; class WebJobImpl extends IndexableRefreshableWrapperImpl implements WebJob { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String webJobName; private String slot; - WebJobImpl(WebJobInner inner, AppServiceManager manager) { + WebJobImpl(WebJobInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.webJobName = IdParsingUtils.getValueFromIdByName(inner.id(), "webjobs"); @@ -31,7 +32,7 @@ class WebJobImpl extends IndexableRefreshableWrapperImpl im } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebManager.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebManager.java new file mode 100644 index 0000000000000..6f03dcd18aa32 --- /dev/null +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebManager.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2016_08_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.appservice.v2016_08_01.WebApps; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure Web resource management. + */ +public final class WebManager extends ManagerCore { + private WebApps webApps; + /** + * Get a Configurable instance that can be used to create WebManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new WebManager.ConfigurableImpl(); + } + /** + * Creates an instance of WebManager that exposes Web resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the WebManager + */ + public static WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new WebManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of WebManager that exposes Web resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the WebManager + */ + public static WebManager authenticate(RestClient restClient, String subscriptionId) { + return new WebManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of WebManager that exposes Web management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing Web management API entry points that work across subscriptions + */ + WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage WebApps. + */ + public WebApps webApps() { + if (this.webApps == null) { + this.webApps = new WebAppsImpl(this); + } + return this.webApps; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return WebManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private WebManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new WebSiteManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebSiteManagementClientImpl.java b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebSiteManagementClientImpl.java index 1532c4c153f72..03e7fbe556311 100644 --- a/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebSiteManagementClientImpl.java +++ b/appservice/resource-manager/v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/WebSiteManagementClientImpl.java @@ -63,11 +63,11 @@ public String apiVersion() { return this.apiVersion; } - /** Gets or sets the preferred language for the response. */ + /** The preferred language for the response. */ private String acceptLanguage; /** - * Gets Gets or sets the preferred language for the response. + * Gets The preferred language for the response. * * @return the acceptLanguage value. */ @@ -76,7 +76,7 @@ public String acceptLanguage() { } /** - * Sets Gets or sets the preferred language for the response. + * Sets The preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself @@ -86,11 +86,11 @@ public WebSiteManagementClientImpl withAcceptLanguage(String acceptLanguage) { return this; } - /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ private int longRunningOperationRetryTimeout; /** - * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */ @@ -99,7 +99,7 @@ public int longRunningOperationRetryTimeout() { } /** - * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself @@ -109,11 +109,11 @@ public WebSiteManagementClientImpl withLongRunningOperationRetryTimeout(int long return this; } - /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ private boolean generateClientRequestId; /** - * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @return the generateClientRequestId value. */ @@ -122,7 +122,7 @@ public boolean generateClientRequestId() { } /** - * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself @@ -191,6 +191,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "WebSiteManagementClient", "2016-08-01"); + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "WebSiteManagementClient", "2016-08-01"); } } diff --git a/appservice/resource-manager/v2016_09_01/pom.xml b/appservice/resource-manager/v2016_09_01/pom.xml index 3e5c07aff6049..b6dacd3bcef4e 100644 --- a/appservice/resource-manager/v2016_09_01/pom.xml +++ b/appservice/resource-manager/v2016_09_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.appservice.v2016_09_01 - - com.microsoft.azure - azure-arm-parent - 1.0.0 - ../../../pom.xml - - azure-mgmt-appservice - 1.0.0-beta-1 - jar - Microsoft Azure SDK for Web Management - This package contains Microsoft Web Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.appservice.v2016_09_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-web + 1.0.0-beta + jar + Microsoft Azure SDK for Web Management + This package contains Microsoft Web 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.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AddressResponse.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AddressResponse.java index a3b899f9307fc..6adba3580330a 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AddressResponse.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AddressResponse.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AddressResponseInner; import java.util.List; /** * Type representing AddressResponse. */ -public interface AddressResponse extends HasInner, HasManager { +public interface AddressResponse extends HasInner, HasManager { /** * @return the internalIpAddress value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentPatchResource.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentPatchResource.java index 7aec6fadb8a2f..9ead7a87cbf17 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentPatchResource.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentPatchResource.java @@ -14,7 +14,7 @@ import com.microsoft.rest.serializer.JsonFlatten; /** - * ARM resource for a app service enviroment. + * ARM resource for a app service environment. */ @JsonFlatten public class AppServiceEnvironmentPatchResource extends ProxyOnlyResource { diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentResource.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentResource.java index 6e5b6f7158110..8e63fb995006b 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentResource.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentResource.java @@ -17,7 +17,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import java.util.List; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.StampCapacityInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceEnvironmentResourceInner; @@ -25,7 +25,7 @@ /** * Type representing AppServiceEnvironmentResource. */ -public interface AppServiceEnvironmentResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface AppServiceEnvironmentResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the allowedMultiSizes value. */ @@ -239,7 +239,9 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup workerPools); } /** - * The stage of the appserviceenvironmentresource update allowing to specify ApiManagementAccountId. + * The stage of the appserviceenvironmentresource definition allowing to specify ApiManagementAccountId. */ interface WithApiManagementAccountId { /** * Specifies apiManagementAccountId. + * @param apiManagementAccountId API Management Account associated with the App Service Environment + * @return the next definition stage */ WithCreate withApiManagementAccountId(String apiManagementAccountId); } /** - * The stage of the appserviceenvironmentresource update allowing to specify ClusterSettings. + * The stage of the appserviceenvironmentresource definition allowing to specify ClusterSettings. */ interface WithClusterSettings { /** * Specifies clusterSettings. + * @param clusterSettings Custom settings for changing the behavior of the App Service Environment + * @return the next definition stage */ WithCreate withClusterSettings(List clusterSettings); } /** - * The stage of the appserviceenvironmentresource update allowing to specify DnsSuffix. + * The stage of the appserviceenvironmentresource definition allowing to specify DnsSuffix. */ interface WithDnsSuffix { /** * Specifies dnsSuffix. + * @param dnsSuffix DNS suffix of the App Service Environment + * @return the next definition stage */ WithCreate withDnsSuffix(String dnsSuffix); } /** - * The stage of the appserviceenvironmentresource update allowing to specify DynamicCacheEnabled. + * The stage of the appserviceenvironmentresource definition allowing to specify DynamicCacheEnabled. */ interface WithDynamicCacheEnabled { /** * Specifies dynamicCacheEnabled. + * @param dynamicCacheEnabled True/false indicating whether the App Service Environment is suspended. The environment can be suspended e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next definition stage */ WithCreate withDynamicCacheEnabled(Boolean dynamicCacheEnabled); } /** - * The stage of the appserviceenvironmentresource update allowing to specify FrontEndScaleFactor. + * The stage of the appserviceenvironmentresource definition allowing to specify FrontEndScaleFactor. */ interface WithFrontEndScaleFactor { /** * Specifies frontEndScaleFactor. + * @param frontEndScaleFactor Scale factor for front-ends + * @return the next definition stage */ WithCreate withFrontEndScaleFactor(Integer frontEndScaleFactor); } /** - * The stage of the appserviceenvironmentresource update allowing to specify InternalLoadBalancingMode. + * The stage of the appserviceenvironmentresource definition allowing to specify InternalLoadBalancingMode. */ interface WithInternalLoadBalancingMode { /** * Specifies internalLoadBalancingMode. + * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values include: 'None', 'Web', 'Publishing' + * @return the next definition stage */ WithCreate withInternalLoadBalancingMode(InternalLoadBalancingMode internalLoadBalancingMode); } /** - * The stage of the appserviceenvironmentresource update allowing to specify IpsslAddressCount. + * The stage of the appserviceenvironmentresource definition allowing to specify IpsslAddressCount. */ interface WithIpsslAddressCount { /** * Specifies ipsslAddressCount. + * @param ipsslAddressCount Number of IP SSL addresses reserved for the App Service Environment + * @return the next definition stage */ WithCreate withIpsslAddressCount(Integer ipsslAddressCount); } /** - * The stage of the appserviceenvironmentresource update allowing to specify Kind. + * The stage of the appserviceenvironmentresource definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } /** - * The stage of the appserviceenvironmentresource update allowing to specify MultiRoleCount. + * The stage of the appserviceenvironmentresource definition allowing to specify MultiRoleCount. */ interface WithMultiRoleCount { /** * Specifies multiRoleCount. + * @param multiRoleCount Number of front-end instances + * @return the next definition stage */ WithCreate withMultiRoleCount(Integer multiRoleCount); } /** - * The stage of the appserviceenvironmentresource update allowing to specify MultiSize. + * The stage of the appserviceenvironmentresource definition allowing to specify MultiSize. */ interface WithMultiSize { /** * Specifies multiSize. + * @param multiSize Front-end VM size, e.g. "Medium", "Large" + * @return the next definition stage */ WithCreate withMultiSize(String multiSize); } /** - * The stage of the appserviceenvironmentresource update allowing to specify NetworkAccessControlList. + * The stage of the appserviceenvironmentresource definition allowing to specify NetworkAccessControlList. */ interface WithNetworkAccessControlList { /** * Specifies networkAccessControlList. + * @param networkAccessControlList Access control list for controlling traffic to the App Service Environment + * @return the next definition stage */ WithCreate withNetworkAccessControlList(List networkAccessControlList); } /** - * The stage of the appserviceenvironmentresource update allowing to specify Suspended. + * The stage of the appserviceenvironmentresource definition allowing to specify Suspended. */ interface WithSuspended { /** * Specifies suspended. + * @param suspended <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next definition stage */ WithCreate withSuspended(Boolean suspended); } /** - * The stage of the appserviceenvironmentresource update allowing to specify UserWhitelistedIpRanges. + * The stage of the appserviceenvironmentresource definition allowing to specify UserWhitelistedIpRanges. */ interface WithUserWhitelistedIpRanges { /** * Specifies userWhitelistedIpRanges. + * @param userWhitelistedIpRanges User added ip ranges to whitelist on ASE db + * @return the next definition stage */ WithCreate withUserWhitelistedIpRanges(List userWhitelistedIpRanges); } /** - * The stage of the appserviceenvironmentresource update allowing to specify VnetName. + * The stage of the appserviceenvironmentresource definition allowing to specify VnetName. */ interface WithVnetName { /** * Specifies vnetName. + * @param vnetName Name of the Virtual Network for the App Service Environment + * @return the next definition stage */ WithCreate withVnetName(String vnetName); } /** - * The stage of the appserviceenvironmentresource update allowing to specify VnetResourceGroupName. + * The stage of the appserviceenvironmentresource definition allowing to specify VnetResourceGroupName. */ interface WithVnetResourceGroupName { /** * Specifies vnetResourceGroupName. + * @param vnetResourceGroupName Resource group of the Virtual Network + * @return the next definition stage */ WithCreate withVnetResourceGroupName(String vnetResourceGroupName); } /** - * The stage of the appserviceenvironmentresource update allowing to specify VnetSubnetName. + * The stage of the appserviceenvironmentresource definition allowing to specify VnetSubnetName. */ interface WithVnetSubnetName { /** * Specifies vnetSubnetName. + * @param vnetSubnetName Subnet of the Virtual Network + * @return the next definition stage */ WithCreate withVnetSubnetName(String vnetSubnetName); } @@ -452,161 +494,195 @@ interface Update extends Appliable, Resource.Upda */ interface UpdateStages { /** - * The stage of the appserviceenvironmentresource {0} allowing to specify ApiManagementAccountId. + * The stage of the appserviceenvironmentresource update allowing to specify ApiManagementAccountId. */ interface WithApiManagementAccountId { /** * Specifies apiManagementAccountId. + * @param apiManagementAccountId API Management Account associated with the App Service Environment + * @return the next update stage */ Update withApiManagementAccountId(String apiManagementAccountId); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify ClusterSettings. + * The stage of the appserviceenvironmentresource update allowing to specify ClusterSettings. */ interface WithClusterSettings { /** * Specifies clusterSettings. + * @param clusterSettings Custom settings for changing the behavior of the App Service Environment + * @return the next update stage */ Update withClusterSettings(List clusterSettings); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify DnsSuffix. + * The stage of the appserviceenvironmentresource update allowing to specify DnsSuffix. */ interface WithDnsSuffix { /** * Specifies dnsSuffix. + * @param dnsSuffix DNS suffix of the App Service Environment + * @return the next update stage */ Update withDnsSuffix(String dnsSuffix); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify DynamicCacheEnabled. + * The stage of the appserviceenvironmentresource update allowing to specify DynamicCacheEnabled. */ interface WithDynamicCacheEnabled { /** * Specifies dynamicCacheEnabled. + * @param dynamicCacheEnabled True/false indicating whether the App Service Environment is suspended. The environment can be suspended e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next update stage */ Update withDynamicCacheEnabled(Boolean dynamicCacheEnabled); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify FrontEndScaleFactor. + * The stage of the appserviceenvironmentresource update allowing to specify FrontEndScaleFactor. */ interface WithFrontEndScaleFactor { /** * Specifies frontEndScaleFactor. + * @param frontEndScaleFactor Scale factor for front-ends + * @return the next update stage */ Update withFrontEndScaleFactor(Integer frontEndScaleFactor); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify InternalLoadBalancingMode. + * The stage of the appserviceenvironmentresource update allowing to specify InternalLoadBalancingMode. */ interface WithInternalLoadBalancingMode { /** * Specifies internalLoadBalancingMode. + * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values include: 'None', 'Web', 'Publishing' + * @return the next update stage */ Update withInternalLoadBalancingMode(InternalLoadBalancingMode internalLoadBalancingMode); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify IpsslAddressCount. + * The stage of the appserviceenvironmentresource update allowing to specify IpsslAddressCount. */ interface WithIpsslAddressCount { /** * Specifies ipsslAddressCount. + * @param ipsslAddressCount Number of IP SSL addresses reserved for the App Service Environment + * @return the next update stage */ Update withIpsslAddressCount(Integer ipsslAddressCount); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify Kind. + * The stage of the appserviceenvironmentresource update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify MultiRoleCount. + * The stage of the appserviceenvironmentresource update allowing to specify MultiRoleCount. */ interface WithMultiRoleCount { /** * Specifies multiRoleCount. + * @param multiRoleCount Number of front-end instances + * @return the next update stage */ Update withMultiRoleCount(Integer multiRoleCount); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify MultiSize. + * The stage of the appserviceenvironmentresource update allowing to specify MultiSize. */ interface WithMultiSize { /** * Specifies multiSize. + * @param multiSize Front-end VM size, e.g. "Medium", "Large" + * @return the next update stage */ Update withMultiSize(String multiSize); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify NetworkAccessControlList. + * The stage of the appserviceenvironmentresource update allowing to specify NetworkAccessControlList. */ interface WithNetworkAccessControlList { /** * Specifies networkAccessControlList. + * @param networkAccessControlList Access control list for controlling traffic to the App Service Environment + * @return the next update stage */ Update withNetworkAccessControlList(List networkAccessControlList); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify Suspended. + * The stage of the appserviceenvironmentresource update allowing to specify Suspended. */ interface WithSuspended { /** * Specifies suspended. + * @param suspended <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next update stage */ Update withSuspended(Boolean suspended); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify UserWhitelistedIpRanges. + * The stage of the appserviceenvironmentresource update allowing to specify UserWhitelistedIpRanges. */ interface WithUserWhitelistedIpRanges { /** * Specifies userWhitelistedIpRanges. + * @param userWhitelistedIpRanges User added ip ranges to whitelist on ASE db + * @return the next update stage */ Update withUserWhitelistedIpRanges(List userWhitelistedIpRanges); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify VnetName. + * The stage of the appserviceenvironmentresource update allowing to specify VnetName. */ interface WithVnetName { /** * Specifies vnetName. + * @param vnetName Name of the Virtual Network for the App Service Environment + * @return the next update stage */ Update withVnetName(String vnetName); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify VnetResourceGroupName. + * The stage of the appserviceenvironmentresource update allowing to specify VnetResourceGroupName. */ interface WithVnetResourceGroupName { /** * Specifies vnetResourceGroupName. + * @param vnetResourceGroupName Resource group of the Virtual Network + * @return the next update stage */ Update withVnetResourceGroupName(String vnetResourceGroupName); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify VnetSubnetName. + * The stage of the appserviceenvironmentresource update allowing to specify VnetSubnetName. */ interface WithVnetSubnetName { /** * Specifies vnetSubnetName. + * @param vnetSubnetName Subnet of the Virtual Network + * @return the next update stage */ Update withVnetSubnetName(String vnetSubnetName); } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServicePlan.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServicePlan.java index 15dcc567dc1b0..0242d78e1ecc4 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServicePlan.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServicePlan.java @@ -17,14 +17,14 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServicePlanInner; /** * Type representing AppServicePlan. */ -public interface AppServicePlan extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface AppServicePlan extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the adminSiteName value. */ @@ -148,116 +148,141 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup, Resource.UpdateWithTags listByResourceGroupAsync(String resourceGroupName); /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request @@ -91,15 +91,15 @@ public interface AppServicePlans { Completable restartWebAppsAsync(String resourceGroupName, String name); /** - * Gets all selectable sku's for a given App Service Plan. - * Gets all selectable sku's for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of App Service Plan * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getServerFarmSkusAsync(String resourceGroupName, String name); + Observable getServerFarmSkusAsync(String resourceGroupName, String name); /** * List all capabilities of an App Service plan. @@ -162,7 +162,7 @@ public interface AppServicePlans { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName); + Observable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName); /** * Get the maximum number of Hybrid Connections allowed in an App Service plan. @@ -198,8 +198,8 @@ public interface AppServicePlans { Observable listMetricDefintionsAsync(final String resourceGroupName, final String name); /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Capability.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Capability.java index 3d03130217be9..45ae6f1c2a6a2 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Capability.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Capability.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.CapabilityInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; /** * Type representing Capability. */ -public interface Capability extends HasInner, HasManager { +public interface Capability extends HasInner, HasManager { /** * @return the name value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/CsmUsageQuota.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/CsmUsageQuota.java index 2786e2cea8165..781dc9552466d 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/CsmUsageQuota.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/CsmUsageQuota.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.CsmUsageQuotaInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import org.joda.time.DateTime; /** * Type representing CsmUsageQuota. */ -public interface CsmUsageQuota extends HasInner, HasManager { +public interface CsmUsageQuota extends HasInner, HasManager { /** * @return the currentValue value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentAppServicePlan.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentAppServicePlan.java index ab93f003b4571..0e22beaab1ad7 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentAppServicePlan.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentAppServicePlan.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServicePlanInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import org.joda.time.DateTime; import java.util.Map; /** * Type representing HostingEnvironmentAppServicePlan. */ -public interface HostingEnvironmentAppServicePlan extends HasInner, HasManager { +public interface HostingEnvironmentAppServicePlan extends HasInner, HasManager { /** * @return the adminSiteName value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentDiagnostics.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentDiagnostics.java index 838dde951199d..6c020868de385 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentDiagnostics.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentDiagnostics.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.HostingEnvironmentDiagnosticsInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; /** * Type representing HostingEnvironmentDiagnostics. */ -public interface HostingEnvironmentDiagnostics extends HasInner, HasManager { +public interface HostingEnvironmentDiagnostics extends HasInner, HasManager { /** * @return the diagnosicsOutput value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentResourceMetric.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentResourceMetric.java index f97997a4134c7..84161822be04c 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentResourceMetric.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentResourceMetric.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.ResourceMetricInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing HostingEnvironmentResourceMetric. */ -public interface HostingEnvironmentResourceMetric extends HasInner, HasManager { +public interface HostingEnvironmentResourceMetric extends HasInner, HasManager { /** * @return the endTime value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentSite.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentSite.java index 01271f85d8d0d..256f08cdc1edd 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentSite.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HostingEnvironmentSite.java @@ -11,7 +11,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.SiteInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import java.util.List; import org.joda.time.DateTime; import java.util.Map; @@ -19,7 +19,7 @@ /** * Type representing HostingEnvironmentSite. */ -public interface HostingEnvironmentSite extends HasInner, HasManager { +public interface HostingEnvironmentSite extends HasInner, HasManager { /** * @return the availabilityState value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnection.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnection.java index c7aae0ebbc04c..1ff9f9f8ecb58 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnection.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnection.java @@ -13,12 +13,12 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; /** * Type representing HybridConnection. */ -public interface HybridConnection extends HasInner, Indexable, Refreshable, HasManager { +public interface HybridConnection extends HasInner, Indexable, Refreshable, HasManager { /** * @return the hostname value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionKey.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionKey.java index 479b51f7d5258..32553b0ea0f3a 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionKey.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionKey.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.HybridConnectionKeyInner; /** * Type representing HybridConnectionKey. */ -public interface HybridConnectionKey extends HasInner, HasManager { +public interface HybridConnectionKey extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionLimits.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionLimits.java index 1c6fc58b4ee11..b7f1dd9c92865 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionLimits.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/HybridConnectionLimits.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.HybridConnectionLimitsInner; /** * Type representing HybridConnectionLimits. */ -public interface HybridConnectionLimits extends HasInner, HasManager { +public interface HybridConnectionLimits extends HasInner, HasManager { /** * @return the current value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MetricDefinition.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MetricDefinition.java index 9b4a4f9c7c145..14527a149592a 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MetricDefinition.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MetricDefinition.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.MetricDefinitionInner; import java.util.List; /** * Type representing MetricDefinition. */ -public interface MetricDefinition extends HasInner, HasManager { +public interface MetricDefinition extends HasInner, HasManager { /** * @return the displayName value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MultiRolePools.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MultiRolePools.java index 949a29a6abef4..af423269447ed 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MultiRolePools.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/MultiRolePools.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WorkerPoolResourceInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import java.util.List; /** * Type representing MultiRolePools. */ -public interface MultiRolePools extends HasInner, HasManager { +public interface MultiRolePools extends HasInner, HasManager { /** * @return the computeMode value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Operation.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Operation.java index df34fce5fd093..94238d89e0664 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Operation.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Operation.java @@ -11,7 +11,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.OperationInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import org.joda.time.DateTime; import java.util.List; import java.util.UUID; @@ -19,7 +19,7 @@ /** * Type representing Operation. */ -public interface Operation extends HasInner, HasManager { +public interface Operation extends HasInner, HasManager { /** * @return the createdTime value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/RampUpRule.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/RampUpRule.java index f57b6a5e7630a..5bc8295d25cdc 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/RampUpRule.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/RampUpRule.java @@ -30,11 +30,11 @@ public class RampUpRule { private Double reroutePercentage; /** - * In auto ramp up scenario this is the step to to add/remove from + * In auto ramp up scenario this is the step to add/remove from * <code>ReroutePercentage</code> until it reaches * <code>MinReroutePercentage</code> or * <code>MaxReroutePercentage</code>. Site metrics are checked - * every N minutes specificed in + * every N minutes specified in * <code>ChangeIntervalInMinutes</code>. * Custom decision algorithm can be provided in TiPCallback site extension * which URL can be specified in @@ -44,7 +44,7 @@ public class RampUpRule { private Double changeStep; /** - * Specifies interval in mimuntes to reevaluate ReroutePercentage. + * Specifies interval in minutes to reevaluate ReroutePercentage. */ @JsonProperty(value = "changeIntervalInMinutes") private Integer changeIntervalInMinutes; @@ -118,8 +118,8 @@ public RampUpRule withReroutePercentage(Double reroutePercentage) { } /** - * Get in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Get in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @return the changeStep value @@ -129,8 +129,8 @@ public Double changeStep() { } /** - * Set in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Set in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @param changeStep the changeStep value to set @@ -142,7 +142,7 @@ public RampUpRule withChangeStep(Double changeStep) { } /** - * Get specifies interval in mimuntes to reevaluate ReroutePercentage. + * Get specifies interval in minutes to reevaluate ReroutePercentage. * * @return the changeIntervalInMinutes value */ @@ -151,7 +151,7 @@ public Integer changeIntervalInMinutes() { } /** - * Set specifies interval in mimuntes to reevaluate ReroutePercentage. + * Set specifies interval in minutes to reevaluate ReroutePercentage. * * @param changeIntervalInMinutes the changeIntervalInMinutes value to set * @return the RampUpRule object itself. diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ResourceMetricDefinition.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ResourceMetricDefinition.java index ef05a3c9c83e4..5587183559a63 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ResourceMetricDefinition.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ResourceMetricDefinition.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.ResourceMetricDefinitionInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import java.util.List; import java.util.Map; /** * Type representing ResourceMetricDefinition. */ -public interface ResourceMetricDefinition extends HasInner, HasManager { +public interface ResourceMetricDefinition extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmResourceMetric.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmResourceMetric.java index 03b0c26419966..632e64b7a5023 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmResourceMetric.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmResourceMetric.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.ResourceMetricInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing ServerfarmResourceMetric. */ -public interface ServerfarmResourceMetric extends HasInner, HasManager { +public interface ServerfarmResourceMetric extends HasInner, HasManager { /** * @return the endTime value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmSite.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmSite.java index 2d8012b52146c..ba7ca8921f3bd 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmSite.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/ServerfarmSite.java @@ -11,7 +11,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.SiteInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import java.util.List; import org.joda.time.DateTime; import java.util.Map; @@ -19,7 +19,7 @@ /** * Type representing ServerfarmSite. */ -public interface ServerfarmSite extends HasInner, HasManager { +public interface ServerfarmSite extends HasInner, HasManager { /** * @return the availabilityState value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SiteConfig.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SiteConfig.java index c35a0f6a70309..2e43f4ebe3e43 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SiteConfig.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SiteConfig.java @@ -214,7 +214,7 @@ public class SiteConfig { private SiteLoadBalancing loadBalancing; /** - * This is work around for polymophic types. + * This is work around for polymorphic types. */ @JsonProperty(value = "experiments") private Experiments experiments; @@ -911,7 +911,7 @@ public SiteConfig withLoadBalancing(SiteLoadBalancing loadBalancing) { } /** - * Get this is work around for polymophic types. + * Get this is work around for polymorphic types. * * @return the experiments value */ @@ -920,7 +920,7 @@ public Experiments experiments() { } /** - * Set this is work around for polymophic types. + * Set this is work around for polymorphic types. * * @param experiments the experiments value to set * @return the SiteConfig object itself. diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SkuInfo.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SkuInfo.java index 03d09da310994..42d3bdf5c7e43 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SkuInfo.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SkuInfo.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.SkuInfoInner; /** * Type representing SkuInfo. */ -public interface SkuInfo extends HasInner, HasManager { +public interface SkuInfo extends HasInner, HasManager { /** * @return the capacity value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SlotSwapStatus.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SlotSwapStatus.java index a1d26d87f8b75..44dc133b4496b 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SlotSwapStatus.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/SlotSwapStatus.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The status of the last successfull slot swap operation. + * The status of the last successful slot swap operation. */ public class SlotSwapStatus { /** diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/StampCapacity.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/StampCapacity.java index f4895a139b3cf..dfe3487a88bf8 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/StampCapacity.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/StampCapacity.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.StampCapacityInner; /** * Type representing StampCapacity. */ -public interface StampCapacity extends HasInner, HasManager { +public interface StampCapacity extends HasInner, HasManager { /** * @return the availableCapacity value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Usage.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Usage.java index 84e3a66cbd30a..feebd222d2841 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Usage.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/Usage.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import com.microsoft.azure.management.appservice.v2016_09_01.implementation.UsageInner; import org.joda.time.DateTime; /** * Type representing Usage. */ -public interface Usage extends HasInner, HasManager { +public interface Usage extends HasInner, HasManager { /** * @return the computeMode value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/User.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/User.java index d408a0647cbb5..3e1eb17285baf 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/User.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/User.java @@ -12,7 +12,7 @@ import com.microsoft.rest.serializer.JsonFlatten; /** - * User crendentials used for publishing activity. + * User credentials used for publishing activity. */ @JsonFlatten public class User extends ProxyOnlyResource { diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetGateway.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetGateway.java index 2ab55ea42b261..56e7562ac2f4b 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetGateway.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetGateway.java @@ -15,12 +15,12 @@ import com.microsoft.azure.arm.model.Updatable; import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; /** * Type representing VnetGateway. */ -public interface VnetGateway extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface VnetGateway extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -67,6 +67,8 @@ interface UpdateStages { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -77,6 +79,8 @@ interface WithKind { interface WithVnetName { /** * Specifies vnetName. + * @param vnetName The Virtual Network name + * @return the next update stage */ Update withVnetName(String vnetName); } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetInfo.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetInfo.java index 8b77af99590ad..87d9d6106f5f6 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetInfo.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetInfo.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import java.util.List; /** * Type representing VnetInfo. */ -public interface VnetInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface VnetInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the certBlob value. */ diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetRoute.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetRoute.java index 507ff43376a5f..58beb16f76cdf 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetRoute.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/VnetRoute.java @@ -15,12 +15,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; /** * Type representing VnetRoute. */ -public interface VnetRoute extends HasInner, Indexable, Updatable, HasManager { +public interface VnetRoute extends HasInner, Indexable, Updatable, HasManager { /** * @return the endAddress value. */ @@ -83,6 +83,10 @@ interface Blank extends WithVirtualNetworkConnection { interface WithVirtualNetworkConnection { /** * Specifies resourceGroupName, name, vnetName. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the App Service plan + * @param vnetName Name of the Virtual Network + * @return the next definition stage */ WithCreate withExistingVirtualNetworkConnection(String resourceGroupName, String name, String vnetName); } @@ -93,6 +97,8 @@ interface WithVirtualNetworkConnection { interface WithEndAddress { /** * Specifies endAddress. + * @param endAddress The ending address for this route. If the start address is specified in CIDR notation, this must be omitted + * @return the next definition stage */ WithCreate withEndAddress(String endAddress); } @@ -103,6 +109,8 @@ interface WithEndAddress { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -113,6 +121,12 @@ interface WithKind { interface WithRouteType { /** * Specifies routeType. + * @param routeType The type of route this is: + DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 + INHERITED - Routes inherited from the real Virtual Network routes + STATIC - Static route set on the app only + These values will be used for syncing an app's routes with those from a Virtual Network. Possible values include: 'DEFAULT', 'INHERITED', 'STATIC' + * @return the next definition stage */ WithCreate withRouteType(RouteType routeType); } @@ -123,6 +137,8 @@ interface WithRouteType { interface WithStartAddress { /** * Specifies startAddress. + * @param startAddress The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified + * @return the next definition stage */ WithCreate withStartAddress(String startAddress); } @@ -133,6 +149,8 @@ interface WithStartAddress { interface WithVnetRouteName { /** * Specifies vnetRouteName. + * @param vnetRouteName The name of this route. This is only returned by the server and does not need to be set by the client + * @return the next definition stage */ WithCreate withVnetRouteName(String vnetRouteName); } @@ -161,6 +179,8 @@ interface UpdateStages { interface WithEndAddress { /** * Specifies endAddress. + * @param endAddress The ending address for this route. If the start address is specified in CIDR notation, this must be omitted + * @return the next update stage */ Update withEndAddress(String endAddress); } @@ -171,6 +191,8 @@ interface WithEndAddress { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -181,6 +203,12 @@ interface WithKind { interface WithRouteType { /** * Specifies routeType. + * @param routeType The type of route this is: + DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 + INHERITED - Routes inherited from the real Virtual Network routes + STATIC - Static route set on the app only + These values will be used for syncing an app's routes with those from a Virtual Network. Possible values include: 'DEFAULT', 'INHERITED', 'STATIC' + * @return the next update stage */ Update withRouteType(RouteType routeType); } @@ -191,6 +219,8 @@ interface WithRouteType { interface WithStartAddress { /** * Specifies startAddress. + * @param startAddress The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified + * @return the next update stage */ Update withStartAddress(String startAddress); } @@ -201,6 +231,8 @@ interface WithStartAddress { interface WithVnetRouteName { /** * Specifies vnetRouteName. + * @param vnetRouteName The name of this route. This is only returned by the server and does not need to be set by the client + * @return the next update stage */ Update withVnetRouteName(String vnetRouteName); } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/WorkerPools.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/WorkerPools.java index 94c2364b79869..1052e56b9d514 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/WorkerPools.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/WorkerPools.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2016_09_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2016_09_01.implementation.WebManager; import java.util.List; /** * Type representing WorkerPools. */ -public interface WorkerPools extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface WorkerPools extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the computeMode value. */ @@ -95,6 +95,9 @@ interface Blank extends WithHostingEnvironment { interface WithHostingEnvironment { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the App Service Environment + * @return the next definition stage */ WithCreate withExistingHostingEnvironment(String resourceGroupName, String name); } @@ -105,6 +108,8 @@ interface WithHostingEnvironment { interface WithComputeMode { /** * Specifies computeMode. + * @param computeMode Shared or dedicated app hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + * @return the next definition stage */ WithCreate withComputeMode(ComputeModeOptions computeMode); } @@ -115,6 +120,8 @@ interface WithComputeMode { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -125,6 +132,8 @@ interface WithKind { interface WithSku { /** * Specifies sku. + * @param sku the sku parameter value + * @return the next definition stage */ WithCreate withSku(SkuDescription sku); } @@ -135,6 +144,8 @@ interface WithSku { interface WithWorkerCount { /** * Specifies workerCount. + * @param workerCount Number of instances in the worker pool + * @return the next definition stage */ WithCreate withWorkerCount(Integer workerCount); } @@ -145,6 +156,8 @@ interface WithWorkerCount { interface WithWorkerSize { /** * Specifies workerSize. + * @param workerSize VM size of the worker pool instances + * @return the next definition stage */ WithCreate withWorkerSize(String workerSize); } @@ -155,6 +168,8 @@ interface WithWorkerSize { interface WithWorkerSizeId { /** * Specifies workerSizeId. + * @param workerSizeId Worker size ID for referencing this worker pool + * @return the next definition stage */ WithCreate withWorkerSizeId(Integer workerSizeId); } @@ -183,6 +198,8 @@ interface UpdateStages { interface WithComputeMode { /** * Specifies computeMode. + * @param computeMode Shared or dedicated app hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + * @return the next update stage */ Update withComputeMode(ComputeModeOptions computeMode); } @@ -193,6 +210,8 @@ interface WithComputeMode { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -203,6 +222,8 @@ interface WithKind { interface WithSku { /** * Specifies sku. + * @param sku the sku parameter value + * @return the next update stage */ Update withSku(SkuDescription sku); } @@ -213,6 +234,8 @@ interface WithSku { interface WithWorkerCount { /** * Specifies workerCount. + * @param workerCount Number of instances in the worker pool + * @return the next update stage */ Update withWorkerCount(Integer workerCount); } @@ -223,6 +246,8 @@ interface WithWorkerCount { interface WithWorkerSize { /** * Specifies workerSize. + * @param workerSize VM size of the worker pool instances + * @return the next update stage */ Update withWorkerSize(String workerSize); } @@ -233,6 +258,8 @@ interface WithWorkerSize { interface WithWorkerSizeId { /** * Specifies workerSizeId. + * @param workerSizeId Worker size ID for referencing this worker pool + * @return the next update stage */ Update withWorkerSizeId(Integer workerSizeId); } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AddressResponseImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AddressResponseImpl.java index 1fcdbd1f29abd..c939729c2118a 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AddressResponseImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AddressResponseImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_09_01.VirtualIPMapping; class AddressResponseImpl extends WrapperImpl implements AddressResponse { - private final AppServiceManager manager; - AddressResponseImpl(AddressResponseInner inner, AppServiceManager manager) { + private final WebManager manager; + AddressResponseImpl(AddressResponseInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentResourceImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentResourceImpl.java index 3d6612bfb3146..7ce339da9142c 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentResourceImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentResourceImpl.java @@ -25,9 +25,9 @@ import com.microsoft.azure.management.appservice.v2016_09_01.StampCapacity; import rx.functions.Func1; -class AppServiceEnvironmentResourceImpl extends GroupableResourceCoreImpl implements AppServiceEnvironmentResource, AppServiceEnvironmentResource.Definition, AppServiceEnvironmentResource.Update { +class AppServiceEnvironmentResourceImpl extends GroupableResourceCoreImpl implements AppServiceEnvironmentResource, AppServiceEnvironmentResource.Definition, AppServiceEnvironmentResource.Update { private AppServiceEnvironmentPatchResource updateParameter; - AppServiceEnvironmentResourceImpl(String name, AppServiceEnvironmentResourceInner inner, AppServiceManager manager) { + AppServiceEnvironmentResourceImpl(String name, AppServiceEnvironmentResourceInner inner, WebManager manager) { super(name, inner, manager); this.updateParameter = new AppServiceEnvironmentPatchResource(); } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsImpl.java index d11b8a2eba249..3b3bc650474f0 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsImpl.java @@ -33,14 +33,14 @@ import com.microsoft.azure.management.appservice.v2016_09_01.WorkerPools; class AppServiceEnvironmentsImpl extends WrapperImpl implements AppServiceEnvironments { - private final AppServiceManager manager; + private final WebManager manager; - AppServiceEnvironmentsImpl(AppServiceManager manager) { + AppServiceEnvironmentsImpl(WebManager manager) { super(manager.inner().appServiceEnvironments()); this.manager = manager; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlanImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlanImpl.java index e35a555c759ff..5940fceb9a290 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlanImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlanImpl.java @@ -19,9 +19,9 @@ import com.microsoft.azure.management.appservice.v2016_09_01.SkuDescription; import rx.functions.Func1; -class AppServicePlanImpl extends GroupableResourceCoreImpl implements AppServicePlan, AppServicePlan.Definition, AppServicePlan.Update { +class AppServicePlanImpl extends GroupableResourceCoreImpl implements AppServicePlan, AppServicePlan.Definition, AppServicePlan.Update { private AppServicePlanPatchResource updateParameter; - AppServicePlanImpl(String name, AppServicePlanInner inner, AppServiceManager manager) { + AppServicePlanImpl(String name, AppServicePlanInner inner, WebManager manager) { super(name, inner, manager); this.updateParameter = new AppServicePlanPatchResource(); } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansImpl.java index e4cf06f2d0e20..6087ad0e570f5 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansImpl.java @@ -30,14 +30,14 @@ import com.microsoft.azure.management.appservice.v2016_09_01.VnetRoute; class AppServicePlansImpl extends WrapperImpl implements AppServicePlans { - private final AppServiceManager manager; + private final WebManager manager; - AppServicePlansImpl(AppServiceManager manager) { + AppServicePlansImpl(WebManager manager) { super(manager.inner().appServicePlans()); this.manager = manager; } - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } @@ -188,10 +188,10 @@ public Completable restartWebAppsAsync(String resourceGroupName, String name) { } @Override - public Completable getServerFarmSkusAsync(String resourceGroupName, String name) { + public Observable getServerFarmSkusAsync(String resourceGroupName, String name) { AppServicePlansInner client = this.inner(); - return client.getServerFarmSkusAsync(resourceGroupName, name).toCompletable(); - } + return client.getServerFarmSkusAsync(resourceGroupName, name) + ;} @Override public Observable listCapabilitiesAsync(String resourceGroupName, String name) { @@ -242,9 +242,15 @@ public HybridConnectionKey call(HybridConnectionKeyInner inner) { } @Override - public Completable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName) { + public Observable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName) { AppServicePlansInner client = this.inner(); - return client.listWebAppsByHybridConnectionAsync(resourceGroupName, name, namespaceName, relayName).toCompletable(); + return client.listWebAppsByHybridConnectionAsync(resourceGroupName, name, namespaceName, relayName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }); } @Override diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansInner.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansInner.java index cf68e6546d8bf..723c21cc90345 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansInner.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServicePlansInner.java @@ -222,8 +222,8 @@ interface AppServicePlansService { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server @@ -241,8 +241,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -261,8 +261,8 @@ public Observable>> call(String nextPa } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<AppServicePlanInner> object @@ -278,8 +278,8 @@ public Page call(ServiceResponse> } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<AppServicePlanInner> object @@ -299,8 +299,8 @@ public Observable>> call(ServiceRespon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<AppServicePlanInner> object wrapped in {@link ServiceResponse} if successful. @@ -328,8 +328,8 @@ public Observable>> call(Response nextPage(String nextPageLink) { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -371,8 +371,8 @@ public Observable>> call(String nextPa } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -390,8 +390,8 @@ public Page call(ServiceResponse> } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -413,8 +413,8 @@ public Observable>> call(ServiceRespon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * ServiceResponse> * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -835,6 +835,7 @@ public Observable> call(Response beginCreateOrUpdateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) .register(202, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); @@ -1922,8 +1923,8 @@ private ServiceResponse> listMetricDefin } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -1943,8 +1944,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -1965,8 +1966,8 @@ public Observable>> call(String nextPa } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -1984,8 +1985,8 @@ public Page call(ServiceResponse> } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -2007,8 +2008,8 @@ public Observable>> call(ServiceRespon } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -2045,8 +2046,8 @@ public Observable>> call(Response nextPage(String nextPageLink) { } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -2092,8 +2093,8 @@ public Observable>> call(String nextPa } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -2113,8 +2114,8 @@ public Page call(ServiceResponse> } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -2138,8 +2139,8 @@ public Observable>> call(ServiceRespon } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of the App Service plan. @@ -2271,7 +2272,7 @@ public Observable> call(Response response) { * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -2286,7 +2287,7 @@ public void restartWebApps(String resourceGroupName, String name, Boolean softRe * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -2301,7 +2302,7 @@ public ServiceFuture restartWebAppsAsync(String resourceGroupName, String * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ @@ -2320,7 +2321,7 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ @@ -2626,8 +2627,8 @@ private ServiceResponse> listWebAppsDelegate(Response getServerFarmSkusAsync(String resourceGroupName, St } /** - * Gets all selectable sku's for a given App Service Plan. - * Gets all selectable sku's for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of App Service Plan @@ -2673,8 +2674,8 @@ public Object call(ServiceResponse response) { } /** - * Gets all selectable sku's for a given App Service Plan. - * Gets all selectable sku's for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of App Service Plan @@ -4005,8 +4006,8 @@ private ServiceResponse rebootWorkerDelegate(Response respon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4025,8 +4026,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -4047,8 +4048,8 @@ public Observable>> call(String nextPa } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4065,8 +4066,8 @@ public Page call(ServiceResponse> } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4087,8 +4088,8 @@ public Observable>> call(ServiceRespon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4585,8 +4586,8 @@ private ServiceResponse> listMetricDefin } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4605,8 +4606,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -4627,8 +4628,8 @@ public Observable>> call(String nextPa } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4645,8 +4646,8 @@ public Page call(ServiceResponse> } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4667,8 +4668,8 @@ public Observable>> call(ServiceRespon } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CapabilityImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CapabilityImpl.java index ef1bb45579abb..b245634922419 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CapabilityImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CapabilityImpl.java @@ -13,15 +13,15 @@ import rx.Observable; class CapabilityImpl extends WrapperImpl implements Capability { - private final AppServiceManager manager; + private final WebManager manager; - CapabilityImpl(CapabilityInner inner, AppServiceManager manager) { + CapabilityImpl(CapabilityInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaImpl.java index fd4b2a5de490a..c9db724608229 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaImpl.java @@ -15,15 +15,15 @@ import org.joda.time.DateTime; class CsmUsageQuotaImpl extends WrapperImpl implements CsmUsageQuota { - private final AppServiceManager manager; + private final WebManager manager; - CsmUsageQuotaImpl(CsmUsageQuotaInner inner, AppServiceManager manager) { + CsmUsageQuotaImpl(CsmUsageQuotaInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaInner.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaInner.java index f9bda94dec8bb..8aadaedc84d3f 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaInner.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/CsmUsageQuotaInner.java @@ -17,7 +17,7 @@ */ public class CsmUsageQuotaInner { /** - * Units of measurement for the quota resourse. + * Units of measurement for the quota resource. */ @JsonProperty(value = "unit") private String unit; @@ -47,7 +47,7 @@ public class CsmUsageQuotaInner { private LocalizableString name; /** - * Get units of measurement for the quota resourse. + * Get units of measurement for the quota resource. * * @return the unit value */ @@ -56,7 +56,7 @@ public String unit() { } /** - * Set units of measurement for the quota resourse. + * Set units of measurement for the quota resource. * * @param unit the unit value to set * @return the CsmUsageQuotaInner object itself. diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentAppServicePlanImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentAppServicePlanImpl.java index 369afd29d9df0..5d56b7ea9a497 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentAppServicePlanImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentAppServicePlanImpl.java @@ -19,15 +19,15 @@ import java.util.Map; class HostingEnvironmentAppServicePlanImpl extends WrapperImpl implements HostingEnvironmentAppServicePlan { - private final AppServiceManager manager; + private final WebManager manager; - HostingEnvironmentAppServicePlanImpl(AppServicePlanInner inner, AppServiceManager manager) { + HostingEnvironmentAppServicePlanImpl(AppServicePlanInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentDiagnosticsImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentDiagnosticsImpl.java index 4e76760c665de..d9ad3354980a4 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentDiagnosticsImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentDiagnosticsImpl.java @@ -13,18 +13,18 @@ import rx.Observable; class HostingEnvironmentDiagnosticsImpl extends WrapperImpl implements HostingEnvironmentDiagnostics { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String diagnosticsName; - HostingEnvironmentDiagnosticsImpl(HostingEnvironmentDiagnosticsInner inner, AppServiceManager manager) { + HostingEnvironmentDiagnosticsImpl(HostingEnvironmentDiagnosticsInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentResourceMetricImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentResourceMetricImpl.java index 41f28f5b41579..f431d61215ea8 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentResourceMetricImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentResourceMetricImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2016_09_01.ResourceMetricProperty; class HostingEnvironmentResourceMetricImpl extends WrapperImpl implements HostingEnvironmentResourceMetric { - private final AppServiceManager manager; + private final WebManager manager; - HostingEnvironmentResourceMetricImpl(ResourceMetricInner inner, AppServiceManager manager) { + HostingEnvironmentResourceMetricImpl(ResourceMetricInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentSiteImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentSiteImpl.java index 996d3351ca49a..cda1916273881 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentSiteImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HostingEnvironmentSiteImpl.java @@ -25,15 +25,15 @@ import com.microsoft.azure.management.appservice.v2016_09_01.UsageState; class HostingEnvironmentSiteImpl extends WrapperImpl implements HostingEnvironmentSite { - private final AppServiceManager manager; + private final WebManager manager; - HostingEnvironmentSiteImpl(SiteInner inner, AppServiceManager manager) { + HostingEnvironmentSiteImpl(SiteInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionImpl.java index 5c5653f275ed8..fb53a0740606c 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionImpl.java @@ -13,15 +13,16 @@ import rx.Observable; class HybridConnectionImpl extends IndexableRefreshableWrapperImpl implements HybridConnection { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String namespaceName; private String relayName; - HybridConnectionImpl(HybridConnectionInner inner, AppServiceManager manager) { + HybridConnectionImpl(HybridConnectionInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "serverfarms"); this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "hybridConnectionNamespaces"); @@ -29,7 +30,7 @@ class HybridConnectionImpl extends IndexableRefreshableWrapperImpl implements HybridConnectionKey { - private final AppServiceManager manager; - HybridConnectionKeyImpl(HybridConnectionKeyInner inner, AppServiceManager manager) { + private final WebManager manager; + HybridConnectionKeyImpl(HybridConnectionKeyInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionLimitsImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionLimitsImpl.java index 4c830257c9a4c..a02839a566c63 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionLimitsImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/HybridConnectionLimitsImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class HybridConnectionLimitsImpl extends WrapperImpl implements HybridConnectionLimits { - private final AppServiceManager manager; - HybridConnectionLimitsImpl(HybridConnectionLimitsInner inner, AppServiceManager manager) { + private final WebManager manager; + HybridConnectionLimitsImpl(HybridConnectionLimitsInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MetricDefinitionImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MetricDefinitionImpl.java index ac7ea7a99a5ed..4b7a19f222d26 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MetricDefinitionImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MetricDefinitionImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_09_01.MetricAvailabilily; class MetricDefinitionImpl extends WrapperImpl implements MetricDefinition { - private final AppServiceManager manager; - MetricDefinitionImpl(MetricDefinitionInner inner, AppServiceManager manager) { + private final WebManager manager; + MetricDefinitionImpl(MetricDefinitionInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MultiRolePoolsImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MultiRolePoolsImpl.java index d2bec7cb4435e..21dcdd970e565 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MultiRolePoolsImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/MultiRolePoolsImpl.java @@ -16,15 +16,15 @@ import com.microsoft.azure.management.appservice.v2016_09_01.SkuDescription; class MultiRolePoolsImpl extends WrapperImpl implements MultiRolePools { - private final AppServiceManager manager; + private final WebManager manager; - MultiRolePoolsImpl(WorkerPoolResourceInner inner, AppServiceManager manager) { + MultiRolePoolsImpl(WorkerPoolResourceInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/OperationImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/OperationImpl.java index 462a90e209384..df05b45e39440 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/OperationImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/OperationImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2016_09_01.OperationStatus; class OperationImpl extends WrapperImpl implements Operation { - private final AppServiceManager manager; + private final WebManager manager; - OperationImpl(OperationInner inner, AppServiceManager manager) { + OperationImpl(OperationInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ResourceMetricDefinitionImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ResourceMetricDefinitionImpl.java index 1643835c5ab77..d7749d4761919 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ResourceMetricDefinitionImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ResourceMetricDefinitionImpl.java @@ -17,15 +17,15 @@ import com.microsoft.azure.management.appservice.v2016_09_01.ResourceMetricName; class ResourceMetricDefinitionImpl extends WrapperImpl implements ResourceMetricDefinition { - private final AppServiceManager manager; + private final WebManager manager; - ResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, AppServiceManager manager) { + ResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmResourceMetricImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmResourceMetricImpl.java index 38a8aa4fe55c1..924c3ee6e2c28 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmResourceMetricImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmResourceMetricImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2016_09_01.ResourceMetricProperty; class ServerfarmResourceMetricImpl extends WrapperImpl implements ServerfarmResourceMetric { - private final AppServiceManager manager; + private final WebManager manager; - ServerfarmResourceMetricImpl(ResourceMetricInner inner, AppServiceManager manager) { + ServerfarmResourceMetricImpl(ResourceMetricInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmSiteImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmSiteImpl.java index 5a11e921cb9d3..90ccfeab0739e 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmSiteImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/ServerfarmSiteImpl.java @@ -25,15 +25,15 @@ import com.microsoft.azure.management.appservice.v2016_09_01.UsageState; class ServerfarmSiteImpl extends WrapperImpl implements ServerfarmSite { - private final AppServiceManager manager; + private final WebManager manager; - ServerfarmSiteImpl(SiteInner inner, AppServiceManager manager) { + ServerfarmSiteImpl(SiteInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/SkuInfoImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/SkuInfoImpl.java index 1d9a13c5993d3..79649b0a1a345 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/SkuInfoImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/SkuInfoImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_09_01.SkuDescription; class SkuInfoImpl extends WrapperImpl implements SkuInfo { - private final AppServiceManager manager; - SkuInfoImpl(SkuInfoInner inner, AppServiceManager manager) { + private final WebManager manager; + SkuInfoImpl(SkuInfoInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/StampCapacityImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/StampCapacityImpl.java index 14492a1a6854a..f6eef41d04548 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/StampCapacityImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/StampCapacityImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2016_09_01.WorkerSizeOptions; class StampCapacityImpl extends WrapperImpl implements StampCapacity { - private final AppServiceManager manager; - StampCapacityImpl(StampCapacityInner inner, AppServiceManager manager) { + private final WebManager manager; + StampCapacityImpl(StampCapacityInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/UsageImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/UsageImpl.java index e49610b917333..0407cdaec09bb 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/UsageImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/UsageImpl.java @@ -14,14 +14,14 @@ import org.joda.time.DateTime; class UsageImpl extends WrapperImpl implements Usage { - private final AppServiceManager manager; - UsageImpl(UsageInner inner, AppServiceManager manager) { + private final WebManager manager; + UsageImpl(UsageInner inner, WebManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetGatewayImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetGatewayImpl.java index d4282b739f378..d2ee780e8df0e 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetGatewayImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetGatewayImpl.java @@ -13,13 +13,13 @@ import rx.Observable; class VnetGatewayImpl extends CreatableUpdatableImpl implements VnetGateway, VnetGateway.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String vnetName; private String gatewayName; - VnetGatewayImpl(String name, AppServiceManager manager) { + VnetGatewayImpl(String name, WebManager manager) { super(name, new VnetGatewayInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class VnetGatewayImpl extends CreatableUpdatableImpl implements VnetInfo { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String vnetName; - VnetInfoImpl(VnetInfoInner inner, AppServiceManager manager) { + VnetInfoImpl(VnetInfoInner inner, WebManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "serverfarms"); this.vnetName = IdParsingUtils.getValueFromIdByName(inner.id(), "virtualNetworkConnections"); } @Override - public AppServiceManager manager() { + public WebManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetRouteImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetRouteImpl.java index b12e0dfccea0e..c42b0786818a9 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetRouteImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/VnetRouteImpl.java @@ -14,13 +14,13 @@ import com.microsoft.azure.management.appservice.v2016_09_01.RouteType; class VnetRouteImpl extends CreatableUpdatableImpl implements VnetRoute, VnetRoute.Definition, VnetRoute.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String vnetName; private String routeName; - VnetRouteImpl(String name, AppServiceManager manager) { + VnetRouteImpl(String name, WebManager manager) { super(name, new VnetRouteInner()); this.manager = manager; // Set resource name @@ -28,12 +28,12 @@ class VnetRouteImpl extends CreatableUpdatableImpl { + private AppServiceEnvironments appServiceEnvironments; + private AppServicePlans appServicePlans; + /** + * Get a Configurable instance that can be used to create WebManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new WebManager.ConfigurableImpl(); + } + /** + * Creates an instance of WebManager that exposes Web resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the WebManager + */ + public static WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new WebManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of WebManager that exposes Web resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the WebManager + */ + public static WebManager authenticate(RestClient restClient, String subscriptionId) { + return new WebManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of WebManager that exposes Web management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing Web management API entry points that work across subscriptions + */ + WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage AppServiceEnvironments. + */ + public AppServiceEnvironments appServiceEnvironments() { + if (this.appServiceEnvironments == null) { + this.appServiceEnvironments = new AppServiceEnvironmentsImpl(this); + } + return this.appServiceEnvironments; + } + + /** + * @return Entry point to manage AppServicePlans. + */ + public AppServicePlans appServicePlans() { + if (this.appServicePlans == null) { + this.appServicePlans = new AppServicePlansImpl(this); + } + return this.appServicePlans; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public WebManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return WebManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private WebManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new WebSiteManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WebSiteManagementClientImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WebSiteManagementClientImpl.java index 7f27a4cb9c788..3080b571c2e98 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WebSiteManagementClientImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WebSiteManagementClientImpl.java @@ -63,11 +63,11 @@ public String apiVersion() { return this.apiVersion; } - /** Gets or sets the preferred language for the response. */ + /** The preferred language for the response. */ private String acceptLanguage; /** - * Gets Gets or sets the preferred language for the response. + * Gets The preferred language for the response. * * @return the acceptLanguage value. */ @@ -76,7 +76,7 @@ public String acceptLanguage() { } /** - * Sets Gets or sets the preferred language for the response. + * Sets The preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself @@ -86,11 +86,11 @@ public WebSiteManagementClientImpl withAcceptLanguage(String acceptLanguage) { return this; } - /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ private int longRunningOperationRetryTimeout; /** - * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */ @@ -99,7 +99,7 @@ public int longRunningOperationRetryTimeout() { } /** - * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself @@ -109,11 +109,11 @@ public WebSiteManagementClientImpl withLongRunningOperationRetryTimeout(int long return this; } - /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ private boolean generateClientRequestId; /** - * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @return the generateClientRequestId value. */ @@ -122,7 +122,7 @@ public boolean generateClientRequestId() { } /** - * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself @@ -205,6 +205,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "WebSiteManagementClient", "2016-09-01"); + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "WebSiteManagementClient", "2016-09-01"); } } diff --git a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WorkerPoolsImpl.java b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WorkerPoolsImpl.java index abf4e6b339914..f16d1202ef1aa 100644 --- a/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WorkerPoolsImpl.java +++ b/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/WorkerPoolsImpl.java @@ -16,12 +16,12 @@ import com.microsoft.azure.management.appservice.v2016_09_01.SkuDescription; class WorkerPoolsImpl extends CreatableUpdatableImpl implements WorkerPools, WorkerPools.Definition, WorkerPools.Update { - private final AppServiceManager manager; + private final WebManager manager; private String resourceGroupName; private String name; private String workerPoolName; - WorkerPoolsImpl(String name, AppServiceManager manager) { + WorkerPoolsImpl(String name, WebManager manager) { super(name, new WorkerPoolResourceInner()); this.manager = manager; // Set resource name @@ -29,12 +29,12 @@ class WorkerPoolsImpl extends CreatableUpdatableImpl - - 4.0.0 - com.microsoft.azure.appservice.v2018_02_01 - - com.microsoft.azure - azure-arm-parent - 1.0.0 - ../../../pom.xml - - azure-mgmt-appservice - 1.0.0-beta - jar - Microsoft Azure SDK for CertificateRegistration Management - This package contains Microsoft CertificateRegistration Management SDK. - https://github.com/Azure/azure-libraries-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.appservice.v2018_02_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-certificateregistration + 1.0.0-beta + jar + Microsoft Azure SDK for CertificateRegistration Management + This package contains Microsoft CertificateRegistration 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.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AddressResponse.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AddressResponse.java index 485fc53406280..3efba1b64ced7 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AddressResponse.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AddressResponse.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AddressResponseInner; import java.util.List; /** * Type representing AddressResponse. */ -public interface AddressResponse extends HasInner, HasManager { +public interface AddressResponse extends HasInner, HasManager { /** * @return the internalIpAddress value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AnalysisDefinition.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AnalysisDefinition.java index 5dca9b069cae8..13c1bc9081cbb 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AnalysisDefinition.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AnalysisDefinition.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AnalysisDefinitionInner; /** * Type representing AnalysisDefinition. */ -public interface AnalysisDefinition extends HasInner, HasManager { +public interface AnalysisDefinition extends HasInner, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateOrder.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateOrder.java index 9fc35038dbdec..f37708b8bed2d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateOrder.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateOrder.java @@ -17,7 +17,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.Map; import org.joda.time.DateTime; import java.util.List; @@ -26,7 +26,7 @@ /** * Type representing AppServiceCertificateOrder. */ -public interface AppServiceCertificateOrder extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface AppServiceCertificateOrder extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the appServiceCertificateNotRenewableReasons value. */ @@ -155,76 +155,92 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup certificates); } /** - * The stage of the appservicecertificateorder update allowing to specify Csr. + * The stage of the appservicecertificateorder definition allowing to specify Csr. */ interface WithCsr { /** * Specifies csr. + * @param csr Last CSR that was created for this order + * @return the next definition stage */ WithCreate withCsr(String csr); } /** - * The stage of the appservicecertificateorder update allowing to specify DistinguishedName. + * The stage of the appservicecertificateorder definition allowing to specify DistinguishedName. */ interface WithDistinguishedName { /** * Specifies distinguishedName. + * @param distinguishedName Certificate distinguished name + * @return the next definition stage */ WithCreate withDistinguishedName(String distinguishedName); } /** - * The stage of the appservicecertificateorder update allowing to specify KeySize. + * The stage of the appservicecertificateorder definition allowing to specify KeySize. */ interface WithKeySize { /** * Specifies keySize. + * @param keySize Certificate key size + * @return the next definition stage */ WithCreate withKeySize(Integer keySize); } /** - * The stage of the appservicecertificateorder update allowing to specify Kind. + * The stage of the appservicecertificateorder definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } /** - * The stage of the appservicecertificateorder update allowing to specify ValidityInYears. + * The stage of the appservicecertificateorder definition allowing to specify ValidityInYears. */ interface WithValidityInYears { /** * Specifies validityInYears. + * @param validityInYears Duration in years (must be between 1 and 3) + * @return the next definition stage */ WithCreate withValidityInYears(Integer validityInYears); } @@ -248,71 +264,85 @@ interface Update extends Appliable, Resource.UpdateW */ interface UpdateStages { /** - * The stage of the appservicecertificateorder {0} allowing to specify AutoRenew. + * The stage of the appservicecertificateorder update allowing to specify AutoRenew. */ interface WithAutoRenew { /** * Specifies autoRenew. + * @param autoRenew <code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code> + * @return the next update stage */ Update withAutoRenew(Boolean autoRenew); } /** - * The stage of the appservicecertificateorder {0} allowing to specify Certificates. + * The stage of the appservicecertificateorder update allowing to specify Certificates. */ interface WithCertificates { /** * Specifies certificates. + * @param certificates State of the Key Vault secret + * @return the next update stage */ Update withCertificates(Map certificates); } /** - * The stage of the appservicecertificateorder {0} allowing to specify Csr. + * The stage of the appservicecertificateorder update allowing to specify Csr. */ interface WithCsr { /** * Specifies csr. + * @param csr Last CSR that was created for this order + * @return the next update stage */ Update withCsr(String csr); } /** - * The stage of the appservicecertificateorder {0} allowing to specify DistinguishedName. + * The stage of the appservicecertificateorder update allowing to specify DistinguishedName. */ interface WithDistinguishedName { /** * Specifies distinguishedName. + * @param distinguishedName Certificate distinguished name + * @return the next update stage */ Update withDistinguishedName(String distinguishedName); } /** - * The stage of the appservicecertificateorder {0} allowing to specify KeySize. + * The stage of the appservicecertificateorder update allowing to specify KeySize. */ interface WithKeySize { /** * Specifies keySize. + * @param keySize Certificate key size + * @return the next update stage */ Update withKeySize(Integer keySize); } /** - * The stage of the appservicecertificateorder {0} allowing to specify Kind. + * The stage of the appservicecertificateorder update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the appservicecertificateorder {0} allowing to specify ValidityInYears. + * The stage of the appservicecertificateorder update allowing to specify ValidityInYears. */ interface WithValidityInYears { /** * Specifies validityInYears. + * @param validityInYears Duration in years (must be between 1 and 3) + * @return the next update stage */ Update withValidityInYears(Integer validityInYears); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateResource.java index 87645d5070726..7ef546e2742fd 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceCertificateResource.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.Map; /** * Type representing AppServiceCertificateResource. */ -public interface AppServiceCertificateResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface AppServiceCertificateResource extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -90,6 +90,9 @@ interface Blank extends WithCertificateOrder { interface WithCertificateOrder { /** * Specifies resourceGroupName, certificateOrderName. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param certificateOrderName Name of the certificate order + * @return the next definition stage */ WithLocation withExistingCertificateOrder(String resourceGroupName, String certificateOrderName); } @@ -100,6 +103,8 @@ interface WithCertificateOrder { interface WithLocation { /** * Specifies location. + * @param location Resource Location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -110,6 +115,8 @@ interface WithLocation { interface WithKeyVaultId { /** * Specifies keyVaultId. + * @param keyVaultId Key Vault resource Id + * @return the next definition stage */ WithCreate withKeyVaultId(String keyVaultId); } @@ -120,6 +127,8 @@ interface WithKeyVaultId { interface WithKeyVaultSecretName { /** * Specifies keyVaultSecretName. + * @param keyVaultSecretName Key Vault secret name + * @return the next definition stage */ WithCreate withKeyVaultSecretName(String keyVaultSecretName); } @@ -130,6 +139,8 @@ interface WithKeyVaultSecretName { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -140,6 +151,8 @@ interface WithKind { interface WithTags { /** * Specifies tags. + * @param tags Resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -168,6 +181,8 @@ interface UpdateStages { interface WithKeyVaultId { /** * Specifies keyVaultId. + * @param keyVaultId Key Vault resource Id + * @return the next update stage */ Update withKeyVaultId(String keyVaultId); } @@ -178,6 +193,8 @@ interface WithKeyVaultId { interface WithKeyVaultSecretName { /** * Specifies keyVaultSecretName. + * @param keyVaultSecretName Key Vault secret name + * @return the next update stage */ Update withKeyVaultSecretName(String keyVaultSecretName); } @@ -188,6 +205,8 @@ interface WithKeyVaultSecretName { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentPatchResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentPatchResource.java index 85e4aa56be023..2944621532eb9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentPatchResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentPatchResource.java @@ -14,7 +14,7 @@ import com.microsoft.rest.serializer.JsonFlatten; /** - * ARM resource for a app service enviroment. + * ARM resource for a app service environment. */ @JsonFlatten public class AppServiceEnvironmentPatchResource extends ProxyOnlyResource { @@ -259,6 +259,19 @@ public class AppServiceEnvironmentPatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.hasLinuxWorkers") private Boolean hasLinuxWorkers; + /** + * Key Vault ID for ILB App Service Environment default SSL certificate. + */ + @JsonProperty(value = "properties.sslCertKeyVaultId") + private String sslCertKeyVaultId; + + /** + * Key Vault Secret Name for ILB App Service Environment default SSL + * certificate. + */ + @JsonProperty(value = "properties.sslCertKeyVaultSecretName") + private String sslCertKeyVaultSecretName; + /** * Get name of the App Service Environment. * @@ -816,4 +829,44 @@ public AppServiceEnvironmentPatchResource withHasLinuxWorkers(Boolean hasLinuxWo return this; } + /** + * Get key Vault ID for ILB App Service Environment default SSL certificate. + * + * @return the sslCertKeyVaultId value + */ + public String sslCertKeyVaultId() { + return this.sslCertKeyVaultId; + } + + /** + * Set key Vault ID for ILB App Service Environment default SSL certificate. + * + * @param sslCertKeyVaultId the sslCertKeyVaultId value to set + * @return the AppServiceEnvironmentPatchResource object itself. + */ + public AppServiceEnvironmentPatchResource withSslCertKeyVaultId(String sslCertKeyVaultId) { + this.sslCertKeyVaultId = sslCertKeyVaultId; + return this; + } + + /** + * Get key Vault Secret Name for ILB App Service Environment default SSL certificate. + * + * @return the sslCertKeyVaultSecretName value + */ + public String sslCertKeyVaultSecretName() { + return this.sslCertKeyVaultSecretName; + } + + /** + * Set key Vault Secret Name for ILB App Service Environment default SSL certificate. + * + * @param sslCertKeyVaultSecretName the sslCertKeyVaultSecretName value to set + * @return the AppServiceEnvironmentPatchResource object itself. + */ + public AppServiceEnvironmentPatchResource withSslCertKeyVaultSecretName(String sslCertKeyVaultSecretName) { + this.sslCertKeyVaultSecretName = sslCertKeyVaultSecretName; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentResource.java index 0e419786197cb..135df8dcd5909 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironmentResource.java @@ -17,7 +17,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.StampCapacityInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceEnvironmentResourceInner; @@ -25,7 +25,7 @@ /** * Type representing AppServiceEnvironmentResource. */ -public interface AppServiceEnvironmentResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface AppServiceEnvironmentResource extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the allowedMultiSizes value. */ @@ -161,6 +161,16 @@ public interface AppServiceEnvironmentResource extends HasInner workerPools); } /** - * The stage of the appserviceenvironmentresource update allowing to specify ApiManagementAccountId. + * The stage of the appserviceenvironmentresource definition allowing to specify ApiManagementAccountId. */ interface WithApiManagementAccountId { /** * Specifies apiManagementAccountId. + * @param apiManagementAccountId API Management Account associated with the App Service Environment + * @return the next definition stage */ WithCreate withApiManagementAccountId(String apiManagementAccountId); } /** - * The stage of the appserviceenvironmentresource update allowing to specify ClusterSettings. + * The stage of the appserviceenvironmentresource definition allowing to specify ClusterSettings. */ interface WithClusterSettings { /** * Specifies clusterSettings. + * @param clusterSettings Custom settings for changing the behavior of the App Service Environment + * @return the next definition stage */ WithCreate withClusterSettings(List clusterSettings); } /** - * The stage of the appserviceenvironmentresource update allowing to specify DnsSuffix. + * The stage of the appserviceenvironmentresource definition allowing to specify DnsSuffix. */ interface WithDnsSuffix { /** * Specifies dnsSuffix. + * @param dnsSuffix DNS suffix of the App Service Environment + * @return the next definition stage */ WithCreate withDnsSuffix(String dnsSuffix); } /** - * The stage of the appserviceenvironmentresource update allowing to specify DynamicCacheEnabled. + * The stage of the appserviceenvironmentresource definition allowing to specify DynamicCacheEnabled. */ interface WithDynamicCacheEnabled { /** * Specifies dynamicCacheEnabled. + * @param dynamicCacheEnabled True/false indicating whether the App Service Environment is suspended. The environment can be suspended e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next definition stage */ WithCreate withDynamicCacheEnabled(Boolean dynamicCacheEnabled); } /** - * The stage of the appserviceenvironmentresource update allowing to specify FrontEndScaleFactor. + * The stage of the appserviceenvironmentresource definition allowing to specify FrontEndScaleFactor. */ interface WithFrontEndScaleFactor { /** * Specifies frontEndScaleFactor. + * @param frontEndScaleFactor Scale factor for front-ends + * @return the next definition stage */ WithCreate withFrontEndScaleFactor(Integer frontEndScaleFactor); } /** - * The stage of the appserviceenvironmentresource update allowing to specify HasLinuxWorkers. + * The stage of the appserviceenvironmentresource definition allowing to specify HasLinuxWorkers. */ interface WithHasLinuxWorkers { /** * Specifies hasLinuxWorkers. + * @param hasLinuxWorkers Flag that displays whether an ASE has linux workers or not + * @return the next definition stage */ WithCreate withHasLinuxWorkers(Boolean hasLinuxWorkers); } /** - * The stage of the appserviceenvironmentresource update allowing to specify InternalLoadBalancingMode. + * The stage of the appserviceenvironmentresource definition allowing to specify InternalLoadBalancingMode. */ interface WithInternalLoadBalancingMode { /** * Specifies internalLoadBalancingMode. + * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values include: 'None', 'Web', 'Publishing' + * @return the next definition stage */ WithCreate withInternalLoadBalancingMode(InternalLoadBalancingMode internalLoadBalancingMode); } /** - * The stage of the appserviceenvironmentresource update allowing to specify IpsslAddressCount. + * The stage of the appserviceenvironmentresource definition allowing to specify IpsslAddressCount. */ interface WithIpsslAddressCount { /** * Specifies ipsslAddressCount. + * @param ipsslAddressCount Number of IP SSL addresses reserved for the App Service Environment + * @return the next definition stage */ WithCreate withIpsslAddressCount(Integer ipsslAddressCount); } /** - * The stage of the appserviceenvironmentresource update allowing to specify Kind. + * The stage of the appserviceenvironmentresource definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } /** - * The stage of the appserviceenvironmentresource update allowing to specify MultiRoleCount. + * The stage of the appserviceenvironmentresource definition allowing to specify MultiRoleCount. */ interface WithMultiRoleCount { /** * Specifies multiRoleCount. + * @param multiRoleCount Number of front-end instances + * @return the next definition stage */ WithCreate withMultiRoleCount(Integer multiRoleCount); } /** - * The stage of the appserviceenvironmentresource update allowing to specify MultiSize. + * The stage of the appserviceenvironmentresource definition allowing to specify MultiSize. */ interface WithMultiSize { /** * Specifies multiSize. + * @param multiSize Front-end VM size, e.g. "Medium", "Large" + * @return the next definition stage */ WithCreate withMultiSize(String multiSize); } /** - * The stage of the appserviceenvironmentresource update allowing to specify NetworkAccessControlList. + * The stage of the appserviceenvironmentresource definition allowing to specify NetworkAccessControlList. */ interface WithNetworkAccessControlList { /** * Specifies networkAccessControlList. + * @param networkAccessControlList Access control list for controlling traffic to the App Service Environment + * @return the next definition stage */ WithCreate withNetworkAccessControlList(List networkAccessControlList); } /** - * The stage of the appserviceenvironmentresource update allowing to specify Suspended. + * The stage of the appserviceenvironmentresource definition allowing to specify SslCertKeyVaultId. + */ + interface WithSslCertKeyVaultId { + /** + * Specifies sslCertKeyVaultId. + * @param sslCertKeyVaultId Key Vault ID for ILB App Service Environment default SSL certificate + * @return the next definition stage + */ + WithCreate withSslCertKeyVaultId(String sslCertKeyVaultId); + } + + /** + * The stage of the appserviceenvironmentresource definition allowing to specify SslCertKeyVaultSecretName. + */ + interface WithSslCertKeyVaultSecretName { + /** + * Specifies sslCertKeyVaultSecretName. + * @param sslCertKeyVaultSecretName Key Vault Secret Name for ILB App Service Environment default SSL certificate + * @return the next definition stage + */ + WithCreate withSslCertKeyVaultSecretName(String sslCertKeyVaultSecretName); + } + + /** + * The stage of the appserviceenvironmentresource definition allowing to specify Suspended. */ interface WithSuspended { /** * Specifies suspended. + * @param suspended <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next definition stage */ WithCreate withSuspended(Boolean suspended); } /** - * The stage of the appserviceenvironmentresource update allowing to specify UserWhitelistedIpRanges. + * The stage of the appserviceenvironmentresource definition allowing to specify UserWhitelistedIpRanges. */ interface WithUserWhitelistedIpRanges { /** * Specifies userWhitelistedIpRanges. + * @param userWhitelistedIpRanges User added ip ranges to whitelist on ASE db + * @return the next definition stage */ WithCreate withUserWhitelistedIpRanges(List userWhitelistedIpRanges); } /** - * The stage of the appserviceenvironmentresource update allowing to specify VnetName. + * The stage of the appserviceenvironmentresource definition allowing to specify VnetName. */ interface WithVnetName { /** * Specifies vnetName. + * @param vnetName Name of the Virtual Network for the App Service Environment + * @return the next definition stage */ WithCreate withVnetName(String vnetName); } /** - * The stage of the appserviceenvironmentresource update allowing to specify VnetResourceGroupName. + * The stage of the appserviceenvironmentresource definition allowing to specify VnetResourceGroupName. */ interface WithVnetResourceGroupName { /** * Specifies vnetResourceGroupName. + * @param vnetResourceGroupName Resource group of the Virtual Network + * @return the next definition stage */ WithCreate withVnetResourceGroupName(String vnetResourceGroupName); } /** - * The stage of the appserviceenvironmentresource update allowing to specify VnetSubnetName. + * The stage of the appserviceenvironmentresource definition allowing to specify VnetSubnetName. */ interface WithVnetSubnetName { /** * Specifies vnetSubnetName. + * @param vnetSubnetName Subnet of the Virtual Network + * @return the next definition stage */ WithCreate withVnetSubnetName(String vnetSubnetName); } @@ -453,13 +531,13 @@ interface WithVnetSubnetName { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithApiManagementAccountId, DefinitionStages.WithClusterSettings, DefinitionStages.WithDnsSuffix, DefinitionStages.WithDynamicCacheEnabled, DefinitionStages.WithFrontEndScaleFactor, DefinitionStages.WithHasLinuxWorkers, DefinitionStages.WithInternalLoadBalancingMode, DefinitionStages.WithIpsslAddressCount, DefinitionStages.WithKind, DefinitionStages.WithMultiRoleCount, DefinitionStages.WithMultiSize, DefinitionStages.WithNetworkAccessControlList, DefinitionStages.WithSuspended, DefinitionStages.WithUserWhitelistedIpRanges, DefinitionStages.WithVnetName, DefinitionStages.WithVnetResourceGroupName, DefinitionStages.WithVnetSubnetName { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithApiManagementAccountId, DefinitionStages.WithClusterSettings, DefinitionStages.WithDnsSuffix, DefinitionStages.WithDynamicCacheEnabled, DefinitionStages.WithFrontEndScaleFactor, DefinitionStages.WithHasLinuxWorkers, DefinitionStages.WithInternalLoadBalancingMode, DefinitionStages.WithIpsslAddressCount, DefinitionStages.WithKind, DefinitionStages.WithMultiRoleCount, DefinitionStages.WithMultiSize, DefinitionStages.WithNetworkAccessControlList, DefinitionStages.WithSslCertKeyVaultId, DefinitionStages.WithSslCertKeyVaultSecretName, DefinitionStages.WithSuspended, DefinitionStages.WithUserWhitelistedIpRanges, DefinitionStages.WithVnetName, DefinitionStages.WithVnetResourceGroupName, DefinitionStages.WithVnetSubnetName { } } /** * The template for a AppServiceEnvironmentResource update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithApiManagementAccountId, UpdateStages.WithClusterSettings, UpdateStages.WithDnsSuffix, UpdateStages.WithDynamicCacheEnabled, UpdateStages.WithFrontEndScaleFactor, UpdateStages.WithHasLinuxWorkers, UpdateStages.WithInternalLoadBalancingMode, UpdateStages.WithIpsslAddressCount, UpdateStages.WithKind, UpdateStages.WithMultiRoleCount, UpdateStages.WithMultiSize, UpdateStages.WithNetworkAccessControlList, UpdateStages.WithSuspended, UpdateStages.WithUserWhitelistedIpRanges, UpdateStages.WithVnetName, UpdateStages.WithVnetResourceGroupName, UpdateStages.WithVnetSubnetName { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithApiManagementAccountId, UpdateStages.WithClusterSettings, UpdateStages.WithDnsSuffix, UpdateStages.WithDynamicCacheEnabled, UpdateStages.WithFrontEndScaleFactor, UpdateStages.WithHasLinuxWorkers, UpdateStages.WithInternalLoadBalancingMode, UpdateStages.WithIpsslAddressCount, UpdateStages.WithKind, UpdateStages.WithMultiRoleCount, UpdateStages.WithMultiSize, UpdateStages.WithNetworkAccessControlList, UpdateStages.WithSslCertKeyVaultId, UpdateStages.WithSslCertKeyVaultSecretName, UpdateStages.WithSuspended, UpdateStages.WithUserWhitelistedIpRanges, UpdateStages.WithVnetName, UpdateStages.WithVnetResourceGroupName, UpdateStages.WithVnetSubnetName { } /** @@ -467,171 +545,231 @@ interface Update extends Appliable, Resource.Upda */ interface UpdateStages { /** - * The stage of the appserviceenvironmentresource {0} allowing to specify ApiManagementAccountId. + * The stage of the appserviceenvironmentresource update allowing to specify ApiManagementAccountId. */ interface WithApiManagementAccountId { /** * Specifies apiManagementAccountId. + * @param apiManagementAccountId API Management Account associated with the App Service Environment + * @return the next update stage */ Update withApiManagementAccountId(String apiManagementAccountId); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify ClusterSettings. + * The stage of the appserviceenvironmentresource update allowing to specify ClusterSettings. */ interface WithClusterSettings { /** * Specifies clusterSettings. + * @param clusterSettings Custom settings for changing the behavior of the App Service Environment + * @return the next update stage */ Update withClusterSettings(List clusterSettings); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify DnsSuffix. + * The stage of the appserviceenvironmentresource update allowing to specify DnsSuffix. */ interface WithDnsSuffix { /** * Specifies dnsSuffix. + * @param dnsSuffix DNS suffix of the App Service Environment + * @return the next update stage */ Update withDnsSuffix(String dnsSuffix); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify DynamicCacheEnabled. + * The stage of the appserviceenvironmentresource update allowing to specify DynamicCacheEnabled. */ interface WithDynamicCacheEnabled { /** * Specifies dynamicCacheEnabled. + * @param dynamicCacheEnabled True/false indicating whether the App Service Environment is suspended. The environment can be suspended e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next update stage */ Update withDynamicCacheEnabled(Boolean dynamicCacheEnabled); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify FrontEndScaleFactor. + * The stage of the appserviceenvironmentresource update allowing to specify FrontEndScaleFactor. */ interface WithFrontEndScaleFactor { /** * Specifies frontEndScaleFactor. + * @param frontEndScaleFactor Scale factor for front-ends + * @return the next update stage */ Update withFrontEndScaleFactor(Integer frontEndScaleFactor); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify HasLinuxWorkers. + * The stage of the appserviceenvironmentresource update allowing to specify HasLinuxWorkers. */ interface WithHasLinuxWorkers { /** * Specifies hasLinuxWorkers. + * @param hasLinuxWorkers Flag that displays whether an ASE has linux workers or not + * @return the next update stage */ Update withHasLinuxWorkers(Boolean hasLinuxWorkers); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify InternalLoadBalancingMode. + * The stage of the appserviceenvironmentresource update allowing to specify InternalLoadBalancingMode. */ interface WithInternalLoadBalancingMode { /** * Specifies internalLoadBalancingMode. + * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values include: 'None', 'Web', 'Publishing' + * @return the next update stage */ Update withInternalLoadBalancingMode(InternalLoadBalancingMode internalLoadBalancingMode); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify IpsslAddressCount. + * The stage of the appserviceenvironmentresource update allowing to specify IpsslAddressCount. */ interface WithIpsslAddressCount { /** * Specifies ipsslAddressCount. + * @param ipsslAddressCount Number of IP SSL addresses reserved for the App Service Environment + * @return the next update stage */ Update withIpsslAddressCount(Integer ipsslAddressCount); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify Kind. + * The stage of the appserviceenvironmentresource update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify MultiRoleCount. + * The stage of the appserviceenvironmentresource update allowing to specify MultiRoleCount. */ interface WithMultiRoleCount { /** * Specifies multiRoleCount. + * @param multiRoleCount Number of front-end instances + * @return the next update stage */ Update withMultiRoleCount(Integer multiRoleCount); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify MultiSize. + * The stage of the appserviceenvironmentresource update allowing to specify MultiSize. */ interface WithMultiSize { /** * Specifies multiSize. + * @param multiSize Front-end VM size, e.g. "Medium", "Large" + * @return the next update stage */ Update withMultiSize(String multiSize); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify NetworkAccessControlList. + * The stage of the appserviceenvironmentresource update allowing to specify NetworkAccessControlList. */ interface WithNetworkAccessControlList { /** * Specifies networkAccessControlList. + * @param networkAccessControlList Access control list for controlling traffic to the App Service Environment + * @return the next update stage */ Update withNetworkAccessControlList(List networkAccessControlList); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify Suspended. + * The stage of the appserviceenvironmentresource update allowing to specify SslCertKeyVaultId. + */ + interface WithSslCertKeyVaultId { + /** + * Specifies sslCertKeyVaultId. + * @param sslCertKeyVaultId Key Vault ID for ILB App Service Environment default SSL certificate + * @return the next update stage + */ + Update withSslCertKeyVaultId(String sslCertKeyVaultId); + } + + /** + * The stage of the appserviceenvironmentresource update allowing to specify SslCertKeyVaultSecretName. + */ + interface WithSslCertKeyVaultSecretName { + /** + * Specifies sslCertKeyVaultSecretName. + * @param sslCertKeyVaultSecretName Key Vault Secret Name for ILB App Service Environment default SSL certificate + * @return the next update stage + */ + Update withSslCertKeyVaultSecretName(String sslCertKeyVaultSecretName); + } + + /** + * The stage of the appserviceenvironmentresource update allowing to specify Suspended. */ interface WithSuspended { /** * Specifies suspended. + * @param suspended <code>true</code> if the App Service Environment is suspended; otherwise, <code>false</code>. The environment can be suspended, e.g. when the management endpoint is no longer available + (most likely because NSG blocked the incoming traffic) + * @return the next update stage */ Update withSuspended(Boolean suspended); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify UserWhitelistedIpRanges. + * The stage of the appserviceenvironmentresource update allowing to specify UserWhitelistedIpRanges. */ interface WithUserWhitelistedIpRanges { /** * Specifies userWhitelistedIpRanges. + * @param userWhitelistedIpRanges User added ip ranges to whitelist on ASE db + * @return the next update stage */ Update withUserWhitelistedIpRanges(List userWhitelistedIpRanges); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify VnetName. + * The stage of the appserviceenvironmentresource update allowing to specify VnetName. */ interface WithVnetName { /** * Specifies vnetName. + * @param vnetName Name of the Virtual Network for the App Service Environment + * @return the next update stage */ Update withVnetName(String vnetName); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify VnetResourceGroupName. + * The stage of the appserviceenvironmentresource update allowing to specify VnetResourceGroupName. */ interface WithVnetResourceGroupName { /** * Specifies vnetResourceGroupName. + * @param vnetResourceGroupName Resource group of the Virtual Network + * @return the next update stage */ Update withVnetResourceGroupName(String vnetResourceGroupName); } /** - * The stage of the appserviceenvironmentresource {0} allowing to specify VnetSubnetName. + * The stage of the appserviceenvironmentresource update allowing to specify VnetSubnetName. */ interface WithVnetSubnetName { /** * Specifies vnetSubnetName. + * @param vnetSubnetName Subnet of the Virtual Network + * @return the next update stage */ Update withVnetSubnetName(String vnetSubnetName); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironments.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironments.java index 6ae9355a3a028..9e229fc96461a 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironments.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServiceEnvironments.java @@ -12,10 +12,12 @@ import com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironmentResource; import rx.Completable; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentDiagnostics; +import com.microsoft.azure.management.appservice.v2018_02_01.InboundEnvironmentEndpoint; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentResourceMetric; import com.microsoft.azure.management.appservice.v2018_02_01.MultiRolePools; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.WorkerPoolResourceInner; import com.microsoft.azure.management.appservice.v2018_02_01.Operation; +import com.microsoft.azure.management.appservice.v2018_02_01.OutboundEnvironmentEndpoint; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentAppServicePlan; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentSite; import com.microsoft.azure.management.appservice.v2018_02_01.WorkerPools; @@ -124,17 +126,6 @@ public interface AppServiceEnvironments { */ Observable suspendAsync(final String resourceGroupName, final String name); - /** - * Resume an App Service Environment. - * Resume an App Service Environment. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the App Service Environment. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Completable syncVirtualNetworkInfoAsync(String resourceGroupName, String name); - /** * Get the used, available, and total worker capacity an App Service Environment. * Get the used, available, and total worker capacity an App Service Environment. @@ -180,6 +171,17 @@ public interface AppServiceEnvironments { */ Observable listDiagnosticsAsync(String resourceGroupName, String name); + /** + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getInboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name); + /** * Get global metric definitions of an App Service Environment. * Get global metric definitions of an App Service Environment. @@ -412,6 +414,17 @@ public interface AppServiceEnvironments { */ Observable listOperationsAsync(String resourceGroupName, String name); + /** + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getOutboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name); + /** * Get all App Service plans in an App Service Environment. * Get all App Service plans in an App Service Environment. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlan.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlan.java index 26fe53862a56a..463be1f89666c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlan.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlan.java @@ -17,18 +17,18 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServicePlanInner; /** * Type representing AppServicePlan. */ -public interface AppServicePlan extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface AppServicePlan extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** - * @return the adminSiteName value. + * @return the freeOfferExpirationTime value. */ - String adminSiteName(); + DateTime freeOfferExpirationTime(); /** * @return the geoRegion value. @@ -40,6 +40,11 @@ public interface AppServicePlan extends HasInner, Resource, */ HostingEnvironmentProfile hostingEnvironmentProfile(); + /** + * @return the hyperV value. + */ + Boolean hyperV(); + /** * @return the isSpot value. */ @@ -55,6 +60,11 @@ public interface AppServicePlan extends HasInner, Resource, */ String kind(); + /** + * @return the maximumElasticWorkerCount value. + */ + Integer maximumElasticWorkerCount(); + /** * @return the maximumNumberOfWorkers value. */ @@ -143,121 +153,170 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup, Resource.DefinitionWithTags, DefinitionStages.WithAdminSiteName, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithIsSpot, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithPerSiteScaling, DefinitionStages.WithReserved, DefinitionStages.WithSku, DefinitionStages.WithSpotExpirationTime, DefinitionStages.WithTargetWorkerCount, DefinitionStages.WithTargetWorkerSizeId, DefinitionStages.WithWorkerTierName { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithFreeOfferExpirationTime, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHyperV, DefinitionStages.WithIsSpot, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithMaximumElasticWorkerCount, DefinitionStages.WithPerSiteScaling, DefinitionStages.WithReserved, DefinitionStages.WithSku, DefinitionStages.WithSpotExpirationTime, DefinitionStages.WithTargetWorkerCount, DefinitionStages.WithTargetWorkerSizeId, DefinitionStages.WithWorkerTierName { } } /** * The template for a AppServicePlan update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAdminSiteName, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithIsSpot, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithPerSiteScaling, UpdateStages.WithReserved, UpdateStages.WithSpotExpirationTime, UpdateStages.WithTargetWorkerCount, UpdateStages.WithTargetWorkerSizeId, UpdateStages.WithWorkerTierName { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithFreeOfferExpirationTime, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHyperV, UpdateStages.WithIsSpot, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithMaximumElasticWorkerCount, UpdateStages.WithPerSiteScaling, UpdateStages.WithReserved, UpdateStages.WithSpotExpirationTime, UpdateStages.WithTargetWorkerCount, UpdateStages.WithTargetWorkerSizeId, UpdateStages.WithWorkerTierName { } /** @@ -281,111 +340,158 @@ interface Update extends Appliable, Resource.UpdateWithTags listByResourceGroupAsync(String resourceGroupName); /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request @@ -91,15 +91,15 @@ public interface AppServicePlans { Completable restartWebAppsAsync(String resourceGroupName, String name); /** - * Gets all selectable sku's for a given App Service Plan. - * Gets all selectable sku's for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of App Service Plan * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getServerFarmSkusAsync(String resourceGroupName, String name); + Observable getServerFarmSkusAsync(String resourceGroupName, String name); /** * List all capabilities of an App Service plan. @@ -162,7 +162,7 @@ public interface AppServicePlans { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName); + Observable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName); /** * Get the maximum number of Hybrid Connections allowed in an App Service plan. @@ -198,8 +198,8 @@ public interface AppServicePlans { Observable listMetricDefintionsAsync(final String resourceGroupName, final String name); /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ApplicationStack.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ApplicationStack.java index 18b4e53491e21..cc133eae793c1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ApplicationStack.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ApplicationStack.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ApplicationStackInner; import java.util.List; /** * Type representing ApplicationStack. */ -public interface ApplicationStack extends HasInner, HasManager { +public interface ApplicationStack extends HasInner, HasManager { /** * @return the dependency value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageInfoValue.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageInfoValue.java new file mode 100644 index 0000000000000..4cf1e5f2abf71 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageInfoValue.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Azure Files or Blob Storage access information value for dictionary storage. + */ +public class AzureStorageInfoValue { + /** + * Type of storage. Possible values include: 'AzureFiles', 'AzureBlob'. + */ + @JsonProperty(value = "type") + private AzureStorageType type; + + /** + * Name of the storage account. + */ + @JsonProperty(value = "accountName") + private String accountName; + + /** + * Name of the file share (container name, for Blob storage). + */ + @JsonProperty(value = "shareName") + private String shareName; + + /** + * Access key for the storage account. + */ + @JsonProperty(value = "accessKey") + private String accessKey; + + /** + * Path to mount the storage within the site's runtime environment. + */ + @JsonProperty(value = "mountPath") + private String mountPath; + + /** + * State of the storage account. Possible values include: 'Ok', + * 'InvalidCredentials', 'InvalidShare'. + */ + @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY) + private AzureStorageState state; + + /** + * Get type of storage. Possible values include: 'AzureFiles', 'AzureBlob'. + * + * @return the type value + */ + public AzureStorageType type() { + return this.type; + } + + /** + * Set type of storage. Possible values include: 'AzureFiles', 'AzureBlob'. + * + * @param type the type value to set + * @return the AzureStorageInfoValue object itself. + */ + public AzureStorageInfoValue withType(AzureStorageType type) { + this.type = type; + return this; + } + + /** + * Get name of the storage account. + * + * @return the accountName value + */ + public String accountName() { + return this.accountName; + } + + /** + * Set name of the storage account. + * + * @param accountName the accountName value to set + * @return the AzureStorageInfoValue object itself. + */ + public AzureStorageInfoValue withAccountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get name of the file share (container name, for Blob storage). + * + * @return the shareName value + */ + public String shareName() { + return this.shareName; + } + + /** + * Set name of the file share (container name, for Blob storage). + * + * @param shareName the shareName value to set + * @return the AzureStorageInfoValue object itself. + */ + public AzureStorageInfoValue withShareName(String shareName) { + this.shareName = shareName; + return this; + } + + /** + * Get access key for the storage account. + * + * @return the accessKey value + */ + public String accessKey() { + return this.accessKey; + } + + /** + * Set access key for the storage account. + * + * @param accessKey the accessKey value to set + * @return the AzureStorageInfoValue object itself. + */ + public AzureStorageInfoValue withAccessKey(String accessKey) { + this.accessKey = accessKey; + return this; + } + + /** + * Get path to mount the storage within the site's runtime environment. + * + * @return the mountPath value + */ + public String mountPath() { + return this.mountPath; + } + + /** + * Set path to mount the storage within the site's runtime environment. + * + * @param mountPath the mountPath value to set + * @return the AzureStorageInfoValue object itself. + */ + public AzureStorageInfoValue withMountPath(String mountPath) { + this.mountPath = mountPath; + return this; + } + + /** + * Get state of the storage account. Possible values include: 'Ok', 'InvalidCredentials', 'InvalidShare'. + * + * @return the state value + */ + public AzureStorageState state() { + return this.state; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStoragePropertyDictionaryResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStoragePropertyDictionaryResource.java new file mode 100644 index 0000000000000..71efa1e251ab9 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStoragePropertyDictionaryResource.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AzureStoragePropertyDictionaryResourceInner; +import java.util.Map; + +/** + * Type representing AzureStoragePropertyDictionaryResource. + */ +public interface AzureStoragePropertyDictionaryResource extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the kind value. + */ + String kind(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the properties value. + */ + Map properties(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageState.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageState.java new file mode 100644 index 0000000000000..f5dc6a73a8740 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageState.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AzureStorageState. + */ +public enum AzureStorageState { + /** Enum value Ok. */ + OK("Ok"), + + /** Enum value InvalidCredentials. */ + INVALID_CREDENTIALS("InvalidCredentials"), + + /** Enum value InvalidShare. */ + INVALID_SHARE("InvalidShare"); + + /** The actual serialized value for a AzureStorageState instance. */ + private String value; + + AzureStorageState(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AzureStorageState instance. + * + * @param value the serialized value to parse. + * @return the parsed AzureStorageState object, or null if unable to parse. + */ + @JsonCreator + public static AzureStorageState fromString(String value) { + AzureStorageState[] items = AzureStorageState.values(); + for (AzureStorageState item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageType.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageType.java new file mode 100644 index 0000000000000..03c6d639c0493 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AzureStorageType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AzureStorageType. + */ +public enum AzureStorageType { + /** Enum value AzureFiles. */ + AZURE_FILES("AzureFiles"), + + /** Enum value AzureBlob. */ + AZURE_BLOB("AzureBlob"); + + /** The actual serialized value for a AzureStorageType instance. */ + private String value; + + AzureStorageType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AzureStorageType instance. + * + * @param value the serialized value to parse. + * @return the parsed AzureStorageType object, or null if unable to parse. + */ + @JsonCreator + public static AzureStorageType fromString(String value) { + AzureStorageType[] items = AzureStorageType.values(); + for (AzureStorageType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupItem.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupItem.java index 767b07a6d6120..2e187093296af 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupItem.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupItem.java @@ -13,14 +13,14 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing BackupItem. */ -public interface BackupItem extends HasInner, Indexable, Refreshable, HasManager { +public interface BackupItem extends HasInner, Indexable, Refreshable, HasManager { /** * @return the backupId value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupRequest.java index 85afa6e8bf611..360067ff27a63 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/BackupRequest.java @@ -10,14 +10,19 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.BackupRequestInner; import java.util.List; /** * Type representing BackupRequest. */ -public interface BackupRequest extends HasInner, HasManager { +public interface BackupRequest extends HasInner, HasManager { + /** + * @return the backupName value. + */ + String backupName(); + /** * @return the backupSchedule value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Capability.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Capability.java index 23ab99b93c692..981235c3bd299 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Capability.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Capability.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CapabilityInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing Capability. */ -public interface Capability extends HasInner, HasManager { +public interface Capability extends HasInner, HasManager { /** * @return the name value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Certificate.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Certificate.java index bd1caf058e66c..29c5ad16b31ce 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Certificate.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Certificate.java @@ -17,7 +17,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateInner; @@ -25,7 +25,7 @@ /** * Type representing Certificate. */ -public interface Certificate extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface Certificate extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the cerBlob value. */ @@ -154,66 +154,80 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup hostNames); } /** - * The stage of the certificate update allowing to specify KeyVaultId. + * The stage of the certificate definition allowing to specify KeyVaultId. */ interface WithKeyVaultId { /** * Specifies keyVaultId. + * @param keyVaultId Key Vault Csm resource Id + * @return the next definition stage */ WithCreate withKeyVaultId(String keyVaultId); } /** - * The stage of the certificate update allowing to specify KeyVaultSecretName. + * The stage of the certificate definition allowing to specify KeyVaultSecretName. */ interface WithKeyVaultSecretName { /** * Specifies keyVaultSecretName. + * @param keyVaultSecretName Key Vault secret name + * @return the next definition stage */ WithCreate withKeyVaultSecretName(String keyVaultSecretName); } /** - * The stage of the certificate update allowing to specify Kind. + * The stage of the certificate definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } /** - * The stage of the certificate update allowing to specify PfxBlob. + * The stage of the certificate definition allowing to specify PfxBlob. */ interface WithPfxBlob { /** * Specifies pfxBlob. + * @param pfxBlob Pfx blob + * @return the next definition stage */ WithCreate withPfxBlob(byte[] pfxBlob); } /** - * The stage of the certificate update allowing to specify ServerFarmId. + * The stage of the certificate definition allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next definition stage */ WithCreate withServerFarmId(String serverFarmId); } @@ -237,61 +251,73 @@ interface Update extends Appliable, Resource.UpdateWithTags */ interface UpdateStages { /** - * The stage of the certificate {0} allowing to specify HostNames. + * The stage of the certificate update allowing to specify HostNames. */ interface WithHostNames { /** * Specifies hostNames. + * @param hostNames Host names the certificate applies to + * @return the next update stage */ Update withHostNames(List hostNames); } /** - * The stage of the certificate {0} allowing to specify KeyVaultId. + * The stage of the certificate update allowing to specify KeyVaultId. */ interface WithKeyVaultId { /** * Specifies keyVaultId. + * @param keyVaultId Key Vault Csm resource Id + * @return the next update stage */ Update withKeyVaultId(String keyVaultId); } /** - * The stage of the certificate {0} allowing to specify KeyVaultSecretName. + * The stage of the certificate update allowing to specify KeyVaultSecretName. */ interface WithKeyVaultSecretName { /** * Specifies keyVaultSecretName. + * @param keyVaultSecretName Key Vault secret name + * @return the next update stage */ Update withKeyVaultSecretName(String keyVaultSecretName); } /** - * The stage of the certificate {0} allowing to specify Kind. + * The stage of the certificate update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the certificate {0} allowing to specify PfxBlob. + * The stage of the certificate update allowing to specify PfxBlob. */ interface WithPfxBlob { /** * Specifies pfxBlob. + * @param pfxBlob Pfx blob + * @return the next update stage */ Update withPfxBlob(byte[] pfxBlob); } /** - * The stage of the certificate {0} allowing to specify ServerFarmId. + * The stage of the certificate update allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next update stage */ Update withServerFarmId(String serverFarmId); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateEmail.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateEmail.java index ec80ed12a7a7d..ee41cf862967f 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateEmail.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateEmail.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateEmailInner; import org.joda.time.DateTime; /** * Type representing CertificateEmail. */ -public interface CertificateEmail extends HasInner, HasManager { +public interface CertificateEmail extends HasInner, HasManager { /** * @return the emailId value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateOrderAction.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateOrderAction.java index 685e37dba2288..fb19f2476ace9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateOrderAction.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificateOrderAction.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateOrderActionInner; import org.joda.time.DateTime; /** * Type representing CertificateOrderAction. */ -public interface CertificateOrderAction extends HasInner, HasManager { +public interface CertificateOrderAction extends HasInner, HasManager { /** * @return the actionType value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificatePatchResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificatePatchResource.java index 61bca650c9319..3d36a1771fc16 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificatePatchResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CertificatePatchResource.java @@ -67,7 +67,7 @@ public class CertificatePatchResource extends ProxyOnlyResource { private DateTime issueDate; /** - * Certificate expriration date. + * Certificate expiration date. */ @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY) private DateTime expirationDate; @@ -234,7 +234,7 @@ public DateTime issueDate() { } /** - * Get certificate expriration date. + * Get certificate expiration date. * * @return the expirationDate value */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ConnectionStringDictionary.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ConnectionStringDictionary.java index 8ea9f5b96d859..01ba2521405b8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ConnectionStringDictionary.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ConnectionStringDictionary.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ConnectionStringDictionaryInner; import java.util.Map; /** * Type representing ConnectionStringDictionary. */ -public interface ConnectionStringDictionary extends HasInner, HasManager { +public interface ConnectionStringDictionary extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ContinuousWebJob.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ContinuousWebJob.java index 050f23d6af47f..552176beb2660 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ContinuousWebJob.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ContinuousWebJob.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.Map; /** * Type representing ContinuousWebJob. */ -public interface ContinuousWebJob extends HasInner, Indexable, Refreshable, HasManager { +public interface ContinuousWebJob extends HasInner, Indexable, Refreshable, HasManager { /** * @return the detailedStatus value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java index fa7d031a3c4e9..da8bc91cb228e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java @@ -23,6 +23,14 @@ public class CorsSettings { @JsonProperty(value = "allowedOrigins") private List allowedOrigins; + /** + * Gets or sets whether CORS requests with credentials are allowed. See + * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials + * for more details. + */ + @JsonProperty(value = "supportCredentials") + private Boolean supportCredentials; + /** * Get gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. @@ -45,4 +53,28 @@ public CorsSettings withAllowedOrigins(List allowedOrigins) { return this; } + /** + * Get gets or sets whether CORS requests with credentials are allowed. See + https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials + for more details. + * + * @return the supportCredentials value + */ + public Boolean supportCredentials() { + return this.supportCredentials; + } + + /** + * Set gets or sets whether CORS requests with credentials are allowed. See + https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials + for more details. + * + * @param supportCredentials the supportCredentials value to set + * @return the CorsSettings object itself. + */ + public CorsSettings withSupportCredentials(Boolean supportCredentials) { + this.supportCredentials = supportCredentials; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmOperationDescription.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmOperationDescription.java index 75a13a49e2e82..2079a42710656 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmOperationDescription.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmOperationDescription.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CsmOperationDescriptionInner; /** * Type representing CsmOperationDescription. */ -public interface CsmOperationDescription extends HasInner, HasManager { +public interface CsmOperationDescription extends HasInner, HasManager { /** * @return the display value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmPublishingProfileOptions.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmPublishingProfileOptions.java index 9d6f9e7e6eb62..3c1d6d2b006a2 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmPublishingProfileOptions.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CsmPublishingProfileOptions.java @@ -23,6 +23,12 @@ public class CsmPublishingProfileOptions { @JsonProperty(value = "format") private PublishingProfileFormat format; + /** + * Include the DisasterRecover endpoint if true. + */ + @JsonProperty(value = "includeDisasterRecoveryEndpoints") + private Boolean includeDisasterRecoveryEndpoints; + /** * Get name of the format. Valid values are: FileZilla3 @@ -49,4 +55,24 @@ public CsmPublishingProfileOptions withFormat(PublishingProfileFormat format) { return this; } + /** + * Get include the DisasterRecover endpoint if true. + * + * @return the includeDisasterRecoveryEndpoints value + */ + public Boolean includeDisasterRecoveryEndpoints() { + return this.includeDisasterRecoveryEndpoints; + } + + /** + * Set include the DisasterRecover endpoint if true. + * + * @param includeDisasterRecoveryEndpoints the includeDisasterRecoveryEndpoints value to set + * @return the CsmPublishingProfileOptions object itself. + */ + public CsmPublishingProfileOptions withIncludeDisasterRecoveryEndpoints(Boolean includeDisasterRecoveryEndpoints) { + this.includeDisasterRecoveryEndpoints = includeDisasterRecoveryEndpoints; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CustomHostnameAnalysisResult.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CustomHostnameAnalysisResult.java index 031ab18d82d50..44100102734cf 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CustomHostnameAnalysisResult.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CustomHostnameAnalysisResult.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CustomHostnameAnalysisResultInner; import java.util.List; /** * Type representing CustomHostnameAnalysisResult. */ -public interface CustomHostnameAnalysisResult extends HasInner, HasManager { +public interface CustomHostnameAnalysisResult extends HasInner, HasManager { /** * @return the alternateCNameRecords value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataSource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataSource.java index 6f7ed3d7faa87..f5d799abaa9d1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataSource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataSource.java @@ -16,7 +16,7 @@ */ public class DataSource { /** - * Instrunctions if any for the data source. + * Instructions if any for the data source. */ @JsonProperty(value = "instructions") private List instructions; @@ -28,7 +28,7 @@ public class DataSource { private List dataSourceUri; /** - * Get instrunctions if any for the data source. + * Get instructions if any for the data source. * * @return the instructions value */ @@ -37,7 +37,7 @@ public List instructions() { } /** - * Set instrunctions if any for the data source. + * Set instructions if any for the data source. * * @param instructions the instructions value to set * @return the DataSource object itself. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseColumn.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseColumn.java new file mode 100644 index 0000000000000..cc15a423f05dc --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseColumn.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Column definition. + */ +public class DataTableResponseColumn { + /** + * Name of the column. + */ + @JsonProperty(value = "columnName") + private String columnName; + + /** + * Data type which looks like 'String' or 'Int32'. + */ + @JsonProperty(value = "dataType") + private String dataType; + + /** + * Column Type. + */ + @JsonProperty(value = "columnType") + private String columnType; + + /** + * Get name of the column. + * + * @return the columnName value + */ + public String columnName() { + return this.columnName; + } + + /** + * Set name of the column. + * + * @param columnName the columnName value to set + * @return the DataTableResponseColumn object itself. + */ + public DataTableResponseColumn withColumnName(String columnName) { + this.columnName = columnName; + return this; + } + + /** + * Get data type which looks like 'String' or 'Int32'. + * + * @return the dataType value + */ + public String dataType() { + return this.dataType; + } + + /** + * Set data type which looks like 'String' or 'Int32'. + * + * @param dataType the dataType value to set + * @return the DataTableResponseColumn object itself. + */ + public DataTableResponseColumn withDataType(String dataType) { + this.dataType = dataType; + return this; + } + + /** + * Get column Type. + * + * @return the columnType value + */ + public String columnType() { + return this.columnType; + } + + /** + * Set column Type. + * + * @param columnType the columnType value to set + * @return the DataTableResponseColumn object itself. + */ + public DataTableResponseColumn withColumnType(String columnType) { + this.columnType = columnType; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseObject.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseObject.java new file mode 100644 index 0000000000000..238fa91161cc6 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseObject.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Data Table which defines columns and raw row values. + */ +public class DataTableResponseObject { + /** + * Name of the table. + */ + @JsonProperty(value = "tableName") + private String tableName; + + /** + * List of columns with data types. + */ + @JsonProperty(value = "columns") + private List columns; + + /** + * Raw row values. + */ + @JsonProperty(value = "rows") + private List> rows; + + /** + * Get name of the table. + * + * @return the tableName value + */ + public String tableName() { + return this.tableName; + } + + /** + * Set name of the table. + * + * @param tableName the tableName value to set + * @return the DataTableResponseObject object itself. + */ + public DataTableResponseObject withTableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** + * Get list of columns with data types. + * + * @return the columns value + */ + public List columns() { + return this.columns; + } + + /** + * Set list of columns with data types. + * + * @param columns the columns value to set + * @return the DataTableResponseObject object itself. + */ + public DataTableResponseObject withColumns(List columns) { + this.columns = columns; + return this; + } + + /** + * Get raw row values. + * + * @return the rows value + */ + public List> rows() { + return this.rows; + } + + /** + * Set raw row values. + * + * @param rows the rows value to set + * @return the DataTableResponseObject object itself. + */ + public DataTableResponseObject withRows(List> rows) { + this.rows = rows; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java index 5907be148642d..f64f8735eab57 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java @@ -38,6 +38,12 @@ public class DeletedAppRestoreRequest extends ProxyOnlyResource { @JsonProperty(value = "properties.snapshotTime") private String snapshotTime; + /** + * If true, the snapshot is retrieved from DRSecondary endpoint. + */ + @JsonProperty(value = "properties.useDRSecondary") + private Boolean useDRSecondary; + /** * Get aRM resource ID of the deleted app. Example: /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}. @@ -102,4 +108,24 @@ public DeletedAppRestoreRequest withSnapshotTime(String snapshotTime) { return this; } + /** + * Get if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @return the useDRSecondary value + */ + public Boolean useDRSecondary() { + return this.useDRSecondary; + } + + /** + * Set if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @param useDRSecondary the useDRSecondary value to set + * @return the DeletedAppRestoreRequest object itself. + */ + public DeletedAppRestoreRequest withUseDRSecondary(Boolean useDRSecondary) { + this.useDRSecondary = useDRSecondary; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedSite.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedSite.java index 5b49e82a946ba..69d10f480732e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedSite.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedSite.java @@ -10,18 +10,23 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DeletedSiteInner; /** * Type representing DeletedSite. */ -public interface DeletedSite extends HasInner, HasManager { +public interface DeletedSite extends HasInner, HasManager { /** * @return the deletedSiteId value. */ Integer deletedSiteId(); + /** + * @return the deletedSiteKind value. + */ + String deletedSiteKind(); + /** * @return the deletedSiteName value. */ @@ -32,6 +37,26 @@ public interface DeletedSite extends HasInner, HasManager, HasManager, Indexable, Refreshable, Updatable, HasManager { +public interface Deployment extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the active value. */ @@ -110,6 +110,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -120,6 +123,8 @@ interface WithSite { interface WithActive { /** * Specifies active. + * @param active True if deployment is currently active, false if completed and null if not started + * @return the next definition stage */ WithCreate withActive(Boolean active); } @@ -130,6 +135,8 @@ interface WithActive { interface WithAuthor { /** * Specifies author. + * @param author Who authored the deployment + * @return the next definition stage */ WithCreate withAuthor(String author); } @@ -140,6 +147,8 @@ interface WithAuthor { interface WithAuthorEmail { /** * Specifies authorEmail. + * @param authorEmail Author email + * @return the next definition stage */ WithCreate withAuthorEmail(String authorEmail); } @@ -150,6 +159,8 @@ interface WithAuthorEmail { interface WithDeployer { /** * Specifies deployer. + * @param deployer Who performed the deployment + * @return the next definition stage */ WithCreate withDeployer(String deployer); } @@ -160,6 +171,8 @@ interface WithDeployer { interface WithDetails { /** * Specifies details. + * @param details Details on deployment + * @return the next definition stage */ WithCreate withDetails(String details); } @@ -170,6 +183,8 @@ interface WithDetails { interface WithEndTime { /** * Specifies endTime. + * @param endTime End time + * @return the next definition stage */ WithCreate withEndTime(DateTime endTime); } @@ -180,6 +195,8 @@ interface WithEndTime { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -190,6 +207,8 @@ interface WithKind { interface WithMessage { /** * Specifies message. + * @param message Details about deployment status + * @return the next definition stage */ WithCreate withMessage(String message); } @@ -200,6 +219,8 @@ interface WithMessage { interface WithStartTime { /** * Specifies startTime. + * @param startTime Start time + * @return the next definition stage */ WithCreate withStartTime(DateTime startTime); } @@ -210,6 +231,8 @@ interface WithStartTime { interface WithStatus { /** * Specifies status. + * @param status Deployment status + * @return the next definition stage */ WithCreate withStatus(Integer status); } @@ -238,6 +261,8 @@ interface UpdateStages { interface WithActive { /** * Specifies active. + * @param active True if deployment is currently active, false if completed and null if not started + * @return the next update stage */ Update withActive(Boolean active); } @@ -248,6 +273,8 @@ interface WithActive { interface WithAuthor { /** * Specifies author. + * @param author Who authored the deployment + * @return the next update stage */ Update withAuthor(String author); } @@ -258,6 +285,8 @@ interface WithAuthor { interface WithAuthorEmail { /** * Specifies authorEmail. + * @param authorEmail Author email + * @return the next update stage */ Update withAuthorEmail(String authorEmail); } @@ -268,6 +297,8 @@ interface WithAuthorEmail { interface WithDeployer { /** * Specifies deployer. + * @param deployer Who performed the deployment + * @return the next update stage */ Update withDeployer(String deployer); } @@ -278,6 +309,8 @@ interface WithDeployer { interface WithDetails { /** * Specifies details. + * @param details Details on deployment + * @return the next update stage */ Update withDetails(String details); } @@ -288,6 +321,8 @@ interface WithDetails { interface WithEndTime { /** * Specifies endTime. + * @param endTime End time + * @return the next update stage */ Update withEndTime(DateTime endTime); } @@ -298,6 +333,8 @@ interface WithEndTime { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -308,6 +345,8 @@ interface WithKind { interface WithMessage { /** * Specifies message. + * @param message Details about deployment status + * @return the next update stage */ Update withMessage(String message); } @@ -318,6 +357,8 @@ interface WithMessage { interface WithStartTime { /** * Specifies startTime. + * @param startTime Start time + * @return the next update stage */ Update withStartTime(DateTime startTime); } @@ -328,6 +369,8 @@ interface WithStartTime { interface WithStatus { /** * Specifies status. + * @param status Deployment status + * @return the next update stage */ Update withStatus(Integer status); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorAbnormalTimePeriod.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorAbnormalTimePeriod.java index de1acd01f3c18..a38a45ea112a3 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorAbnormalTimePeriod.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorAbnormalTimePeriod.java @@ -17,13 +17,13 @@ */ public class DetectorAbnormalTimePeriod { /** - * Start time of the corelated event. + * Start time of the correlated event. */ @JsonProperty(value = "startTime") private DateTime startTime; /** - * End time of the corelated event. + * End time of the correlated event. */ @JsonProperty(value = "endTime") private DateTime endTime; @@ -67,7 +67,7 @@ public class DetectorAbnormalTimePeriod { private List solutions; /** - * Get start time of the corelated event. + * Get start time of the correlated event. * * @return the startTime value */ @@ -76,7 +76,7 @@ public DateTime startTime() { } /** - * Set start time of the corelated event. + * Set start time of the correlated event. * * @param startTime the startTime value to set * @return the DetectorAbnormalTimePeriod object itself. @@ -87,7 +87,7 @@ public DetectorAbnormalTimePeriod withStartTime(DateTime startTime) { } /** - * Get end time of the corelated event. + * Get end time of the correlated event. * * @return the endTime value */ @@ -96,7 +96,7 @@ public DateTime endTime() { } /** - * Set end time of the corelated event. + * Set end time of the correlated event. * * @param endTime the endTime value to set * @return the DetectorAbnormalTimePeriod object itself. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorDefinition.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorDefinition.java index 638a8e95c97c6..a2f9a8ef0804d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorDefinition.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorDefinition.java @@ -9,14 +9,14 @@ package com.microsoft.azure.management.appservice.v2018_02_01; import com.microsoft.azure.arm.model.HasInner; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DetectorDefinitionInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DetectorDefinitionInner; /** * Type representing DetectorDefinition. */ -public interface DetectorDefinition extends HasInner, HasManager { +public interface DetectorDefinition extends HasInner, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorInfo.java new file mode 100644 index 0000000000000..19a96f45a8c45 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorInfo.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Definition of Detector. + */ +public class DetectorInfo { + /** + * Short description of the detector and its purpose. + */ + @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) + private String description; + + /** + * Support Category. + */ + @JsonProperty(value = "category", access = JsonProperty.Access.WRITE_ONLY) + private String category; + + /** + * Support Sub Category. + */ + @JsonProperty(value = "subCategory", access = JsonProperty.Access.WRITE_ONLY) + private String subCategory; + + /** + * Support Topic Id. + */ + @JsonProperty(value = "supportTopicId", access = JsonProperty.Access.WRITE_ONLY) + private String supportTopicId; + + /** + * Get short description of the detector and its purpose. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Get support Category. + * + * @return the category value + */ + public String category() { + return this.category; + } + + /** + * Get support Sub Category. + * + * @return the subCategory value + */ + public String subCategory() { + return this.subCategory; + } + + /** + * Get support Topic Id. + * + * @return the supportTopicId value + */ + public String supportTopicId() { + return this.supportTopicId; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorResponse.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorResponse.java new file mode 100644 index 0000000000000..ed159c18dac97 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorResponse.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DetectorResponseInner; +import com.microsoft.azure.arm.model.Indexable; +import com.microsoft.azure.arm.model.Refreshable; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import java.util.List; + +/** + * Type representing DetectorResponse. + */ +public interface DetectorResponse extends HasInner, Indexable, Refreshable, HasManager { + /** + * @return the dataset value. + */ + List dataset(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the kind value. + */ + String kind(); + + /** + * @return the metadata value. + */ + DetectorInfo metadata(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticAnalysis.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticAnalysis.java index f979b6bc9eccc..7cb6a430b082d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticAnalysis.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticAnalysis.java @@ -13,14 +13,14 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import org.joda.time.DateTime; /** * Type representing DiagnosticAnalysis. */ -public interface DiagnosticAnalysis extends HasInner, Indexable, Refreshable, HasManager { +public interface DiagnosticAnalysis extends HasInner, Indexable, Refreshable, HasManager { /** * @return the abnormalTimePeriods value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticCategory.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticCategory.java index 615f401d15823..64ac78b6eb983 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticCategory.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticCategory.java @@ -13,12 +13,12 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing DiagnosticCategory. */ -public interface DiagnosticCategory extends HasInner, Indexable, Refreshable, HasManager { +public interface DiagnosticCategory extends HasInner, Indexable, Refreshable, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticData.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticData.java new file mode 100644 index 0000000000000..d91eb183e5af3 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticData.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Set of data with rendering instructions. + */ +public class DiagnosticData { + /** + * Data in table form. + */ + @JsonProperty(value = "table") + private DataTableResponseObject table; + + /** + * Properties that describe how the table should be rendered. + */ + @JsonProperty(value = "renderingProperties") + private Rendering renderingProperties; + + /** + * Get data in table form. + * + * @return the table value + */ + public DataTableResponseObject table() { + return this.table; + } + + /** + * Set data in table form. + * + * @param table the table value to set + * @return the DiagnosticData object itself. + */ + public DiagnosticData withTable(DataTableResponseObject table) { + this.table = table; + return this; + } + + /** + * Get properties that describe how the table should be rendered. + * + * @return the renderingProperties value + */ + public Rendering renderingProperties() { + return this.renderingProperties; + } + + /** + * Set properties that describe how the table should be rendered. + * + * @param renderingProperties the renderingProperties value to set + * @return the DiagnosticData object itself. + */ + public DiagnosticData withRenderingProperties(Rendering renderingProperties) { + this.renderingProperties = renderingProperties; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticDetectorResponse.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticDetectorResponse.java index 1f014fdfe5a7f..84ef6f100a982 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticDetectorResponse.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticDetectorResponse.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DiagnosticDetectorResponseInner; import java.util.List; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DetectorDefinitionInner; @@ -19,7 +19,7 @@ /** * Type representing DiagnosticDetectorResponse. */ -public interface DiagnosticDetectorResponse extends HasInner, HasManager { +public interface DiagnosticDetectorResponse extends HasInner, HasManager { /** * @return the abnormalTimePeriods value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Diagnostics.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Diagnostics.java index c4de12c4c06de..ddd647770c972 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Diagnostics.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Diagnostics.java @@ -11,8 +11,8 @@ import rx.Observable; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DiagnosticsInner; import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.appservice.v2018_02_01.DetectorResponse; import com.microsoft.azure.management.appservice.v2018_02_01.DiagnosticAnalysis; -import com.microsoft.azure.management.appservice.v2018_02_01.DetectorDefinition; /** * Type representing Diagnostics. @@ -67,83 +67,113 @@ public interface Diagnostics extends HasInner { Observable listSiteDiagnosticCategoriesAsync(final String resourceGroupName, final String siteName); /** - * Get Site Analysis. - * Get Site Analysis. + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param analysisName Analysis Name + * @param name App Service Environment Name + * @param detectorName Detector Resource Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName); + Observable getHostingEnvironmentDetectorResponseAsync(String resourceGroupName, String name, String detectorName); /** - * Get Site Analyses. - * Get Site Analyses. + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listHostingEnvironmentDetectorResponsesAsync(final String resourceGroupName, final String name); + + /** + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory); + Observable listSiteDetectorResponsesAsync(final String resourceGroupName, final String siteName); /** - * Execute Analysis. - * Execute Analysis. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name + * @param detectorName Detector Resource Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName); + Observable getSiteDetectorResponseAsync(String resourceGroupName, String siteName, String detectorName); /** - * Get Site Analyses. - * Get Site Analyses. + * Get Detectors. + * Get Detectors. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param diagnosticCategory Diagnostic Category - * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listSiteAnalysesSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot); + Observable listSiteDetectorsAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory); /** - * Get Site Analysis. - * Get Site Analysis. + * Get Detector. + * Get Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param diagnosticCategory Diagnostic Category - * @param analysisName Analysis Name - * @param slot Slot - optional + * @param detectorName Detector Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot); + Observable getSiteDetectorAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName); /** - * Execute Analysis. - * Execute Analysis. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name + * @param detectorName Detector Resource Name * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory); + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable executeSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot); + Observable listSiteDetectorResponsesSlotAsync(final String resourceGroupName, final String siteName, final String slot); + + /** + * Get site detector response. + * Get site detector response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param slot Slot Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getSiteDetectorResponseSlotAsync(String resourceGroupName, String siteName, String detectorName, String slot); /** * Get Detectors. @@ -152,10 +182,11 @@ public interface Diagnostics extends HasInner { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param diagnosticCategory Diagnostic Category + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listSiteDetectorsAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory); + Observable listSiteDetectorsSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot); /** * Get Detector. @@ -165,10 +196,11 @@ public interface Diagnostics extends HasInner { * @param siteName Site Name * @param diagnosticCategory Diagnostic Category * @param detectorName Detector Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getSiteDetectorAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName); + Observable getSiteDetectorSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName, final String slot); /** * Execute Detector. @@ -178,50 +210,89 @@ public interface Diagnostics extends HasInner { * @param siteName Site Name * @param detectorName Detector Resource Name * @param diagnosticCategory Category Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory); + Observable executeSiteDetectorSlotAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, String slot); /** - * Get Detectors. - * Get Detectors. + * Get Site Analysis. + * Get Site Analysis. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param diagnosticCategory Diagnostic Category - * @param slot Slot Name + * @param analysisName Analysis Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable listSiteDetectorsSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot); + Observable getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName); /** - * Get Detector. - * Get Detector. + * Get Site Analyses. + * Get Site Analyses. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory); + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName); + + /** + * Get Site Analyses. + * Get Site Analyses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param diagnosticCategory Diagnostic Category - * @param detectorName Detector Name * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable getSiteDetectorSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName, final String slot); + Observable listSiteAnalysesSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot); /** - * Execute Detector. - * Execute Detector. + * Get Site Analysis. + * Get Site Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param slot Slot - optional + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot); + + /** + * Execute Analysis. + * Execute Analysis. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param detectorName Detector Resource Name * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Observable executeSiteDetectorSlotAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, String slot); + Observable executeSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Domain.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Domain.java index 1b71ca7e20e12..ad37d3d2c60b1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Domain.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Domain.java @@ -17,7 +17,7 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DomainInner; @@ -25,7 +25,7 @@ /** * Type representing Domain. */ -public interface Domain extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface Domain extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the authCode value. */ @@ -159,7 +159,9 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup, Resource.UpdateWithTags, Upd */ interface UpdateStages { /** - * The stage of the domain {0} allowing to specify AuthCode. + * The stage of the domain update allowing to specify AuthCode. */ interface WithAuthCode { /** * Specifies authCode. + * @param authCode the authCode parameter value + * @return the next update stage */ Update withAuthCode(String authCode); } /** - * The stage of the domain {0} allowing to specify AutoRenew. + * The stage of the domain update allowing to specify AutoRenew. */ interface WithAutoRenew { /** * Specifies autoRenew. + * @param autoRenew <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code> + * @return the next update stage */ Update withAutoRenew(Boolean autoRenew); } /** - * The stage of the domain {0} allowing to specify DnsType. + * The stage of the domain update allowing to specify DnsType. */ interface WithDnsType { /** * Specifies dnsType. + * @param dnsType Current DNS type. Possible values include: 'AzureDns', 'DefaultDomainRegistrarDns' + * @return the next update stage */ Update withDnsType(DnsType dnsType); } /** - * The stage of the domain {0} allowing to specify DnsZoneId. + * The stage of the domain update allowing to specify DnsZoneId. */ interface WithDnsZoneId { /** * Specifies dnsZoneId. + * @param dnsZoneId Azure DNS Zone to use + * @return the next update stage */ Update withDnsZoneId(String dnsZoneId); } /** - * The stage of the domain {0} allowing to specify Kind. + * The stage of the domain update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the domain {0} allowing to specify Privacy. + * The stage of the domain update allowing to specify Privacy. */ interface WithPrivacy { /** * Specifies privacy. + * @param privacy <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code> + * @return the next update stage */ Update withPrivacy(Boolean privacy); } /** - * The stage of the domain {0} allowing to specify TargetDnsType. + * The stage of the domain update allowing to specify TargetDnsType. */ interface WithTargetDnsType { /** * Specifies targetDnsType. + * @param targetDnsType Target DNS type (would be used for migration). Possible values include: 'AzureDns', 'DefaultDomainRegistrarDns' + * @return the next update stage */ Update withTargetDnsType(DnsType targetDnsType); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainAvailablilityCheckResult.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainAvailablilityCheckResult.java index fdddfb5068c42..704e75dc5f8a9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainAvailablilityCheckResult.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainAvailablilityCheckResult.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DomainAvailablilityCheckResultInner; /** * Type representing DomainAvailablilityCheckResult. */ -public interface DomainAvailablilityCheckResult extends HasInner, HasManager { +public interface DomainAvailablilityCheckResult extends HasInner, HasManager { /** * @return the available value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainControlCenterSsoRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainControlCenterSsoRequest.java index cfb1bbcec617c..1350e5ed2ce23 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainControlCenterSsoRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainControlCenterSsoRequest.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DomainControlCenterSsoRequestInner; /** * Type representing DomainControlCenterSsoRequest. */ -public interface DomainControlCenterSsoRequest extends HasInner, HasManager { +public interface DomainControlCenterSsoRequest extends HasInner, HasManager { /** * @return the postParameterKey value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainOwnershipIdentifier.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainOwnershipIdentifier.java index 659c1f12a4f85..9e617654df90e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainOwnershipIdentifier.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DomainOwnershipIdentifier.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing DomainOwnershipIdentifier. */ -public interface DomainOwnershipIdentifier extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface DomainOwnershipIdentifier extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -69,6 +69,9 @@ interface Blank extends WithDomain { interface WithDomain { /** * Specifies resourceGroupName, domainName. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param domainName Name of domain + * @return the next definition stage */ WithCreate withExistingDomain(String resourceGroupName, String domainName); } @@ -79,6 +82,8 @@ interface WithDomain { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -89,6 +94,8 @@ interface WithKind { interface WithOwnershipId { /** * Specifies ownershipId. + * @param ownershipId Ownership Id + * @return the next definition stage */ WithCreate withOwnershipId(String ownershipId); } @@ -117,6 +124,8 @@ interface UpdateStages { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -127,6 +136,8 @@ interface WithKind { interface WithOwnershipId { /** * Specifies ownershipId. + * @param ownershipId Ownership Id + * @return the next update stage */ Update withOwnershipId(String ownershipId); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/EndpointDependency.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/EndpointDependency.java new file mode 100644 index 0000000000000..a03fde9ab7627 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/EndpointDependency.java @@ -0,0 +1,71 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A domain name that a service is reached at, including details of the current + * connection status. + */ +public class EndpointDependency { + /** + * The domain name of the dependency. + */ + @JsonProperty(value = "domainName") + private String domainName; + + /** + * The IP Addresses and Ports used when connecting to DomainName. + */ + @JsonProperty(value = "endpointDetails") + private List endpointDetails; + + /** + * Get the domain name of the dependency. + * + * @return the domainName value + */ + public String domainName() { + return this.domainName; + } + + /** + * Set the domain name of the dependency. + * + * @param domainName the domainName value to set + * @return the EndpointDependency object itself. + */ + public EndpointDependency withDomainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * Get the IP Addresses and Ports used when connecting to DomainName. + * + * @return the endpointDetails value + */ + public List endpointDetails() { + return this.endpointDetails; + } + + /** + * Set the IP Addresses and Ports used when connecting to DomainName. + * + * @param endpointDetails the endpointDetails value to set + * @return the EndpointDependency object itself. + */ + public EndpointDependency withEndpointDetails(List endpointDetails) { + this.endpointDetails = endpointDetails; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/EndpointDetail.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/EndpointDetail.java new file mode 100644 index 0000000000000..7c133fb173c69 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/EndpointDetail.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Current TCP connectivity information from the App Service Environment to a + * single endpoint. + */ +public class EndpointDetail { + /** + * An IP Address that Domain Name currently resolves to. + */ + @JsonProperty(value = "ipAddress") + private String ipAddress; + + /** + * The port an endpoint is connected to. + */ + @JsonProperty(value = "port") + private Integer port; + + /** + * The time in milliseconds it takes for a TCP connection to be created + * from the App Service Environment to this IpAddress at this Port. + */ + @JsonProperty(value = "latency") + private Double latency; + + /** + * Whether it is possible to create a TCP connection from the App Service + * Environment to this IpAddress at this Port. + */ + @JsonProperty(value = "isAccessable") + private Boolean isAccessable; + + /** + * Get an IP Address that Domain Name currently resolves to. + * + * @return the ipAddress value + */ + public String ipAddress() { + return this.ipAddress; + } + + /** + * Set an IP Address that Domain Name currently resolves to. + * + * @param ipAddress the ipAddress value to set + * @return the EndpointDetail object itself. + */ + public EndpointDetail withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Get the port an endpoint is connected to. + * + * @return the port value + */ + public Integer port() { + return this.port; + } + + /** + * Set the port an endpoint is connected to. + * + * @param port the port value to set + * @return the EndpointDetail object itself. + */ + public EndpointDetail withPort(Integer port) { + this.port = port; + return this; + } + + /** + * Get the time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. + * + * @return the latency value + */ + public Double latency() { + return this.latency; + } + + /** + * Set the time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. + * + * @param latency the latency value to set + * @return the EndpointDetail object itself. + */ + public EndpointDetail withLatency(Double latency) { + this.latency = latency; + return this; + } + + /** + * Get whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. + * + * @return the isAccessable value + */ + public Boolean isAccessable() { + return this.isAccessable; + } + + /** + * Set whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. + * + * @param isAccessable the isAccessable value to set + * @return the EndpointDetail object itself. + */ + public EndpointDetail withIsAccessable(Boolean isAccessable) { + this.isAccessable = isAccessable; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionEnvelope.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionEnvelope.java index 2ff1e6647a5f5..0ecec6137ced0 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionEnvelope.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionEnvelope.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.Map; /** * Type representing FunctionEnvelope. */ -public interface FunctionEnvelope extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface FunctionEnvelope extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the config value. */ @@ -110,6 +110,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Site name + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -120,6 +123,8 @@ interface WithSite { interface WithConfig { /** * Specifies config. + * @param config Config information + * @return the next definition stage */ WithCreate withConfig(Object config); } @@ -130,6 +135,8 @@ interface WithConfig { interface WithConfigHref { /** * Specifies configHref. + * @param configHref Config URI + * @return the next definition stage */ WithCreate withConfigHref(String configHref); } @@ -140,6 +147,8 @@ interface WithConfigHref { interface WithFiles { /** * Specifies files. + * @param files File list + * @return the next definition stage */ WithCreate withFiles(Map files); } @@ -150,6 +159,8 @@ interface WithFiles { interface WithFunctionAppId { /** * Specifies functionAppId. + * @param functionAppId Function App ID + * @return the next definition stage */ WithCreate withFunctionAppId(String functionAppId); } @@ -160,6 +171,8 @@ interface WithFunctionAppId { interface WithHref { /** * Specifies href. + * @param href Function URI + * @return the next definition stage */ WithCreate withHref(String href); } @@ -170,6 +183,8 @@ interface WithHref { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -180,6 +195,8 @@ interface WithKind { interface WithScriptHref { /** * Specifies scriptHref. + * @param scriptHref Script URI + * @return the next definition stage */ WithCreate withScriptHref(String scriptHref); } @@ -190,6 +207,8 @@ interface WithScriptHref { interface WithScriptRootPathHref { /** * Specifies scriptRootPathHref. + * @param scriptRootPathHref Script root path URI + * @return the next definition stage */ WithCreate withScriptRootPathHref(String scriptRootPathHref); } @@ -200,6 +219,8 @@ interface WithScriptRootPathHref { interface WithSecretsFileHref { /** * Specifies secretsFileHref. + * @param secretsFileHref Secrets file URI + * @return the next definition stage */ WithCreate withSecretsFileHref(String secretsFileHref); } @@ -210,6 +231,8 @@ interface WithSecretsFileHref { interface WithTestData { /** * Specifies testData. + * @param testData Test data used when testing via the Azure Portal + * @return the next definition stage */ WithCreate withTestData(String testData); } @@ -238,6 +261,8 @@ interface UpdateStages { interface WithConfig { /** * Specifies config. + * @param config Config information + * @return the next update stage */ Update withConfig(Object config); } @@ -248,6 +273,8 @@ interface WithConfig { interface WithConfigHref { /** * Specifies configHref. + * @param configHref Config URI + * @return the next update stage */ Update withConfigHref(String configHref); } @@ -258,6 +285,8 @@ interface WithConfigHref { interface WithFiles { /** * Specifies files. + * @param files File list + * @return the next update stage */ Update withFiles(Map files); } @@ -268,6 +297,8 @@ interface WithFiles { interface WithFunctionAppId { /** * Specifies functionAppId. + * @param functionAppId Function App ID + * @return the next update stage */ Update withFunctionAppId(String functionAppId); } @@ -278,6 +309,8 @@ interface WithFunctionAppId { interface WithHref { /** * Specifies href. + * @param href Function URI + * @return the next update stage */ Update withHref(String href); } @@ -288,6 +321,8 @@ interface WithHref { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -298,6 +333,8 @@ interface WithKind { interface WithScriptHref { /** * Specifies scriptHref. + * @param scriptHref Script URI + * @return the next update stage */ Update withScriptHref(String scriptHref); } @@ -308,6 +345,8 @@ interface WithScriptHref { interface WithScriptRootPathHref { /** * Specifies scriptRootPathHref. + * @param scriptRootPathHref Script root path URI + * @return the next update stage */ Update withScriptRootPathHref(String scriptRootPathHref); } @@ -318,6 +357,8 @@ interface WithScriptRootPathHref { interface WithSecretsFileHref { /** * Specifies secretsFileHref. + * @param secretsFileHref Secrets file URI + * @return the next update stage */ Update withSecretsFileHref(String secretsFileHref); } @@ -328,6 +369,8 @@ interface WithSecretsFileHref { interface WithTestData { /** * Specifies testData. + * @param testData Test data used when testing via the Azure Portal + * @return the next update stage */ Update withTestData(String testData); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionSecrets.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionSecrets.java index c31a088abe07f..db58fe9e4c10c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionSecrets.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/FunctionSecrets.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.FunctionSecretsInner; /** * Type representing FunctionSecrets. */ -public interface FunctionSecrets extends HasInner, HasManager { +public interface FunctionSecrets extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/GeoDistribution.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/GeoDistribution.java new file mode 100644 index 0000000000000..3ba0ce3472f0e --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/GeoDistribution.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A global distribution definition. + */ +public class GeoDistribution { + /** + * Location. + */ + @JsonProperty(value = "location") + private String location; + + /** + * NumberOfWorkers. + */ + @JsonProperty(value = "numberOfWorkers") + private Integer numberOfWorkers; + + /** + * Get location. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set location. + * + * @param location the location value to set + * @return the GeoDistribution object itself. + */ + public GeoDistribution withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get numberOfWorkers. + * + * @return the numberOfWorkers value + */ + public Integer numberOfWorkers() { + return this.numberOfWorkers; + } + + /** + * Set numberOfWorkers. + * + * @param numberOfWorkers the numberOfWorkers value to set + * @return the GeoDistribution object itself. + */ + public GeoDistribution withNumberOfWorkers(Integer numberOfWorkers) { + this.numberOfWorkers = numberOfWorkers; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostNameBinding.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostNameBinding.java index f9369fb2ff9d1..ac666c8a767a3 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostNameBinding.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostNameBinding.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing HostNameBinding. */ -public interface HostNameBinding extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface HostNameBinding extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the azureResourceName value. */ @@ -109,6 +109,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -119,6 +122,8 @@ interface WithSite { interface WithAzureResourceName { /** * Specifies azureResourceName. + * @param azureResourceName Azure resource name + * @return the next definition stage */ WithCreate withAzureResourceName(String azureResourceName); } @@ -129,6 +134,8 @@ interface WithAzureResourceName { interface WithAzureResourceType { /** * Specifies azureResourceType. + * @param azureResourceType Azure resource type. Possible values include: 'Website', 'TrafficManager' + * @return the next definition stage */ WithCreate withAzureResourceType(AzureResourceType azureResourceType); } @@ -139,6 +146,8 @@ interface WithAzureResourceType { interface WithCustomHostNameDnsRecordType { /** * Specifies customHostNameDnsRecordType. + * @param customHostNameDnsRecordType Custom DNS record type. Possible values include: 'CName', 'A' + * @return the next definition stage */ WithCreate withCustomHostNameDnsRecordType(CustomHostNameDnsRecordType customHostNameDnsRecordType); } @@ -149,6 +158,8 @@ interface WithCustomHostNameDnsRecordType { interface WithDomainId { /** * Specifies domainId. + * @param domainId Fully qualified ARM domain resource URI + * @return the next definition stage */ WithCreate withDomainId(String domainId); } @@ -159,6 +170,8 @@ interface WithDomainId { interface WithHostNameType { /** * Specifies hostNameType. + * @param hostNameType Hostname type. Possible values include: 'Verified', 'Managed' + * @return the next definition stage */ WithCreate withHostNameType(HostNameType hostNameType); } @@ -169,6 +182,8 @@ interface WithHostNameType { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -179,6 +194,8 @@ interface WithKind { interface WithSiteName { /** * Specifies siteName. + * @param siteName App Service app name + * @return the next definition stage */ WithCreate withSiteName(String siteName); } @@ -189,6 +206,8 @@ interface WithSiteName { interface WithSslState { /** * Specifies sslState. + * @param sslState SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + * @return the next definition stage */ WithCreate withSslState(SslState sslState); } @@ -199,6 +218,8 @@ interface WithSslState { interface WithThumbprint { /** * Specifies thumbprint. + * @param thumbprint SSL certificate thumbprint + * @return the next definition stage */ WithCreate withThumbprint(String thumbprint); } @@ -227,6 +248,8 @@ interface UpdateStages { interface WithAzureResourceName { /** * Specifies azureResourceName. + * @param azureResourceName Azure resource name + * @return the next update stage */ Update withAzureResourceName(String azureResourceName); } @@ -237,6 +260,8 @@ interface WithAzureResourceName { interface WithAzureResourceType { /** * Specifies azureResourceType. + * @param azureResourceType Azure resource type. Possible values include: 'Website', 'TrafficManager' + * @return the next update stage */ Update withAzureResourceType(AzureResourceType azureResourceType); } @@ -247,6 +272,8 @@ interface WithAzureResourceType { interface WithCustomHostNameDnsRecordType { /** * Specifies customHostNameDnsRecordType. + * @param customHostNameDnsRecordType Custom DNS record type. Possible values include: 'CName', 'A' + * @return the next update stage */ Update withCustomHostNameDnsRecordType(CustomHostNameDnsRecordType customHostNameDnsRecordType); } @@ -257,6 +284,8 @@ interface WithCustomHostNameDnsRecordType { interface WithDomainId { /** * Specifies domainId. + * @param domainId Fully qualified ARM domain resource URI + * @return the next update stage */ Update withDomainId(String domainId); } @@ -267,6 +296,8 @@ interface WithDomainId { interface WithHostNameType { /** * Specifies hostNameType. + * @param hostNameType Hostname type. Possible values include: 'Verified', 'Managed' + * @return the next update stage */ Update withHostNameType(HostNameType hostNameType); } @@ -277,6 +308,8 @@ interface WithHostNameType { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -287,6 +320,8 @@ interface WithKind { interface WithSiteName { /** * Specifies siteName. + * @param siteName App Service app name + * @return the next update stage */ Update withSiteName(String siteName); } @@ -297,6 +332,8 @@ interface WithSiteName { interface WithSslState { /** * Specifies sslState. + * @param sslState SSL type. Possible values include: 'Disabled', 'SniEnabled', 'IpBasedEnabled' + * @return the next update stage */ Update withSslState(SslState sslState); } @@ -307,6 +344,8 @@ interface WithSslState { interface WithThumbprint { /** * Specifies thumbprint. + * @param thumbprint SSL certificate thumbprint + * @return the next update stage */ Update withThumbprint(String thumbprint); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentAppServicePlan.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentAppServicePlan.java index 3f70877441422..0a7b72bb50315 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentAppServicePlan.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentAppServicePlan.java @@ -11,18 +11,18 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServicePlanInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; import java.util.Map; /** * Type representing HostingEnvironmentAppServicePlan. */ -public interface HostingEnvironmentAppServicePlan extends HasInner, HasManager { +public interface HostingEnvironmentAppServicePlan extends HasInner, HasManager { /** - * @return the adminSiteName value. + * @return the freeOfferExpirationTime value. */ - String adminSiteName(); + DateTime freeOfferExpirationTime(); /** * @return the geoRegion value. @@ -34,6 +34,11 @@ public interface HostingEnvironmentAppServicePlan extends HasInner, HasManager { +public interface HostingEnvironmentDiagnostics extends HasInner, HasManager { /** * @return the diagnosicsOutput value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentResourceMetric.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentResourceMetric.java index 270ab243bb125..4000ce2220396 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentResourceMetric.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentResourceMetric.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ResourceMetricInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing HostingEnvironmentResourceMetric. */ -public interface HostingEnvironmentResourceMetric extends HasInner, HasManager { +public interface HostingEnvironmentResourceMetric extends HasInner, HasManager { /** * @return the endTime value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentSite.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentSite.java index bc231f519957a..0f9fd09cf81fe 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentSite.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentSite.java @@ -11,15 +11,16 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; +import java.util.UUID; import org.joda.time.DateTime; import java.util.Map; /** * Type representing HostingEnvironmentSite. */ -public interface HostingEnvironmentSite extends HasInner, HasManager { +public interface HostingEnvironmentSite extends HasInner, HasManager { /** * @return the availabilityState value. */ @@ -35,6 +36,11 @@ public interface HostingEnvironmentSite extends HasInner, HasManager< */ Boolean clientCertEnabled(); + /** + * @return the clientCertExclusionPaths value. + */ + String clientCertExclusionPaths(); + /** * @return the cloningInfo value. */ @@ -65,6 +71,11 @@ public interface HostingEnvironmentSite extends HasInner, HasManager< */ List enabledHostNames(); + /** + * @return the geoDistributions value. + */ + List geoDistributions(); + /** * @return the hostingEnvironmentProfile value. */ @@ -90,6 +101,11 @@ public interface HostingEnvironmentSite extends HasInner, HasManager< */ Boolean httpsOnly(); + /** + * @return the hyperV value. + */ + Boolean hyperV(); + /** * @return the id value. */ @@ -100,6 +116,11 @@ public interface HostingEnvironmentSite extends HasInner, HasManager< */ ManagedServiceIdentity identity(); + /** + * @return the inProgressOperationId value. + */ + UUID inProgressOperationId(); + /** * @return the isDefaultContainer value. */ @@ -145,6 +166,11 @@ public interface HostingEnvironmentSite extends HasInner, HasManager< */ String possibleOutboundIpAddresses(); + /** + * @return the redundancyMode value. + */ + RedundancyMode redundancyMode(); + /** * @return the repositorySiteName value. */ @@ -180,11 +206,6 @@ public interface HostingEnvironmentSite extends HasInner, HasManager< */ SlotSwapStatus slotSwapStatus(); - /** - * @return the snapshotInfo value. - */ - SnapshotRecoveryRequest snapshotInfo(); - /** * @return the state value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnection.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnection.java index 7c1d69cb39c7c..662865acec05e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnection.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnection.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.HybridConnectionInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing HybridConnection. */ -public interface HybridConnection extends HasInner, HasManager { +public interface HybridConnection extends HasInner, HasManager { /** * @return the hostname value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionKey.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionKey.java index a63a0d3dea9d4..602f5be8f32e3 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionKey.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionKey.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.HybridConnectionKeyInner; /** * Type representing HybridConnectionKey. */ -public interface HybridConnectionKey extends HasInner, HasManager { +public interface HybridConnectionKey extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionLimits.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionLimits.java index 3d16b67896f75..fdcc598612c8f 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionLimits.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HybridConnectionLimits.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.HybridConnectionLimitsInner; /** * Type representing HybridConnectionLimits. */ -public interface HybridConnectionLimits extends HasInner, HasManager { +public interface HybridConnectionLimits extends HasInner, HasManager { /** * @return the current value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Identifier.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Identifier.java index 34109d15b4d89..50dd9b2775e3c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Identifier.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Identifier.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing Identifier. */ -public interface Identifier extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface Identifier extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -69,6 +69,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -79,6 +82,8 @@ interface WithSite { interface WithIdentifierId { /** * Specifies identifierId. + * @param identifierId String representation of the identity + * @return the next definition stage */ WithCreate withIdentifierId(String identifierId); } @@ -89,6 +94,8 @@ interface WithIdentifierId { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -117,6 +124,8 @@ interface UpdateStages { interface WithIdentifierId { /** * Specifies identifierId. + * @param identifierId String representation of the identity + * @return the next update stage */ Update withIdentifierId(String identifierId); } @@ -127,6 +136,8 @@ interface WithIdentifierId { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/InboundEnvironmentEndpoint.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/InboundEnvironmentEndpoint.java new file mode 100644 index 0000000000000..348c727e6b4e6 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/InboundEnvironmentEndpoint.java @@ -0,0 +1,36 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.InboundEnvironmentEndpointInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import java.util.List; + +/** + * Type representing InboundEnvironmentEndpoint. + */ +public interface InboundEnvironmentEndpoint extends HasInner, HasManager { + /** + * @return the description value. + */ + String description(); + + /** + * @return the endpoints value. + */ + List endpoints(); + + /** + * @return the ports value. + */ + List ports(); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpFilterTag.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpFilterTag.java new file mode 100644 index 0000000000000..ff8d8c66cdd16 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpFilterTag.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for IpFilterTag. + */ +public enum IpFilterTag { + /** Enum value Default. */ + DEFAULT("Default"), + + /** Enum value XffProxy. */ + XFF_PROXY("XffProxy"); + + /** The actual serialized value for a IpFilterTag instance. */ + private String value; + + IpFilterTag(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a IpFilterTag instance. + * + * @param value the serialized value to parse. + * @return the parsed IpFilterTag object, or null if unable to parse. + */ + @JsonCreator + public static IpFilterTag fromString(String value) { + IpFilterTag[] items = IpFilterTag.values(); + for (IpFilterTag item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpSecurityRestriction.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpSecurityRestriction.java index 6e6a2979f2e8a..3976800eea4b7 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpSecurityRestriction.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpSecurityRestriction.java @@ -16,8 +16,11 @@ public class IpSecurityRestriction { /** * IP address the security restriction is valid for. + * It can be in form of pure ipv4 address (required SubnetMask property) or + * CIDR notation such as ipv4/mask (leading bit match). For CIDR, + * SubnetMask property must not be specified. */ - @JsonProperty(value = "ipAddress", required = true) + @JsonProperty(value = "ipAddress") private String ipAddress; /** @@ -26,8 +29,60 @@ public class IpSecurityRestriction { @JsonProperty(value = "subnetMask") private String subnetMask; + /** + * Virtual network resource id. + */ + @JsonProperty(value = "vnetSubnetResourceId") + private String vnetSubnetResourceId; + + /** + * (internal) Vnet traffic tag. + */ + @JsonProperty(value = "vnetTrafficTag") + private Integer vnetTrafficTag; + + /** + * (internal) Subnet traffic tag. + */ + @JsonProperty(value = "subnetTrafficTag") + private Integer subnetTrafficTag; + + /** + * Allow or Deny access for this IP range. + */ + @JsonProperty(value = "action") + private String action; + + /** + * Defines what this IP filter will be used for. This is to support IP + * filtering on proxies. Possible values include: 'Default', 'XffProxy'. + */ + @JsonProperty(value = "tag") + private IpFilterTag tag; + + /** + * Priority of IP restriction rule. + */ + @JsonProperty(value = "priority") + private Integer priority; + + /** + * IP restriction rule name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * IP restriction rule description. + */ + @JsonProperty(value = "description") + private String description; + /** * Get iP address the security restriction is valid for. + It can be in form of pure ipv4 address (required SubnetMask property) or + CIDR notation such as ipv4/mask (leading bit match). For CIDR, + SubnetMask property must not be specified. * * @return the ipAddress value */ @@ -37,6 +92,9 @@ public String ipAddress() { /** * Set iP address the security restriction is valid for. + It can be in form of pure ipv4 address (required SubnetMask property) or + CIDR notation such as ipv4/mask (leading bit match). For CIDR, + SubnetMask property must not be specified. * * @param ipAddress the ipAddress value to set * @return the IpSecurityRestriction object itself. @@ -66,4 +124,164 @@ public IpSecurityRestriction withSubnetMask(String subnetMask) { return this; } + /** + * Get virtual network resource id. + * + * @return the vnetSubnetResourceId value + */ + public String vnetSubnetResourceId() { + return this.vnetSubnetResourceId; + } + + /** + * Set virtual network resource id. + * + * @param vnetSubnetResourceId the vnetSubnetResourceId value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withVnetSubnetResourceId(String vnetSubnetResourceId) { + this.vnetSubnetResourceId = vnetSubnetResourceId; + return this; + } + + /** + * Get (internal) Vnet traffic tag. + * + * @return the vnetTrafficTag value + */ + public Integer vnetTrafficTag() { + return this.vnetTrafficTag; + } + + /** + * Set (internal) Vnet traffic tag. + * + * @param vnetTrafficTag the vnetTrafficTag value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withVnetTrafficTag(Integer vnetTrafficTag) { + this.vnetTrafficTag = vnetTrafficTag; + return this; + } + + /** + * Get (internal) Subnet traffic tag. + * + * @return the subnetTrafficTag value + */ + public Integer subnetTrafficTag() { + return this.subnetTrafficTag; + } + + /** + * Set (internal) Subnet traffic tag. + * + * @param subnetTrafficTag the subnetTrafficTag value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withSubnetTrafficTag(Integer subnetTrafficTag) { + this.subnetTrafficTag = subnetTrafficTag; + return this; + } + + /** + * Get allow or Deny access for this IP range. + * + * @return the action value + */ + public String action() { + return this.action; + } + + /** + * Set allow or Deny access for this IP range. + * + * @param action the action value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withAction(String action) { + this.action = action; + return this; + } + + /** + * Get defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy'. + * + * @return the tag value + */ + public IpFilterTag tag() { + return this.tag; + } + + /** + * Set defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy'. + * + * @param tag the tag value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withTag(IpFilterTag tag) { + this.tag = tag; + return this; + } + + /** + * Get priority of IP restriction rule. + * + * @return the priority value + */ + public Integer priority() { + return this.priority; + } + + /** + * Set priority of IP restriction rule. + * + * @param priority the priority value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Get iP restriction rule name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set iP restriction rule name. + * + * @param name the name value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withName(String name) { + this.name = name; + return this; + } + + /** + * Get iP restriction rule description. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set iP restriction rule description. + * + * @param description the description value to set + * @return the IpSecurityRestriction object itself. + */ + public IpSecurityRestriction withDescription(String description) { + this.description = description; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/LogSpecification.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/LogSpecification.java new file mode 100644 index 0000000000000..fd0a2961ccf01 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/LogSpecification.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Log Definition of a single resource metric. + */ +public class LogSpecification { + /** + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The displayName property. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * The blobDuration property. + */ + @JsonProperty(value = "blobDuration") + private String blobDuration; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the LogSpecification object itself. + */ + public LogSpecification withName(String name) { + this.name = name; + return this; + } + + /** + * Get the displayName value. + * + * @return the displayName value + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName value. + * + * @param displayName the displayName value to set + * @return the LogSpecification object itself. + */ + public LogSpecification withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the blobDuration value. + * + * @return the blobDuration value + */ + public String blobDuration() { + return this.blobDuration; + } + + /** + * Set the blobDuration value. + * + * @param blobDuration the blobDuration value to set + * @return the LogSpecification object itself. + */ + public LogSpecification withBlobDuration(String blobDuration) { + this.blobDuration = blobDuration; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeploy.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeploy.java index 5e2d54a11fc68..ad4b8a1325a58 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeploy.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeploy.java @@ -9,6 +9,7 @@ package com.microsoft.azure.management.appservice.v2018_02_01; import java.util.Map; +import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; @@ -66,6 +67,13 @@ public class MSDeploy extends ProxyOnlyResource { @JsonProperty(value = "properties.appOffline") private Boolean appOffline; + /** + * List of Add-On packages. Add-On packages implicitly enable the Do Not + * Delete MSDeploy rule. + */ + @JsonProperty(value = "properties.addOnPackages") + private List addOnPackages; + /** * Get package URI. * @@ -214,4 +222,24 @@ public MSDeploy withAppOffline(Boolean appOffline) { return this; } + /** + * Get list of Add-On packages. Add-On packages implicitly enable the Do Not Delete MSDeploy rule. + * + * @return the addOnPackages value + */ + public List addOnPackages() { + return this.addOnPackages; + } + + /** + * Set list of Add-On packages. Add-On packages implicitly enable the Do Not Delete MSDeploy rule. + * + * @param addOnPackages the addOnPackages value to set + * @return the MSDeploy object itself. + */ + public MSDeploy withAddOnPackages(List addOnPackages) { + this.addOnPackages = addOnPackages; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployCore.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployCore.java new file mode 100644 index 0000000000000..c9e6cba30162d --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployCore.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * MSDeploy ARM PUT core information. + */ +public class MSDeployCore { + /** + * Package URI. + */ + @JsonProperty(value = "packageUri") + private String packageUri; + + /** + * SQL Connection String. + */ + @JsonProperty(value = "connectionString") + private String connectionString; + + /** + * Database Type. + */ + @JsonProperty(value = "dbType") + private String dbType; + + /** + * URI of MSDeploy Parameters file. Must not be set if SetParameters is + * used. + */ + @JsonProperty(value = "setParametersXmlFileUri") + private String setParametersXmlFileUri; + + /** + * MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + */ + @JsonProperty(value = "setParameters") + private Map setParameters; + + /** + * Controls whether the MSDeploy operation skips the App_Data directory. + * If set to <code>true</code>, the existing App_Data directory + * on the destination + * will not be deleted, and any App_Data directory in the source will be + * ignored. + * Setting is <code>false</code> by default. + */ + @JsonProperty(value = "skipAppData") + private Boolean skipAppData; + + /** + * Sets the AppOffline rule while the MSDeploy operation executes. + * Setting is <code>false</code> by default. + */ + @JsonProperty(value = "appOffline") + private Boolean appOffline; + + /** + * Get package URI. + * + * @return the packageUri value + */ + public String packageUri() { + return this.packageUri; + } + + /** + * Set package URI. + * + * @param packageUri the packageUri value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withPackageUri(String packageUri) { + this.packageUri = packageUri; + return this; + } + + /** + * Get sQL Connection String. + * + * @return the connectionString value + */ + public String connectionString() { + return this.connectionString; + } + + /** + * Set sQL Connection String. + * + * @param connectionString the connectionString value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withConnectionString(String connectionString) { + this.connectionString = connectionString; + return this; + } + + /** + * Get database Type. + * + * @return the dbType value + */ + public String dbType() { + return this.dbType; + } + + /** + * Set database Type. + * + * @param dbType the dbType value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withDbType(String dbType) { + this.dbType = dbType; + return this; + } + + /** + * Get uRI of MSDeploy Parameters file. Must not be set if SetParameters is used. + * + * @return the setParametersXmlFileUri value + */ + public String setParametersXmlFileUri() { + return this.setParametersXmlFileUri; + } + + /** + * Set uRI of MSDeploy Parameters file. Must not be set if SetParameters is used. + * + * @param setParametersXmlFileUri the setParametersXmlFileUri value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withSetParametersXmlFileUri(String setParametersXmlFileUri) { + this.setParametersXmlFileUri = setParametersXmlFileUri; + return this; + } + + /** + * Get mSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + * + * @return the setParameters value + */ + public Map setParameters() { + return this.setParameters; + } + + /** + * Set mSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. + * + * @param setParameters the setParameters value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withSetParameters(Map setParameters) { + this.setParameters = setParameters; + return this; + } + + /** + * Get controls whether the MSDeploy operation skips the App_Data directory. + If set to <code>true</code>, the existing App_Data directory on the destination + will not be deleted, and any App_Data directory in the source will be ignored. + Setting is <code>false</code> by default. + * + * @return the skipAppData value + */ + public Boolean skipAppData() { + return this.skipAppData; + } + + /** + * Set controls whether the MSDeploy operation skips the App_Data directory. + If set to <code>true</code>, the existing App_Data directory on the destination + will not be deleted, and any App_Data directory in the source will be ignored. + Setting is <code>false</code> by default. + * + * @param skipAppData the skipAppData value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withSkipAppData(Boolean skipAppData) { + this.skipAppData = skipAppData; + return this; + } + + /** + * Get sets the AppOffline rule while the MSDeploy operation executes. + Setting is <code>false</code> by default. + * + * @return the appOffline value + */ + public Boolean appOffline() { + return this.appOffline; + } + + /** + * Set sets the AppOffline rule while the MSDeploy operation executes. + Setting is <code>false</code> by default. + * + * @param appOffline the appOffline value to set + * @return the MSDeployCore object itself. + */ + public MSDeployCore withAppOffline(Boolean appOffline) { + this.appOffline = appOffline; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployLog.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployLog.java index 7026d00407a08..ce807b8182597 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployLog.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployLog.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.MSDeployLogInner; import java.util.List; /** * Type representing MSDeployLog. */ -public interface MSDeployLog extends HasInner, HasManager { +public interface MSDeployLog extends HasInner, HasManager { /** * @return the entries value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployStatus.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployStatus.java index 8ae502a3dd961..66259d74e85b1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployStatus.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MSDeployStatus.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.MSDeployStatusInner; import org.joda.time.DateTime; /** * Type representing MSDeployStatus. */ -public interface MSDeployStatus extends HasInner, HasManager { +public interface MSDeployStatus extends HasInner, HasManager { /** * @return the complete value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ManagedServiceIdentity.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ManagedServiceIdentity.java index 78fc78c579d5c..d1b8c30aece0c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ManagedServiceIdentity.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ManagedServiceIdentity.java @@ -8,7 +8,7 @@ package com.microsoft.azure.management.appservice.v2018_02_01; -import java.util.List; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -35,10 +35,13 @@ public class ManagedServiceIdentity { private String principalId; /** - * Array of UserAssigned managed service identities. + * The list of user assigned identities associated with the resource. The + * user identity dictionary key references will be ARM resource ids in the + * form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. */ - @JsonProperty(value = "identityIds") - private List identityIds; + @JsonProperty(value = "userAssignedIdentities") + private Map userAssignedIdentities; /** * Get type of managed service identity. Possible values include: 'SystemAssigned', 'UserAssigned'. @@ -79,22 +82,22 @@ public String principalId() { } /** - * Get array of UserAssigned managed service identities. + * Get the list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. * - * @return the identityIds value + * @return the userAssignedIdentities value */ - public List identityIds() { - return this.identityIds; + public Map userAssignedIdentities() { + return this.userAssignedIdentities; } /** - * Set array of UserAssigned managed service identities. + * Set the list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. * - * @param identityIds the identityIds value to set + * @param userAssignedIdentities the userAssignedIdentities value to set * @return the ManagedServiceIdentity object itself. */ - public ManagedServiceIdentity withIdentityIds(List identityIds) { - this.identityIds = identityIds; + public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; return this; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ManagedServiceIdentityUserAssignedIdentitiesValue.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ManagedServiceIdentityUserAssignedIdentitiesValue.java new file mode 100644 index 0000000000000..253023ccf8a15 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ManagedServiceIdentityUserAssignedIdentitiesValue.java @@ -0,0 +1,47 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ManagedServiceIdentityUserAssignedIdentitiesValue model. + */ +public class ManagedServiceIdentityUserAssignedIdentitiesValue { + /** + * Principal Id of user assigned identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private String principalId; + + /** + * Client Id of user assigned identity. + */ + @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) + private String clientId; + + /** + * Get principal Id of user assigned identity. + * + * @return the principalId value + */ + public String principalId() { + return this.principalId; + } + + /** + * Get client Id of user assigned identity. + * + * @return the clientId value + */ + public String clientId() { + return this.clientId; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MetricDefinition.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MetricDefinition.java index 89cb698b0952a..8169af713749d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MetricDefinition.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MetricDefinition.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.MetricDefinitionInner; import java.util.List; /** * Type representing MetricDefinition. */ -public interface MetricDefinition extends HasInner, HasManager { +public interface MetricDefinition extends HasInner, HasManager { /** * @return the displayName value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MigrateMySqlStatus.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MigrateMySqlStatus.java index 98954e9580acb..bc3d7468c4b0c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MigrateMySqlStatus.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MigrateMySqlStatus.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.MigrateMySqlStatusInner; /** * Type representing MigrateMySqlStatus. */ -public interface MigrateMySqlStatus extends HasInner, HasManager { +public interface MigrateMySqlStatus extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MultiRolePools.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MultiRolePools.java index df44cd54eb88b..addf3c5ecf618 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MultiRolePools.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/MultiRolePools.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.WorkerPoolResourceInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; /** * Type representing MultiRolePools. */ -public interface MultiRolePools extends HasInner, HasManager { +public interface MultiRolePools extends HasInner, HasManager { /** * @return the computeMode value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NameIdentifier.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NameIdentifier.java index 15b3955be369c..da9e7bf23fbb5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NameIdentifier.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NameIdentifier.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.NameIdentifierInner; /** * Type representing NameIdentifier. */ -public interface NameIdentifier extends HasInner, HasManager { +public interface NameIdentifier extends HasInner, HasManager { /** * @return the name value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NetworkFeatures.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NetworkFeatures.java index 0272b459e50cc..c5d29470d8ed0 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NetworkFeatures.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NetworkFeatures.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; /** * Type representing NetworkFeatures. */ -public interface NetworkFeatures extends HasInner, Indexable, Refreshable, HasManager { +public interface NetworkFeatures extends HasInner, Indexable, Refreshable, HasManager { /** * @return the hybridConnections value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NetworkTrace.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NetworkTrace.java new file mode 100644 index 0000000000000..ef4e48f52b4e6 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/NetworkTrace.java @@ -0,0 +1,35 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.NetworkTraceInner; + +/** + * Type representing NetworkTrace. + */ +public interface NetworkTrace extends HasInner, HasManager { + /** + * @return the message value. + */ + String message(); + + /** + * @return the path value. + */ + String path(); + + /** + * @return the status value. + */ + String status(); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Operation.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Operation.java index a484cd157dbc0..451eb1d2a89ec 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Operation.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Operation.java @@ -11,7 +11,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.OperationInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; import java.util.List; import java.util.UUID; @@ -19,7 +19,7 @@ /** * Type representing Operation. */ -public interface Operation extends HasInner, HasManager { +public interface Operation extends HasInner, HasManager { /** * @return the createdTime value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/OutboundEnvironmentEndpoint.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/OutboundEnvironmentEndpoint.java new file mode 100644 index 0000000000000..e1edbad0e1574 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/OutboundEnvironmentEndpoint.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.OutboundEnvironmentEndpointInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import java.util.List; + +/** + * Type representing OutboundEnvironmentEndpoint. + */ +public interface OutboundEnvironmentEndpoint extends HasInner, HasManager { + /** + * @return the category value. + */ + String category(); + + /** + * @return the endpoints value. + */ + List endpoints(); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PerfMonResponse.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PerfMonResponse.java index 3ceac9152bb4b..1c6659294dfdc 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PerfMonResponse.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PerfMonResponse.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PerfMonResponseInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing PerfMonResponse. */ -public interface PerfMonResponse extends HasInner, HasManager { +public interface PerfMonResponse extends HasInner, HasManager { /** * @return the code value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOn.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOn.java index 80132a119ad1d..16fa93ce58c3b 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOn.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOn.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.Map; /** * Type representing PremierAddOn. */ -public interface PremierAddOn extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface PremierAddOn extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -100,6 +100,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithLocation withExistingSite(String resourceGroupName, String name); } @@ -110,6 +113,8 @@ interface WithSite { interface WithLocation { /** * Specifies location. + * @param location Resource Location + * @return the next definition stage */ WithCreate withLocation(String location); } @@ -120,6 +125,8 @@ interface WithLocation { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -130,6 +137,8 @@ interface WithKind { interface WithMarketplaceOffer { /** * Specifies marketplaceOffer. + * @param marketplaceOffer Premier add on Marketplace offer + * @return the next definition stage */ WithCreate withMarketplaceOffer(String marketplaceOffer); } @@ -140,6 +149,8 @@ interface WithMarketplaceOffer { interface WithMarketplacePublisher { /** * Specifies marketplacePublisher. + * @param marketplacePublisher Premier add on Marketplace publisher + * @return the next definition stage */ WithCreate withMarketplacePublisher(String marketplacePublisher); } @@ -150,6 +161,8 @@ interface WithMarketplacePublisher { interface WithProduct { /** * Specifies product. + * @param product Premier add on Product + * @return the next definition stage */ WithCreate withProduct(String product); } @@ -160,6 +173,8 @@ interface WithProduct { interface WithSku { /** * Specifies sku. + * @param sku Premier add on SKU + * @return the next definition stage */ WithCreate withSku(String sku); } @@ -170,6 +185,8 @@ interface WithSku { interface WithTags { /** * Specifies tags. + * @param tags Resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -180,6 +197,8 @@ interface WithTags { interface WithVendor { /** * Specifies vendor. + * @param vendor Premier add on Vendor + * @return the next definition stage */ WithCreate withVendor(String vendor); } @@ -195,7 +214,7 @@ interface WithCreate extends Creatable, DefinitionStages.WithKind, /** * The template for a PremierAddOn update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithKind, UpdateStages.WithMarketplaceOffer, UpdateStages.WithMarketplacePublisher, UpdateStages.WithProduct, UpdateStages.WithSku, UpdateStages.WithTags, UpdateStages.WithVendor { + interface Update extends Appliable, UpdateStages.WithKind, UpdateStages.WithMarketplaceOffer, UpdateStages.WithMarketplacePublisher, UpdateStages.WithProduct, UpdateStages.WithSku, UpdateStages.WithVendor { } /** @@ -208,6 +227,8 @@ interface UpdateStages { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -218,6 +239,8 @@ interface WithKind { interface WithMarketplaceOffer { /** * Specifies marketplaceOffer. + * @param marketplaceOffer Premier add on Marketplace offer + * @return the next update stage */ Update withMarketplaceOffer(String marketplaceOffer); } @@ -228,6 +251,8 @@ interface WithMarketplaceOffer { interface WithMarketplacePublisher { /** * Specifies marketplacePublisher. + * @param marketplacePublisher Premier add on Marketplace publisher + * @return the next update stage */ Update withMarketplacePublisher(String marketplacePublisher); } @@ -238,6 +263,8 @@ interface WithMarketplacePublisher { interface WithProduct { /** * Specifies product. + * @param product Premier add on Product + * @return the next update stage */ Update withProduct(String product); } @@ -248,26 +275,20 @@ interface WithProduct { interface WithSku { /** * Specifies sku. + * @param sku Premier add on SKU + * @return the next update stage */ Update withSku(String sku); } - /** - * The stage of the premieraddon update allowing to specify Tags. - */ - interface WithTags { - /** - * Specifies tags. - */ - Update withTags(Map tags); - } - /** * The stage of the premieraddon update allowing to specify Vendor. */ interface WithVendor { /** * Specifies vendor. + * @param vendor Premier add on Vendor + * @return the next update stage */ Update withVendor(String vendor); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOnPatchResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOnPatchResource.java new file mode 100644 index 0000000000000..bfedd7eda264d --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOnPatchResource.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * ARM resource for a PremierAddOn. + */ +@JsonFlatten +public class PremierAddOnPatchResource extends ProxyOnlyResource { + /** + * Premier add on SKU. + */ + @JsonProperty(value = "properties.sku") + private String sku; + + /** + * Premier add on Product. + */ + @JsonProperty(value = "properties.product") + private String product; + + /** + * Premier add on Vendor. + */ + @JsonProperty(value = "properties.vendor") + private String vendor; + + /** + * Premier add on Marketplace publisher. + */ + @JsonProperty(value = "properties.marketplacePublisher") + private String marketplacePublisher; + + /** + * Premier add on Marketplace offer. + */ + @JsonProperty(value = "properties.marketplaceOffer") + private String marketplaceOffer; + + /** + * Get premier add on SKU. + * + * @return the sku value + */ + public String sku() { + return this.sku; + } + + /** + * Set premier add on SKU. + * + * @param sku the sku value to set + * @return the PremierAddOnPatchResource object itself. + */ + public PremierAddOnPatchResource withSku(String sku) { + this.sku = sku; + return this; + } + + /** + * Get premier add on Product. + * + * @return the product value + */ + public String product() { + return this.product; + } + + /** + * Set premier add on Product. + * + * @param product the product value to set + * @return the PremierAddOnPatchResource object itself. + */ + public PremierAddOnPatchResource withProduct(String product) { + this.product = product; + return this; + } + + /** + * Get premier add on Vendor. + * + * @return the vendor value + */ + public String vendor() { + return this.vendor; + } + + /** + * Set premier add on Vendor. + * + * @param vendor the vendor value to set + * @return the PremierAddOnPatchResource object itself. + */ + public PremierAddOnPatchResource withVendor(String vendor) { + this.vendor = vendor; + return this; + } + + /** + * Get premier add on Marketplace publisher. + * + * @return the marketplacePublisher value + */ + public String marketplacePublisher() { + return this.marketplacePublisher; + } + + /** + * Set premier add on Marketplace publisher. + * + * @param marketplacePublisher the marketplacePublisher value to set + * @return the PremierAddOnPatchResource object itself. + */ + public PremierAddOnPatchResource withMarketplacePublisher(String marketplacePublisher) { + this.marketplacePublisher = marketplacePublisher; + return this; + } + + /** + * Get premier add on Marketplace offer. + * + * @return the marketplaceOffer value + */ + public String marketplaceOffer() { + return this.marketplaceOffer; + } + + /** + * Set premier add on Marketplace offer. + * + * @param marketplaceOffer the marketplaceOffer value to set + * @return the PremierAddOnPatchResource object itself. + */ + public PremierAddOnPatchResource withMarketplaceOffer(String marketplaceOffer) { + this.marketplaceOffer = marketplaceOffer; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PrivateAccess.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PrivateAccess.java index add05acbac1c6..aec627cde5be9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PrivateAccess.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PrivateAccess.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PrivateAccessInner; import java.util.List; /** * Type representing PrivateAccess. */ -public interface PrivateAccess extends HasInner, HasManager { +public interface PrivateAccess extends HasInner, HasManager { /** * @return the enabled value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessInfo.java index d9c894a8e0c65..cb86702a6f1c2 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessInfo.java @@ -13,7 +13,7 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import java.util.Map; import org.joda.time.DateTime; @@ -21,7 +21,7 @@ /** * Type representing ProcessInfo. */ -public interface ProcessInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface ProcessInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the children value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessModuleInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessModuleInfo.java index fd9b214e639e5..bd652d6d46bd9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessModuleInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessModuleInfo.java @@ -13,12 +13,12 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing ProcessModuleInfo. */ -public interface ProcessModuleInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface ProcessModuleInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the baseAddress value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessThreadInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessThreadInfo.java index d3f2c7c2ae87d..3e30c7bec4c28 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessThreadInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ProcessThreadInfo.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; /** * Type representing ProcessThreadInfo. */ -public interface ProcessThreadInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface ProcessThreadInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the basePriority value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PublicCertificate.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PublicCertificate.java index 1b539f3544bf3..9ffee1c242a0e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PublicCertificate.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PublicCertificate.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing PublicCertificate. */ -public interface PublicCertificate extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface PublicCertificate extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the blob value. */ @@ -79,6 +79,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } @@ -89,6 +92,8 @@ interface WithSite { interface WithBlob { /** * Specifies blob. + * @param blob Public Certificate byte array + * @return the next definition stage */ WithCreate withBlob(byte[] blob); } @@ -99,6 +104,8 @@ interface WithBlob { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -109,6 +116,8 @@ interface WithKind { interface WithPublicCertificateLocation { /** * Specifies publicCertificateLocation. + * @param publicCertificateLocation Public Certificate Location. Possible values include: 'CurrentUserMy', 'LocalMachineMy', 'Unknown' + * @return the next definition stage */ WithCreate withPublicCertificateLocation(PublicCertificateLocation publicCertificateLocation); } @@ -137,6 +146,8 @@ interface UpdateStages { interface WithBlob { /** * Specifies blob. + * @param blob Public Certificate byte array + * @return the next update stage */ Update withBlob(byte[] blob); } @@ -147,6 +158,8 @@ interface WithBlob { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -157,6 +170,8 @@ interface WithKind { interface WithPublicCertificateLocation { /** * Specifies publicCertificateLocation. + * @param publicCertificateLocation Public Certificate Location. Possible values include: 'CurrentUserMy', 'LocalMachineMy', 'Unknown' + * @return the next update stage */ Update withPublicCertificateLocation(PublicCertificateLocation publicCertificateLocation); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PushSettings.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PushSettings.java index c24395b90ac3c..28170ac8abdf6 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PushSettings.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PushSettings.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PushSettingsInner; /** * Type representing PushSettings. */ -public interface PushSettings extends HasInner, HasManager { +public interface PushSettings extends HasInner, HasManager { /** * @return the dynamicTagsJson value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RampUpRule.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RampUpRule.java index 3d06c5c350159..f1374753e761c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RampUpRule.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RampUpRule.java @@ -30,11 +30,11 @@ public class RampUpRule { private Double reroutePercentage; /** - * In auto ramp up scenario this is the step to to add/remove from + * In auto ramp up scenario this is the step to add/remove from * <code>ReroutePercentage</code> until it reaches * <code>MinReroutePercentage</code> or * <code>MaxReroutePercentage</code>. Site metrics are checked - * every N minutes specificed in + * every N minutes specified in * <code>ChangeIntervalInMinutes</code>. * Custom decision algorithm can be provided in TiPCallback site extension * which URL can be specified in @@ -44,7 +44,7 @@ public class RampUpRule { private Double changeStep; /** - * Specifies interval in mimuntes to reevaluate ReroutePercentage. + * Specifies interval in minutes to reevaluate ReroutePercentage. */ @JsonProperty(value = "changeIntervalInMinutes") private Integer changeIntervalInMinutes; @@ -118,8 +118,8 @@ public RampUpRule withReroutePercentage(Double reroutePercentage) { } /** - * Get in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Get in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @return the changeStep value @@ -129,8 +129,8 @@ public Double changeStep() { } /** - * Set in auto ramp up scenario this is the step to to add/remove from <code>ReroutePercentage</code> until it reaches - <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specificed in <code>ChangeIntervalInMinutes</code>. + * Set in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches + <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>. * * @param changeStep the changeStep value to set @@ -142,7 +142,7 @@ public RampUpRule withChangeStep(Double changeStep) { } /** - * Get specifies interval in mimuntes to reevaluate ReroutePercentage. + * Get specifies interval in minutes to reevaluate ReroutePercentage. * * @return the changeIntervalInMinutes value */ @@ -151,7 +151,7 @@ public Integer changeIntervalInMinutes() { } /** - * Set specifies interval in mimuntes to reevaluate ReroutePercentage. + * Set specifies interval in minutes to reevaluate ReroutePercentage. * * @param changeIntervalInMinutes the changeIntervalInMinutes value to set * @return the RampUpRule object itself. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendation.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendation.java index a747281c47216..231dab0196ff0 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendation.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendation.java @@ -11,7 +11,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RecommendationInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import org.joda.time.DateTime; import java.util.UUID; @@ -19,7 +19,7 @@ /** * Type representing Recommendation. */ -public interface Recommendation extends HasInner, HasManager { +public interface Recommendation extends HasInner, HasManager { /** * @return the actionName value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RecommendationRule.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RecommendationRule.java index 50fe554598653..55e551dfc08d7 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RecommendationRule.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RecommendationRule.java @@ -10,7 +10,7 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RecommendationRuleInner; import java.util.List; import java.util.UUID; @@ -18,7 +18,7 @@ /** * Type representing RecommendationRule. */ -public interface RecommendationRule extends HasInner, HasManager { +public interface RecommendationRule extends HasInner, HasManager { /** * @return the actionName value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendations.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendations.java index 376dcdd8ebf94..6cc6d06990432 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendations.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Recommendations.java @@ -37,6 +37,66 @@ public interface Recommendations extends SupportsListing, HasInn */ Completable disableRecommendationForSubscriptionAsync(String name); + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listRecommendedRulesForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName); + + /** + * Disable all recommendations for an app. + * Disable all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable disableAllForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName); + + /** + * Reset all recommendation opt-out settings for an app. + * Reset all recommendation opt-out settings for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable resetAllFiltersForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName); + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the hosting environment. + * @param name Name of the recommendation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getRuleDetailsByHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String name); + + /** + * Disables the specific rule for a web site permanently. + * Disables the specific rule for a web site permanently. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Rule name + * @param hostingEnvironmentName the String value + * @param environmentName Site name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable disableRecommendationForHostingEnvironmentAsync(String resourceGroupName, String name, String hostingEnvironmentName, String environmentName); + /** * Get all recommendations for an app. * Get all recommendations for an app. @@ -94,6 +154,17 @@ public interface Recommendations extends SupportsListing, HasInn */ Completable disableRecommendationForSiteAsync(String resourceGroupName, String siteName, String name); + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param hostingEnvironmentName Name of the hosting environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listHistoryForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName); + /** * Get past recommendations for an app, optionally specified by the time range. * Get past recommendations for an app, optionally specified by the time range. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RedundancyMode.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RedundancyMode.java new file mode 100644 index 0000000000000..834eb84d82191 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RedundancyMode.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for RedundancyMode. + */ +public enum RedundancyMode { + /** Enum value None. */ + NONE("None"), + + /** Enum value Manual. */ + MANUAL("Manual"), + + /** Enum value Failover. */ + FAILOVER("Failover"), + + /** Enum value ActiveActive. */ + ACTIVE_ACTIVE("ActiveActive"), + + /** Enum value GeoRedundant. */ + GEO_REDUNDANT("GeoRedundant"); + + /** The actual serialized value for a RedundancyMode instance. */ + private String value; + + RedundancyMode(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RedundancyMode instance. + * + * @param value the serialized value to parse. + * @return the parsed RedundancyMode object, or null if unable to parse. + */ + @JsonCreator + public static RedundancyMode fromString(String value) { + RedundancyMode[] items = RedundancyMode.values(); + for (RedundancyMode item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RelayServiceConnectionEntity.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RelayServiceConnectionEntity.java index 862eeba5f4780..08225749727ac 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RelayServiceConnectionEntity.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RelayServiceConnectionEntity.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RelayServiceConnectionEntityInner; /** * Type representing RelayServiceConnectionEntity. */ -public interface RelayServiceConnectionEntity extends HasInner, HasManager { +public interface RelayServiceConnectionEntity extends HasInner, HasManager { /** * @return the biztalkUri value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Rendering.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Rendering.java new file mode 100644 index 0000000000000..d4ec7d15d2bab --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Rendering.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Instructions for rendering the data. + */ +public class Rendering { + /** + * Rendering Type. Possible values include: 'NoGraph', 'Table', + * 'TimeSeries', 'TimeSeriesPerInstance'. + */ + @JsonProperty(value = "type") + private RenderingType type; + + /** + * Title of data. + */ + @JsonProperty(value = "title") + private String title; + + /** + * Description of the data that will help it be interpreted. + */ + @JsonProperty(value = "description") + private String description; + + /** + * Get rendering Type. Possible values include: 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance'. + * + * @return the type value + */ + public RenderingType type() { + return this.type; + } + + /** + * Set rendering Type. Possible values include: 'NoGraph', 'Table', 'TimeSeries', 'TimeSeriesPerInstance'. + * + * @param type the type value to set + * @return the Rendering object itself. + */ + public Rendering withType(RenderingType type) { + this.type = type; + return this; + } + + /** + * Get title of data. + * + * @return the title value + */ + public String title() { + return this.title; + } + + /** + * Set title of data. + * + * @param title the title value to set + * @return the Rendering object itself. + */ + public Rendering withTitle(String title) { + this.title = title; + return this; + } + + /** + * Get description of the data that will help it be interpreted. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set description of the data that will help it be interpreted. + * + * @param description the description value to set + * @return the Rendering object itself. + */ + public Rendering withDescription(String description) { + this.description = description; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RenderingType.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RenderingType.java new file mode 100644 index 0000000000000..d52efbc0eafca --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RenderingType.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for RenderingType. + */ +public enum RenderingType { + /** Enum value NoGraph. */ + NO_GRAPH("NoGraph"), + + /** Enum value Table. */ + TABLE("Table"), + + /** Enum value TimeSeries. */ + TIME_SERIES("TimeSeries"), + + /** Enum value TimeSeriesPerInstance. */ + TIME_SERIES_PER_INSTANCE("TimeSeriesPerInstance"); + + /** The actual serialized value for a RenderingType instance. */ + private String value; + + RenderingType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a RenderingType instance. + * + * @param value the serialized value to parse. + * @return the parsed RenderingType object, or null if unable to parse. + */ + @JsonCreator + public static RenderingType fromString(String value) { + RenderingType[] items = RenderingType.values(); + for (RenderingType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ResourceHealthMetadata.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ResourceHealthMetadata.java new file mode 100644 index 0000000000000..e47126ad5b89b --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ResourceHealthMetadata.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ResourceHealthMetadataInner; + +/** + * Type representing ResourceHealthMetadata. + */ +public interface ResourceHealthMetadata extends HasInner, HasManager { + /** + * @return the category value. + */ + String category(); + + /** + * @return the id value. + */ + String id(); + + /** + * @return the kind value. + */ + String kind(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the signalAvailability value. + */ + Boolean signalAvailability(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ResourceHealthMetadatas.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ResourceHealthMetadatas.java new file mode 100644 index 0000000000000..378b957895bce --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ResourceHealthMetadatas.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import rx.Observable; + +/** + * Type representing ResourceHealthMetadatas. + */ +public interface ResourceHealthMetadatas { + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listBySiteAsync(final String resourceGroupName, final String name); + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getBySiteAsync(String resourceGroupName, String name); + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAsync(); + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listByResourceGroupAsync(final String resourceGroupName); + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listBySiteSlotAsync(final String resourceGroupName, final String name, final String slot); + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getBySiteSlotAsync(String resourceGroupName, String name, String slot); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RestoreRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RestoreRequest.java index 033364d8266db..bc397927de60c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RestoreRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RestoreRequest.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RestoreRequestInner; import java.util.List; /** * Type representing RestoreRequest. */ -public interface RestoreRequest extends HasInner, HasManager { +public interface RestoreRequest extends HasInner, HasManager { /** * @return the adjustConnectionStrings value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmCsmUsageQuota.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmCsmUsageQuota.java index 7bf86efcc8293..55c2b358dc78b 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmCsmUsageQuota.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmCsmUsageQuota.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CsmUsageQuotaInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; /** * Type representing ServerfarmCsmUsageQuota. */ -public interface ServerfarmCsmUsageQuota extends HasInner, HasManager { +public interface ServerfarmCsmUsageQuota extends HasInner, HasManager { /** * @return the currentValue value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmHybridConnection.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmHybridConnection.java index e5760052b8ca3..0ed638bfd3cb3 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmHybridConnection.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmHybridConnection.java @@ -13,12 +13,12 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing ServerfarmHybridConnection. */ -public interface ServerfarmHybridConnection extends HasInner, Indexable, Refreshable, HasManager { +public interface ServerfarmHybridConnection extends HasInner, Indexable, Refreshable, HasManager { /** * @return the hostname value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetric.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetric.java index 4e7a043ca70bc..46c44b97a0043 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetric.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetric.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ResourceMetricInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing ServerfarmResourceMetric. */ -public interface ServerfarmResourceMetric extends HasInner, HasManager { +public interface ServerfarmResourceMetric extends HasInner, HasManager { /** * @return the endTime value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetricDefinition.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetricDefinition.java index a380f98605589..2f982bfb4a8de 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetricDefinition.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmResourceMetricDefinition.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ResourceMetricDefinitionInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import java.util.Map; /** * Type representing ServerfarmResourceMetricDefinition. */ -public interface ServerfarmResourceMetricDefinition extends HasInner, HasManager { +public interface ServerfarmResourceMetricDefinition extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmSite.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmSite.java index d88e1392432a2..6467a9ee9110d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmSite.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmSite.java @@ -11,15 +11,16 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; +import java.util.UUID; import org.joda.time.DateTime; import java.util.Map; /** * Type representing ServerfarmSite. */ -public interface ServerfarmSite extends HasInner, HasManager { +public interface ServerfarmSite extends HasInner, HasManager { /** * @return the availabilityState value. */ @@ -35,6 +36,11 @@ public interface ServerfarmSite extends HasInner, HasManager, HasManager enabledHostNames(); + /** + * @return the geoDistributions value. + */ + List geoDistributions(); + /** * @return the hostingEnvironmentProfile value. */ @@ -90,6 +101,11 @@ public interface ServerfarmSite extends HasInner, HasManager, HasManager, HasManager, HasManager, Indexable, Refreshable, Updatable, HasManager { +public interface ServerfarmVnetGateway extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -67,6 +67,8 @@ interface UpdateStages { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -77,6 +79,8 @@ interface WithKind { interface WithVnetName { /** * Specifies vnetName. + * @param vnetName The Virtual Network name + * @return the next update stage */ Update withVnetName(String vnetName); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java index 9b860fc0e759a..2cdea9007e60c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; /** * Type representing ServerfarmVnetInfo. */ -public interface ServerfarmVnetInfo extends HasInner, Indexable, Refreshable, HasManager { +public interface ServerfarmVnetInfo extends HasInner, Indexable, Refreshable, HasManager { /** * @return the certBlob value. */ @@ -40,6 +40,11 @@ public interface ServerfarmVnetInfo extends HasInner, Indexable, */ String id(); + /** + * @return the isSwift value. + */ + Boolean isSwift(); + /** * @return the kind value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServiceSpecification.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServiceSpecification.java index 4497d3f861e26..56f1f84c1d4a5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServiceSpecification.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServiceSpecification.java @@ -21,6 +21,12 @@ public class ServiceSpecification { @JsonProperty(value = "metricSpecifications") private List metricSpecifications; + /** + * The logSpecifications property. + */ + @JsonProperty(value = "logSpecifications") + private List logSpecifications; + /** * Get the metricSpecifications value. * @@ -41,4 +47,24 @@ public ServiceSpecification withMetricSpecifications(List m return this; } + /** + * Get the logSpecifications value. + * + * @return the logSpecifications value + */ + public List logSpecifications() { + return this.logSpecifications; + } + + /** + * Set the logSpecifications value. + * + * @param logSpecifications the logSpecifications value to set + * @return the ServiceSpecification object itself. + */ + public ServiceSpecification withLogSpecifications(List logSpecifications) { + this.logSpecifications = logSpecifications; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java index 2dc022bf7397f..1a0f191aa5fa1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteAuthSettingsInner; import java.util.List; /** * Type representing SiteAuthSettings. */ -public interface SiteAuthSettings extends HasInner, HasManager { +public interface SiteAuthSettings extends HasInner, HasManager { /** * @return the additionalLoginParams value. */ @@ -43,6 +43,11 @@ public interface SiteAuthSettings extends HasInner, HasMa */ String clientSecret(); + /** + * @return the clientSecretCertificateThumbprint value. + */ + String clientSecretCertificateThumbprint(); + /** * @return the defaultProvider value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCloneability.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCloneability.java index f3b3549c775a8..11a026bf47a3e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCloneability.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCloneability.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteCloneabilityInner; import java.util.List; /** * Type representing SiteCloneability. */ -public interface SiteCloneability extends HasInner, HasManager { +public interface SiteCloneability extends HasInner, HasManager { /** * @return the blockingCharacteristics value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfig.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfig.java index 31b877c49d29a..1f64a16a76cab 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfig.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfig.java @@ -10,6 +10,7 @@ import java.util.List; import org.joda.time.DateTime; +import java.util.Map; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PushSettingsInner; import com.fasterxml.jackson.annotation.JsonProperty; @@ -62,8 +63,8 @@ public class SiteConfig { /** * Xenon App Framework and version. */ - @JsonProperty(value = "xenonFxVersion") - private String xenonFxVersion; + @JsonProperty(value = "windowsFxVersion") + private String windowsFxVersion; /** * <code>true</code> if request tracing is enabled; otherwise, @@ -123,6 +124,12 @@ public class SiteConfig { @JsonProperty(value = "appSettings") private List appSettings; + /** + * User-provided Azure storage accounts. + */ + @JsonProperty(value = "azureStorageAccounts") + private Map azureStorageAccounts; + /** * Connection strings. */ @@ -221,7 +228,7 @@ public class SiteConfig { private SiteLoadBalancing loadBalancing; /** - * This is work around for polymophic types. + * This is work around for polymorphic types. */ @JsonProperty(value = "experiments") private Experiments experiments; @@ -301,11 +308,23 @@ public class SiteConfig { private Integer xManagedServiceIdentityId; /** - * IP security restrictions. + * IP security restrictions for main. */ @JsonProperty(value = "ipSecurityRestrictions") private List ipSecurityRestrictions; + /** + * IP security restrictions for scm. + */ + @JsonProperty(value = "scmIpSecurityRestrictions") + private List scmIpSecurityRestrictions; + + /** + * IP security restrictions for scm to use main. + */ + @JsonProperty(value = "scmIpSecurityRestrictionsUseMain") + private Boolean scmIpSecurityRestrictionsUseMain; + /** * Http20Enabled: configures a web site to allow clients to connect over * http2.0. @@ -327,6 +346,13 @@ public class SiteConfig { @JsonProperty(value = "ftpsState") private FtpsState ftpsState; + /** + * Number of reserved instances. + * This setting only applies to the Consumption Plan. + */ + @JsonProperty(value = "reservedInstanceCount") + private Integer reservedInstanceCount; + /** * Get number of workers. * @@ -470,20 +496,20 @@ public SiteConfig withLinuxFxVersion(String linuxFxVersion) { /** * Get xenon App Framework and version. * - * @return the xenonFxVersion value + * @return the windowsFxVersion value */ - public String xenonFxVersion() { - return this.xenonFxVersion; + public String windowsFxVersion() { + return this.windowsFxVersion; } /** * Set xenon App Framework and version. * - * @param xenonFxVersion the xenonFxVersion value to set + * @param windowsFxVersion the windowsFxVersion value to set * @return the SiteConfig object itself. */ - public SiteConfig withXenonFxVersion(String xenonFxVersion) { - this.xenonFxVersion = xenonFxVersion; + public SiteConfig withWindowsFxVersion(String windowsFxVersion) { + this.windowsFxVersion = windowsFxVersion; return this; } @@ -667,6 +693,26 @@ public SiteConfig withAppSettings(List appSettings) { return this; } + /** + * Get user-provided Azure storage accounts. + * + * @return the azureStorageAccounts value + */ + public Map azureStorageAccounts() { + return this.azureStorageAccounts; + } + + /** + * Set user-provided Azure storage accounts. + * + * @param azureStorageAccounts the azureStorageAccounts value to set + * @return the SiteConfig object itself. + */ + public SiteConfig withAzureStorageAccounts(Map azureStorageAccounts) { + this.azureStorageAccounts = azureStorageAccounts; + return this; + } + /** * Get connection strings. * @@ -957,7 +1003,7 @@ public SiteConfig withLoadBalancing(SiteLoadBalancing loadBalancing) { } /** - * Get this is work around for polymophic types. + * Get this is work around for polymorphic types. * * @return the experiments value */ @@ -966,7 +1012,7 @@ public Experiments experiments() { } /** - * Set this is work around for polymophic types. + * Set this is work around for polymorphic types. * * @param experiments the experiments value to set * @return the SiteConfig object itself. @@ -1217,7 +1263,7 @@ public SiteConfig withXManagedServiceIdentityId(Integer xManagedServiceIdentityI } /** - * Get iP security restrictions. + * Get iP security restrictions for main. * * @return the ipSecurityRestrictions value */ @@ -1226,7 +1272,7 @@ public List ipSecurityRestrictions() { } /** - * Set iP security restrictions. + * Set iP security restrictions for main. * * @param ipSecurityRestrictions the ipSecurityRestrictions value to set * @return the SiteConfig object itself. @@ -1236,6 +1282,46 @@ public SiteConfig withIpSecurityRestrictions(List ipSecur return this; } + /** + * Get iP security restrictions for scm. + * + * @return the scmIpSecurityRestrictions value + */ + public List scmIpSecurityRestrictions() { + return this.scmIpSecurityRestrictions; + } + + /** + * Set iP security restrictions for scm. + * + * @param scmIpSecurityRestrictions the scmIpSecurityRestrictions value to set + * @return the SiteConfig object itself. + */ + public SiteConfig withScmIpSecurityRestrictions(List scmIpSecurityRestrictions) { + this.scmIpSecurityRestrictions = scmIpSecurityRestrictions; + return this; + } + + /** + * Get iP security restrictions for scm to use main. + * + * @return the scmIpSecurityRestrictionsUseMain value + */ + public Boolean scmIpSecurityRestrictionsUseMain() { + return this.scmIpSecurityRestrictionsUseMain; + } + + /** + * Set iP security restrictions for scm to use main. + * + * @param scmIpSecurityRestrictionsUseMain the scmIpSecurityRestrictionsUseMain value to set + * @return the SiteConfig object itself. + */ + public SiteConfig withScmIpSecurityRestrictionsUseMain(Boolean scmIpSecurityRestrictionsUseMain) { + this.scmIpSecurityRestrictionsUseMain = scmIpSecurityRestrictionsUseMain; + return this; + } + /** * Get http20Enabled: configures a web site to allow clients to connect over http2.0. * @@ -1296,4 +1382,26 @@ public SiteConfig withFtpsState(FtpsState ftpsState) { return this; } + /** + * Get number of reserved instances. + This setting only applies to the Consumption Plan. + * + * @return the reservedInstanceCount value + */ + public Integer reservedInstanceCount() { + return this.reservedInstanceCount; + } + + /** + * Set number of reserved instances. + This setting only applies to the Consumption Plan. + * + * @param reservedInstanceCount the reservedInstanceCount value to set + * @return the SiteConfig object itself. + */ + public SiteConfig withReservedInstanceCount(Integer reservedInstanceCount) { + this.reservedInstanceCount = reservedInstanceCount; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigResource.java index f46fef6dd3297..292c423f38448 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigResource.java @@ -10,16 +10,17 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteConfigResourceInner; import java.util.List; +import java.util.Map; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PushSettingsInner; import org.joda.time.DateTime; /** * Type representing SiteConfigResource. */ -public interface SiteConfigResource extends HasInner, HasManager { +public interface SiteConfigResource extends HasInner, HasManager { /** * @return the alwaysOn value. */ @@ -55,6 +56,11 @@ public interface SiteConfigResource extends HasInner, H */ String autoSwapSlotName(); + /** + * @return the azureStorageAccounts value. + */ + Map azureStorageAccounts(); + /** * @return the connectionStrings value. */ @@ -240,6 +246,21 @@ public interface SiteConfigResource extends HasInner, H */ DateTime requestTracingExpirationTime(); + /** + * @return the reservedInstanceCount value. + */ + Integer reservedInstanceCount(); + + /** + * @return the scmIpSecurityRestrictions value. + */ + List scmIpSecurityRestrictions(); + + /** + * @return the scmIpSecurityRestrictionsUseMain value. + */ + Boolean scmIpSecurityRestrictionsUseMain(); + /** * @return the scmType value. */ @@ -276,9 +297,9 @@ public interface SiteConfigResource extends HasInner, H Boolean webSocketsEnabled(); /** - * @return the xenonFxVersion value. + * @return the windowsFxVersion value. */ - String xenonFxVersion(); + String windowsFxVersion(); /** * @return the xManagedServiceIdentityId value. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigurationSnapshotInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigurationSnapshotInfo.java index 0c45c47e1f665..5ef5118198475 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigurationSnapshotInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfigurationSnapshotInfo.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteConfigurationSnapshotInfoInner; import org.joda.time.DateTime; /** * Type representing SiteConfigurationSnapshotInfo. */ -public interface SiteConfigurationSnapshotInfo extends HasInner, HasManager { +public interface SiteConfigurationSnapshotInfo extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCsmUsageQuota.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCsmUsageQuota.java index b0cd683832701..61f2a99b8bc81 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCsmUsageQuota.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteCsmUsageQuota.java @@ -11,13 +11,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CsmUsageQuotaInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; /** * Type representing SiteCsmUsageQuota. */ -public interface SiteCsmUsageQuota extends HasInner, HasManager { +public interface SiteCsmUsageQuota extends HasInner, HasManager { /** * @return the currentValue value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteExtensionInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteExtensionInfo.java index e47448c06d9e9..20b75713ea9bd 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteExtensionInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteExtensionInfo.java @@ -16,14 +16,14 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import org.joda.time.DateTime; /** * Type representing SiteExtensionInfo. */ -public interface SiteExtensionInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface SiteExtensionInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the authors value. */ @@ -166,6 +166,9 @@ interface Blank extends WithSite { interface WithSite { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Site name + * @return the next definition stage */ WithCreate withExistingSite(String resourceGroupName, String name); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteHybridConnection.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteHybridConnection.java index 9417e4e822172..fcd20718f91dc 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteHybridConnection.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteHybridConnection.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing SiteHybridConnection. */ -public interface SiteHybridConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface SiteHybridConnection extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the hostname value. */ @@ -104,6 +104,10 @@ interface Blank extends WithHybridConnectionNamespace { interface WithHybridConnectionNamespace { /** * Specifies resourceGroupName, name, namespaceName. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name The name of the web app + * @param namespaceName The namespace for this hybrid connection + * @return the next definition stage */ WithCreate withExistingHybridConnectionNamespace(String resourceGroupName, String name, String namespaceName); } @@ -114,6 +118,8 @@ interface WithHybridConnectionNamespace { interface WithHostname { /** * Specifies hostname. + * @param hostname The hostname of the endpoint + * @return the next definition stage */ WithCreate withHostname(String hostname); } @@ -124,6 +130,8 @@ interface WithHostname { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -134,6 +142,8 @@ interface WithKind { interface WithPort { /** * Specifies port. + * @param port The port of the endpoint + * @return the next definition stage */ WithCreate withPort(Integer port); } @@ -144,6 +154,8 @@ interface WithPort { interface WithRelayArmUri { /** * Specifies relayArmUri. + * @param relayArmUri The ARM URI to the Service Bus relay + * @return the next definition stage */ WithCreate withRelayArmUri(String relayArmUri); } @@ -154,6 +166,8 @@ interface WithRelayArmUri { interface WithRelayName { /** * Specifies relayName. + * @param relayName The name of the Service Bus relay + * @return the next definition stage */ WithCreate withRelayName(String relayName); } @@ -164,6 +178,8 @@ interface WithRelayName { interface WithSendKeyName { /** * Specifies sendKeyName. + * @param sendKeyName The name of the Service Bus key which has Send permissions. This is used to authenticate to Service Bus + * @return the next definition stage */ WithCreate withSendKeyName(String sendKeyName); } @@ -174,6 +190,9 @@ interface WithSendKeyName { interface WithSendKeyValue { /** * Specifies sendKeyValue. + * @param sendKeyValue The value of the Service Bus key. This is used to authenticate to Service Bus. In ARM this key will not be returned + normally, use the POST /listKeys API instead + * @return the next definition stage */ WithCreate withSendKeyValue(String sendKeyValue); } @@ -184,6 +203,8 @@ interface WithSendKeyValue { interface WithServiceBusNamespace { /** * Specifies serviceBusNamespace. + * @param serviceBusNamespace The name of the Service Bus namespace + * @return the next definition stage */ WithCreate withServiceBusNamespace(String serviceBusNamespace); } @@ -194,6 +215,8 @@ interface WithServiceBusNamespace { interface WithServiceBusSuffix { /** * Specifies serviceBusSuffix. + * @param serviceBusSuffix The suffix for the service bus endpoint. By default this is .servicebus.windows.net + * @return the next definition stage */ WithCreate withServiceBusSuffix(String serviceBusSuffix); } @@ -222,6 +245,8 @@ interface UpdateStages { interface WithHostname { /** * Specifies hostname. + * @param hostname The hostname of the endpoint + * @return the next update stage */ Update withHostname(String hostname); } @@ -232,6 +257,8 @@ interface WithHostname { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -242,6 +269,8 @@ interface WithKind { interface WithPort { /** * Specifies port. + * @param port The port of the endpoint + * @return the next update stage */ Update withPort(Integer port); } @@ -252,6 +281,8 @@ interface WithPort { interface WithRelayArmUri { /** * Specifies relayArmUri. + * @param relayArmUri The ARM URI to the Service Bus relay + * @return the next update stage */ Update withRelayArmUri(String relayArmUri); } @@ -262,6 +293,8 @@ interface WithRelayArmUri { interface WithRelayName { /** * Specifies relayName. + * @param relayName The name of the Service Bus relay + * @return the next update stage */ Update withRelayName(String relayName); } @@ -272,6 +305,8 @@ interface WithRelayName { interface WithSendKeyName { /** * Specifies sendKeyName. + * @param sendKeyName The name of the Service Bus key which has Send permissions. This is used to authenticate to Service Bus + * @return the next update stage */ Update withSendKeyName(String sendKeyName); } @@ -282,6 +317,9 @@ interface WithSendKeyName { interface WithSendKeyValue { /** * Specifies sendKeyValue. + * @param sendKeyValue The value of the Service Bus key. This is used to authenticate to Service Bus. In ARM this key will not be returned + normally, use the POST /listKeys API instead + * @return the next update stage */ Update withSendKeyValue(String sendKeyValue); } @@ -292,6 +330,8 @@ interface WithSendKeyValue { interface WithServiceBusNamespace { /** * Specifies serviceBusNamespace. + * @param serviceBusNamespace The name of the Service Bus namespace + * @return the next update stage */ Update withServiceBusNamespace(String serviceBusNamespace); } @@ -302,6 +342,8 @@ interface WithServiceBusNamespace { interface WithServiceBusSuffix { /** * Specifies serviceBusSuffix. + * @param serviceBusSuffix The suffix for the service bus endpoint. By default this is .servicebus.windows.net + * @return the next update stage */ Update withServiceBusSuffix(String serviceBusSuffix); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteInstance.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteInstance.java index 8b5bf21e9348f..5444bd17e5bc2 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteInstance.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteInstance.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteInstanceInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing SiteInstance. */ -public interface SiteInstance extends HasInner, HasManager { +public interface SiteInstance extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteLogsConfig.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteLogsConfig.java index c200e6a133614..f13a7df189300 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteLogsConfig.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteLogsConfig.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteLogsConfigInner; /** * Type representing SiteLogsConfig. */ -public interface SiteLogsConfig extends HasInner, HasManager { +public interface SiteLogsConfig extends HasInner, HasManager { /** * @return the applicationLogs value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePatchResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePatchResource.java index f6ee73a3d0f8f..e0479dda95107 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePatchResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePatchResource.java @@ -10,6 +10,7 @@ import java.util.List; import org.joda.time.DateTime; +import java.util.UUID; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; @@ -88,11 +89,17 @@ public class SitePatchResource extends ProxyOnlyResource { private Boolean reserved; /** - * Hyper-V sandbox. + * Obsolete: Hyper-V sandbox. */ @JsonProperty(value = "properties.isXenon") private Boolean isXenon; + /** + * Hyper-V sandbox. + */ + @JsonProperty(value = "properties.hyperV") + private Boolean hyperV; + /** * Last time the app was modified, in UTC. Read-only. */ @@ -149,6 +156,12 @@ public class SitePatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.clientCertEnabled") private Boolean clientCertEnabled; + /** + * client certificate authentication comma-separated exclusion paths. + */ + @JsonProperty(value = "properties.clientCertExclusionPaths") + private String clientCertExclusionPaths; + /** * <code>true</code> to disable the public hostnames of the * app; otherwise, <code>false</code>. @@ -205,13 +218,6 @@ public class SitePatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.cloningInfo") private CloningInfo cloningInfo; - /** - * If specified during app creation, the app is created from a previous - * snapshot. - */ - @JsonProperty(value = "properties.snapshotInfo") - private SnapshotRecoveryRequest snapshotInfo; - /** * Name of the resource group the app belongs to. Read-only. */ @@ -245,6 +251,25 @@ public class SitePatchResource extends ProxyOnlyResource { @JsonProperty(value = "properties.httpsOnly") private Boolean httpsOnly; + /** + * Site redundancy mode. Possible values include: 'None', 'Manual', + * 'Failover', 'ActiveActive', 'GeoRedundant'. + */ + @JsonProperty(value = "properties.redundancyMode") + private RedundancyMode redundancyMode; + + /** + * Specifies an operation id if this site has a pending operation. + */ + @JsonProperty(value = "properties.inProgressOperationId", access = JsonProperty.Access.WRITE_ONLY) + private UUID inProgressOperationId; + + /** + * GeoDistributions for this site. + */ + @JsonProperty(value = "properties.geoDistributions") + private List geoDistributions; + /** * Get current state of the app. * @@ -381,7 +406,7 @@ public SitePatchResource withReserved(Boolean reserved) { } /** - * Get hyper-V sandbox. + * Get obsolete: Hyper-V sandbox. * * @return the isXenon value */ @@ -390,7 +415,7 @@ public Boolean isXenon() { } /** - * Set hyper-V sandbox. + * Set obsolete: Hyper-V sandbox. * * @param isXenon the isXenon value to set * @return the SitePatchResource object itself. @@ -400,6 +425,26 @@ public SitePatchResource withIsXenon(Boolean isXenon) { return this; } + /** + * Get hyper-V sandbox. + * + * @return the hyperV value + */ + public Boolean hyperV() { + return this.hyperV; + } + + /** + * Set hyper-V sandbox. + * + * @param hyperV the hyperV value to set + * @return the SitePatchResource object itself. + */ + public SitePatchResource withHyperV(Boolean hyperV) { + this.hyperV = hyperV; + return this; + } + /** * Get last time the app was modified, in UTC. Read-only. * @@ -527,6 +572,26 @@ public SitePatchResource withClientCertEnabled(Boolean clientCertEnabled) { return this; } + /** + * Get client certificate authentication comma-separated exclusion paths. + * + * @return the clientCertExclusionPaths value + */ + public String clientCertExclusionPaths() { + return this.clientCertExclusionPaths; + } + + /** + * Set client certificate authentication comma-separated exclusion paths. + * + * @param clientCertExclusionPaths the clientCertExclusionPaths value to set + * @return the SitePatchResource object itself. + */ + public SitePatchResource withClientCertExclusionPaths(String clientCertExclusionPaths) { + this.clientCertExclusionPaths = clientCertExclusionPaths; + return this; + } + /** * Get <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. If <code>true</code>, the app is only accessible via API management process. @@ -646,26 +711,6 @@ public SitePatchResource withCloningInfo(CloningInfo cloningInfo) { return this; } - /** - * Get if specified during app creation, the app is created from a previous snapshot. - * - * @return the snapshotInfo value - */ - public SnapshotRecoveryRequest snapshotInfo() { - return this.snapshotInfo; - } - - /** - * Set if specified during app creation, the app is created from a previous snapshot. - * - * @param snapshotInfo the snapshotInfo value to set - * @return the SitePatchResource object itself. - */ - public SitePatchResource withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo) { - this.snapshotInfo = snapshotInfo; - return this; - } - /** * Get name of the resource group the app belongs to. Read-only. * @@ -724,4 +769,53 @@ public SitePatchResource withHttpsOnly(Boolean httpsOnly) { return this; } + /** + * Get site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'. + * + * @return the redundancyMode value + */ + public RedundancyMode redundancyMode() { + return this.redundancyMode; + } + + /** + * Set site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'. + * + * @param redundancyMode the redundancyMode value to set + * @return the SitePatchResource object itself. + */ + public SitePatchResource withRedundancyMode(RedundancyMode redundancyMode) { + this.redundancyMode = redundancyMode; + return this; + } + + /** + * Get specifies an operation id if this site has a pending operation. + * + * @return the inProgressOperationId value + */ + public UUID inProgressOperationId() { + return this.inProgressOperationId; + } + + /** + * Get geoDistributions for this site. + * + * @return the geoDistributions value + */ + public List geoDistributions() { + return this.geoDistributions; + } + + /** + * Set geoDistributions for this site. + * + * @param geoDistributions the geoDistributions value to set + * @return the SitePatchResource object itself. + */ + public SitePatchResource withGeoDistributions(List geoDistributions) { + this.geoDistributions = geoDistributions; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePhpErrorLogFlag.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePhpErrorLogFlag.java index 3090af424e35c..87238fa3457ea 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePhpErrorLogFlag.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePhpErrorLogFlag.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SitePhpErrorLogFlagInner; /** * Type representing SitePhpErrorLogFlag. */ -public interface SitePhpErrorLogFlag extends HasInner, HasManager { +public interface SitePhpErrorLogFlag extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetric.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetric.java index 8a62b8b75caaf..2ce96730dccbb 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetric.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetric.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ResourceMetricInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import org.joda.time.DateTime; import java.util.List; /** * Type representing SiteResourceMetric. */ -public interface SiteResourceMetric extends HasInner, HasManager { +public interface SiteResourceMetric extends HasInner, HasManager { /** * @return the endTime value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetricDefinition.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetricDefinition.java index 173e84239d869..4af5649afb812 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetricDefinition.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteResourceMetricDefinition.java @@ -11,14 +11,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ResourceMetricDefinitionInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import java.util.Map; /** * Type representing SiteResourceMetricDefinition. */ -public interface SiteResourceMetricDefinition extends HasInner, HasManager { +public interface SiteResourceMetricDefinition extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSeal.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSeal.java index 01f3fa42cb917..b77e9482c873e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSeal.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSeal.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteSealInner; /** * Type representing SiteSeal. */ -public interface SiteSeal extends HasInner, HasManager { +public interface SiteSeal extends HasInner, HasManager { /** * @return the html value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSourceControl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSourceControl.java index cea94bd0857b2..daf20842ffe91 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSourceControl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteSourceControl.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteSourceControlInner; /** * Type representing SiteSourceControl. */ -public interface SiteSourceControl extends HasInner, HasManager { +public interface SiteSourceControl extends HasInner, HasManager { /** * @return the branch value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetGateway.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetGateway.java index 0b5a57999e613..6d52c63a5e114 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetGateway.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetGateway.java @@ -16,12 +16,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing SiteVnetGateway. */ -public interface SiteVnetGateway extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface SiteVnetGateway extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the id value. */ @@ -74,6 +74,11 @@ interface Blank extends WithVirtualNetworkConnection { interface WithVirtualNetworkConnection { /** * Specifies resourceGroupName, name, vnetName, slot. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @param vnetName Name of the Virtual Network + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update a gateway for the production slot's Virtual Network + * @return the next definition stage */ WithVpnPackageUri withExistingVirtualNetworkConnection(String resourceGroupName, String name, String vnetName, String slot); } @@ -84,6 +89,8 @@ interface WithVirtualNetworkConnection { interface WithVpnPackageUri { /** * Specifies vpnPackageUri. + * @param vpnPackageUri The URI where the VPN package can be downloaded + * @return the next definition stage */ WithCreate withVpnPackageUri(String vpnPackageUri); } @@ -94,6 +101,8 @@ interface WithVpnPackageUri { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -104,6 +113,8 @@ interface WithKind { interface WithVnetName { /** * Specifies vnetName. + * @param vnetName The Virtual Network name + * @return the next definition stage */ WithCreate withVnetName(String vnetName); } @@ -132,6 +143,8 @@ interface UpdateStages { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -142,6 +155,8 @@ interface WithKind { interface WithVnetName { /** * Specifies vnetName. + * @param vnetName The Virtual Network name + * @return the next update stage */ Update withVnetName(String vnetName); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java index 816dd4d2e3637..c72181826bbf4 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; /** * Type representing SiteVnetInfo. */ -public interface SiteVnetInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface SiteVnetInfo extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the certBlob value. */ @@ -43,6 +43,11 @@ public interface SiteVnetInfo extends HasInner, Indexable, Refres */ String id(); + /** + * @return the isSwift value. + */ + Boolean isSwift(); + /** * @return the kind value. */ @@ -95,6 +100,10 @@ interface Blank extends WithSlot { interface WithSlot { /** * Specifies resourceGroupName, name, slot. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the app + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot + * @return the next definition stage */ WithCreate withExistingSlot(String resourceGroupName, String name, String slot); } @@ -105,6 +114,9 @@ interface WithSlot { interface WithCertBlob { /** * Specifies certBlob. + * @param certBlob A certificate file (.cer) blob containing the public key of the private key used to authenticate a + Point-To-Site VPN connection + * @return the next definition stage */ WithCreate withCertBlob(byte[] certBlob); } @@ -115,16 +127,32 @@ interface WithCertBlob { interface WithDnsServers { /** * Specifies dnsServers. + * @param dnsServers DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses + * @return the next definition stage */ WithCreate withDnsServers(String dnsServers); } + /** + * The stage of the sitevnetinfo definition allowing to specify IsSwift. + */ + interface WithIsSwift { + /** + * Specifies isSwift. + * @param isSwift Flag that is used to denote if this is VNET injection + * @return the next definition stage + */ + WithCreate withIsSwift(Boolean isSwift); + } + /** * The stage of the sitevnetinfo definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -135,6 +163,8 @@ interface WithKind { interface WithVnetResourceId { /** * Specifies vnetResourceId. + * @param vnetResourceId The Virtual Network's resource ID + * @return the next definition stage */ WithCreate withVnetResourceId(String vnetResourceId); } @@ -144,13 +174,13 @@ interface WithVnetResourceId { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithCertBlob, DefinitionStages.WithDnsServers, DefinitionStages.WithKind, DefinitionStages.WithVnetResourceId { + interface WithCreate extends Creatable, DefinitionStages.WithCertBlob, DefinitionStages.WithDnsServers, DefinitionStages.WithIsSwift, DefinitionStages.WithKind, DefinitionStages.WithVnetResourceId { } } /** * The template for a SiteVnetInfo update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithCertBlob, UpdateStages.WithDnsServers, UpdateStages.WithKind, UpdateStages.WithVnetResourceId { + interface Update extends Appliable, UpdateStages.WithCertBlob, UpdateStages.WithDnsServers, UpdateStages.WithIsSwift, UpdateStages.WithKind, UpdateStages.WithVnetResourceId { } /** @@ -163,6 +193,9 @@ interface UpdateStages { interface WithCertBlob { /** * Specifies certBlob. + * @param certBlob A certificate file (.cer) blob containing the public key of the private key used to authenticate a + Point-To-Site VPN connection + * @return the next update stage */ Update withCertBlob(byte[] certBlob); } @@ -173,16 +206,32 @@ interface WithCertBlob { interface WithDnsServers { /** * Specifies dnsServers. + * @param dnsServers DNS servers to be used by this Virtual Network. This should be a comma-separated list of IP addresses + * @return the next update stage */ Update withDnsServers(String dnsServers); } + /** + * The stage of the sitevnetinfo update allowing to specify IsSwift. + */ + interface WithIsSwift { + /** + * Specifies isSwift. + * @param isSwift Flag that is used to denote if this is VNET injection + * @return the next update stage + */ + Update withIsSwift(Boolean isSwift); + } + /** * The stage of the sitevnetinfo update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -193,6 +242,8 @@ interface WithKind { interface WithVnetResourceId { /** * Specifies vnetResourceId. + * @param vnetResourceId The Virtual Network's resource ID + * @return the next update stage */ Update withVnetResourceId(String vnetResourceId); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Sites.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Sites.java index 138619b620a28..55928821f5dea 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Sites.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Sites.java @@ -17,15 +17,16 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import org.joda.time.DateTime; +import java.util.UUID; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteInner; /** * Type representing Sites. */ -public interface Sites extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { +public interface Sites extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { /** * @return the availabilityState value. */ @@ -41,6 +42,11 @@ public interface Sites extends HasInner, Resource, GroupableResourceC */ Boolean clientCertEnabled(); + /** + * @return the clientCertExclusionPaths value. + */ + String clientCertExclusionPaths(); + /** * @return the cloningInfo value. */ @@ -71,6 +77,11 @@ public interface Sites extends HasInner, Resource, GroupableResourceC */ List enabledHostNames(); + /** + * @return the geoDistributions value. + */ + List geoDistributions(); + /** * @return the hostingEnvironmentProfile value. */ @@ -96,11 +107,21 @@ public interface Sites extends HasInner, Resource, GroupableResourceC */ Boolean httpsOnly(); + /** + * @return the hyperV value. + */ + Boolean hyperV(); + /** * @return the identity value. */ ManagedServiceIdentity identity(); + /** + * @return the inProgressOperationId value. + */ + UUID inProgressOperationId(); + /** * @return the isDefaultContainer value. */ @@ -136,6 +157,11 @@ public interface Sites extends HasInner, Resource, GroupableResourceC */ String possibleOutboundIpAddresses(); + /** + * @return the redundancyMode value. + */ + RedundancyMode redundancyMode(); + /** * @return the repositorySiteName value. */ @@ -171,11 +197,6 @@ public interface Sites extends HasInner, Resource, GroupableResourceC */ SlotSwapStatus slotSwapStatus(); - /** - * @return the snapshotInfo value. - */ - SnapshotRecoveryRequest snapshotInfo(); - /** * @return the state value. */ @@ -224,197 +245,271 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup geoDistributions); + } + + /** + * The stage of the sites definition allowing to specify HostingEnvironmentProfile. */ interface WithHostingEnvironmentProfile { /** * Specifies hostingEnvironmentProfile. + * @param hostingEnvironmentProfile App Service Environment to use for the app + * @return the next definition stage */ WithCreate withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile); } /** - * The stage of the sites update allowing to specify HostNamesDisabled. + * The stage of the sites definition allowing to specify HostNamesDisabled. */ interface WithHostNamesDisabled { /** * Specifies hostNamesDisabled. + * @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. + If <code>true</code>, the app is only accessible via API management process + * @return the next definition stage */ WithCreate withHostNamesDisabled(Boolean hostNamesDisabled); } /** - * The stage of the sites update allowing to specify HostNameSslStates. + * The stage of the sites definition allowing to specify HostNameSslStates. */ interface WithHostNameSslStates { /** * Specifies hostNameSslStates. + * @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames + * @return the next definition stage */ WithCreate withHostNameSslStates(List hostNameSslStates); } /** - * The stage of the sites update allowing to specify HttpsOnly. + * The stage of the sites definition allowing to specify HttpsOnly. */ interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next definition stage */ WithCreate withHttpsOnly(Boolean httpsOnly); } /** - * The stage of the sites update allowing to specify Identity. + * The stage of the sites definition allowing to specify HyperV. + */ + interface WithHyperV { + /** + * Specifies hyperV. + * @param hyperV Hyper-V sandbox + * @return the next definition stage + */ + WithCreate withHyperV(Boolean hyperV); + } + + /** + * The stage of the sites definition allowing to specify Identity. */ interface WithIdentity { /** * Specifies identity. + * @param identity the identity parameter value + * @return the next definition stage */ WithCreate withIdentity(ManagedServiceIdentity identity); } /** - * The stage of the sites update allowing to specify IsXenon. + * The stage of the sites definition allowing to specify IsXenon. */ interface WithIsXenon { /** * Specifies isXenon. + * @param isXenon Obsolete: Hyper-V sandbox + * @return the next definition stage */ WithCreate withIsXenon(Boolean isXenon); } /** - * The stage of the sites update allowing to specify Kind. + * The stage of the sites definition allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } /** - * The stage of the sites update allowing to specify Reserved. + * The stage of the sites definition allowing to specify RedundancyMode. + */ + interface WithRedundancyMode { + /** + * Specifies redundancyMode. + * @param redundancyMode Site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant' + * @return the next definition stage + */ + WithCreate withRedundancyMode(RedundancyMode redundancyMode); + } + + /** + * The stage of the sites definition allowing to specify Reserved. */ interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next definition stage */ WithCreate withReserved(Boolean reserved); } /** - * The stage of the sites update allowing to specify ScmSiteAlsoStopped. + * The stage of the sites definition allowing to specify ScmSiteAlsoStopped. */ interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next definition stage */ WithCreate withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } /** - * The stage of the sites update allowing to specify ServerFarmId. + * The stage of the sites definition allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next definition stage */ WithCreate withServerFarmId(String serverFarmId); } /** - * The stage of the sites update allowing to specify SiteConfig. + * The stage of the sites definition allowing to specify SiteConfig. */ interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next definition stage */ WithCreate withSiteConfig(SiteConfig siteConfig); } - /** - * The stage of the sites update allowing to specify SnapshotInfo. - */ - interface WithSnapshotInfo { - /** - * Specifies snapshotInfo. - */ - WithCreate withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); - } - /** * The stage of the definition which contains all the minimum required inputs for * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithClientAffinityEnabled, DefinitionStages.WithClientCertEnabled, DefinitionStages.WithCloningInfo, DefinitionStages.WithContainerSize, DefinitionStages.WithDailyMemoryTimeQuota, DefinitionStages.WithEnabled, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHostNamesDisabled, DefinitionStages.WithHostNameSslStates, DefinitionStages.WithHttpsOnly, DefinitionStages.WithIdentity, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithReserved, DefinitionStages.WithScmSiteAlsoStopped, DefinitionStages.WithServerFarmId, DefinitionStages.WithSiteConfig, DefinitionStages.WithSnapshotInfo { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithClientAffinityEnabled, DefinitionStages.WithClientCertEnabled, DefinitionStages.WithClientCertExclusionPaths, DefinitionStages.WithCloningInfo, DefinitionStages.WithContainerSize, DefinitionStages.WithDailyMemoryTimeQuota, DefinitionStages.WithEnabled, DefinitionStages.WithGeoDistributions, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHostNamesDisabled, DefinitionStages.WithHostNameSslStates, DefinitionStages.WithHttpsOnly, DefinitionStages.WithHyperV, DefinitionStages.WithIdentity, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithRedundancyMode, DefinitionStages.WithReserved, DefinitionStages.WithScmSiteAlsoStopped, DefinitionStages.WithServerFarmId, DefinitionStages.WithSiteConfig { } } /** * The template for a Sites update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithClientAffinityEnabled, UpdateStages.WithClientCertEnabled, UpdateStages.WithCloningInfo, UpdateStages.WithContainerSize, UpdateStages.WithDailyMemoryTimeQuota, UpdateStages.WithEnabled, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHostNamesDisabled, UpdateStages.WithHostNameSslStates, UpdateStages.WithHttpsOnly, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithReserved, UpdateStages.WithScmSiteAlsoStopped, UpdateStages.WithServerFarmId, UpdateStages.WithSiteConfig, UpdateStages.WithSnapshotInfo { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithClientAffinityEnabled, UpdateStages.WithClientCertEnabled, UpdateStages.WithClientCertExclusionPaths, UpdateStages.WithCloningInfo, UpdateStages.WithContainerSize, UpdateStages.WithDailyMemoryTimeQuota, UpdateStages.WithEnabled, UpdateStages.WithGeoDistributions, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHostNamesDisabled, UpdateStages.WithHostNameSslStates, UpdateStages.WithHttpsOnly, UpdateStages.WithHyperV, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithRedundancyMode, UpdateStages.WithReserved, UpdateStages.WithScmSiteAlsoStopped, UpdateStages.WithServerFarmId, UpdateStages.WithSiteConfig { } /** @@ -422,174 +517,246 @@ interface Update extends Appliable, Resource.UpdateWithTags, Upda */ interface UpdateStages { /** - * The stage of the sites {0} allowing to specify ClientAffinityEnabled. + * The stage of the sites update allowing to specify ClientAffinityEnabled. */ interface WithClientAffinityEnabled { /** * Specifies clientAffinityEnabled. + * @param clientAffinityEnabled <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code> + * @return the next update stage */ Update withClientAffinityEnabled(Boolean clientAffinityEnabled); } /** - * The stage of the sites {0} allowing to specify ClientCertEnabled. + * The stage of the sites update allowing to specify ClientCertEnabled. */ interface WithClientCertEnabled { /** * Specifies clientCertEnabled. + * @param clientCertEnabled <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code> + * @return the next update stage */ Update withClientCertEnabled(Boolean clientCertEnabled); } /** - * The stage of the sites {0} allowing to specify CloningInfo. + * The stage of the sites update allowing to specify ClientCertExclusionPaths. + */ + interface WithClientCertExclusionPaths { + /** + * Specifies clientCertExclusionPaths. + * @param clientCertExclusionPaths client certificate authentication comma-separated exclusion paths + * @return the next update stage + */ + Update withClientCertExclusionPaths(String clientCertExclusionPaths); + } + + /** + * The stage of the sites update allowing to specify CloningInfo. */ interface WithCloningInfo { /** * Specifies cloningInfo. + * @param cloningInfo If specified during app creation, the app is cloned from a source app + * @return the next update stage */ Update withCloningInfo(CloningInfo cloningInfo); } /** - * The stage of the sites {0} allowing to specify ContainerSize. + * The stage of the sites update allowing to specify ContainerSize. */ interface WithContainerSize { /** * Specifies containerSize. + * @param containerSize Size of the function container + * @return the next update stage */ Update withContainerSize(Integer containerSize); } /** - * The stage of the sites {0} allowing to specify DailyMemoryTimeQuota. + * The stage of the sites update allowing to specify DailyMemoryTimeQuota. */ interface WithDailyMemoryTimeQuota { /** * Specifies dailyMemoryTimeQuota. + * @param dailyMemoryTimeQuota Maximum allowed daily memory-time quota (applicable on dynamic apps only) + * @return the next update stage */ Update withDailyMemoryTimeQuota(Integer dailyMemoryTimeQuota); } /** - * The stage of the sites {0} allowing to specify Enabled. + * The stage of the sites update allowing to specify Enabled. */ interface WithEnabled { /** * Specifies enabled. + * @param enabled <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline) + * @return the next update stage */ Update withEnabled(Boolean enabled); } /** - * The stage of the sites {0} allowing to specify HostingEnvironmentProfile. + * The stage of the sites update allowing to specify GeoDistributions. + */ + interface WithGeoDistributions { + /** + * Specifies geoDistributions. + * @param geoDistributions GeoDistributions for this site + * @return the next update stage + */ + Update withGeoDistributions(List geoDistributions); + } + + /** + * The stage of the sites update allowing to specify HostingEnvironmentProfile. */ interface WithHostingEnvironmentProfile { /** * Specifies hostingEnvironmentProfile. + * @param hostingEnvironmentProfile App Service Environment to use for the app + * @return the next update stage */ Update withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile); } /** - * The stage of the sites {0} allowing to specify HostNamesDisabled. + * The stage of the sites update allowing to specify HostNamesDisabled. */ interface WithHostNamesDisabled { /** * Specifies hostNamesDisabled. + * @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. + If <code>true</code>, the app is only accessible via API management process + * @return the next update stage */ Update withHostNamesDisabled(Boolean hostNamesDisabled); } /** - * The stage of the sites {0} allowing to specify HostNameSslStates. + * The stage of the sites update allowing to specify HostNameSslStates. */ interface WithHostNameSslStates { /** * Specifies hostNameSslStates. + * @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames + * @return the next update stage */ Update withHostNameSslStates(List hostNameSslStates); } /** - * The stage of the sites {0} allowing to specify HttpsOnly. + * The stage of the sites update allowing to specify HttpsOnly. */ interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next update stage */ Update withHttpsOnly(Boolean httpsOnly); } /** - * The stage of the sites {0} allowing to specify IsXenon. + * The stage of the sites update allowing to specify HyperV. + */ + interface WithHyperV { + /** + * Specifies hyperV. + * @param hyperV Hyper-V sandbox + * @return the next update stage + */ + Update withHyperV(Boolean hyperV); + } + + /** + * The stage of the sites update allowing to specify IsXenon. */ interface WithIsXenon { /** * Specifies isXenon. + * @param isXenon Obsolete: Hyper-V sandbox + * @return the next update stage */ Update withIsXenon(Boolean isXenon); } /** - * The stage of the sites {0} allowing to specify Kind. + * The stage of the sites update allowing to specify Kind. */ interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } /** - * The stage of the sites {0} allowing to specify Reserved. + * The stage of the sites update allowing to specify RedundancyMode. + */ + interface WithRedundancyMode { + /** + * Specifies redundancyMode. + * @param redundancyMode Site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant' + * @return the next update stage + */ + Update withRedundancyMode(RedundancyMode redundancyMode); + } + + /** + * The stage of the sites update allowing to specify Reserved. */ interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next update stage */ Update withReserved(Boolean reserved); } /** - * The stage of the sites {0} allowing to specify ScmSiteAlsoStopped. + * The stage of the sites update allowing to specify ScmSiteAlsoStopped. */ interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next update stage */ Update withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } /** - * The stage of the sites {0} allowing to specify ServerFarmId. + * The stage of the sites update allowing to specify ServerFarmId. */ interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next update stage */ Update withServerFarmId(String serverFarmId); } /** - * The stage of the sites {0} allowing to specify SiteConfig. + * The stage of the sites update allowing to specify SiteConfig. */ interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next update stage */ Update withSiteConfig(SiteConfig siteConfig); } - /** - * The stage of the sites {0} allowing to specify SnapshotInfo. - */ - interface WithSnapshotInfo { - /** - * Specifies snapshotInfo. - */ - Update withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); - } - } } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuInfo.java index 67a4a28fd7445..00002cc290812 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuInfo.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SkuInfoInner; /** * Type representing SkuInfo. */ -public interface SkuInfo extends HasInner, HasManager { +public interface SkuInfo extends HasInner, HasManager { /** * @return the capacity value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuName.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuName.java index 3df1b1648c90e..47824491db1a4 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuName.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SkuName.java @@ -40,6 +40,12 @@ public final class SkuName extends ExpandableStringEnum { /** Static value PremiumV2 for SkuName. */ public static final SkuName PREMIUM_V2 = fromString("PremiumV2"); + /** Static value ElasticPremium for SkuName. */ + public static final SkuName ELASTIC_PREMIUM = fromString("ElasticPremium"); + + /** Static value ElasticIsolated for SkuName. */ + public static final SkuName ELASTIC_ISOLATED = fromString("ElasticIsolated"); + /** * Creates or finds a SkuName from its string representation. * @param name a name to look for diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotConfigNamesResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotConfigNamesResource.java index 313c2c9aeeff4..40c8aa5a96d15 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotConfigNamesResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotConfigNamesResource.java @@ -10,19 +10,24 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SlotConfigNamesResourceInner; import java.util.List; /** * Type representing SlotConfigNamesResource. */ -public interface SlotConfigNamesResource extends HasInner, HasManager { +public interface SlotConfigNamesResource extends HasInner, HasManager { /** * @return the appSettingNames value. */ List appSettingNames(); + /** + * @return the azureStorageConfigNames value. + */ + List azureStorageConfigNames(); + /** * @return the connectionStringNames value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotDifference.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotDifference.java index d6c1ced13035b..b85ce5580df2e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotDifference.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotDifference.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SlotDifferenceInner; /** * Type representing SlotDifference. */ -public interface SlotDifference extends HasInner, HasManager { +public interface SlotDifference extends HasInner, HasManager { /** * @return the description value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotSwapStatus.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotSwapStatus.java index 0dff21295ba1a..d9120874b2f24 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotSwapStatus.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SlotSwapStatus.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * The status of the last successfull slot swap operation. + * The status of the last successful slot swap operation. */ public class SlotSwapStatus { /** diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Slots.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Slots.java index 767bf4b6cd0f8..b5d0cfcff6399 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Slots.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Slots.java @@ -16,15 +16,16 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; import org.joda.time.DateTime; +import java.util.UUID; import java.util.Map; /** * Type representing Slots. */ -public interface Slots extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface Slots extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the availabilityState value. */ @@ -40,6 +41,11 @@ public interface Slots extends HasInner, Indexable, Refreshable, Indexable, Refreshable enabledHostNames(); + /** + * @return the geoDistributions value. + */ + List geoDistributions(); + /** * @return the hostingEnvironmentProfile value. */ @@ -95,6 +106,11 @@ public interface Slots extends HasInner, Indexable, Refreshable, Indexable, Refreshable, Indexable, Refreshable, Indexable, Refreshable geoDistributions); + } + /** * The stage of the slots definition allowing to specify HostingEnvironmentProfile. */ interface WithHostingEnvironmentProfile { /** * Specifies hostingEnvironmentProfile. + * @param hostingEnvironmentProfile App Service Environment to use for the app + * @return the next definition stage */ WithCreate withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile); } @@ -337,6 +401,9 @@ interface WithHostingEnvironmentProfile { interface WithHostNamesDisabled { /** * Specifies hostNamesDisabled. + * @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. + If <code>true</code>, the app is only accessible via API management process + * @return the next definition stage */ WithCreate withHostNamesDisabled(Boolean hostNamesDisabled); } @@ -347,6 +414,8 @@ interface WithHostNamesDisabled { interface WithHostNameSslStates { /** * Specifies hostNameSslStates. + * @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames + * @return the next definition stage */ WithCreate withHostNameSslStates(List hostNameSslStates); } @@ -357,16 +426,33 @@ interface WithHostNameSslStates { interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next definition stage */ WithCreate withHttpsOnly(Boolean httpsOnly); } + /** + * The stage of the slots definition allowing to specify HyperV. + */ + interface WithHyperV { + /** + * Specifies hyperV. + * @param hyperV Hyper-V sandbox + * @return the next definition stage + */ + WithCreate withHyperV(Boolean hyperV); + } + /** * The stage of the slots definition allowing to specify Identity. */ interface WithIdentity { /** * Specifies identity. + * @param identity the identity parameter value + * @return the next definition stage */ WithCreate withIdentity(ManagedServiceIdentity identity); } @@ -377,6 +463,8 @@ interface WithIdentity { interface WithIsXenon { /** * Specifies isXenon. + * @param isXenon Obsolete: Hyper-V sandbox + * @return the next definition stage */ WithCreate withIsXenon(Boolean isXenon); } @@ -387,16 +475,32 @@ interface WithIsXenon { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } + /** + * The stage of the slots definition allowing to specify RedundancyMode. + */ + interface WithRedundancyMode { + /** + * Specifies redundancyMode. + * @param redundancyMode Site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant' + * @return the next definition stage + */ + WithCreate withRedundancyMode(RedundancyMode redundancyMode); + } + /** * The stage of the slots definition allowing to specify Reserved. */ interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next definition stage */ WithCreate withReserved(Boolean reserved); } @@ -407,6 +511,8 @@ interface WithReserved { interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next definition stage */ WithCreate withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } @@ -417,6 +523,8 @@ interface WithScmSiteAlsoStopped { interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next definition stage */ WithCreate withServerFarmId(String serverFarmId); } @@ -427,26 +535,20 @@ interface WithServerFarmId { interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next definition stage */ WithCreate withSiteConfig(SiteConfig siteConfig); } - /** - * The stage of the slots definition allowing to specify SnapshotInfo. - */ - interface WithSnapshotInfo { - /** - * Specifies snapshotInfo. - */ - WithCreate withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); - } - /** * The stage of the slots definition allowing to specify Tags. */ interface WithTags { /** * Specifies tags. + * @param tags Resource tags + * @return the next definition stage */ WithCreate withTags(Map tags); } @@ -456,13 +558,13 @@ interface WithTags { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithClientAffinityEnabled, DefinitionStages.WithClientCertEnabled, DefinitionStages.WithCloningInfo, DefinitionStages.WithContainerSize, DefinitionStages.WithDailyMemoryTimeQuota, DefinitionStages.WithEnabled, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHostNamesDisabled, DefinitionStages.WithHostNameSslStates, DefinitionStages.WithHttpsOnly, DefinitionStages.WithIdentity, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithReserved, DefinitionStages.WithScmSiteAlsoStopped, DefinitionStages.WithServerFarmId, DefinitionStages.WithSiteConfig, DefinitionStages.WithSnapshotInfo, DefinitionStages.WithTags { + interface WithCreate extends Creatable, DefinitionStages.WithClientAffinityEnabled, DefinitionStages.WithClientCertEnabled, DefinitionStages.WithClientCertExclusionPaths, DefinitionStages.WithCloningInfo, DefinitionStages.WithContainerSize, DefinitionStages.WithDailyMemoryTimeQuota, DefinitionStages.WithEnabled, DefinitionStages.WithGeoDistributions, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithHostNamesDisabled, DefinitionStages.WithHostNameSslStates, DefinitionStages.WithHttpsOnly, DefinitionStages.WithHyperV, DefinitionStages.WithIdentity, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, DefinitionStages.WithRedundancyMode, DefinitionStages.WithReserved, DefinitionStages.WithScmSiteAlsoStopped, DefinitionStages.WithServerFarmId, DefinitionStages.WithSiteConfig, DefinitionStages.WithTags { } } /** * The template for a Slots update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithClientAffinityEnabled, UpdateStages.WithClientCertEnabled, UpdateStages.WithCloningInfo, UpdateStages.WithContainerSize, UpdateStages.WithDailyMemoryTimeQuota, UpdateStages.WithEnabled, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHostNamesDisabled, UpdateStages.WithHostNameSslStates, UpdateStages.WithHttpsOnly, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithReserved, UpdateStages.WithScmSiteAlsoStopped, UpdateStages.WithServerFarmId, UpdateStages.WithSiteConfig, UpdateStages.WithSnapshotInfo { + interface Update extends Appliable, UpdateStages.WithClientAffinityEnabled, UpdateStages.WithClientCertEnabled, UpdateStages.WithClientCertExclusionPaths, UpdateStages.WithCloningInfo, UpdateStages.WithContainerSize, UpdateStages.WithDailyMemoryTimeQuota, UpdateStages.WithEnabled, UpdateStages.WithGeoDistributions, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithHostNamesDisabled, UpdateStages.WithHostNameSslStates, UpdateStages.WithHttpsOnly, UpdateStages.WithHyperV, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithRedundancyMode, UpdateStages.WithReserved, UpdateStages.WithScmSiteAlsoStopped, UpdateStages.WithServerFarmId, UpdateStages.WithSiteConfig { } /** @@ -475,6 +577,8 @@ interface UpdateStages { interface WithClientAffinityEnabled { /** * Specifies clientAffinityEnabled. + * @param clientAffinityEnabled <code>true</code> to enable client affinity; <code>false</code> to stop sending session affinity cookies, which route client requests in the same session to the same instance. Default is <code>true</code> + * @return the next update stage */ Update withClientAffinityEnabled(Boolean clientAffinityEnabled); } @@ -485,16 +589,32 @@ interface WithClientAffinityEnabled { interface WithClientCertEnabled { /** * Specifies clientCertEnabled. + * @param clientCertEnabled <code>true</code> to enable client certificate authentication (TLS mutual authentication); otherwise, <code>false</code>. Default is <code>false</code> + * @return the next update stage */ Update withClientCertEnabled(Boolean clientCertEnabled); } + /** + * The stage of the slots update allowing to specify ClientCertExclusionPaths. + */ + interface WithClientCertExclusionPaths { + /** + * Specifies clientCertExclusionPaths. + * @param clientCertExclusionPaths client certificate authentication comma-separated exclusion paths + * @return the next update stage + */ + Update withClientCertExclusionPaths(String clientCertExclusionPaths); + } + /** * The stage of the slots update allowing to specify CloningInfo. */ interface WithCloningInfo { /** * Specifies cloningInfo. + * @param cloningInfo If specified during app creation, the app is cloned from a source app + * @return the next update stage */ Update withCloningInfo(CloningInfo cloningInfo); } @@ -505,6 +625,8 @@ interface WithCloningInfo { interface WithContainerSize { /** * Specifies containerSize. + * @param containerSize Size of the function container + * @return the next update stage */ Update withContainerSize(Integer containerSize); } @@ -515,6 +637,8 @@ interface WithContainerSize { interface WithDailyMemoryTimeQuota { /** * Specifies dailyMemoryTimeQuota. + * @param dailyMemoryTimeQuota Maximum allowed daily memory-time quota (applicable on dynamic apps only) + * @return the next update stage */ Update withDailyMemoryTimeQuota(Integer dailyMemoryTimeQuota); } @@ -525,16 +649,32 @@ interface WithDailyMemoryTimeQuota { interface WithEnabled { /** * Specifies enabled. + * @param enabled <code>true</code> if the app is enabled; otherwise, <code>false</code>. Setting this value to false disables the app (takes the app offline) + * @return the next update stage */ Update withEnabled(Boolean enabled); } + /** + * The stage of the slots update allowing to specify GeoDistributions. + */ + interface WithGeoDistributions { + /** + * Specifies geoDistributions. + * @param geoDistributions GeoDistributions for this site + * @return the next update stage + */ + Update withGeoDistributions(List geoDistributions); + } + /** * The stage of the slots update allowing to specify HostingEnvironmentProfile. */ interface WithHostingEnvironmentProfile { /** * Specifies hostingEnvironmentProfile. + * @param hostingEnvironmentProfile App Service Environment to use for the app + * @return the next update stage */ Update withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile); } @@ -545,6 +685,9 @@ interface WithHostingEnvironmentProfile { interface WithHostNamesDisabled { /** * Specifies hostNamesDisabled. + * @param hostNamesDisabled <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. + If <code>true</code>, the app is only accessible via API management process + * @return the next update stage */ Update withHostNamesDisabled(Boolean hostNamesDisabled); } @@ -555,6 +698,8 @@ interface WithHostNamesDisabled { interface WithHostNameSslStates { /** * Specifies hostNameSslStates. + * @param hostNameSslStates Hostname SSL states are used to manage the SSL bindings for app's hostnames + * @return the next update stage */ Update withHostNameSslStates(List hostNameSslStates); } @@ -565,16 +710,33 @@ interface WithHostNameSslStates { interface WithHttpsOnly { /** * Specifies httpsOnly. + * @param httpsOnly HttpsOnly: configures a web site to accept only https requests. Issues redirect for + http requests + * @return the next update stage */ Update withHttpsOnly(Boolean httpsOnly); } + /** + * The stage of the slots update allowing to specify HyperV. + */ + interface WithHyperV { + /** + * Specifies hyperV. + * @param hyperV Hyper-V sandbox + * @return the next update stage + */ + Update withHyperV(Boolean hyperV); + } + /** * The stage of the slots update allowing to specify IsXenon. */ interface WithIsXenon { /** * Specifies isXenon. + * @param isXenon Obsolete: Hyper-V sandbox + * @return the next update stage */ Update withIsXenon(Boolean isXenon); } @@ -585,16 +747,32 @@ interface WithIsXenon { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } + /** + * The stage of the slots update allowing to specify RedundancyMode. + */ + interface WithRedundancyMode { + /** + * Specifies redundancyMode. + * @param redundancyMode Site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant' + * @return the next update stage + */ + Update withRedundancyMode(RedundancyMode redundancyMode); + } + /** * The stage of the slots update allowing to specify Reserved. */ interface WithReserved { /** * Specifies reserved. + * @param reserved <code>true</code> if reserved; otherwise, <code>false</code> + * @return the next update stage */ Update withReserved(Boolean reserved); } @@ -605,6 +783,8 @@ interface WithReserved { interface WithScmSiteAlsoStopped { /** * Specifies scmSiteAlsoStopped. + * @param scmSiteAlsoStopped <code>true</code> to stop SCM (KUDU) site when the app is stopped; otherwise, <code>false</code>. The default is <code>false</code> + * @return the next update stage */ Update withScmSiteAlsoStopped(Boolean scmSiteAlsoStopped); } @@ -615,6 +795,8 @@ interface WithScmSiteAlsoStopped { interface WithServerFarmId { /** * Specifies serverFarmId. + * @param serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}" + * @return the next update stage */ Update withServerFarmId(String serverFarmId); } @@ -625,19 +807,11 @@ interface WithServerFarmId { interface WithSiteConfig { /** * Specifies siteConfig. + * @param siteConfig Configuration of the app + * @return the next update stage */ Update withSiteConfig(SiteConfig siteConfig); } - /** - * The stage of the slots update allowing to specify SnapshotInfo. - */ - interface WithSnapshotInfo { - /** - * Specifies snapshotInfo. - */ - Update withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo); - } - } } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Snapshot.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Snapshot.java index f52be147fe399..9617af34762d8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Snapshot.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Snapshot.java @@ -11,12 +11,12 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SnapshotInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing Snapshot. */ -public interface Snapshot extends HasInner, HasManager { +public interface Snapshot extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java index a6bdda909ef20..f8a00cf4f4a6e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java @@ -52,6 +52,12 @@ public class SnapshotRestoreRequest extends ProxyOnlyResource { @JsonProperty(value = "properties.ignoreConflictingHostNames") private Boolean ignoreConflictingHostNames; + /** + * If true, the snapshot is retrieved from DRSecondary endpoint. + */ + @JsonProperty(value = "properties.useDRSecondary") + private Boolean useDRSecondary; + /** * Get point in time in which the app restore should be done, formatted as a DateTime string. * @@ -156,4 +162,24 @@ public SnapshotRestoreRequest withIgnoreConflictingHostNames(Boolean ignoreConfl return this; } + /** + * Get if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @return the useDRSecondary value + */ + public Boolean useDRSecondary() { + return this.useDRSecondary; + } + + /** + * Set if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @param useDRSecondary the useDRSecondary value to set + * @return the SnapshotRestoreRequest object itself. + */ + public SnapshotRestoreRequest withUseDRSecondary(Boolean useDRSecondary) { + this.useDRSecondary = useDRSecondary; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java index e49ec18346612..cb97f3def3207 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java @@ -40,6 +40,13 @@ public class StackMajorVersion { @JsonProperty(value = "minorVersions") private List minorVersions; + /** + * <code>true</code> if this supports Application Insights; + * otherwise, <code>false</code>. + */ + @JsonProperty(value = "applicationInsights") + private Boolean applicationInsights; + /** * Get application stack major version (display only). * @@ -120,4 +127,24 @@ public StackMajorVersion withMinorVersions(List minorVersions return this; } + /** + * Get <code>true</code> if this supports Application Insights; otherwise, <code>false</code>. + * + * @return the applicationInsights value + */ + public Boolean applicationInsights() { + return this.applicationInsights; + } + + /** + * Set <code>true</code> if this supports Application Insights; otherwise, <code>false</code>. + * + * @param applicationInsights the applicationInsights value to set + * @return the StackMajorVersion object itself. + */ + public StackMajorVersion withApplicationInsights(Boolean applicationInsights) { + this.applicationInsights = applicationInsights; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMinorVersion.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMinorVersion.java index a4ddb5bac1155..39ca940304c84 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMinorVersion.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMinorVersion.java @@ -33,6 +33,13 @@ public class StackMinorVersion { @JsonProperty(value = "isDefault") private Boolean isDefault; + /** + * <code>true</code> if this supports Remote Debugging, + * otherwise <code>false</code>. + */ + @JsonProperty(value = "isRemoteDebuggingEnabled") + private Boolean isRemoteDebuggingEnabled; + /** * Get application stack minor version (display only). * @@ -93,4 +100,24 @@ public StackMinorVersion withIsDefault(Boolean isDefault) { return this; } + /** + * Get <code>true</code> if this supports Remote Debugging, otherwise <code>false</code>. + * + * @return the isRemoteDebuggingEnabled value + */ + public Boolean isRemoteDebuggingEnabled() { + return this.isRemoteDebuggingEnabled; + } + + /** + * Set <code>true</code> if this supports Remote Debugging, otherwise <code>false</code>. + * + * @param isRemoteDebuggingEnabled the isRemoteDebuggingEnabled value to set + * @return the StackMinorVersion object itself. + */ + public StackMinorVersion withIsRemoteDebuggingEnabled(Boolean isRemoteDebuggingEnabled) { + this.isRemoteDebuggingEnabled = isRemoteDebuggingEnabled; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StampCapacity.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StampCapacity.java index 21cc264d0d2a7..6a80bf25f0d6d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StampCapacity.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StampCapacity.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.StampCapacityInner; /** * Type representing StampCapacity. */ -public interface StampCapacity extends HasInner, HasManager { +public interface StampCapacity extends HasInner, HasManager { /** * @return the availableCapacity value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StorageMigrationResponse.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StorageMigrationResponse.java index 27c1b6f8f854a..544f42a90f4a0 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StorageMigrationResponse.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StorageMigrationResponse.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.StorageMigrationResponseInner; /** * Type representing StorageMigrationResponse. */ -public interface StorageMigrationResponse extends HasInner, HasManager { +public interface StorageMigrationResponse extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StringDictionary.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StringDictionary.java index a3176ecedea4e..100a585149374 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StringDictionary.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StringDictionary.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.StringDictionaryInner; import java.util.Map; /** * Type representing StringDictionary. */ -public interface StringDictionary extends HasInner, HasManager { +public interface StringDictionary extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SwiftVirtualNetwork.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SwiftVirtualNetwork.java new file mode 100644 index 0000000000000..3ac349ae21971 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SwiftVirtualNetwork.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.microsoft.azure.arm.model.HasInner; +import com.microsoft.azure.arm.resources.models.HasManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SwiftVirtualNetworkInner; + +/** + * Type representing SwiftVirtualNetwork. + */ +public interface SwiftVirtualNetwork extends HasInner, HasManager { + /** + * @return the id value. + */ + String id(); + + /** + * @return the kind value. + */ + String kind(); + + /** + * @return the name value. + */ + String name(); + + /** + * @return the subnetResourceId value. + */ + String subnetResourceId(); + + /** + * @return the swiftSupported value. + */ + Boolean swiftSupported(); + + /** + * @return the type value. + */ + String type(); + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TldLegalAgreement.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TldLegalAgreement.java index c1d8fdf05ae09..58e5f2b1987be 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TldLegalAgreement.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TldLegalAgreement.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.TldLegalAgreementInner; /** * Type representing TldLegalAgreement. */ -public interface TldLegalAgreement extends HasInner, HasManager { +public interface TldLegalAgreement extends HasInner, HasManager { /** * @return the agreementKey value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TopLevelDomain.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TopLevelDomain.java index 2a40691b69f46..cf383a3d99b30 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TopLevelDomain.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TopLevelDomain.java @@ -13,12 +13,12 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing TopLevelDomain. */ -public interface TopLevelDomain extends HasInner, Indexable, Refreshable, HasManager { +public interface TopLevelDomain extends HasInner, Indexable, Refreshable, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredJobHistory.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredJobHistory.java index 605790afabe65..2f7dfb6daf534 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredJobHistory.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredJobHistory.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.TriggeredJobHistoryInner; import java.util.List; /** * Type representing TriggeredJobHistory. */ -public interface TriggeredJobHistory extends HasInner, HasManager { +public interface TriggeredJobHistory extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredWebJob.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredWebJob.java index 1c82d8e74eac1..7bc42565d2fb2 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredWebJob.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/TriggeredWebJob.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.Map; /** * Type representing TriggeredWebJob. */ -public interface TriggeredWebJob extends HasInner, Indexable, Refreshable, HasManager { +public interface TriggeredWebJob extends HasInner, Indexable, Refreshable, HasManager { /** * @return the error value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Usage.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Usage.java index aca653d010805..f3954f241fe99 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Usage.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Usage.java @@ -10,14 +10,14 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.UsageInner; import org.joda.time.DateTime; /** * Type representing Usage. */ -public interface Usage extends HasInner, HasManager { +public interface Usage extends HasInner, HasManager { /** * @return the computeMode value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/User.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/User.java index 852abf7942d3c..82110a83bdebe 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/User.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/User.java @@ -10,13 +10,13 @@ import com.microsoft.azure.arm.model.HasInner; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.UserInner; /** * Type representing User. */ -public interface User extends HasInner, HasManager { +public interface User extends HasInner, HasManager { /** * @return the id value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateContainerSettingsRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateContainerSettingsRequest.java new file mode 100644 index 0000000000000..4f43797eed88c --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateContainerSettingsRequest.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Container settings validation request context. + */ +public class ValidateContainerSettingsRequest { + /** + * Base URL of the container registry. + */ + @JsonProperty(value = "baseUrl") + private String baseUrl; + + /** + * Username for to access the container registry. + */ + @JsonProperty(value = "username") + private String username; + + /** + * Password for to access the container registry. + */ + @JsonProperty(value = "password") + private String password; + + /** + * Repository name (image name). + */ + @JsonProperty(value = "repository") + private String repository; + + /** + * Image tag. + */ + @JsonProperty(value = "tag") + private String tag; + + /** + * Platform (windows or linux). + */ + @JsonProperty(value = "platform") + private String platform; + + /** + * Get base URL of the container registry. + * + * @return the baseUrl value + */ + public String baseUrl() { + return this.baseUrl; + } + + /** + * Set base URL of the container registry. + * + * @param baseUrl the baseUrl value to set + * @return the ValidateContainerSettingsRequest object itself. + */ + public ValidateContainerSettingsRequest withBaseUrl(String baseUrl) { + this.baseUrl = baseUrl; + return this; + } + + /** + * Get username for to access the container registry. + * + * @return the username value + */ + public String username() { + return this.username; + } + + /** + * Set username for to access the container registry. + * + * @param username the username value to set + * @return the ValidateContainerSettingsRequest object itself. + */ + public ValidateContainerSettingsRequest withUsername(String username) { + this.username = username; + return this; + } + + /** + * Get password for to access the container registry. + * + * @return the password value + */ + public String password() { + return this.password; + } + + /** + * Set password for to access the container registry. + * + * @param password the password value to set + * @return the ValidateContainerSettingsRequest object itself. + */ + public ValidateContainerSettingsRequest withPassword(String password) { + this.password = password; + return this; + } + + /** + * Get repository name (image name). + * + * @return the repository value + */ + public String repository() { + return this.repository; + } + + /** + * Set repository name (image name). + * + * @param repository the repository value to set + * @return the ValidateContainerSettingsRequest object itself. + */ + public ValidateContainerSettingsRequest withRepository(String repository) { + this.repository = repository; + return this; + } + + /** + * Get image tag. + * + * @return the tag value + */ + public String tag() { + return this.tag; + } + + /** + * Set image tag. + * + * @param tag the tag value to set + * @return the ValidateContainerSettingsRequest object itself. + */ + public ValidateContainerSettingsRequest withTag(String tag) { + this.tag = tag; + return this; + } + + /** + * Get platform (windows or linux). + * + * @return the platform value + */ + public String platform() { + return this.platform; + } + + /** + * Set platform (windows or linux). + * + * @param platform the platform value to set + * @return the ValidateContainerSettingsRequest object itself. + */ + public ValidateContainerSettingsRequest withPlatform(String platform) { + this.platform = platform; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateRequest.java index 518a02f5abb69..763aa946e3175 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateRequest.java @@ -62,7 +62,7 @@ public class ValidateRequest { private Boolean isSpot; /** - * Target capacity of the App Service plan (number of VM's). + * Target capacity of the App Service plan (number of VMs). */ @JsonProperty(value = "properties.capacity") private Integer capacity; @@ -74,6 +74,13 @@ public class ValidateRequest { @JsonProperty(value = "properties.hostingEnvironment") private String hostingEnvironment; + /** + * <code>true</code> if App Service plan is running as a + * windows container. + */ + @JsonProperty(value = "properties.isXenon") + private Boolean isXenon; + /** * Get resource name to verify. * @@ -215,7 +222,7 @@ public ValidateRequest withIsSpot(Boolean isSpot) { } /** - * Get target capacity of the App Service plan (number of VM's). + * Get target capacity of the App Service plan (number of VMs). * * @return the capacity value */ @@ -224,7 +231,7 @@ public Integer capacity() { } /** - * Set target capacity of the App Service plan (number of VM's). + * Set target capacity of the App Service plan (number of VMs). * * @param capacity the capacity value to set * @return the ValidateRequest object itself. @@ -254,4 +261,24 @@ public ValidateRequest withHostingEnvironment(String hostingEnvironment) { return this; } + /** + * Get <code>true</code> if App Service plan is running as a windows container. + * + * @return the isXenon value + */ + public Boolean isXenon() { + return this.isXenon; + } + + /** + * Set <code>true</code> if App Service plan is running as a windows container. + * + * @param isXenon the isXenon value to set + * @return the ValidateRequest object itself. + */ + public ValidateRequest withIsXenon(Boolean isXenon) { + this.isXenon = isXenon; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/VnetRoute.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/VnetRoute.java index 4c58e27445105..e7626aeb1b1fa 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/VnetRoute.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/VnetRoute.java @@ -15,12 +15,12 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; /** * Type representing VnetRoute. */ -public interface VnetRoute extends HasInner, Indexable, Updatable, HasManager { +public interface VnetRoute extends HasInner, Indexable, Updatable, HasManager { /** * @return the endAddress value. */ @@ -78,6 +78,10 @@ interface Blank extends WithVirtualNetworkConnection { interface WithVirtualNetworkConnection { /** * Specifies resourceGroupName, name, vnetName. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the App Service plan + * @param vnetName Name of the Virtual Network + * @return the next definition stage */ WithCreate withExistingVirtualNetworkConnection(String resourceGroupName, String name, String vnetName); } @@ -88,6 +92,8 @@ interface WithVirtualNetworkConnection { interface WithEndAddress { /** * Specifies endAddress. + * @param endAddress The ending address for this route. If the start address is specified in CIDR notation, this must be omitted + * @return the next definition stage */ WithCreate withEndAddress(String endAddress); } @@ -98,6 +104,8 @@ interface WithEndAddress { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -108,6 +116,12 @@ interface WithKind { interface WithRouteType { /** * Specifies routeType. + * @param routeType The type of route this is: + DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 + INHERITED - Routes inherited from the real Virtual Network routes + STATIC - Static route set on the app only + These values will be used for syncing an app's routes with those from a Virtual Network. Possible values include: 'DEFAULT', 'INHERITED', 'STATIC' + * @return the next definition stage */ WithCreate withRouteType(RouteType routeType); } @@ -118,6 +132,8 @@ interface WithRouteType { interface WithStartAddress { /** * Specifies startAddress. + * @param startAddress The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified + * @return the next definition stage */ WithCreate withStartAddress(String startAddress); } @@ -146,6 +162,8 @@ interface UpdateStages { interface WithEndAddress { /** * Specifies endAddress. + * @param endAddress The ending address for this route. If the start address is specified in CIDR notation, this must be omitted + * @return the next update stage */ Update withEndAddress(String endAddress); } @@ -156,6 +174,8 @@ interface WithEndAddress { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -166,6 +186,12 @@ interface WithKind { interface WithRouteType { /** * Specifies routeType. + * @param routeType The type of route this is: + DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 + INHERITED - Routes inherited from the real Virtual Network routes + STATIC - Static route set on the app only + These values will be used for syncing an app's routes with those from a Virtual Network. Possible values include: 'DEFAULT', 'INHERITED', 'STATIC' + * @return the next update stage */ Update withRouteType(RouteType routeType); } @@ -176,6 +202,8 @@ interface WithRouteType { interface WithStartAddress { /** * Specifies startAddress. + * @param startAddress The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified + * @return the next update stage */ Update withStartAddress(String startAddress); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebApps.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebApps.java index e72aafc16f825..1576b5ca27068 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebApps.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebApps.java @@ -14,10 +14,12 @@ import com.microsoft.azure.management.appservice.v2018_02_01.implementation.BackupRequestInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.StringDictionaryInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteConfigResourceInner; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RelayServiceConnectionEntityInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RestoreRequestInner; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RelayServiceConnectionEntityInner; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SwiftVirtualNetworkInner; import com.microsoft.azure.management.appservice.v2018_02_01.BackupItem; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteAuthSettingsInner; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AzureStoragePropertyDictionaryResourceInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ConnectionStringDictionaryInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteLogsConfigInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PushSettingsInner; @@ -330,7 +332,19 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getWebSiteContainerLogsAsync(String resourceGroupName, String name); + Observable getWebSiteContainerLogsAsync(String resourceGroupName, String name); + + /** + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable discoverBackupAsync(String resourceGroupName, String name, RestoreRequestInner request); /** * Fetch a short lived token that can be exchanged for a master key. @@ -341,7 +355,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getFunctionsAdminTokenAsync(String resourceGroupName, String name); + Observable getFunctionsAdminTokenAsync(String resourceGroupName, String name); /** * Gets hybrid connections configured for an app (or deployment slot, if specified). @@ -451,6 +465,67 @@ public interface WebApps { */ Observable migrateMySqlAsync(String resourceGroupName, String name, MigrateMySqlRequest migrationRequestEnvelope); + /** + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name); + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable createOrUpdateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope); + + /** + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteSwiftVirtualNetworkAsync(String resourceGroupName, String name); + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable updateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope); + + /** + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name); + /** * Start capturing network packets for the site. * Start capturing network packets for the site. @@ -460,7 +535,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable startWebSiteNetworkTraceAsync(String resourceGroupName, String name); + Observable startWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name); /** * Stop ongoing capturing network packets for the site. @@ -473,6 +548,18 @@ public interface WebApps { */ Completable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name); + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTracesAsync(String resourceGroupName, String name, String operationId); + /** * Generates a new publishing password for an app (or deployment slot, if specified). * Generates a new publishing password for an app (or deployment slot, if specified). @@ -505,7 +592,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getProcessDumpAsync(String resourceGroupName, String name, String processId); + Observable getProcessDumpAsync(String resourceGroupName, String name, String processId); /** * Gets the publishing profile for an app (or deployment slot, if specified). @@ -513,10 +600,11 @@ public interface WebApps { * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name); + Observable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, CsmPublishingProfileOptions publishingProfileOptions); /** * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. @@ -600,6 +688,17 @@ public interface WebApps { */ Completable swapSlotWithProductionAsync(String resourceGroupName, String name, CsmSlotEntity slotSwapEntity); + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name); + /** * Starts an app (or deployment slot, if specified). * Starts an app (or deployment slot, if specified). @@ -611,6 +710,17 @@ public interface WebApps { */ Completable startAsync(String resourceGroupName, String name); + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable startNetworkTraceAsync(String resourceGroupName, String name); + /** * Stops an app (or deployment slot, if specified). * Stops an app (or deployment slot, if specified). @@ -622,6 +732,17 @@ public interface WebApps { */ Completable stopAsync(String resourceGroupName, String name); + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable stopNetworkTraceAsync(String resourceGroupName, String name); + /** * Sync web app repository. * Sync web app repository. @@ -679,18 +800,6 @@ public interface WebApps { */ Completable deleteBackupAsync(String resourceGroupName, String name, String backupId); - /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Observable discoverRestoreAsync(String resourceGroupName, String name, RestoreRequestInner request); - /** * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. @@ -729,19 +838,6 @@ public interface WebApps { */ Observable listBackupsSlotAsync(final String resourceGroupName, final String name, final String slot); - /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request - */ - Observable discoverRestoreSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request); - /** * Gets a backup of an app by its ID. * Gets a backup of an app by its ID. @@ -892,6 +988,54 @@ public interface WebApps { */ Observable getAuthSettingsSlotAsync(String resourceGroupName, String name, String slot); + /** + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable updateAzureStorageAccountsAsync(String resourceGroupName, String name, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts); + + /** + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAzureStorageAccountsAsync(String resourceGroupName, String name); + + /** + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. + * @param azureStorageAccounts Azure storage accounts of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable updateAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts); + + /** + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot); + /** * Replaces the connection strings of an app. * Replaces the connection strings of an app. @@ -1187,7 +1331,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getContainerLogsZipAsync(String resourceGroupName, String name); + Observable getContainerLogsZipAsync(String resourceGroupName, String name); /** * Gets the ZIP archived docker log files for the given site. @@ -1199,7 +1343,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot); + Observable getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot); /** * Gets a continuous web job by its ID for an app, or a deployment slot. @@ -2040,7 +2184,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId); + Observable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId); /** * Gets all scale-out instances of an app. @@ -2066,7 +2210,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId); + Observable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId); /** * Get process information by its ID for a specific scaled-out instance in a web site. @@ -2530,6 +2674,81 @@ public interface WebApps { */ Observable listNetworkFeaturesSlotAsync(String resourceGroupName, String name, String view, String slot); + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTraceOperationAsync(String resourceGroupName, String name, String operationId); + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTraceOperationV2Async(String resourceGroupName, String name, String operationId); + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String operationId, String slot); + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTraceOperationSlotV2Async(String resourceGroupName, String name, String operationId, String slot); + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTracesV2Async(String resourceGroupName, String name, String operationId); + + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTracesSlotV2Async(String resourceGroupName, String name, String operationId, String slot); + /** * Gets perfmon counters for web app. * Gets perfmon counters for web app. @@ -2640,6 +2859,20 @@ public interface WebApps { */ Completable deletePremierAddOnSlotAsync(String resourceGroupName, String name, String premierAddOnName, String slot); + /** + * Updates a named add-on of an app. + * Updates a named add-on of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the named add-on for the production slot. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable updatePremierAddOnSlotAsync(String resourceGroupName, String name, String premierAddOnName, String slot, PremierAddOnPatchResource premierAddOn); + /** * Gets data around private site access enablement and authorized Virtual Networks that can access the site. * Gets data around private site access enablement and authorized Virtual Networks that can access the site. @@ -3056,7 +3289,20 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot); + Observable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot); + + /** + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable discoverBackupSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request); /** * Fetch a short lived token that can be exchanged for a master key. @@ -3068,7 +3314,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot); + Observable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot); /** * Gets hybrid connections configured for an app (or deployment slot, if specified). @@ -3160,6 +3406,72 @@ public interface WebApps { */ Observable listSyncFunctionTriggersSlotAsync(String resourceGroupName, String name, String slot); + /** + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual Network. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot); + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable createOrUpdateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope); + + /** + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable deleteSwiftVirtualNetworkSlotAsync(String resourceGroupName, String name, String slot); + + /** + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable updateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope); + + /** + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); + /** * Start capturing network packets for the site. * Start capturing network packets for the site. @@ -3170,7 +3482,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); + Observable startWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot); /** * Stop ongoing capturing network packets for the site. @@ -3184,6 +3496,19 @@ public interface WebApps { */ Completable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); + /** + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getNetworkTracesSlotAsync(String resourceGroupName, String name, String operationId, String slot); + /** * Generates a new publishing password for an app (or deployment slot, if specified). * Generates a new publishing password for an app (or deployment slot, if specified). @@ -3219,7 +3544,7 @@ public interface WebApps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot); + Observable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot); /** * Gets the publishing profile for an app (or deployment slot, if specified). @@ -3228,10 +3553,11 @@ public interface WebApps { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - Completable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot); + Observable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, CsmPublishingProfileOptions publishingProfileOptions); /** * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. @@ -3322,6 +3648,18 @@ public interface WebApps { */ Completable swapSlotSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity); + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot); + /** * Starts an app (or deployment slot, if specified). * Starts an app (or deployment slot, if specified). @@ -3334,6 +3672,18 @@ public interface WebApps { */ Completable startSlotAsync(String resourceGroupName, String name, String slot); + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable startNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); + /** * Stops an app (or deployment slot, if specified). * Stops an app (or deployment slot, if specified). @@ -3346,6 +3696,18 @@ public interface WebApps { */ Completable stopSlotAsync(String resourceGroupName, String name, String slot); + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Completable stopNetworkTraceSlotAsync(String resourceGroupName, String name, String slot); + /** * Sync web app repository. * Sync web app repository. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebJob.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebJob.java index d0c0d948b708b..df38044543dbc 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebJob.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebJob.java @@ -13,13 +13,13 @@ import com.microsoft.azure.arm.model.Indexable; import com.microsoft.azure.arm.model.Refreshable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.Map; /** * Type representing WebJob. */ -public interface WebJob extends HasInner, Indexable, Refreshable, HasManager { +public interface WebJob extends HasInner, Indexable, Refreshable, HasManager { /** * @return the error value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WorkerPools.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WorkerPools.java index 229b904ecb935..e5519a8c4dcc1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WorkerPools.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WorkerPools.java @@ -16,13 +16,13 @@ import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.HasManager; -import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager; import java.util.List; /** * Type representing WorkerPools. */ -public interface WorkerPools extends HasInner, Indexable, Refreshable, Updatable, HasManager { +public interface WorkerPools extends HasInner, Indexable, Refreshable, Updatable, HasManager { /** * @return the computeMode value. */ @@ -95,6 +95,9 @@ interface Blank extends WithHostingEnvironment { interface WithHostingEnvironment { /** * Specifies resourceGroupName, name. + * @param resourceGroupName Name of the resource group to which the resource belongs + * @param name Name of the App Service Environment + * @return the next definition stage */ WithCreate withExistingHostingEnvironment(String resourceGroupName, String name); } @@ -105,6 +108,8 @@ interface WithHostingEnvironment { interface WithComputeMode { /** * Specifies computeMode. + * @param computeMode Shared or dedicated app hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + * @return the next definition stage */ WithCreate withComputeMode(ComputeModeOptions computeMode); } @@ -115,6 +120,8 @@ interface WithComputeMode { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next definition stage */ WithCreate withKind(String kind); } @@ -125,6 +132,8 @@ interface WithKind { interface WithSku { /** * Specifies sku. + * @param sku the sku parameter value + * @return the next definition stage */ WithCreate withSku(SkuDescription sku); } @@ -135,6 +144,8 @@ interface WithSku { interface WithWorkerCount { /** * Specifies workerCount. + * @param workerCount Number of instances in the worker pool + * @return the next definition stage */ WithCreate withWorkerCount(Integer workerCount); } @@ -145,6 +156,8 @@ interface WithWorkerCount { interface WithWorkerSize { /** * Specifies workerSize. + * @param workerSize VM size of the worker pool instances + * @return the next definition stage */ WithCreate withWorkerSize(String workerSize); } @@ -155,6 +168,8 @@ interface WithWorkerSize { interface WithWorkerSizeId { /** * Specifies workerSizeId. + * @param workerSizeId Worker size ID for referencing this worker pool + * @return the next definition stage */ WithCreate withWorkerSizeId(Integer workerSizeId); } @@ -183,6 +198,8 @@ interface UpdateStages { interface WithComputeMode { /** * Specifies computeMode. + * @param computeMode Shared or dedicated app hosting. Possible values include: 'Shared', 'Dedicated', 'Dynamic' + * @return the next update stage */ Update withComputeMode(ComputeModeOptions computeMode); } @@ -193,6 +210,8 @@ interface WithComputeMode { interface WithKind { /** * Specifies kind. + * @param kind Kind of resource + * @return the next update stage */ Update withKind(String kind); } @@ -203,6 +222,8 @@ interface WithKind { interface WithSku { /** * Specifies sku. + * @param sku the sku parameter value + * @return the next update stage */ Update withSku(SkuDescription sku); } @@ -213,6 +234,8 @@ interface WithSku { interface WithWorkerCount { /** * Specifies workerCount. + * @param workerCount Number of instances in the worker pool + * @return the next update stage */ Update withWorkerCount(Integer workerCount); } @@ -223,6 +246,8 @@ interface WithWorkerCount { interface WithWorkerSize { /** * Specifies workerSize. + * @param workerSize VM size of the worker pool instances + * @return the next update stage */ Update withWorkerSize(String workerSize); } @@ -233,6 +258,8 @@ interface WithWorkerSize { interface WithWorkerSizeId { /** * Specifies workerSizeId. + * @param workerSizeId Worker size ID for referencing this worker pool + * @return the next update stage */ Update withWorkerSizeId(Integer workerSizeId); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AddressResponseImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AddressResponseImpl.java index 7123c7cbccd02..f02cd61c30817 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AddressResponseImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AddressResponseImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.VirtualIPMapping; class AddressResponseImpl extends WrapperImpl implements AddressResponse { - private final AppServiceManager manager; - AddressResponseImpl(AddressResponseInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + AddressResponseImpl(AddressResponseInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AnalysisDefinitionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AnalysisDefinitionImpl.java index 1684e4259edf8..eed72cb2c0269 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AnalysisDefinitionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AnalysisDefinitionImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class AnalysisDefinitionImpl extends WrapperImpl implements AnalysisDefinition { - private final AppServiceManager manager; - AnalysisDefinitionImpl(AnalysisDefinitionInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + AnalysisDefinitionImpl(AnalysisDefinitionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrderImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrderImpl.java index 1fa7bb5ada840..737f428f27447 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrderImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrderImpl.java @@ -22,9 +22,9 @@ import com.microsoft.azure.management.appservice.v2018_02_01.CertificateDetails; import rx.functions.Func1; -class AppServiceCertificateOrderImpl extends GroupableResourceCoreImpl implements AppServiceCertificateOrder, AppServiceCertificateOrder.Definition, AppServiceCertificateOrder.Update { +class AppServiceCertificateOrderImpl extends GroupableResourceCoreImpl implements AppServiceCertificateOrder, AppServiceCertificateOrder.Definition, AppServiceCertificateOrder.Update { private AppServiceCertificateOrderPatchResource updateParameter; - AppServiceCertificateOrderImpl(String name, AppServiceCertificateOrderInner inner, AppServiceManager manager) { + AppServiceCertificateOrderImpl(String name, AppServiceCertificateOrderInner inner, CertificateRegistrationManager manager) { super(name, inner, manager); this.updateParameter = new AppServiceCertificateOrderPatchResource(); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersImpl.java index 9b50f6e0c9a93..563e88ecc5835 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersImpl.java @@ -26,14 +26,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.AppServiceCertificateResource; class AppServiceCertificateOrdersImpl extends WrapperImpl implements AppServiceCertificateOrders { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - AppServiceCertificateOrdersImpl(AppServiceManager manager) { + AppServiceCertificateOrdersImpl(CertificateRegistrationManager manager) { super(manager.inner().appServiceCertificateOrders()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersInner.java index c3ce78d1e1951..e14e3d20f1bf2 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceCertificateOrdersInner.java @@ -585,7 +585,7 @@ private ServiceResponse getByResourceGroupDeleg * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -601,7 +601,7 @@ public AppServiceCertificateOrderInner createOrUpdate(String resourceGroupName, * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -616,7 +616,7 @@ public ServiceFuture createOrUpdateAsync(String * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ @@ -635,7 +635,7 @@ public AppServiceCertificateOrderInner call(ServiceResponse> createOrUpda * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -682,7 +682,7 @@ public AppServiceCertificateOrderInner beginCreateOrUpdate(String resourceGroupN * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -697,7 +697,7 @@ public ServiceFuture beginCreateOrUpdateAsync(S * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AppServiceCertificateOrderInner object */ @@ -716,7 +716,7 @@ public AppServiceCertificateOrderInner call(ServiceResponse deleteDelegate(Response response) th * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -871,7 +871,7 @@ public AppServiceCertificateOrderInner update(String resourceGroupName, String c * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -886,7 +886,7 @@ public ServiceFuture updateAsync(String resourc * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. - * @param certificateDistinguishedName Distinguished name to to use for the certificate order. + * @param certificateDistinguishedName Distinguished name to use for the certificate order. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AppServiceCertificateOrderInner object */ @@ -905,7 +905,7 @@ public AppServiceCertificateOrderInner call(ServiceResponse implements AppServiceCertificateResource, AppServiceCertificateResource.Definition, AppServiceCertificateResource.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String certificateOrderName; private String name; private AppServiceCertificatePatchResource updateParameter; - AppServiceCertificateResourceImpl(String name, AppServiceManager manager) { + AppServiceCertificateResourceImpl(String name, CertificateRegistrationManager manager) { super(name, new AppServiceCertificateResourceInner()); this.manager = manager; // Set resource name @@ -32,12 +32,12 @@ class AppServiceCertificateResourceImpl extends CreatableUpdatableImpl implements AppServiceEnvironmentResource, AppServiceEnvironmentResource.Definition, AppServiceEnvironmentResource.Update { +class AppServiceEnvironmentResourceImpl extends GroupableResourceCoreImpl implements AppServiceEnvironmentResource, AppServiceEnvironmentResource.Definition, AppServiceEnvironmentResource.Update { private AppServiceEnvironmentPatchResource updateParameter; - AppServiceEnvironmentResourceImpl(String name, AppServiceEnvironmentResourceInner inner, AppServiceManager manager) { + AppServiceEnvironmentResourceImpl(String name, AppServiceEnvironmentResourceInner inner, CertificateRegistrationManager manager) { super(name, inner, manager); this.updateParameter = new AppServiceEnvironmentPatchResource(); } @@ -216,6 +216,16 @@ public String resourceGroup() { return this.inner().resourceGroup(); } + @Override + public String sslCertKeyVaultId() { + return this.inner().sslCertKeyVaultId(); + } + + @Override + public String sslCertKeyVaultSecretName() { + return this.inner().sslCertKeyVaultSecretName(); + } + @Override public HostingEnvironmentStatus status() { return this.inner().status(); @@ -415,6 +425,26 @@ public AppServiceEnvironmentResourceImpl withNetworkAccessControlList(List implements AppServiceEnvironments { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - AppServiceEnvironmentsImpl(AppServiceManager manager) { + AppServiceEnvironmentsImpl(CertificateRegistrationManager manager) { super(manager.inner().appServiceEnvironments()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -73,6 +75,10 @@ private HostingEnvironmentDiagnosticsImpl wrapHostingEnvironmentDiagnosticsModel return new HostingEnvironmentDiagnosticsImpl(inner, manager()); } + private InboundEnvironmentEndpointImpl wrapInboundEnvironmentEndpointModel(InboundEnvironmentEndpointInner inner) { + return new InboundEnvironmentEndpointImpl(inner, manager()); + } + private HostingEnvironmentResourceMetricImpl wrapHostingEnvironmentResourceMetricModel(ResourceMetricInner inner) { return new HostingEnvironmentResourceMetricImpl(inner, manager()); } @@ -85,6 +91,10 @@ private OperationImpl wrapOperationModel(OperationInner inner) { return new OperationImpl(inner, manager()); } + private OutboundEnvironmentEndpointImpl wrapOutboundEnvironmentEndpointModel(OutboundEnvironmentEndpointInner inner) { + return new OutboundEnvironmentEndpointImpl(inner, manager()); + } + private HostingEnvironmentAppServicePlanImpl wrapHostingEnvironmentAppServicePlanModel(AppServicePlanInner inner) { return new HostingEnvironmentAppServicePlanImpl(inner, manager()); } @@ -229,12 +239,6 @@ public Sites call(SiteInner inner) { }); } - @Override - public Completable syncVirtualNetworkInfoAsync(String resourceGroupName, String name) { - AppServiceEnvironmentsInner client = this.inner(); - return client.syncVirtualNetworkInfoAsync(resourceGroupName, name).toCompletable(); - } - @Override public Observable listCapacitiesAsync(final String resourceGroupName, final String name) { AppServiceEnvironmentsInner client = this.inner(); @@ -295,6 +299,24 @@ public HostingEnvironmentDiagnostics call(HostingEnvironmentDiagnosticsInner inn }); } + @Override + public Observable getInboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name) { + AppServiceEnvironmentsInner client = this.inner(); + return client.getInboundNetworkDependenciesEndpointsAsync(resourceGroupName, name) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public InboundEnvironmentEndpoint call(InboundEnvironmentEndpointInner inner) { + return wrapInboundEnvironmentEndpointModel(inner); + } + }); + } + @Override public Observable listMetricDefinitionsAsync(String resourceGroupName, String name) { AppServiceEnvironmentsInner client = this.inner(); @@ -631,6 +653,24 @@ public Operation call(OperationInner inner) { }); } + @Override + public Observable getOutboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name) { + AppServiceEnvironmentsInner client = this.inner(); + return client.getOutboundNetworkDependenciesEndpointsAsync(resourceGroupName, name) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public OutboundEnvironmentEndpoint call(OutboundEnvironmentEndpointInner inner) { + return wrapOutboundEnvironmentEndpointModel(inner); + } + }); + } + @Override public Observable listAppServicePlansAsync(final String resourceGroupName, final String name) { AppServiceEnvironmentsInner client = this.inner(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentsInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentsInner.java index 327c4c75a1846..9d93cff6a0ba1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentsInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentsInner.java @@ -125,6 +125,10 @@ interface AppServiceEnvironmentsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/diagnostics/{diagnosticsName}") Observable> getDiagnosticsItem(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("diagnosticsName") String diagnosticsName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments getInboundNetworkDependenciesEndpoints" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints") + Observable> getInboundNetworkDependenciesEndpoints(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments listMetricDefinitions" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metricdefinitions") Observable> listMetricDefinitions(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -181,6 +185,10 @@ interface AppServiceEnvironmentsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/operations") Observable> listOperations(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments getOutboundNetworkDependenciesEndpoints" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/outboundNetworkDependenciesEndpoints") + Observable> getOutboundNetworkDependenciesEndpoints(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments reboot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/reboot") Observable> reboot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -209,10 +217,6 @@ interface AppServiceEnvironmentsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/suspend") Observable> beginSuspend(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments syncVirtualNetworkInfo" }) - @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/syncVirtualNetwork") - Observable> syncVirtualNetworkInfo(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments listUsages" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/usages") Observable> listUsages(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query(value = "$filter", encoded = true) String filter, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1987,6 +1991,96 @@ private ServiceResponse getDiagnosticsItemDe .build(response); } + /** + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<InboundEnvironmentEndpointInner> object if successful. + */ + public List getInboundNetworkDependenciesEndpoints(String resourceGroupName, String name) { + return getInboundNetworkDependenciesEndpointsWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getInboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getInboundNetworkDependenciesEndpointsWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<InboundEnvironmentEndpointInner> object + */ + public Observable> getInboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name) { + return getInboundNetworkDependenciesEndpointsWithServiceResponseAsync(resourceGroupName, name).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * Get the network endpoints of all inbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<InboundEnvironmentEndpointInner> object + */ + public Observable>> getInboundNetworkDependenciesEndpointsWithServiceResponseAsync(String resourceGroupName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getInboundNetworkDependenciesEndpoints(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getInboundNetworkDependenciesEndpointsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getInboundNetworkDependenciesEndpointsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Get global metric definitions of an App Service Environment. * Get global metric definitions of an App Service Environment. @@ -2207,7 +2301,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service Environment. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -2254,7 +2348,7 @@ public Observable>> call(String nextPa * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service Environment. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -2275,7 +2369,7 @@ public Page call(ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service Environment. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -2300,7 +2394,7 @@ public Observable>> call(ServiceRespon ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of the App Service Environment. ServiceResponse> * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -3512,7 +3606,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param endTime End time of the metrics query. * @param timeGrain Time granularity of the metrics query. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -3565,7 +3659,7 @@ public Observable>> call(String nextPa * @param endTime End time of the metrics query. * @param timeGrain Time granularity of the metrics query. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -3589,7 +3683,7 @@ public Page call(ServiceResponse> * @param endTime End time of the metrics query. * @param timeGrain Time granularity of the metrics query. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -3617,7 +3711,7 @@ public Observable>> call(ServiceRespon ServiceResponse> * @param endTime End time of the metrics query. ServiceResponse> * @param timeGrain Time granularity of the metrics query. ServiceResponse> * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -4001,6 +4095,96 @@ private ServiceResponse> listOperationsDelegate(Response getOutboundNetworkDependenciesEndpoints(String resourceGroupName, String name) { + return getOutboundNetworkDependenciesEndpointsWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getOutboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getOutboundNetworkDependenciesEndpointsWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<OutboundEnvironmentEndpointInner> object + */ + public Observable> getOutboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String name) { + return getOutboundNetworkDependenciesEndpointsWithServiceResponseAsync(resourceGroupName, name).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * Get the network endpoints of all outbound dependencies of an App Service Environment. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the App Service Environment. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<OutboundEnvironmentEndpointInner> object + */ + public Observable>> getOutboundNetworkDependenciesEndpointsWithServiceResponseAsync(String resourceGroupName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getOutboundNetworkDependenciesEndpoints(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getOutboundNetworkDependenciesEndpointsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getOutboundNetworkDependenciesEndpointsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Reboot all machines in an App Service Environment. * Reboot all machines in an App Service Environment. @@ -4992,96 +5176,6 @@ private ServiceResponse> beginSuspendDelegate(Response syncVirtualNetworkInfoAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(syncVirtualNetworkInfoWithServiceResponseAsync(resourceGroupName, name), serviceCallback); - } - - /** - * Resume an App Service Environment. - * Resume an App Service Environment. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the App Service Environment. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable syncVirtualNetworkInfoAsync(String resourceGroupName, String name) { - return syncVirtualNetworkInfoWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Resume an App Service Environment. - * Resume an App Service Environment. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the App Service Environment. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. - */ - public Observable> syncVirtualNetworkInfoWithServiceResponseAsync(String resourceGroupName, String name) { - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (name == null) { - throw new IllegalArgumentException("Parameter name is required and cannot be null."); - } - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - return service.syncVirtualNetworkInfo(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = syncVirtualNetworkInfoDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse syncVirtualNetworkInfoDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - /** * Get global usage metrics of an App Service Environment. * Get global usage metrics of an App Service Environment. @@ -5210,7 +5304,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service Environment. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -5255,7 +5349,7 @@ public Observable>> call(String nextPag * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service Environment. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<CsmUsageQuotaInner> object */ @@ -5275,7 +5369,7 @@ public Page call(ServiceResponse> r * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service Environment. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<CsmUsageQuotaInner> object */ @@ -5299,7 +5393,7 @@ public Observable>> call(ServiceRespons * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of the App Service Environment. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<CsmUsageQuotaInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -6160,7 +6254,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param workerPoolName Name of the worker pool. * @param instance Name of the instance in the worker pool. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -6211,7 +6305,7 @@ public Observable>> call(String nextPa * @param workerPoolName Name of the worker pool. * @param instance Name of the instance in the worker pool. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -6234,7 +6328,7 @@ public Page call(ServiceResponse> * @param workerPoolName Name of the worker pool. * @param instance Name of the instance in the worker pool. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -6261,7 +6355,7 @@ public Observable>> call(ServiceRespon ServiceResponse> * @param workerPoolName Name of the worker pool. ServiceResponse> * @param instance Name of the instance in the worker pool. ServiceResponse> * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -6580,7 +6674,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param name Name of the App Service Environment. * @param workerPoolName Name of worker pool * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -6629,7 +6723,7 @@ public Observable>> call(String nextPa * @param name Name of the App Service Environment. * @param workerPoolName Name of worker pool * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -6651,7 +6745,7 @@ public Page call(ServiceResponse> * @param name Name of the App Service Environment. * @param workerPoolName Name of worker pool * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -6677,7 +6771,7 @@ public Observable>> call(ServiceRespon ServiceResponse> * @param name Name of the App Service Environment. ServiceResponse> * @param workerPoolName Name of worker pool ServiceResponse> * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanImpl.java index a53c007344486..7802e6f454bea 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanImpl.java @@ -19,9 +19,9 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SkuDescription; import rx.functions.Func1; -class AppServicePlanImpl extends GroupableResourceCoreImpl implements AppServicePlan, AppServicePlan.Definition, AppServicePlan.Update { +class AppServicePlanImpl extends GroupableResourceCoreImpl implements AppServicePlan, AppServicePlan.Definition, AppServicePlan.Update { private AppServicePlanPatchResource updateParameter; - AppServicePlanImpl(String name, AppServicePlanInner inner, AppServiceManager manager) { + AppServicePlanImpl(String name, AppServicePlanInner inner, CertificateRegistrationManager manager) { super(name, inner, manager); this.updateParameter = new AppServicePlanPatchResource(); } @@ -70,8 +70,8 @@ private void resetCreateUpdateParameters() { } @Override - public String adminSiteName() { - return this.inner().adminSiteName(); + public DateTime freeOfferExpirationTime() { + return this.inner().freeOfferExpirationTime(); } @Override @@ -84,6 +84,11 @@ public HostingEnvironmentProfile hostingEnvironmentProfile() { return this.inner().hostingEnvironmentProfile(); } + @Override + public Boolean hyperV() { + return this.inner().hyperV(); + } + @Override public Boolean isSpot() { return this.inner().isSpot(); @@ -99,6 +104,11 @@ public String kind() { return this.inner().kind(); } + @Override + public Integer maximumElasticWorkerCount() { + return this.inner().maximumElasticWorkerCount(); + } + @Override public Integer maximumNumberOfWorkers() { return this.inner().maximumNumberOfWorkers(); @@ -171,11 +181,11 @@ public AppServicePlanImpl withSku(SkuDescription sku) { } @Override - public AppServicePlanImpl withAdminSiteName(String adminSiteName) { + public AppServicePlanImpl withFreeOfferExpirationTime(DateTime freeOfferExpirationTime) { if (isInCreateMode()) { - this.inner().withAdminSiteName(adminSiteName); + this.inner().withFreeOfferExpirationTime(freeOfferExpirationTime); } else { - this.updateParameter.withAdminSiteName(adminSiteName); + this.updateParameter.withFreeOfferExpirationTime(freeOfferExpirationTime); } return this; } @@ -190,6 +200,16 @@ public AppServicePlanImpl withHostingEnvironmentProfile(HostingEnvironmentProfil return this; } + @Override + public AppServicePlanImpl withHyperV(Boolean hyperV) { + if (isInCreateMode()) { + this.inner().withHyperV(hyperV); + } else { + this.updateParameter.withHyperV(hyperV); + } + return this; + } + @Override public AppServicePlanImpl withIsSpot(Boolean isSpot) { if (isInCreateMode()) { @@ -220,6 +240,16 @@ public AppServicePlanImpl withKind(String kind) { return this; } + @Override + public AppServicePlanImpl withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount) { + if (isInCreateMode()) { + this.inner().withMaximumElasticWorkerCount(maximumElasticWorkerCount); + } else { + this.updateParameter.withMaximumElasticWorkerCount(maximumElasticWorkerCount); + } + return this; + } + @Override public AppServicePlanImpl withPerSiteScaling(Boolean perSiteScaling) { if (isInCreateMode()) { diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanInner.java index 8c81eaa04eddc..04623476d3d63 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlanInner.java @@ -41,12 +41,6 @@ public class AppServicePlanInner extends Resource { @JsonProperty(value = "properties.subscription", access = JsonProperty.Access.WRITE_ONLY) private String subscription; - /** - * App Service plan administration site. - */ - @JsonProperty(value = "properties.adminSiteName") - private String adminSiteName; - /** * Specification for the App Service Environment to use for the App Service * plan. @@ -76,6 +70,13 @@ public class AppServicePlanInner extends Resource { @JsonProperty(value = "properties.perSiteScaling") private Boolean perSiteScaling; + /** + * Maximum number of total workers allowed for this ElasticScaleEnabled App + * Service Plan. + */ + @JsonProperty(value = "properties.maximumElasticWorkerCount") + private Integer maximumElasticWorkerCount; + /** * Number of apps assigned to this App Service plan. */ @@ -96,6 +97,12 @@ public class AppServicePlanInner extends Resource { @JsonProperty(value = "properties.spotExpirationTime") private DateTime spotExpirationTime; + /** + * The time when the server farm free offer expires. + */ + @JsonProperty(value = "properties.freeOfferExpirationTime") + private DateTime freeOfferExpirationTime; + /** * Resource group of the App Service plan. */ @@ -110,12 +117,19 @@ public class AppServicePlanInner extends Resource { private Boolean reserved; /** - * If Hyper-V container app service plan <code>true</code>, - * <code>false</code> otherwise. + * Obsolete: If Hyper-V container app service plan + * <code>true</code>, <code>false</code> otherwise. */ @JsonProperty(value = "properties.isXenon") private Boolean isXenon; + /** + * If Hyper-V container app service plan <code>true</code>, + * <code>false</code> otherwise. + */ + @JsonProperty(value = "properties.hyperV") + private Boolean hyperV; + /** * Scaling worker count. */ @@ -185,26 +199,6 @@ public String subscription() { return this.subscription; } - /** - * Get app Service plan administration site. - * - * @return the adminSiteName value - */ - public String adminSiteName() { - return this.adminSiteName; - } - - /** - * Set app Service plan administration site. - * - * @param adminSiteName the adminSiteName value to set - * @return the AppServicePlanInner object itself. - */ - public AppServicePlanInner withAdminSiteName(String adminSiteName) { - this.adminSiteName = adminSiteName; - return this; - } - /** * Get specification for the App Service Environment to use for the App Service plan. * @@ -265,6 +259,26 @@ public AppServicePlanInner withPerSiteScaling(Boolean perSiteScaling) { return this; } + /** + * Get maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. + * + * @return the maximumElasticWorkerCount value + */ + public Integer maximumElasticWorkerCount() { + return this.maximumElasticWorkerCount; + } + + /** + * Set maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. + * + * @param maximumElasticWorkerCount the maximumElasticWorkerCount value to set + * @return the AppServicePlanInner object itself. + */ + public AppServicePlanInner withMaximumElasticWorkerCount(Integer maximumElasticWorkerCount) { + this.maximumElasticWorkerCount = maximumElasticWorkerCount; + return this; + } + /** * Get number of apps assigned to this App Service plan. * @@ -314,6 +328,26 @@ public AppServicePlanInner withSpotExpirationTime(DateTime spotExpirationTime) { return this; } + /** + * Get the time when the server farm free offer expires. + * + * @return the freeOfferExpirationTime value + */ + public DateTime freeOfferExpirationTime() { + return this.freeOfferExpirationTime; + } + + /** + * Set the time when the server farm free offer expires. + * + * @param freeOfferExpirationTime the freeOfferExpirationTime value to set + * @return the AppServicePlanInner object itself. + */ + public AppServicePlanInner withFreeOfferExpirationTime(DateTime freeOfferExpirationTime) { + this.freeOfferExpirationTime = freeOfferExpirationTime; + return this; + } + /** * Get resource group of the App Service plan. * @@ -344,7 +378,7 @@ public AppServicePlanInner withReserved(Boolean reserved) { } /** - * Get if Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + * Get obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. * * @return the isXenon value */ @@ -353,7 +387,7 @@ public Boolean isXenon() { } /** - * Set if Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + * Set obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. * * @param isXenon the isXenon value to set * @return the AppServicePlanInner object itself. @@ -363,6 +397,26 @@ public AppServicePlanInner withIsXenon(Boolean isXenon) { return this; } + /** + * Get if Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + * + * @return the hyperV value + */ + public Boolean hyperV() { + return this.hyperV; + } + + /** + * Set if Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise. + * + * @param hyperV the hyperV value to set + * @return the AppServicePlanInner object itself. + */ + public AppServicePlanInner withHyperV(Boolean hyperV) { + this.hyperV = hyperV; + return this; + } + /** * Get scaling worker count. * diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansImpl.java index 7fefab5436f1a..b5be616a76e92 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansImpl.java @@ -31,14 +31,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.VnetRoute; class AppServicePlansImpl extends WrapperImpl implements AppServicePlans { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - AppServicePlansImpl(AppServiceManager manager) { + AppServicePlansImpl(CertificateRegistrationManager manager) { super(manager.inner().appServicePlans()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -193,10 +193,10 @@ public Completable restartWebAppsAsync(String resourceGroupName, String name) { } @Override - public Completable getServerFarmSkusAsync(String resourceGroupName, String name) { + public Observable getServerFarmSkusAsync(String resourceGroupName, String name) { AppServicePlansInner client = this.inner(); - return client.getServerFarmSkusAsync(resourceGroupName, name).toCompletable(); - } + return client.getServerFarmSkusAsync(resourceGroupName, name) + ;} @Override public Observable listCapabilitiesAsync(String resourceGroupName, String name) { @@ -247,9 +247,15 @@ public HybridConnectionKey call(HybridConnectionKeyInner inner) { } @Override - public Completable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName) { + public Observable listWebAppsByHybridConnectionAsync(final String resourceGroupName, final String name, final String namespaceName, final String relayName) { AppServicePlansInner client = this.inner(); - return client.listWebAppsByHybridConnectionAsync(resourceGroupName, name, namespaceName, relayName).toCompletable(); + return client.listWebAppsByHybridConnectionAsync(resourceGroupName, name, namespaceName, relayName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }); } @Override diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansInner.java index e1bd316b4b927..a9f0205dadba7 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansInner.java @@ -223,8 +223,8 @@ interface AppServicePlansService { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server @@ -242,8 +242,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -262,8 +262,8 @@ public Observable>> call(String nextPa } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<AppServicePlanInner> object @@ -279,8 +279,8 @@ public Page call(ServiceResponse> } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<AppServicePlanInner> object @@ -300,8 +300,8 @@ public Observable>> call(ServiceRespon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<AppServicePlanInner> object wrapped in {@link ServiceResponse} if successful. @@ -329,8 +329,8 @@ public Observable>> call(Response nextPage(String nextPageLink) { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -372,8 +372,8 @@ public Observable>> call(String nextPa } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -391,8 +391,8 @@ public Page call(ServiceResponse> } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -414,8 +414,8 @@ public Observable>> call(ServiceRespon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * ServiceResponse> * @param detailed Specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>, which returns a subset of the properties. Retrieval of all properties may increase the API latency. @@ -836,6 +836,7 @@ public Observable> call(Response beginCreateOrUpdateDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) .register(202, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); @@ -1923,8 +1924,8 @@ private ServiceResponse> listMetricDefin } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -1944,8 +1945,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -1966,8 +1967,8 @@ public Observable>> call(String nextPa } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -1985,8 +1986,8 @@ public Page call(ServiceResponse> } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -2008,8 +2009,8 @@ public Observable>> call(ServiceRespon } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. @@ -2046,13 +2047,13 @@ public Observable>> call(Response nextPage(String nextPageLink) { } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -2093,13 +2094,13 @@ public Observable>> call(String nextPa } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -2114,13 +2115,13 @@ public Page call(ServiceResponse> } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -2139,13 +2140,13 @@ public Observable>> call(ServiceRespon } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of the App Service plan. ServiceResponse> * @param details Specify <code>true</code> to include instance details. The default is <code>false</code>. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -2272,7 +2273,7 @@ public Observable> call(Response response) { * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -2287,7 +2288,7 @@ public void restartWebApps(String resourceGroupName, String name, Boolean softRe * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -2302,7 +2303,7 @@ public ServiceFuture restartWebAppsAsync(String resourceGroupName, String * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ @@ -2321,7 +2322,7 @@ public Void call(ServiceResponse response) { * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service plan. - * @param softRestart Specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps + * @param softRestart Specify <code>true</code> to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ @@ -2627,8 +2628,8 @@ private ServiceResponse> listWebAppsDelegate(Response getServerFarmSkusAsync(String resourceGroupName, St } /** - * Gets all selectable sku's for a given App Service Plan. - * Gets all selectable sku's for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of App Service Plan @@ -2674,8 +2675,8 @@ public Object call(ServiceResponse response) { } /** - * Gets all selectable sku's for a given App Service Plan. - * Gets all selectable sku's for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. + * Gets all selectable SKUs for a given App Service Plan. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of App Service Plan @@ -4006,8 +4007,8 @@ private ServiceResponse rebootWorkerDelegate(Response respon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4026,8 +4027,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -4048,8 +4049,8 @@ public Observable>> call(String nextPa } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4066,8 +4067,8 @@ public Page call(ServiceResponse> } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4088,8 +4089,8 @@ public Observable>> call(ServiceRespon } /** - * Get all App Service plans for a subcription. - * Get all App Service plans for a subcription. + * Get all App Service plans for a subscription. + * Get all App Service plans for a subscription. * ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4586,8 +4587,8 @@ private ServiceResponse> listMetricDefin } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4606,8 +4607,8 @@ public Page nextPage(String nextPageLink) { } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @param serviceFuture the ServiceFuture object tracking the Retrofit calls @@ -4628,8 +4629,8 @@ public Observable>> call(String nextPa } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4646,8 +4647,8 @@ public Page call(ServiceResponse> } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -4668,8 +4669,8 @@ public Observable>> call(ServiceRespon } /** - * Get metrics for an App Serice plan. - * Get metrics for an App Serice plan. + * Get metrics for an App Service plan. + * Get metrics for an App Service plan. * ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. * @throws IllegalArgumentException thrown if parameters fail the validation diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ApplicationStackImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ApplicationStackImpl.java index 8640f6dc23474..4e67514c0cc0b 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ApplicationStackImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ApplicationStackImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.StackMajorVersion; class ApplicationStackImpl extends WrapperImpl implements ApplicationStack { - private final AppServiceManager manager; - ApplicationStackImpl(ApplicationStackInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + ApplicationStackImpl(ApplicationStackInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AzureStoragePropertyDictionaryResourceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AzureStoragePropertyDictionaryResourceImpl.java new file mode 100644 index 0000000000000..7d74bfbbc4d45 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AzureStoragePropertyDictionaryResourceImpl.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.management.appservice.v2018_02_01.AzureStoragePropertyDictionaryResource; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import java.util.Map; +import com.microsoft.azure.management.appservice.v2018_02_01.AzureStorageInfoValue; + +class AzureStoragePropertyDictionaryResourceImpl extends WrapperImpl implements AzureStoragePropertyDictionaryResource { + private final CertificateRegistrationManager manager; + AzureStoragePropertyDictionaryResourceImpl(AzureStoragePropertyDictionaryResourceInner inner, CertificateRegistrationManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public CertificateRegistrationManager manager() { + return this.manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String kind() { + return this.inner().kind(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Map properties() { + return this.inner().properties(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AzureStoragePropertyDictionaryResourceInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AzureStoragePropertyDictionaryResourceInner.java new file mode 100644 index 0000000000000..f265d4c61dfcf --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AzureStoragePropertyDictionaryResourceInner.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import java.util.Map; +import com.microsoft.azure.management.appservice.v2018_02_01.AzureStorageInfoValue; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource; + +/** + * AzureStorageInfo dictionary resource. + */ +public class AzureStoragePropertyDictionaryResourceInner extends ProxyOnlyResource { + /** + * Azure storage accounts. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get azure storage accounts. + * + * @return the properties value + */ + public Map properties() { + return this.properties; + } + + /** + * Set azure storage accounts. + * + * @param properties the properties value to set + * @return the AzureStoragePropertyDictionaryResourceInner object itself. + */ + public AzureStoragePropertyDictionaryResourceInner withProperties(Map properties) { + this.properties = properties; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupItemImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupItemImpl.java index 9d036ccebb5a8..d1d95c707f62c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupItemImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupItemImpl.java @@ -17,21 +17,22 @@ import com.microsoft.azure.management.appservice.v2018_02_01.BackupItemStatus; class BackupItemImpl extends IndexableRefreshableWrapperImpl implements BackupItem { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String backupId; - BackupItemImpl(BackupItemInner inner, AppServiceManager manager) { + BackupItemImpl(BackupItemInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.backupId = IdParsingUtils.getValueFromIdByName(inner.id(), "backups"); } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestImpl.java index 898af0308d1bf..9ba81549824ac 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestImpl.java @@ -15,17 +15,22 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DatabaseBackupSetting; class BackupRequestImpl extends WrapperImpl implements BackupRequest { - private final AppServiceManager manager; - BackupRequestImpl(BackupRequestInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + BackupRequestImpl(BackupRequestInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } + @Override + public String backupName() { + return this.inner().backupName(); + } + @Override public BackupSchedule backupSchedule() { return this.inner().backupSchedule(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestInner.java index e761a1d8b2cb1..581fe11bb33dd 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BackupRequestInner.java @@ -20,6 +20,12 @@ */ @JsonFlatten public class BackupRequestInner extends ProxyOnlyResource { + /** + * Name of the backup. + */ + @JsonProperty(value = "properties.backupName") + private String backupName; + /** * True if the backup schedule is enabled (must be included in that case), * false if the backup schedule should be disabled. @@ -45,6 +51,26 @@ public class BackupRequestInner extends ProxyOnlyResource { @JsonProperty(value = "properties.databases") private List databases; + /** + * Get name of the backup. + * + * @return the backupName value + */ + public String backupName() { + return this.backupName; + } + + /** + * Set name of the backup. + * + * @param backupName the backupName value to set + * @return the BackupRequestInner object itself. + */ + public BackupRequestInner withBackupName(String backupName) { + this.backupName = backupName; + return this; + } + /** * Get true if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled. * diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BillingMeterInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BillingMeterInner.java index 8cee7b82e345e..4c0defbf3dc28 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BillingMeterInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/BillingMeterInner.java @@ -48,6 +48,12 @@ public class BillingMeterInner extends ProxyOnlyResource { @JsonProperty(value = "properties.resourceType") private String resourceType; + /** + * App Service OS type meter used for. + */ + @JsonProperty(value = "properties.osType") + private String osType; + /** * Get meter GUID onboarded in Commerce. * @@ -148,4 +154,24 @@ public BillingMeterInner withResourceType(String resourceType) { return this; } + /** + * Get app Service OS type meter used for. + * + * @return the osType value + */ + public String osType() { + return this.osType; + } + + /** + * Set app Service OS type meter used for. + * + * @param osType the osType value to set + * @return the BillingMeterInner object itself. + */ + public BillingMeterInner withOsType(String osType) { + this.osType = osType; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CapabilityImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CapabilityImpl.java index 6d26a463cdbde..25252815599f5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CapabilityImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CapabilityImpl.java @@ -13,15 +13,15 @@ import rx.Observable; class CapabilityImpl extends WrapperImpl implements Capability { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - CapabilityImpl(CapabilityInner inner, AppServiceManager manager) { + CapabilityImpl(CapabilityInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateEmailImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateEmailImpl.java index 3f030093ed7f9..d0a62ecf079d4 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateEmailImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateEmailImpl.java @@ -13,14 +13,14 @@ import org.joda.time.DateTime; class CertificateEmailImpl extends WrapperImpl implements CertificateEmail { - private final AppServiceManager manager; - CertificateEmailImpl(CertificateEmailInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + CertificateEmailImpl(CertificateEmailInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateImpl.java index b8c0b5d34c49b..583a814a9db69 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateImpl.java @@ -18,9 +18,9 @@ import com.microsoft.azure.management.appservice.v2018_02_01.KeyVaultSecretStatus; import rx.functions.Func1; -class CertificateImpl extends GroupableResourceCoreImpl implements Certificate, Certificate.Definition, Certificate.Update { +class CertificateImpl extends GroupableResourceCoreImpl implements Certificate, Certificate.Definition, Certificate.Update { private CertificatePatchResource updateParameter; - CertificateImpl(String name, CertificateInner inner, AppServiceManager manager) { + CertificateImpl(String name, CertificateInner inner, CertificateRegistrationManager manager) { super(name, inner, manager); this.updateParameter = new CertificatePatchResource(); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateInner.java index d7834c91158ab..b33a9ecb33bc4 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateInner.java @@ -70,7 +70,7 @@ public class CertificateInner extends Resource { private DateTime issueDate; /** - * Certificate expriration date. + * Certificate expiration date. */ @JsonProperty(value = "properties.expirationDate", access = JsonProperty.Access.WRITE_ONLY) private DateTime expirationDate; @@ -243,7 +243,7 @@ public DateTime issueDate() { } /** - * Get certificate expriration date. + * Get certificate expiration date. * * @return the expirationDate value */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateOrderActionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateOrderActionImpl.java index ab5bca8f95ded..bb7d0facacd58 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateOrderActionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateOrderActionImpl.java @@ -14,14 +14,14 @@ import org.joda.time.DateTime; class CertificateOrderActionImpl extends WrapperImpl implements CertificateOrderAction { - private final AppServiceManager manager; - CertificateOrderActionImpl(CertificateOrderActionInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + CertificateOrderActionImpl(CertificateOrderActionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateRegistrationManager.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateRegistrationManager.java new file mode 100644 index 0000000000000..c1c714f68b995 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateRegistrationManager.java @@ -0,0 +1,255 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.AzureTokenCredentials; +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; +import com.microsoft.azure.arm.resources.AzureConfigurable; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.RestClient; +import com.microsoft.azure.management.appservice.v2018_02_01.AppServiceCertificateOrders; +import com.microsoft.azure.management.appservice.v2018_02_01.CertificateRegistrationProviders; +import com.microsoft.azure.management.appservice.v2018_02_01.Domains; +import com.microsoft.azure.management.appservice.v2018_02_01.TopLevelDomains; +import com.microsoft.azure.management.appservice.v2018_02_01.DomainRegistrationProviders; +import com.microsoft.azure.management.appservice.v2018_02_01.Certificates; +import com.microsoft.azure.management.appservice.v2018_02_01.DeletedWebApps; +import com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics; +import com.microsoft.azure.management.appservice.v2018_02_01.Providers; +import com.microsoft.azure.management.appservice.v2018_02_01.Recommendations; +import com.microsoft.azure.management.appservice.v2018_02_01.WebApps; +import com.microsoft.azure.management.appservice.v2018_02_01.AppServiceEnvironments; +import com.microsoft.azure.management.appservice.v2018_02_01.AppServicePlans; +import com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas; +import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl; +import com.microsoft.azure.arm.resources.implementation.ManagerCore; + +/** + * Entry point to Azure CertificateRegistration resource management. + */ +public final class CertificateRegistrationManager extends ManagerCore { + private AppServiceCertificateOrders appServiceCertificateOrders; + private CertificateRegistrationProviders certificateRegistrationProviders; + private Domains domains; + private TopLevelDomains topLevelDomains; + private DomainRegistrationProviders domainRegistrationProviders; + private Certificates certificates; + private DeletedWebApps deletedWebApps; + private Diagnostics diagnostics; + private Providers providers; + private Recommendations recommendations; + private WebApps webApps; + private AppServiceEnvironments appServiceEnvironments; + private AppServicePlans appServicePlans; + private ResourceHealthMetadatas resourceHealthMetadatas; + /** + * Get a Configurable instance that can be used to create CertificateRegistrationManager with optional configuration. + * + * @return the instance allowing configurations + */ + public static Configurable configure() { + return new CertificateRegistrationManager.ConfigurableImpl(); + } + /** + * Creates an instance of CertificateRegistrationManager that exposes CertificateRegistration resource management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the CertificateRegistrationManager + */ + public static CertificateRegistrationManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return new CertificateRegistrationManager(new RestClient.Builder() + .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withCredentials(credentials) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .build(), subscriptionId); + } + /** + * Creates an instance of CertificateRegistrationManager that exposes CertificateRegistration resource management API entry points. + * + * @param restClient the RestClient to be used for API calls. + * @param subscriptionId the subscription UUID + * @return the CertificateRegistrationManager + */ + public static CertificateRegistrationManager authenticate(RestClient restClient, String subscriptionId) { + return new CertificateRegistrationManager(restClient, subscriptionId); + } + /** + * The interface allowing configurations to be set. + */ + public interface Configurable extends AzureConfigurable { + /** + * Creates an instance of CertificateRegistrationManager that exposes CertificateRegistration management API entry points. + * + * @param credentials the credentials to use + * @param subscriptionId the subscription UUID + * @return the interface exposing CertificateRegistration management API entry points that work across subscriptions + */ + CertificateRegistrationManager authenticate(AzureTokenCredentials credentials, String subscriptionId); + } + + /** + * @return Entry point to manage AppServiceCertificateOrders. + */ + public AppServiceCertificateOrders appServiceCertificateOrders() { + if (this.appServiceCertificateOrders == null) { + this.appServiceCertificateOrders = new AppServiceCertificateOrdersImpl(this); + } + return this.appServiceCertificateOrders; + } + + /** + * @return Entry point to manage CertificateRegistrationProviders. + */ + public CertificateRegistrationProviders certificateRegistrationProviders() { + if (this.certificateRegistrationProviders == null) { + this.certificateRegistrationProviders = new CertificateRegistrationProvidersImpl(this); + } + return this.certificateRegistrationProviders; + } + + /** + * @return Entry point to manage Domains. + */ + public Domains domains() { + if (this.domains == null) { + this.domains = new DomainsImpl(this); + } + return this.domains; + } + + /** + * @return Entry point to manage TopLevelDomains. + */ + public TopLevelDomains topLevelDomains() { + if (this.topLevelDomains == null) { + this.topLevelDomains = new TopLevelDomainsImpl(this); + } + return this.topLevelDomains; + } + + /** + * @return Entry point to manage DomainRegistrationProviders. + */ + public DomainRegistrationProviders domainRegistrationProviders() { + if (this.domainRegistrationProviders == null) { + this.domainRegistrationProviders = new DomainRegistrationProvidersImpl(this); + } + return this.domainRegistrationProviders; + } + + /** + * @return Entry point to manage Certificates. + */ + public Certificates certificates() { + if (this.certificates == null) { + this.certificates = new CertificatesImpl(this); + } + return this.certificates; + } + + /** + * @return Entry point to manage DeletedWebApps. + */ + public DeletedWebApps deletedWebApps() { + if (this.deletedWebApps == null) { + this.deletedWebApps = new DeletedWebAppsImpl(this); + } + return this.deletedWebApps; + } + + /** + * @return Entry point to manage Diagnostics. + */ + public Diagnostics diagnostics() { + if (this.diagnostics == null) { + this.diagnostics = new DiagnosticsImpl(this); + } + return this.diagnostics; + } + + /** + * @return Entry point to manage Providers. + */ + public Providers providers() { + if (this.providers == null) { + this.providers = new ProvidersImpl(this); + } + return this.providers; + } + + /** + * @return Entry point to manage Recommendations. + */ + public Recommendations recommendations() { + if (this.recommendations == null) { + this.recommendations = new RecommendationsImpl(this); + } + return this.recommendations; + } + + /** + * @return Entry point to manage WebApps. + */ + public WebApps webApps() { + if (this.webApps == null) { + this.webApps = new WebAppsImpl(this); + } + return this.webApps; + } + + /** + * @return Entry point to manage AppServiceEnvironments. + */ + public AppServiceEnvironments appServiceEnvironments() { + if (this.appServiceEnvironments == null) { + this.appServiceEnvironments = new AppServiceEnvironmentsImpl(this); + } + return this.appServiceEnvironments; + } + + /** + * @return Entry point to manage AppServicePlans. + */ + public AppServicePlans appServicePlans() { + if (this.appServicePlans == null) { + this.appServicePlans = new AppServicePlansImpl(this); + } + return this.appServicePlans; + } + + /** + * @return Entry point to manage ResourceHealthMetadatas. + */ + public ResourceHealthMetadatas resourceHealthMetadatas() { + if (this.resourceHealthMetadatas == null) { + this.resourceHealthMetadatas = new ResourceHealthMetadatasImpl(this); + } + return this.resourceHealthMetadatas; + } + + /** + * The implementation for Configurable interface. + */ + private static final class ConfigurableImpl extends AzureConfigurableCoreImpl implements Configurable { + public CertificateRegistrationManager authenticate(AzureTokenCredentials credentials, String subscriptionId) { + return CertificateRegistrationManager.authenticate(buildRestClient(credentials), subscriptionId); + } + } + private CertificateRegistrationManager(RestClient restClient, String subscriptionId) { + super( + restClient, + subscriptionId, + new WebSiteManagementClientImpl(restClient).withSubscriptionId(subscriptionId)); + } +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateRegistrationProvidersImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateRegistrationProvidersImpl.java index f02900de6fa8c..808389f33f0d7 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateRegistrationProvidersImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificateRegistrationProvidersImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.CsmOperationDescription; class CertificateRegistrationProvidersImpl extends WrapperImpl implements CertificateRegistrationProviders { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - CertificateRegistrationProvidersImpl(AppServiceManager manager) { + CertificateRegistrationProvidersImpl(CertificateRegistrationManager manager) { super(manager.inner().certificateRegistrationProviders()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificatesImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificatesImpl.java index 84256c75e8427..7a90aea6dc1ae 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificatesImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CertificatesImpl.java @@ -23,8 +23,8 @@ import com.microsoft.azure.PagedList; import com.microsoft.azure.Page; -class CertificatesImpl extends GroupableResourcesCoreImpl implements Certificates { - protected CertificatesImpl(AppServiceManager manager) { +class CertificatesImpl extends GroupableResourcesCoreImpl implements Certificates { + protected CertificatesImpl(CertificateRegistrationManager manager) { super(manager.inner().certificates(), manager); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ConnectionStringDictionaryImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ConnectionStringDictionaryImpl.java index 1a4177624c736..1073f001071c2 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ConnectionStringDictionaryImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ConnectionStringDictionaryImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ConnStringValueTypePair; class ConnectionStringDictionaryImpl extends WrapperImpl implements ConnectionStringDictionary { - private final AppServiceManager manager; - ConnectionStringDictionaryImpl(ConnectionStringDictionaryInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + ConnectionStringDictionaryImpl(ConnectionStringDictionaryInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ContinuousWebJobImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ContinuousWebJobImpl.java index 3a4a9b2be6156..37aac146c36cd 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ContinuousWebJobImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ContinuousWebJobImpl.java @@ -16,21 +16,22 @@ import com.microsoft.azure.management.appservice.v2018_02_01.WebJobType; class ContinuousWebJobImpl extends IndexableRefreshableWrapperImpl implements ContinuousWebJob { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String webJobName; - ContinuousWebJobImpl(ContinuousWebJobInner inner, AppServiceManager manager) { + ContinuousWebJobImpl(ContinuousWebJobInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.webJobName = IdParsingUtils.getValueFromIdByName(inner.id(), "continuouswebjobs"); } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmOperationDescriptionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmOperationDescriptionImpl.java index 83cea4dc2572f..088df6bc9550e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmOperationDescriptionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmOperationDescriptionImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.CsmOperationDescriptionProperties; class CsmOperationDescriptionImpl extends WrapperImpl implements CsmOperationDescription { - private final AppServiceManager manager; - CsmOperationDescriptionImpl(CsmOperationDescriptionInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + CsmOperationDescriptionImpl(CsmOperationDescriptionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmUsageQuotaInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmUsageQuotaInner.java index 296e3dfa4f072..0391e6a6ff23e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmUsageQuotaInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CsmUsageQuotaInner.java @@ -17,7 +17,7 @@ */ public class CsmUsageQuotaInner { /** - * Units of measurement for the quota resourse. + * Units of measurement for the quota resource. */ @JsonProperty(value = "unit") private String unit; @@ -47,7 +47,7 @@ public class CsmUsageQuotaInner { private LocalizableString name; /** - * Get units of measurement for the quota resourse. + * Get units of measurement for the quota resource. * * @return the unit value */ @@ -56,7 +56,7 @@ public String unit() { } /** - * Set units of measurement for the quota resourse. + * Set units of measurement for the quota resource. * * @param unit the unit value to set * @return the CsmUsageQuotaInner object itself. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultImpl.java index e8b8fef5bda43..6f73e246d3e1f 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DnsVerificationTestResult; class CustomHostnameAnalysisResultImpl extends WrapperImpl implements CustomHostnameAnalysisResult { - private final AppServiceManager manager; - CustomHostnameAnalysisResultImpl(CustomHostnameAnalysisResultInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + CustomHostnameAnalysisResultImpl(CustomHostnameAnalysisResultInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultInner.java index 562422ac933fa..840b8b11bbc07 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/CustomHostnameAnalysisResultInner.java @@ -48,7 +48,7 @@ public class CustomHostnameAnalysisResultInner extends ProxyOnlyResource { private Boolean hasConflictOnScaleUnit; /** - * <code>true</code> if htere is a conflict across + * <code>true</code> if there is a conflict across * subscriptions; otherwise, <code>false</code>. */ @JsonProperty(value = "properties.hasConflictAcrossSubscription", access = JsonProperty.Access.WRITE_ONLY) @@ -128,7 +128,7 @@ public Boolean hasConflictOnScaleUnit() { } /** - * Get <code>true</code> if htere is a conflict across subscriptions; otherwise, <code>false</code>. + * Get <code>true</code> if there is a conflict across subscriptions; otherwise, <code>false</code>. * * @return the hasConflictAcrossSubscription value */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteImpl.java index e608bff8b175f..7016d6cdfc195 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class DeletedSiteImpl extends WrapperImpl implements DeletedSite { - private final AppServiceManager manager; - DeletedSiteImpl(DeletedSiteInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + DeletedSiteImpl(DeletedSiteInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -28,6 +28,11 @@ public Integer deletedSiteId() { return this.inner().deletedSiteId(); } + @Override + public String deletedSiteKind() { + return this.inner().deletedSiteKind(); + } + @Override public String deletedSiteName() { return this.inner().deletedSiteName(); @@ -38,6 +43,26 @@ public String deletedTimestamp() { return this.inner().deletedTimestamp(); } + @Override + public String geoRegionName() { + return this.inner().geoRegionName(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String kind() { + return this.inner().kind(); + } + + @Override + public String name() { + return this.inner().name(); + } + @Override public String resourceGroup() { return this.inner().resourceGroup(); @@ -53,4 +78,9 @@ public String subscription() { return this.inner().subscription(); } + @Override + public String type() { + return this.inner().type(); + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteInner.java index 8a6bda15e34df..695581508113a 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteInner.java @@ -9,47 +9,62 @@ package com.microsoft.azure.management.appservice.v2018_02_01.implementation; import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource; /** * A deleted app. */ -public class DeletedSiteInner { +@JsonFlatten +public class DeletedSiteInner extends ProxyOnlyResource { /** * Numeric id for the deleted site. */ - @JsonProperty(value = "deletedSiteId") + @JsonProperty(value = "properties.deletedSiteId", access = JsonProperty.Access.WRITE_ONLY) private Integer deletedSiteId; /** * Time in UTC when the app was deleted. */ - @JsonProperty(value = "deletedTimestamp", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.deletedTimestamp", access = JsonProperty.Access.WRITE_ONLY) private String deletedTimestamp; /** * Subscription containing the deleted site. */ - @JsonProperty(value = "subscription", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.subscription", access = JsonProperty.Access.WRITE_ONLY) private String subscription; /** * ResourceGroup that contained the deleted site. */ - @JsonProperty(value = "resourceGroup", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.resourceGroup", access = JsonProperty.Access.WRITE_ONLY) private String resourceGroup; /** * Name of the deleted site. */ - @JsonProperty(value = "deletedSiteName", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.deletedSiteName", access = JsonProperty.Access.WRITE_ONLY) private String deletedSiteName; /** * Slot of the deleted site. */ - @JsonProperty(value = "slot", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.slot", access = JsonProperty.Access.WRITE_ONLY) private String slot; + /** + * Kind of site that was deleted. + */ + @JsonProperty(value = "properties.kind", access = JsonProperty.Access.WRITE_ONLY) + private String deletedSiteKind; + + /** + * Geo Region of the deleted site. + */ + @JsonProperty(value = "properties.geoRegionName", access = JsonProperty.Access.WRITE_ONLY) + private String geoRegionName; + /** * Get numeric id for the deleted site. * @@ -59,17 +74,6 @@ public Integer deletedSiteId() { return this.deletedSiteId; } - /** - * Set numeric id for the deleted site. - * - * @param deletedSiteId the deletedSiteId value to set - * @return the DeletedSiteInner object itself. - */ - public DeletedSiteInner withDeletedSiteId(Integer deletedSiteId) { - this.deletedSiteId = deletedSiteId; - return this; - } - /** * Get time in UTC when the app was deleted. * @@ -115,4 +119,22 @@ public String slot() { return this.slot; } + /** + * Get kind of site that was deleted. + * + * @return the deletedSiteKind value + */ + public String deletedSiteKind() { + return this.deletedSiteKind; + } + + /** + * Get geo Region of the deleted site. + * + * @return the geoRegionName value + */ + public String geoRegionName() { + return this.geoRegionName; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedWebAppsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedWebAppsImpl.java index 447a61e5b9216..18515771c1d94 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedWebAppsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedWebAppsImpl.java @@ -17,14 +17,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DeletedSite; class DeletedWebAppsImpl extends WrapperImpl implements DeletedWebApps { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - DeletedWebAppsImpl(AppServiceManager manager) { + DeletedWebAppsImpl(CertificateRegistrationManager manager) { super(manager.inner().deletedWebApps()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeploymentImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeploymentImpl.java index 303462f7c2d77..0ee5d225bfbeb 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeploymentImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeploymentImpl.java @@ -14,12 +14,12 @@ import org.joda.time.DateTime; class DeploymentImpl extends CreatableUpdatableImpl implements Deployment, Deployment.Definition, Deployment.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String id; - DeploymentImpl(String name, AppServiceManager manager) { + DeploymentImpl(String name, CertificateRegistrationManager manager) { super(name, new DeploymentInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class DeploymentImpl extends CreatableUpdatableImpl implements DetectorDefinition { - private final AppServiceManager manager; - - DetectorDefinitionImpl(DetectorDefinitionInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + DetectorDefinitionImpl(DetectorDefinitionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } - - @Override public String description() { return this.inner().description(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseImpl.java new file mode 100644 index 0000000000000..52abd9762e53c --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseImpl.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.management.appservice.v2018_02_01.DetectorResponse; +import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.management.appservice.v2018_02_01.DiagnosticData; +import com.microsoft.azure.management.appservice.v2018_02_01.DetectorInfo; + +class DetectorResponseImpl extends IndexableRefreshableWrapperImpl implements DetectorResponse { + private final CertificateRegistrationManager manager; + private String resourceGroupName; + private String name; + private String detectorName; + + DetectorResponseImpl(DetectorResponseInner inner, CertificateRegistrationManager manager) { + super(null, inner); + this.manager = manager; + // set resource ancestor and positional variables + this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); + this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "hostingEnvironments"); + this.detectorName = IdParsingUtils.getValueFromIdByName(inner.id(), "detectors"); + } + + @Override + public CertificateRegistrationManager manager() { + return this.manager; + } + + @Override + protected Observable getInnerAsync() { + DiagnosticsInner client = this.manager().inner().diagnostics(); + return client.getHostingEnvironmentDetectorResponseAsync(this.resourceGroupName, this.name, this.detectorName); + } + + + + @Override + public List dataset() { + return this.inner().dataset(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String kind() { + return this.inner().kind(); + } + + @Override + public DetectorInfo metadata() { + return this.inner().metadata(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseInner.java new file mode 100644 index 0000000000000..1cf23fd1c0309 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseInner.java @@ -0,0 +1,75 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.management.appservice.v2018_02_01.DetectorInfo; +import java.util.List; +import com.microsoft.azure.management.appservice.v2018_02_01.DiagnosticData; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource; + +/** + * Class representing Response from Detector. + */ +@JsonFlatten +public class DetectorResponseInner extends ProxyOnlyResource { + /** + * metadata for the detector. + */ + @JsonProperty(value = "properties.metadata") + private DetectorInfo metadata; + + /** + * Data Set. + */ + @JsonProperty(value = "properties.dataset") + private List dataset; + + /** + * Get metadata for the detector. + * + * @return the metadata value + */ + public DetectorInfo metadata() { + return this.metadata; + } + + /** + * Set metadata for the detector. + * + * @param metadata the metadata value to set + * @return the DetectorResponseInner object itself. + */ + public DetectorResponseInner withMetadata(DetectorInfo metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get data Set. + * + * @return the dataset value + */ + public List dataset() { + return this.dataset; + } + + /** + * Set data Set. + * + * @param dataset the dataset value to set + * @return the DetectorResponseInner object itself. + */ + public DetectorResponseInner withDataset(List dataset) { + this.dataset = dataset; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticAnalysisImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticAnalysisImpl.java index e0a7f5abc3a14..7f56ab7d1ad79 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticAnalysisImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticAnalysisImpl.java @@ -19,15 +19,16 @@ import com.microsoft.azure.management.appservice.v2018_02_01.AnalysisData; class DiagnosticAnalysisImpl extends IndexableRefreshableWrapperImpl implements DiagnosticAnalysis { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String siteName; private String diagnosticCategory; private String analysisName; - DiagnosticAnalysisImpl(DiagnosticAnalysisInner inner, AppServiceManager manager) { + DiagnosticAnalysisImpl(DiagnosticAnalysisInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.siteName = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.diagnosticCategory = IdParsingUtils.getValueFromIdByName(inner.id(), "diagnostics"); @@ -35,7 +36,7 @@ class DiagnosticAnalysisImpl extends IndexableRefreshableWrapperImpl implements DiagnosticCategory { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String siteName; private String diagnosticCategory; - DiagnosticCategoryImpl(DiagnosticCategoryInner inner, AppServiceManager manager) { + DiagnosticCategoryImpl(DiagnosticCategoryInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.siteName = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.diagnosticCategory = IdParsingUtils.getValueFromIdByName(inner.id(), "diagnostics"); } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseImpl.java index d748ef3051fb2..16ba342a61956 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseImpl.java @@ -18,14 +18,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ResponseMetaData; class DiagnosticDetectorResponseImpl extends WrapperImpl implements DiagnosticDetectorResponse { - private final AppServiceManager manager; - DiagnosticDetectorResponseImpl(DiagnosticDetectorResponseInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + DiagnosticDetectorResponseImpl(DiagnosticDetectorResponseInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseInner.java index adf77e6763f9f..793551a71b3ca 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticDetectorResponseInner.java @@ -19,7 +19,7 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource; /** - * Class representing Reponse from Diagnostic Detectors. + * Class representing Response from Diagnostic Detectors. */ @JsonFlatten public class DiagnosticDetectorResponseInner extends ProxyOnlyResource { diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsImpl.java index 5f362726ec53e..7cd1a29b89e26 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsImpl.java @@ -15,20 +15,21 @@ import rx.functions.Func1; import com.microsoft.azure.Page; import com.microsoft.azure.management.appservice.v2018_02_01.DiagnosticCategory; -import com.microsoft.azure.management.appservice.v2018_02_01.DiagnosticAnalysis; -import com.microsoft.azure.management.appservice.v2018_02_01.AnalysisDefinition; +import com.microsoft.azure.management.appservice.v2018_02_01.DetectorResponse; import com.microsoft.azure.management.appservice.v2018_02_01.DetectorDefinition; import com.microsoft.azure.management.appservice.v2018_02_01.DiagnosticDetectorResponse; +import com.microsoft.azure.management.appservice.v2018_02_01.DiagnosticAnalysis; +import com.microsoft.azure.management.appservice.v2018_02_01.AnalysisDefinition; class DiagnosticsImpl extends WrapperImpl implements Diagnostics { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - DiagnosticsImpl(AppServiceManager manager) { + DiagnosticsImpl(CertificateRegistrationManager manager) { super(manager.inner().diagnostics()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -96,12 +97,20 @@ public DiagnosticCategory call(DiagnosticCategoryInner inner) { }); } + private DetectorResponseImpl wrapDetectorResponseModel(DetectorResponseInner inner) { + return new DetectorResponseImpl(inner, manager()); + } + private DiagnosticAnalysisImpl wrapDiagnosticAnalysisModel(DiagnosticAnalysisInner inner) { return new DiagnosticAnalysisImpl(inner, manager()); } - private DetectorDefinitionImpl wrapDetectorDefinitionModel(DetectorDefinitionInner inner) { - return new DetectorDefinitionImpl(inner, manager()); + private Observable getDetectorResponseInnerUsingDiagnosticsInnerAsync(String id) { + String resourceGroupName = IdParsingUtils.getValueFromIdByName(id, "resourceGroups"); + String name = IdParsingUtils.getValueFromIdByName(id, "hostingEnvironments"); + String detectorName = IdParsingUtils.getValueFromIdByName(id, "detectors"); + DiagnosticsInner client = this.inner(); + return client.getHostingEnvironmentDetectorResponseAsync(resourceGroupName, name, detectorName); } private Observable getDiagnosticAnalysisInnerUsingDiagnosticsInnerAsync(String id) { @@ -114,91 +123,61 @@ private Observable getDiagnosticAnalysisInnerUsingDiagn } @Override - public Observable getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + public Observable getHostingEnvironmentDetectorResponseAsync(String resourceGroupName, String name, String detectorName) { DiagnosticsInner client = this.inner(); - return client.getSiteAnalysisAsync(resourceGroupName, siteName, diagnosticCategory, analysisName) - .map(new Func1() { + return client.getHostingEnvironmentDetectorResponseAsync(resourceGroupName, name, detectorName) + .map(new Func1() { @Override - public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { - return wrapDiagnosticAnalysisModel(inner); + public DetectorResponse call(DetectorResponseInner inner) { + return wrapDetectorResponseModel(inner); } }); } @Override - public Observable listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + public Observable listHostingEnvironmentDetectorResponsesAsync(final String resourceGroupName, final String name) { DiagnosticsInner client = this.inner(); - return client.listSiteAnalysesAsync(resourceGroupName, siteName, diagnosticCategory) - .flatMapIterable(new Func1, Iterable>() { + return client.listHostingEnvironmentDetectorResponsesAsync(resourceGroupName, name) + .flatMapIterable(new Func1, Iterable>() { @Override - public Iterable call(Page page) { + public Iterable call(Page page) { return page.items(); } }) - .flatMap(new Func1>() { + .map(new Func1() { @Override - public Observable call(AnalysisDefinitionInner inner) { - return getDiagnosticAnalysisInnerUsingDiagnosticsInnerAsync(inner.id()); - } - }) - .map(new Func1() { - @Override - public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { - return wrapDiagnosticAnalysisModel(inner); + public DetectorResponse call(DetectorResponseInner inner) { + return wrapDetectorResponseModel(inner); } }); } @Override - public Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + public Observable listSiteDetectorResponsesAsync(final String resourceGroupName, final String siteName) { DiagnosticsInner client = this.inner(); - return client.executeSiteAnalysisAsync(resourceGroupName, siteName, diagnosticCategory, analysisName) - .map(new Func1() { + return client.listSiteDetectorResponsesAsync(resourceGroupName, siteName) + .flatMapIterable(new Func1, Iterable>() { @Override - public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { - return new DiagnosticAnalysisImpl(inner, manager()); - } - }); - } - - @Override - public Observable listSiteAnalysesSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot) { - DiagnosticsInner client = this.inner(); - return client.listSiteAnalysesSlotAsync(resourceGroupName, siteName, diagnosticCategory, slot) - .flatMapIterable(new Func1, Iterable>() { - @Override - public Iterable call(Page page) { + public Iterable call(Page page) { return page.items(); } }) - .map(new Func1() { + .map(new Func1() { @Override - public AnalysisDefinition call(AnalysisDefinitionInner inner) { - return new AnalysisDefinitionImpl(inner, manager()); - } - }); - } - - @Override - public Observable getSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot) { - DiagnosticsInner client = this.inner(); - return client.getSiteAnalysisSlotAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, slot) - .map(new Func1() { - @Override - public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { - return new DiagnosticAnalysisImpl(inner, manager()); + public DetectorResponse call(DetectorResponseInner inner) { + return new DetectorResponseImpl(inner, manager()); } }); } @Override - public Observable executeSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot) { + public Observable getSiteDetectorResponseAsync(String resourceGroupName, String siteName, String detectorName) { DiagnosticsInner client = this.inner(); - return client.executeSiteAnalysisSlotAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, slot) - .map(new Func1() { + return client.getSiteDetectorResponseAsync(resourceGroupName, siteName, detectorName) + .map(new Func1() { @Override - public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { - return new DiagnosticAnalysisImpl(inner, manager()); + public DetectorResponse call(DetectorResponseInner inner) { + return new DetectorResponseImpl(inner, manager()); } }); } @@ -216,7 +195,7 @@ public Iterable call(Page page .map(new Func1() { @Override public DetectorDefinition call(DetectorDefinitionInner inner) { - return wrapDetectorDefinitionModel(inner); + return new DetectorDefinitionImpl(inner, manager()); } }); } @@ -251,6 +230,36 @@ public DiagnosticDetectorResponse call(DiagnosticDetectorResponseInner inner) { }); } + @Override + public Observable listSiteDetectorResponsesSlotAsync(final String resourceGroupName, final String siteName, final String slot) { + DiagnosticsInner client = this.inner(); + return client.listSiteDetectorResponsesSlotAsync(resourceGroupName, siteName, slot) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public DetectorResponse call(DetectorResponseInner inner) { + return new DetectorResponseImpl(inner, manager()); + } + }); + } + + @Override + public Observable getSiteDetectorResponseSlotAsync(String resourceGroupName, String siteName, String detectorName, String slot) { + DiagnosticsInner client = this.inner(); + return client.getSiteDetectorResponseSlotAsync(resourceGroupName, siteName, detectorName, slot) + .map(new Func1() { + @Override + public DetectorResponse call(DetectorResponseInner inner) { + return new DetectorResponseImpl(inner, manager()); + } + }); + } + @Override public Observable listSiteDetectorsSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot) { DiagnosticsInner client = this.inner(); @@ -299,4 +308,94 @@ public DiagnosticDetectorResponse call(DiagnosticDetectorResponseInner inner) { }); } + @Override + public Observable getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + DiagnosticsInner client = this.inner(); + return client.getSiteAnalysisAsync(resourceGroupName, siteName, diagnosticCategory, analysisName) + .map(new Func1() { + @Override + public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { + return wrapDiagnosticAnalysisModel(inner); + } + }); + } + + @Override + public Observable listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + DiagnosticsInner client = this.inner(); + return client.listSiteAnalysesAsync(resourceGroupName, siteName, diagnosticCategory) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .flatMap(new Func1>() { + @Override + public Observable call(AnalysisDefinitionInner inner) { + return getDiagnosticAnalysisInnerUsingDiagnosticsInnerAsync(inner.id()); + } + }) + .map(new Func1() { + @Override + public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { + return wrapDiagnosticAnalysisModel(inner); + } + }); + } + + @Override + public Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + DiagnosticsInner client = this.inner(); + return client.executeSiteAnalysisAsync(resourceGroupName, siteName, diagnosticCategory, analysisName) + .map(new Func1() { + @Override + public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { + return new DiagnosticAnalysisImpl(inner, manager()); + } + }); + } + + @Override + public Observable listSiteAnalysesSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String slot) { + DiagnosticsInner client = this.inner(); + return client.listSiteAnalysesSlotAsync(resourceGroupName, siteName, diagnosticCategory, slot) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public AnalysisDefinition call(AnalysisDefinitionInner inner) { + return new AnalysisDefinitionImpl(inner, manager()); + } + }); + } + + @Override + public Observable getSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot) { + DiagnosticsInner client = this.inner(); + return client.getSiteAnalysisSlotAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, slot) + .map(new Func1() { + @Override + public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { + return new DiagnosticAnalysisImpl(inner, manager()); + } + }); + } + + @Override + public Observable executeSiteAnalysisSlotAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, String slot) { + DiagnosticsInner client = this.inner(); + return client.executeSiteAnalysisSlotAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, slot) + .map(new Func1() { + @Override + public DiagnosticAnalysis call(DiagnosticAnalysisInner inner) { + return new DiagnosticAnalysisImpl(inner, manager()); + } + }); + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsInner.java index 2a724b3655d07..04c9bd6602814 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsInner.java @@ -59,6 +59,22 @@ public DiagnosticsInner(Retrofit retrofit, WebSiteManagementClientImpl client) { * used by Retrofit to perform actually REST calls. */ interface DiagnosticsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listHostingEnvironmentDetectorResponses" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors") + Observable> listHostingEnvironmentDetectorResponses(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics getHostingEnvironmentDetectorResponse" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}") + Observable> getHostingEnvironmentDetectorResponse(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("detectorName") String detectorName, @Path("subscriptionId") String subscriptionId, @Query("startTime") DateTime startTime, @Query("endTime") DateTime endTime, @Query("timeGrain") String timeGrain, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDetectorResponses" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors") + Observable> listSiteDetectorResponses(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics getSiteDetectorResponse" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}") + Observable> getSiteDetectorResponse(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("detectorName") String detectorName, @Path("subscriptionId") String subscriptionId, @Query("startTime") DateTime startTime, @Query("endTime") DateTime endTime, @Query("timeGrain") String timeGrain, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDiagnosticCategories" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics") Observable> listSiteDiagnosticCategories(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -91,6 +107,14 @@ interface DiagnosticsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute") Observable> executeSiteDetector(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("detectorName") String detectorName, @Path("diagnosticCategory") String diagnosticCategory, @Path("subscriptionId") String subscriptionId, @Query("startTime") DateTime startTime, @Query("endTime") DateTime endTime, @Query("timeGrain") String timeGrain, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDetectorResponsesSlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors") + Observable> listSiteDetectorResponsesSlot(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics getSiteDetectorResponseSlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}") + Observable> getSiteDetectorResponseSlot(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("detectorName") String detectorName, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("startTime") DateTime startTime, @Query("endTime") DateTime endTime, @Query("timeGrain") String timeGrain, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDiagnosticCategoriesSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics") Observable> listSiteDiagnosticCategoriesSlot(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -123,6 +147,14 @@ interface DiagnosticsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}/execute") Observable> executeSiteDetectorSlot(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("detectorName") String detectorName, @Path("diagnosticCategory") String diagnosticCategory, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("startTime") DateTime startTime, @Query("endTime") DateTime endTime, @Query("timeGrain") String timeGrain, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listHostingEnvironmentDetectorResponsesNext" }) + @GET + Observable> listHostingEnvironmentDetectorResponsesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDetectorResponsesNext" }) + @GET + Observable> listSiteDetectorResponsesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDiagnosticCategoriesNext" }) @GET Observable> listSiteDiagnosticCategoriesNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -139,6 +171,10 @@ interface DiagnosticsService { @GET Observable> getSiteDetectorNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDetectorResponsesSlotNext" }) + @GET + Observable> listSiteDetectorResponsesSlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Diagnostics listSiteDiagnosticCategoriesSlotNext" }) @GET Observable> listSiteDiagnosticCategoriesSlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -158,105 +194,105 @@ interface DiagnosticsService { } /** - * Get Diagnostics Categories. - * Get Diagnostics Categories. + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name + * @param name Site Name * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<DiagnosticCategoryInner> object if successful. + * @return the PagedList<DetectorResponseInner> object if successful. */ - public PagedList listSiteDiagnosticCategories(final String resourceGroupName, final String siteName) { - ServiceResponse> response = listSiteDiagnosticCategoriesSinglePageAsync(resourceGroupName, siteName).toBlocking().single(); - return new PagedList(response.body()) { + public PagedList listHostingEnvironmentDetectorResponses(final String resourceGroupName, final String name) { + ServiceResponse> response = listHostingEnvironmentDetectorResponsesSinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { @Override - public Page nextPage(String nextPageLink) { - return listSiteDiagnosticCategoriesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + public Page nextPage(String nextPageLink) { + return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * Get Diagnostics Categories. - * Get Diagnostics Categories. + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name + * @param name Site Name * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listSiteDiagnosticCategoriesAsync(final String resourceGroupName, final String siteName, final ListOperationCallback serviceCallback) { + public ServiceFuture> listHostingEnvironmentDetectorResponsesAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listSiteDiagnosticCategoriesSinglePageAsync(resourceGroupName, siteName), - new Func1>>>() { + listHostingEnvironmentDetectorResponsesSinglePageAsync(resourceGroupName, name), + new Func1>>>() { @Override - public Observable>> call(String nextPageLink) { - return listSiteDiagnosticCategoriesNextSinglePageAsync(nextPageLink); + public Observable>> call(String nextPageLink) { + return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * Get Diagnostics Categories. - * Get Diagnostics Categories. + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name + * @param name Site Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DiagnosticCategoryInner> object + * @return the observable to the PagedList<DetectorResponseInner> object */ - public Observable> listSiteDiagnosticCategoriesAsync(final String resourceGroupName, final String siteName) { - return listSiteDiagnosticCategoriesWithServiceResponseAsync(resourceGroupName, siteName) - .map(new Func1>, Page>() { + public Observable> listHostingEnvironmentDetectorResponsesAsync(final String resourceGroupName, final String name) { + return listHostingEnvironmentDetectorResponsesWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { @Override - public Page call(ServiceResponse> response) { + public Page call(ServiceResponse> response) { return response.body(); } }); } /** - * Get Diagnostics Categories. - * Get Diagnostics Categories. + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name + * @param name Site Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DiagnosticCategoryInner> object + * @return the observable to the PagedList<DetectorResponseInner> object */ - public Observable>> listSiteDiagnosticCategoriesWithServiceResponseAsync(final String resourceGroupName, final String siteName) { - return listSiteDiagnosticCategoriesSinglePageAsync(resourceGroupName, siteName) - .concatMap(new Func1>, Observable>>>() { + public Observable>> listHostingEnvironmentDetectorResponsesWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listHostingEnvironmentDetectorResponsesSinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { @Override - public Observable>> call(ServiceResponse> page) { + public Observable>> call(ServiceResponse> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listSiteDiagnosticCategoriesNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listHostingEnvironmentDetectorResponsesNextWithServiceResponseAsync(nextPageLink)); } }); } /** - * Get Diagnostics Categories. - * Get Diagnostics Categories. + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param siteName Site Name + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<DiagnosticCategoryInner> object wrapped in {@link ServiceResponse} if successful. + * @return the PagedList<DetectorResponseInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listSiteDiagnosticCategoriesSinglePageAsync(final String resourceGroupName, final String siteName) { + public Observable>> listHostingEnvironmentDetectorResponsesSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -264,13 +300,13 @@ public Observable>> listSiteDiagno if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSiteDiagnosticCategories(resourceGroupName, siteName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listHostingEnvironmentDetectorResponses(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listSiteDiagnosticCategoriesDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> result = listHostingEnvironmentDetectorResponsesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -278,82 +314,82 @@ public Observable>> call(Response< }); } - private ServiceResponse> listSiteDiagnosticCategoriesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listHostingEnvironmentDetectorResponsesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get Diagnostics Category. - * Get Diagnostics Category. + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category + * @param name App Service Environment Name + * @param detectorName Detector Resource Name * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DiagnosticCategoryInner object if successful. + * @return the DetectorResponseInner object if successful. */ - public DiagnosticCategoryInner getSiteDiagnosticCategory(String resourceGroupName, String siteName, String diagnosticCategory) { - return getSiteDiagnosticCategoryWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory).toBlocking().single().body(); + public DetectorResponseInner getHostingEnvironmentDetectorResponse(String resourceGroupName, String name, String detectorName) { + return getHostingEnvironmentDetectorResponseWithServiceResponseAsync(resourceGroupName, name, detectorName).toBlocking().single().body(); } /** - * Get Diagnostics Category. - * Get Diagnostics Category. + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category + * @param name App Service Environment Name + * @param detectorName Detector Resource Name * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getSiteDiagnosticCategoryAsync(String resourceGroupName, String siteName, String diagnosticCategory, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getSiteDiagnosticCategoryWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory), serviceCallback); + public ServiceFuture getHostingEnvironmentDetectorResponseAsync(String resourceGroupName, String name, String detectorName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getHostingEnvironmentDetectorResponseWithServiceResponseAsync(resourceGroupName, name, detectorName), serviceCallback); } /** - * Get Diagnostics Category. - * Get Diagnostics Category. + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category + * @param name App Service Environment Name + * @param detectorName Detector Resource Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticCategoryInner object + * @return the observable to the DetectorResponseInner object */ - public Observable getSiteDiagnosticCategoryAsync(String resourceGroupName, String siteName, String diagnosticCategory) { - return getSiteDiagnosticCategoryWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory).map(new Func1, DiagnosticCategoryInner>() { + public Observable getHostingEnvironmentDetectorResponseAsync(String resourceGroupName, String name, String detectorName) { + return getHostingEnvironmentDetectorResponseWithServiceResponseAsync(resourceGroupName, name, detectorName).map(new Func1, DetectorResponseInner>() { @Override - public DiagnosticCategoryInner call(ServiceResponse response) { + public DetectorResponseInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get Diagnostics Category. - * Get Diagnostics Category. + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category + * @param name App Service Environment Name + * @param detectorName Detector Resource Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticCategoryInner object + * @return the observable to the DetectorResponseInner object */ - public Observable> getSiteDiagnosticCategoryWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory) { + public Observable> getHostingEnvironmentDetectorResponseWithServiceResponseAsync(String resourceGroupName, String name, String detectorName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (diagnosticCategory == null) { - throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + if (detectorName == null) { + throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -361,12 +397,15 @@ public Observable> getSiteDiagnosticCat if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSiteDiagnosticCategory(resourceGroupName, siteName, diagnosticCategory, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + final DateTime startTime = null; + final DateTime endTime = null; + final String timeGrain = null; + return service.getHostingEnvironmentDetectorResponse(resourceGroupName, name, detectorName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getSiteDiagnosticCategoryDelegate(response); + ServiceResponse clientResponse = getHostingEnvironmentDetectorResponseDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -375,135 +414,229 @@ public Observable> call(Response getSiteDiagnosticCategoryDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + /** + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name App Service Environment Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DetectorResponseInner object if successful. + */ + public DetectorResponseInner getHostingEnvironmentDetectorResponse(String resourceGroupName, String name, String detectorName, DateTime startTime, DateTime endTime, String timeGrain) { + return getHostingEnvironmentDetectorResponseWithServiceResponseAsync(resourceGroupName, name, detectorName, startTime, endTime, timeGrain).toBlocking().single().body(); + } + + /** + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name App Service Environment Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getHostingEnvironmentDetectorResponseAsync(String resourceGroupName, String name, String detectorName, DateTime startTime, DateTime endTime, String timeGrain, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getHostingEnvironmentDetectorResponseWithServiceResponseAsync(resourceGroupName, name, detectorName, startTime, endTime, timeGrain), serviceCallback); + } + + /** + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name App Service Environment Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DetectorResponseInner object + */ + public Observable getHostingEnvironmentDetectorResponseAsync(String resourceGroupName, String name, String detectorName, DateTime startTime, DateTime endTime, String timeGrain) { + return getHostingEnvironmentDetectorResponseWithServiceResponseAsync(resourceGroupName, name, detectorName, startTime, endTime, timeGrain).map(new Func1, DetectorResponseInner>() { + @Override + public DetectorResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get Hosting Environment Detector Response. + * Get Hosting Environment Detector Response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name App Service Environment Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DetectorResponseInner object + */ + public Observable> getHostingEnvironmentDetectorResponseWithServiceResponseAsync(String resourceGroupName, String name, String detectorName, DateTime startTime, DateTime endTime, String timeGrain) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (detectorName == null) { + throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getHostingEnvironmentDetectorResponse(resourceGroupName, name, detectorName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getHostingEnvironmentDetectorResponseDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getHostingEnvironmentDetectorResponseDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get Site Analyses. - * Get Site Analyses. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<AnalysisDefinitionInner> object if successful. + * @return the PagedList<DetectorResponseInner> object if successful. */ - public PagedList listSiteAnalyses(final String resourceGroupName, final String siteName, final String diagnosticCategory) { - ServiceResponse> response = listSiteAnalysesSinglePageAsync(resourceGroupName, siteName, diagnosticCategory).toBlocking().single(); - return new PagedList(response.body()) { + public PagedList listSiteDetectorResponses(final String resourceGroupName, final String siteName) { + ServiceResponse> response = listSiteDetectorResponsesSinglePageAsync(resourceGroupName, siteName).toBlocking().single(); + return new PagedList(response.body()) { @Override - public Page nextPage(String nextPageLink) { - return listSiteAnalysesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + public Page nextPage(String nextPageLink) { + return listSiteDetectorResponsesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * Get Site Analyses. - * Get Site Analyses. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final ListOperationCallback serviceCallback) { + public ServiceFuture> listSiteDetectorResponsesAsync(final String resourceGroupName, final String siteName, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listSiteAnalysesSinglePageAsync(resourceGroupName, siteName, diagnosticCategory), - new Func1>>>() { + listSiteDetectorResponsesSinglePageAsync(resourceGroupName, siteName), + new Func1>>>() { @Override - public Observable>> call(String nextPageLink) { - return listSiteAnalysesNextSinglePageAsync(nextPageLink); + public Observable>> call(String nextPageLink) { + return listSiteDetectorResponsesNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * Get Site Analyses. - * Get Site Analyses. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<AnalysisDefinitionInner> object + * @return the observable to the PagedList<DetectorResponseInner> object */ - public Observable> listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { - return listSiteAnalysesWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory) - .map(new Func1>, Page>() { + public Observable> listSiteDetectorResponsesAsync(final String resourceGroupName, final String siteName) { + return listSiteDetectorResponsesWithServiceResponseAsync(resourceGroupName, siteName) + .map(new Func1>, Page>() { @Override - public Page call(ServiceResponse> response) { + public Page call(ServiceResponse> response) { return response.body(); } }); } /** - * Get Site Analyses. - * Get Site Analyses. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<AnalysisDefinitionInner> object + * @return the observable to the PagedList<DetectorResponseInner> object */ - public Observable>> listSiteAnalysesWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { - return listSiteAnalysesSinglePageAsync(resourceGroupName, siteName, diagnosticCategory) - .concatMap(new Func1>, Observable>>>() { + public Observable>> listSiteDetectorResponsesWithServiceResponseAsync(final String resourceGroupName, final String siteName) { + return listSiteDetectorResponsesSinglePageAsync(resourceGroupName, siteName) + .concatMap(new Func1>, Observable>>>() { @Override - public Observable>> call(ServiceResponse> page) { + public Observable>> call(ServiceResponse> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listSiteAnalysesNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listSiteDetectorResponsesNextWithServiceResponseAsync(nextPageLink)); } }); } /** - * Get Site Analyses. - * Get Site Analyses. + * List Site Detector Responses. + * List Site Detector Responses. * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param siteName Site Name - ServiceResponse> * @param diagnosticCategory Diagnostic Category + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Site Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<AnalysisDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the PagedList<DetectorResponseInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listSiteAnalysesSinglePageAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + public Observable>> listSiteDetectorResponsesSinglePageAsync(final String resourceGroupName, final String siteName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (siteName == null) { throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); } - if (diagnosticCategory == null) { - throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSiteAnalyses(resourceGroupName, siteName, diagnosticCategory, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listSiteDetectorResponses(resourceGroupName, siteName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listSiteAnalysesDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> result = listSiteDetectorResponsesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -511,58 +644,621 @@ public Observable>> call(Response< }); } - private ServiceResponse> listSiteAnalysesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSiteDetectorResponsesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get Site Analysis. - * Get Site Analysis. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param analysisName Analysis Name + * @param detectorName Detector Resource Name * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DiagnosticAnalysisInner object if successful. + * @return the DetectorResponseInner object if successful. */ - public DiagnosticAnalysisInner getSiteAnalysis(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { - return getSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName).toBlocking().single().body(); + public DetectorResponseInner getSiteDetectorResponse(String resourceGroupName, String siteName, String detectorName) { + return getSiteDetectorResponseWithServiceResponseAsync(resourceGroupName, siteName, detectorName).toBlocking().single().body(); } /** - * Get Site Analysis. - * Get Site Analysis. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param analysisName Analysis Name + * @param detectorName Detector Resource Name * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName), serviceCallback); + public ServiceFuture getSiteDetectorResponseAsync(String resourceGroupName, String siteName, String detectorName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSiteDetectorResponseWithServiceResponseAsync(resourceGroupName, siteName, detectorName), serviceCallback); } /** - * Get Site Analysis. - * Get Site Analysis. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param analysisName Analysis Name + * @param detectorName Detector Resource Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticAnalysisInner object + * @return the observable to the DetectorResponseInner object */ - public Observable getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + public Observable getSiteDetectorResponseAsync(String resourceGroupName, String siteName, String detectorName) { + return getSiteDetectorResponseWithServiceResponseAsync(resourceGroupName, siteName, detectorName).map(new Func1, DetectorResponseInner>() { + @Override + public DetectorResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get site detector response. + * Get site detector response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DetectorResponseInner object + */ + public Observable> getSiteDetectorResponseWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (detectorName == null) { + throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final DateTime startTime = null; + final DateTime endTime = null; + final String timeGrain = null; + return service.getSiteDetectorResponse(resourceGroupName, siteName, detectorName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getSiteDetectorResponseDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Get site detector response. + * Get site detector response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DetectorResponseInner object if successful. + */ + public DetectorResponseInner getSiteDetectorResponse(String resourceGroupName, String siteName, String detectorName, DateTime startTime, DateTime endTime, String timeGrain) { + return getSiteDetectorResponseWithServiceResponseAsync(resourceGroupName, siteName, detectorName, startTime, endTime, timeGrain).toBlocking().single().body(); + } + + /** + * Get site detector response. + * Get site detector response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getSiteDetectorResponseAsync(String resourceGroupName, String siteName, String detectorName, DateTime startTime, DateTime endTime, String timeGrain, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSiteDetectorResponseWithServiceResponseAsync(resourceGroupName, siteName, detectorName, startTime, endTime, timeGrain), serviceCallback); + } + + /** + * Get site detector response. + * Get site detector response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DetectorResponseInner object + */ + public Observable getSiteDetectorResponseAsync(String resourceGroupName, String siteName, String detectorName, DateTime startTime, DateTime endTime, String timeGrain) { + return getSiteDetectorResponseWithServiceResponseAsync(resourceGroupName, siteName, detectorName, startTime, endTime, timeGrain).map(new Func1, DetectorResponseInner>() { + @Override + public DetectorResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get site detector response. + * Get site detector response. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param detectorName Detector Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DetectorResponseInner object + */ + public Observable> getSiteDetectorResponseWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, DateTime startTime, DateTime endTime, String timeGrain) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (detectorName == null) { + throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getSiteDetectorResponse(resourceGroupName, siteName, detectorName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getSiteDetectorResponseDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getSiteDetectorResponseDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get Diagnostics Categories. + * Get Diagnostics Categories. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DiagnosticCategoryInner> object if successful. + */ + public PagedList listSiteDiagnosticCategories(final String resourceGroupName, final String siteName) { + ServiceResponse> response = listSiteDiagnosticCategoriesSinglePageAsync(resourceGroupName, siteName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSiteDiagnosticCategoriesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get Diagnostics Categories. + * Get Diagnostics Categories. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSiteDiagnosticCategoriesAsync(final String resourceGroupName, final String siteName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSiteDiagnosticCategoriesSinglePageAsync(resourceGroupName, siteName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSiteDiagnosticCategoriesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get Diagnostics Categories. + * Get Diagnostics Categories. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DiagnosticCategoryInner> object + */ + public Observable> listSiteDiagnosticCategoriesAsync(final String resourceGroupName, final String siteName) { + return listSiteDiagnosticCategoriesWithServiceResponseAsync(resourceGroupName, siteName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get Diagnostics Categories. + * Get Diagnostics Categories. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DiagnosticCategoryInner> object + */ + public Observable>> listSiteDiagnosticCategoriesWithServiceResponseAsync(final String resourceGroupName, final String siteName) { + return listSiteDiagnosticCategoriesSinglePageAsync(resourceGroupName, siteName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSiteDiagnosticCategoriesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get Diagnostics Categories. + * Get Diagnostics Categories. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Site Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DiagnosticCategoryInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSiteDiagnosticCategoriesSinglePageAsync(final String resourceGroupName, final String siteName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listSiteDiagnosticCategories(resourceGroupName, siteName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSiteDiagnosticCategoriesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSiteDiagnosticCategoriesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get Diagnostics Category. + * Get Diagnostics Category. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DiagnosticCategoryInner object if successful. + */ + public DiagnosticCategoryInner getSiteDiagnosticCategory(String resourceGroupName, String siteName, String diagnosticCategory) { + return getSiteDiagnosticCategoryWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory).toBlocking().single().body(); + } + + /** + * Get Diagnostics Category. + * Get Diagnostics Category. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getSiteDiagnosticCategoryAsync(String resourceGroupName, String siteName, String diagnosticCategory, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSiteDiagnosticCategoryWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory), serviceCallback); + } + + /** + * Get Diagnostics Category. + * Get Diagnostics Category. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticCategoryInner object + */ + public Observable getSiteDiagnosticCategoryAsync(String resourceGroupName, String siteName, String diagnosticCategory) { + return getSiteDiagnosticCategoryWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory).map(new Func1, DiagnosticCategoryInner>() { + @Override + public DiagnosticCategoryInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get Diagnostics Category. + * Get Diagnostics Category. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticCategoryInner object + */ + public Observable> getSiteDiagnosticCategoryWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (diagnosticCategory == null) { + throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getSiteDiagnosticCategory(resourceGroupName, siteName, diagnosticCategory, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getSiteDiagnosticCategoryDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getSiteDiagnosticCategoryDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get Site Analyses. + * Get Site Analyses. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<AnalysisDefinitionInner> object if successful. + */ + public PagedList listSiteAnalyses(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + ServiceResponse> response = listSiteAnalysesSinglePageAsync(resourceGroupName, siteName, diagnosticCategory).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSiteAnalysesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get Site Analyses. + * Get Site Analyses. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSiteAnalysesSinglePageAsync(resourceGroupName, siteName, diagnosticCategory), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSiteAnalysesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get Site Analyses. + * Get Site Analyses. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AnalysisDefinitionInner> object + */ + public Observable> listSiteAnalysesAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + return listSiteAnalysesWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get Site Analyses. + * Get Site Analyses. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<AnalysisDefinitionInner> object + */ + public Observable>> listSiteAnalysesWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + return listSiteAnalysesSinglePageAsync(resourceGroupName, siteName, diagnosticCategory) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSiteAnalysesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get Site Analyses. + * Get Site Analyses. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Site Name + ServiceResponse> * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<AnalysisDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSiteAnalysesSinglePageAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (diagnosticCategory == null) { + throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listSiteAnalyses(resourceGroupName, siteName, diagnosticCategory, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSiteAnalysesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSiteAnalysesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get Site Analysis. + * Get Site Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DiagnosticAnalysisInner object if successful. + */ + public DiagnosticAnalysisInner getSiteAnalysis(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + return getSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName).toBlocking().single().body(); + } + + /** + * Get Site Analysis. + * Get Site Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName), serviceCallback); + } + + /** + * Get Site Analysis. + * Get Site Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticAnalysisInner object + */ + public Observable getSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { return getSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName).map(new Func1, DiagnosticAnalysisInner>() { @Override public DiagnosticAnalysisInner call(ServiceResponse response) { @@ -572,17 +1268,372 @@ public DiagnosticAnalysisInner call(ServiceResponse res } /** - * Get Site Analysis. - * Get Site Analysis. + * Get Site Analysis. + * Get Site Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param analysisName Analysis Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticAnalysisInner object + */ + public Observable> getSiteAnalysisWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (diagnosticCategory == null) { + throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + } + if (analysisName == null) { + throw new IllegalArgumentException("Parameter analysisName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analysisName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getSiteAnalysisDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getSiteAnalysisDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DiagnosticAnalysisInner object if successful. + */ + public DiagnosticAnalysisInner executeSiteAnalysis(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName).toBlocking().single().body(); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName), serviceCallback); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticAnalysisInner object + */ + public Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName).map(new Func1, DiagnosticAnalysisInner>() { + @Override + public DiagnosticAnalysisInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticAnalysisInner object + */ + public Observable> executeSiteAnalysisWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (diagnosticCategory == null) { + throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + } + if (analysisName == null) { + throw new IllegalArgumentException("Parameter analysisName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final DateTime startTime = null; + final DateTime endTime = null; + final String timeGrain = null; + return service.executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analysisName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = executeSiteAnalysisDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DiagnosticAnalysisInner object if successful. + */ + public DiagnosticAnalysisInner executeSiteAnalysis(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain) { + return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, startTime, endTime, timeGrain).toBlocking().single().body(); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, startTime, endTime, timeGrain), serviceCallback); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticAnalysisInner object + */ + public Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain) { + return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, startTime, endTime, timeGrain).map(new Func1, DiagnosticAnalysisInner>() { + @Override + public DiagnosticAnalysisInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Execute Analysis. + * Execute Analysis. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Category Name + * @param analysisName Analysis Resource Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DiagnosticAnalysisInner object + */ + public Observable> executeSiteAnalysisWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (diagnosticCategory == null) { + throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + } + if (analysisName == null) { + throw new IllegalArgumentException("Parameter analysisName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analysisName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = executeSiteAnalysisDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse executeSiteAnalysisDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get Detectors. + * Get Detectors. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DetectorDefinitionInner> object if successful. + */ + public PagedList listSiteDetectors(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + ServiceResponse> response = listSiteDetectorsSinglePageAsync(resourceGroupName, siteName, diagnosticCategory).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSiteDetectorsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get Detectors. + * Get Detectors. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSiteDetectorsAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSiteDetectorsSinglePageAsync(resourceGroupName, siteName, diagnosticCategory), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSiteDetectorsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get Detectors. + * Get Detectors. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param diagnosticCategory Diagnostic Category - * @param analysisName Analysis Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticAnalysisInner object + * @return the observable to the PagedList<DetectorDefinitionInner> object */ - public Observable> getSiteAnalysisWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + public Observable> listSiteDetectorsAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + return listSiteDetectorsWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get Detectors. + * Get Detectors. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site Name + * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DetectorDefinitionInner> object + */ + public Observable>> listSiteDetectorsWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + return listSiteDetectorsSinglePageAsync(resourceGroupName, siteName, diagnosticCategory) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSiteDetectorsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get Detectors. + * Get Detectors. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Site Name + ServiceResponse> * @param diagnosticCategory Diagnostic Category + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DetectorDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSiteDetectorsSinglePageAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -592,22 +1643,19 @@ public Observable> getSiteAnalysisWithS if (diagnosticCategory == null) { throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); } - if (analysisName == null) { - throw new IllegalArgumentException("Parameter analysisName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analysisName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listSiteDetectors(resourceGroupName, siteName, diagnosticCategory, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getSiteAnalysisDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listSiteDetectorsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -615,78 +1663,118 @@ public Observable> call(Response getSiteAnalysisDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> listSiteDetectorsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Execute Analysis. - * Execute Analysis. + * Get Detector. + * Get Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DiagnosticAnalysisInner object if successful. + * @return the PagedList<DetectorDefinitionInner> object if successful. */ - public DiagnosticAnalysisInner executeSiteAnalysis(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { - return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName).toBlocking().single().body(); + public PagedList getSiteDetector(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { + ServiceResponse> response = getSiteDetectorSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, detectorName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return getSiteDetectorNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Execute Analysis. - * Execute Analysis. + * Get Detector. + * Get Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName), serviceCallback); + public ServiceFuture> getSiteDetectorAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + getSiteDetectorSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, detectorName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return getSiteDetectorNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Execute Analysis. - * Execute Analysis. + * Get Detector. + * Get Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticAnalysisInner object + * @return the observable to the PagedList<DetectorDefinitionInner> object */ - public Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { - return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName).map(new Func1, DiagnosticAnalysisInner>() { - @Override - public DiagnosticAnalysisInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> getSiteDetectorAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { + return getSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, detectorName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Execute Analysis. - * Execute Analysis. + * Get Detector. + * Get Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name + * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticAnalysisInner object + * @return the observable to the PagedList<DetectorDefinitionInner> object */ - public Observable> executeSiteAnalysisWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName) { + public Observable>> getSiteDetectorWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { + return getSiteDetectorSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, detectorName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(getSiteDetectorNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get Detector. + * Get Detector. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Site Name + ServiceResponse> * @param diagnosticCategory Diagnostic Category + ServiceResponse> * @param detectorName Detector Name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DetectorDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> getSiteDetectorSinglePageAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -696,8 +1784,8 @@ public Observable> executeSiteAnalysisW if (diagnosticCategory == null) { throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); } - if (analysisName == null) { - throw new IllegalArgumentException("Parameter analysisName is required and cannot be null."); + if (detectorName == null) { + throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -705,16 +1793,13 @@ public Observable> executeSiteAnalysisW if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final DateTime startTime = null; - final DateTime endTime = null; - final String timeGrain = null; - return service.executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analysisName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSiteDetector(resourceGroupName, siteName, diagnosticCategory, detectorName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = executeSiteAnalysisDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = getSiteDetectorDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -722,107 +1807,105 @@ public Observable> call(Response> getSiteDetectorDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** - * Execute Analysis. - * Execute Analysis. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name + * @param detectorName Detector Resource Name * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name - * @param startTime Start Time - * @param endTime End Time - * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DiagnosticAnalysisInner object if successful. + * @return the DiagnosticDetectorResponseInner object if successful. */ - public DiagnosticAnalysisInner executeSiteAnalysis(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain) { - return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, startTime, endTime, timeGrain).toBlocking().single().body(); + public DiagnosticDetectorResponseInner executeSiteDetector(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory) { + return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory).toBlocking().single().body(); } /** - * Execute Analysis. - * Execute Analysis. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name + * @param detectorName Detector Resource Name * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name - * @param startTime Start Time - * @param endTime End Time - * @param timeGrain Time Grain * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, startTime, endTime, timeGrain), serviceCallback); + public ServiceFuture executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory), serviceCallback); } /** - * Execute Analysis. - * Execute Analysis. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name + * @param detectorName Detector Resource Name * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name - * @param startTime Start Time - * @param endTime End Time - * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticAnalysisInner object + * @return the observable to the DiagnosticDetectorResponseInner object */ - public Observable executeSiteAnalysisAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain) { - return executeSiteAnalysisWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, analysisName, startTime, endTime, timeGrain).map(new Func1, DiagnosticAnalysisInner>() { + public Observable executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory) { + return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory).map(new Func1, DiagnosticDetectorResponseInner>() { @Override - public DiagnosticAnalysisInner call(ServiceResponse response) { + public DiagnosticDetectorResponseInner call(ServiceResponse response) { return response.body(); } }); } /** - * Execute Analysis. - * Execute Analysis. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name + * @param detectorName Detector Resource Name * @param diagnosticCategory Category Name - * @param analysisName Analysis Resource Name - * @param startTime Start Time - * @param endTime End Time - * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticAnalysisInner object + * @return the observable to the DiagnosticDetectorResponseInner object */ - public Observable> executeSiteAnalysisWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory, String analysisName, DateTime startTime, DateTime endTime, String timeGrain) { + public Observable> executeSiteDetectorWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (siteName == null) { throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); } + if (detectorName == null) { + throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); + } if (diagnosticCategory == null) { throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); } - if (analysisName == null) { - throw new IllegalArgumentException("Parameter analysisName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.executeSiteAnalysis(resourceGroupName, siteName, diagnosticCategory, analysisName, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + final DateTime startTime = null; + final DateTime endTime = null; + final String timeGrain = null; + return service.executeSiteDetector(resourceGroupName, siteName, detectorName, diagnosticCategory, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = executeSiteAnalysisDelegate(response); + ServiceResponse clientResponse = executeSiteDetectorDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -831,119 +1914,92 @@ public Observable> call(Response executeSiteAnalysisDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** - * Get Detectors. - * Get Detectors. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<DetectorDefinitionInner> object if successful. + * @return the DiagnosticDetectorResponseInner object if successful. */ - public PagedList listSiteDetectors(final String resourceGroupName, final String siteName, final String diagnosticCategory) { - ServiceResponse> response = listSiteDetectorsSinglePageAsync(resourceGroupName, siteName, diagnosticCategory).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listSiteDetectorsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public DiagnosticDetectorResponseInner executeSiteDetector(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain) { + return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory, startTime, endTime, timeGrain).toBlocking().single().body(); } /** - * Get Detectors. - * Get Detectors. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listSiteDetectorsAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listSiteDetectorsSinglePageAsync(resourceGroupName, siteName, diagnosticCategory), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listSiteDetectorsNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory, startTime, endTime, timeGrain), serviceCallback); } /** - * Get Detectors. - * Get Detectors. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DetectorDefinitionInner> object + * @return the observable to the DiagnosticDetectorResponseInner object */ - public Observable> listSiteDetectorsAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { - return listSiteDetectorsWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain) { + return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory, startTime, endTime, timeGrain).map(new Func1, DiagnosticDetectorResponseInner>() { + @Override + public DiagnosticDetectorResponseInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Get Detectors. - * Get Detectors. + * Execute Detector. + * Execute Detector. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DetectorDefinitionInner> object - */ - public Observable>> listSiteDetectorsWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { - return listSiteDetectorsSinglePageAsync(resourceGroupName, siteName, diagnosticCategory) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listSiteDetectorsNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Get Detectors. - * Get Detectors. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param siteName Site Name - ServiceResponse> * @param diagnosticCategory Diagnostic Category + * @param detectorName Detector Resource Name + * @param diagnosticCategory Category Name + * @param startTime Start Time + * @param endTime End Time + * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<DetectorDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the DiagnosticDetectorResponseInner object */ - public Observable>> listSiteDetectorsSinglePageAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory) { + public Observable> executeSiteDetectorWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (siteName == null) { throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); } + if (detectorName == null) { + throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); + } if (diagnosticCategory == null) { throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); } @@ -953,13 +2009,13 @@ public Observable>> listSiteDetect if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSiteDetectors(resourceGroupName, siteName, diagnosticCategory, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.executeSiteDetector(resourceGroupName, siteName, detectorName, diagnosticCategory, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listSiteDetectorsDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = executeSiteDetectorDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -967,129 +2023,121 @@ public Observable>> call(Response< }); } - private ServiceResponse> listSiteDetectorsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse executeSiteDetectorDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get Detector. - * Get Detector. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param detectorName Detector Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<DetectorDefinitionInner> object if successful. + * @return the PagedList<DetectorResponseInner> object if successful. */ - public PagedList getSiteDetector(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { - ServiceResponse> response = getSiteDetectorSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, detectorName).toBlocking().single(); - return new PagedList(response.body()) { + public PagedList listSiteDetectorResponsesSlot(final String resourceGroupName, final String siteName, final String slot) { + ServiceResponse> response = listSiteDetectorResponsesSlotSinglePageAsync(resourceGroupName, siteName, slot).toBlocking().single(); + return new PagedList(response.body()) { @Override - public Page nextPage(String nextPageLink) { - return getSiteDetectorNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + public Page nextPage(String nextPageLink) { + return listSiteDetectorResponsesSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * Get Detector. - * Get Detector. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param detectorName Detector Name + * @param slot Slot Name * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getSiteDetectorAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName, final ListOperationCallback serviceCallback) { + public ServiceFuture> listSiteDetectorResponsesSlotAsync(final String resourceGroupName, final String siteName, final String slot, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - getSiteDetectorSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, detectorName), - new Func1>>>() { + listSiteDetectorResponsesSlotSinglePageAsync(resourceGroupName, siteName, slot), + new Func1>>>() { @Override - public Observable>> call(String nextPageLink) { - return getSiteDetectorNextSinglePageAsync(nextPageLink); + public Observable>> call(String nextPageLink) { + return listSiteDetectorResponsesSlotNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * Get Detector. - * Get Detector. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param detectorName Detector Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DetectorDefinitionInner> object + * @return the observable to the PagedList<DetectorResponseInner> object */ - public Observable> getSiteDetectorAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { - return getSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, detectorName) - .map(new Func1>, Page>() { + public Observable> listSiteDetectorResponsesSlotAsync(final String resourceGroupName, final String siteName, final String slot) { + return listSiteDetectorResponsesSlotWithServiceResponseAsync(resourceGroupName, siteName, slot) + .map(new Func1>, Page>() { @Override - public Page call(ServiceResponse> response) { + public Page call(ServiceResponse> response) { return response.body(); } }); } /** - * Get Detector. - * Get Detector. + * List Site Detector Responses. + * List Site Detector Responses. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name - * @param diagnosticCategory Diagnostic Category - * @param detectorName Detector Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DetectorDefinitionInner> object + * @return the observable to the PagedList<DetectorResponseInner> object */ - public Observable>> getSiteDetectorWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { - return getSiteDetectorSinglePageAsync(resourceGroupName, siteName, diagnosticCategory, detectorName) - .concatMap(new Func1>, Observable>>>() { + public Observable>> listSiteDetectorResponsesSlotWithServiceResponseAsync(final String resourceGroupName, final String siteName, final String slot) { + return listSiteDetectorResponsesSlotSinglePageAsync(resourceGroupName, siteName, slot) + .concatMap(new Func1>, Observable>>>() { @Override - public Observable>> call(ServiceResponse> page) { + public Observable>> call(ServiceResponse> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(getSiteDetectorNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listSiteDetectorResponsesSlotNextWithServiceResponseAsync(nextPageLink)); } }); } /** - * Get Detector. - * Get Detector. + * List Site Detector Responses. + * List Site Detector Responses. * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param siteName Site Name - ServiceResponse> * @param diagnosticCategory Diagnostic Category - ServiceResponse> * @param detectorName Detector Name + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Site Name + ServiceResponse> * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<DetectorDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the PagedList<DetectorResponseInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> getSiteDetectorSinglePageAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName) { + public Observable>> listSiteDetectorResponsesSlotSinglePageAsync(final String resourceGroupName, final String siteName, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (siteName == null) { throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); } - if (diagnosticCategory == null) { - throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); - } - if (detectorName == null) { - throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -1097,13 +2145,13 @@ public Observable>> getSiteDetecto if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSiteDetector(resourceGroupName, siteName, diagnosticCategory, detectorName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listSiteDetectorResponsesSlot(resourceGroupName, siteName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = getSiteDetectorDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> result = listSiteDetectorResponsesSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -1111,78 +2159,78 @@ public Observable>> call(Response< }); } - private ServiceResponse> getSiteDetectorDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSiteDetectorResponsesSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Execute Detector. - * Execute Detector. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DiagnosticDetectorResponseInner object if successful. + * @return the DetectorResponseInner object if successful. */ - public DiagnosticDetectorResponseInner executeSiteDetector(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory) { - return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory).toBlocking().single().body(); + public DetectorResponseInner getSiteDetectorResponseSlot(String resourceGroupName, String siteName, String detectorName, String slot) { + return getSiteDetectorResponseSlotWithServiceResponseAsync(resourceGroupName, siteName, detectorName, slot).toBlocking().single().body(); } /** - * Execute Detector. - * Execute Detector. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory), serviceCallback); + public ServiceFuture getSiteDetectorResponseSlotAsync(String resourceGroupName, String siteName, String detectorName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSiteDetectorResponseSlotWithServiceResponseAsync(resourceGroupName, siteName, detectorName, slot), serviceCallback); } /** - * Execute Detector. - * Execute Detector. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticDetectorResponseInner object + * @return the observable to the DetectorResponseInner object */ - public Observable executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory) { - return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory).map(new Func1, DiagnosticDetectorResponseInner>() { + public Observable getSiteDetectorResponseSlotAsync(String resourceGroupName, String siteName, String detectorName, String slot) { + return getSiteDetectorResponseSlotWithServiceResponseAsync(resourceGroupName, siteName, detectorName, slot).map(new Func1, DetectorResponseInner>() { @Override - public DiagnosticDetectorResponseInner call(ServiceResponse response) { + public DetectorResponseInner call(ServiceResponse response) { return response.body(); } }); } /** - * Execute Detector. - * Execute Detector. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticDetectorResponseInner object + * @return the observable to the DetectorResponseInner object */ - public Observable> executeSiteDetectorWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory) { + public Observable> getSiteDetectorResponseSlotWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1192,8 +2240,8 @@ public Observable> executeSiteD if (detectorName == null) { throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); } - if (diagnosticCategory == null) { - throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -1204,12 +2252,12 @@ public Observable> executeSiteD final DateTime startTime = null; final DateTime endTime = null; final String timeGrain = null; - return service.executeSiteDetector(resourceGroupName, siteName, detectorName, diagnosticCategory, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSiteDetectorResponseSlot(resourceGroupName, siteName, detectorName, slot, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = executeSiteDetectorDelegate(response); + ServiceResponse clientResponse = getSiteDetectorResponseSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1218,34 +2266,34 @@ public Observable> call(Respons }); } - /** - * Execute Detector. - * Execute Detector. + /** + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @param startTime Start Time * @param endTime End Time * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DiagnosticDetectorResponseInner object if successful. + * @return the DetectorResponseInner object if successful. */ - public DiagnosticDetectorResponseInner executeSiteDetector(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain) { - return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory, startTime, endTime, timeGrain).toBlocking().single().body(); + public DetectorResponseInner getSiteDetectorResponseSlot(String resourceGroupName, String siteName, String detectorName, String slot, DateTime startTime, DateTime endTime, String timeGrain) { + return getSiteDetectorResponseSlotWithServiceResponseAsync(resourceGroupName, siteName, detectorName, slot, startTime, endTime, timeGrain).toBlocking().single().body(); } /** - * Execute Detector. - * Execute Detector. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @param startTime Start Time * @param endTime End Time * @param timeGrain Time Grain @@ -1253,48 +2301,48 @@ public DiagnosticDetectorResponseInner executeSiteDetector(String resourceGroupN * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory, startTime, endTime, timeGrain), serviceCallback); + public ServiceFuture getSiteDetectorResponseSlotAsync(String resourceGroupName, String siteName, String detectorName, String slot, DateTime startTime, DateTime endTime, String timeGrain, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSiteDetectorResponseSlotWithServiceResponseAsync(resourceGroupName, siteName, detectorName, slot, startTime, endTime, timeGrain), serviceCallback); } /** - * Execute Detector. - * Execute Detector. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @param startTime Start Time * @param endTime End Time * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticDetectorResponseInner object + * @return the observable to the DetectorResponseInner object */ - public Observable executeSiteDetectorAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain) { - return executeSiteDetectorWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory, startTime, endTime, timeGrain).map(new Func1, DiagnosticDetectorResponseInner>() { + public Observable getSiteDetectorResponseSlotAsync(String resourceGroupName, String siteName, String detectorName, String slot, DateTime startTime, DateTime endTime, String timeGrain) { + return getSiteDetectorResponseSlotWithServiceResponseAsync(resourceGroupName, siteName, detectorName, slot, startTime, endTime, timeGrain).map(new Func1, DetectorResponseInner>() { @Override - public DiagnosticDetectorResponseInner call(ServiceResponse response) { + public DetectorResponseInner call(ServiceResponse response) { return response.body(); } }); } /** - * Execute Detector. - * Execute Detector. + * Get site detector response. + * Get site detector response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param siteName Site Name * @param detectorName Detector Resource Name - * @param diagnosticCategory Category Name + * @param slot Slot Name * @param startTime Start Time * @param endTime End Time * @param timeGrain Time Grain * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DiagnosticDetectorResponseInner object + * @return the observable to the DetectorResponseInner object */ - public Observable> executeSiteDetectorWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, DateTime startTime, DateTime endTime, String timeGrain) { + public Observable> getSiteDetectorResponseSlotWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, String slot, DateTime startTime, DateTime endTime, String timeGrain) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1304,8 +2352,8 @@ public Observable> executeSiteD if (detectorName == null) { throw new IllegalArgumentException("Parameter detectorName is required and cannot be null."); } - if (diagnosticCategory == null) { - throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null."); + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -1313,12 +2361,12 @@ public Observable> executeSiteD if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.executeSiteDetector(resourceGroupName, siteName, detectorName, diagnosticCategory, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSiteDetectorResponseSlot(resourceGroupName, siteName, detectorName, slot, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = executeSiteDetectorDelegate(response); + ServiceResponse clientResponse = getSiteDetectorResponseSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1327,9 +2375,9 @@ public Observable> call(Respons }); } - private ServiceResponse executeSiteDetectorDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getSiteDetectorResponseSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } @@ -2585,6 +3633,238 @@ private ServiceResponse executeSiteDetectorSlot .build(response); } + /** + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DetectorResponseInner> object if successful. + */ + public PagedList listHostingEnvironmentDetectorResponsesNext(final String nextPageLink) { + ServiceResponse> response = listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listHostingEnvironmentDetectorResponsesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DetectorResponseInner> object + */ + public Observable> listHostingEnvironmentDetectorResponsesNextAsync(final String nextPageLink) { + return listHostingEnvironmentDetectorResponsesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DetectorResponseInner> object + */ + public Observable>> listHostingEnvironmentDetectorResponsesNextWithServiceResponseAsync(final String nextPageLink) { + return listHostingEnvironmentDetectorResponsesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listHostingEnvironmentDetectorResponsesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List Hosting Environment Detector Responses. + * List Hosting Environment Detector Responses. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DetectorResponseInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listHostingEnvironmentDetectorResponsesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listHostingEnvironmentDetectorResponsesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listHostingEnvironmentDetectorResponsesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listHostingEnvironmentDetectorResponsesNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DetectorResponseInner> object if successful. + */ + public PagedList listSiteDetectorResponsesNext(final String nextPageLink) { + ServiceResponse> response = listSiteDetectorResponsesNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSiteDetectorResponsesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSiteDetectorResponsesNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSiteDetectorResponsesNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSiteDetectorResponsesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DetectorResponseInner> object + */ + public Observable> listSiteDetectorResponsesNextAsync(final String nextPageLink) { + return listSiteDetectorResponsesNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DetectorResponseInner> object + */ + public Observable>> listSiteDetectorResponsesNextWithServiceResponseAsync(final String nextPageLink) { + return listSiteDetectorResponsesNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSiteDetectorResponsesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DetectorResponseInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSiteDetectorResponsesNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listSiteDetectorResponsesNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSiteDetectorResponsesNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSiteDetectorResponsesNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Get Diagnostics Categories. * Get Diagnostics Categories. @@ -3049,6 +4329,122 @@ private ServiceResponse> getSiteDetectorNextDe .build(response); } + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<DetectorResponseInner> object if successful. + */ + public PagedList listSiteDetectorResponsesSlotNext(final String nextPageLink) { + ServiceResponse> response = listSiteDetectorResponsesSlotNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSiteDetectorResponsesSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSiteDetectorResponsesSlotNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSiteDetectorResponsesSlotNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSiteDetectorResponsesSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DetectorResponseInner> object + */ + public Observable> listSiteDetectorResponsesSlotNextAsync(final String nextPageLink) { + return listSiteDetectorResponsesSlotNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<DetectorResponseInner> object + */ + public Observable>> listSiteDetectorResponsesSlotNextWithServiceResponseAsync(final String nextPageLink) { + return listSiteDetectorResponsesSlotNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSiteDetectorResponsesSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List Site Detector Responses. + * List Site Detector Responses. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DetectorResponseInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSiteDetectorResponsesSlotNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listSiteDetectorResponsesSlotNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSiteDetectorResponsesSlotNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSiteDetectorResponsesSlotNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Get Diagnostics Categories. * Get Diagnostics Categories. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultImpl.java index 4feaf79e22e56..0a3a03ca02e55 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DomainType; class DomainAvailablilityCheckResultImpl extends WrapperImpl implements DomainAvailablilityCheckResult { - private final AppServiceManager manager; - DomainAvailablilityCheckResultImpl(DomainAvailablilityCheckResultInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + DomainAvailablilityCheckResultImpl(DomainAvailablilityCheckResultInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultInner.java index 5d34fbfce813c..b1948e56f1c39 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainAvailablilityCheckResultInner.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Domain availablility check result. + * Domain availability check result. */ public class DomainAvailablilityCheckResultInner { /** diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainControlCenterSsoRequestImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainControlCenterSsoRequestImpl.java index 74e0862255784..98cd5c1468ca3 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainControlCenterSsoRequestImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainControlCenterSsoRequestImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class DomainControlCenterSsoRequestImpl extends WrapperImpl implements DomainControlCenterSsoRequest { - private final AppServiceManager manager; - DomainControlCenterSsoRequestImpl(DomainControlCenterSsoRequestInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + DomainControlCenterSsoRequestImpl(DomainControlCenterSsoRequestInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainImpl.java index dea347ef52ba4..1bebeb08901de 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainImpl.java @@ -22,9 +22,9 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DnsType; import rx.functions.Func1; -class DomainImpl extends GroupableResourceCoreImpl implements Domain, Domain.Definition, Domain.Update { +class DomainImpl extends GroupableResourceCoreImpl implements Domain, Domain.Definition, Domain.Update { private DomainPatchResource updateParameter; - DomainImpl(String name, DomainInner inner, AppServiceManager manager) { + DomainImpl(String name, DomainInner inner, CertificateRegistrationManager manager) { super(name, inner, manager); this.updateParameter = new DomainPatchResource(); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainOwnershipIdentifierImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainOwnershipIdentifierImpl.java index 6d8dbf17a2683..8c92c6e18db4c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainOwnershipIdentifierImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainOwnershipIdentifierImpl.java @@ -13,12 +13,12 @@ import rx.Observable; class DomainOwnershipIdentifierImpl extends CreatableUpdatableImpl implements DomainOwnershipIdentifier, DomainOwnershipIdentifier.Definition, DomainOwnershipIdentifier.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String domainName; private String name; - DomainOwnershipIdentifierImpl(String name, AppServiceManager manager) { + DomainOwnershipIdentifierImpl(String name, CertificateRegistrationManager manager) { super(name, new DomainOwnershipIdentifierInner()); this.manager = manager; // Set resource name @@ -26,12 +26,12 @@ class DomainOwnershipIdentifierImpl extends CreatableUpdatableImpl implements DomainRegistrationProviders { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - DomainRegistrationProvidersImpl(AppServiceManager manager) { + DomainRegistrationProvidersImpl(CertificateRegistrationManager manager) { super(manager.inner().domainRegistrationProviders()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainsImpl.java index 1f53d9b188be0..696d42f962fd3 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DomainsImpl.java @@ -28,8 +28,8 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DomainRecommendationSearchParameters; import com.microsoft.azure.management.appservice.v2018_02_01.DomainOwnershipIdentifier; -class DomainsImpl extends GroupableResourcesCoreImpl implements Domains { - protected DomainsImpl(AppServiceManager manager) { +class DomainsImpl extends GroupableResourcesCoreImpl implements Domains { + protected DomainsImpl(CertificateRegistrationManager manager) { super(manager.inner().domains(), manager); } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/FunctionEnvelopeImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/FunctionEnvelopeImpl.java index a6450946278b4..1984c81062dd6 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/FunctionEnvelopeImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/FunctionEnvelopeImpl.java @@ -14,12 +14,12 @@ import java.util.Map; class FunctionEnvelopeImpl extends CreatableUpdatableImpl implements FunctionEnvelope, FunctionEnvelope.Definition, FunctionEnvelope.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String functionName; - FunctionEnvelopeImpl(String name, AppServiceManager manager) { + FunctionEnvelopeImpl(String name, CertificateRegistrationManager manager) { super(name, new FunctionEnvelopeInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class FunctionEnvelopeImpl extends CreatableUpdatableImpl implements FunctionSecrets { - private final AppServiceManager manager; - FunctionSecretsImpl(FunctionSecretsInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + FunctionSecretsImpl(FunctionSecretsInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostNameBindingImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostNameBindingImpl.java index 5bf5f50a4d41f..5841b110d3d5e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostNameBindingImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostNameBindingImpl.java @@ -17,12 +17,12 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SslState; class HostNameBindingImpl extends CreatableUpdatableImpl implements HostNameBinding, HostNameBinding.Definition, HostNameBinding.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String hostName; - HostNameBindingImpl(String name, AppServiceManager manager) { + HostNameBindingImpl(String name, CertificateRegistrationManager manager) { super(name, new HostNameBindingInner()); this.manager = manager; // Set resource name @@ -30,12 +30,12 @@ class HostNameBindingImpl extends CreatableUpdatableImpl implements HostingEnvironmentAppServicePlan { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - HostingEnvironmentAppServicePlanImpl(AppServicePlanInner inner, AppServiceManager manager) { + HostingEnvironmentAppServicePlanImpl(AppServicePlanInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @Override - public String adminSiteName() { - return this.inner().adminSiteName(); + public DateTime freeOfferExpirationTime() { + return this.inner().freeOfferExpirationTime(); } @Override @@ -48,6 +48,11 @@ public HostingEnvironmentProfile hostingEnvironmentProfile() { return this.inner().hostingEnvironmentProfile(); } + @Override + public Boolean hyperV() { + return this.inner().hyperV(); + } + @Override public String id() { return this.inner().id(); @@ -73,6 +78,11 @@ public String location() { return this.inner().location(); } + @Override + public Integer maximumElasticWorkerCount() { + return this.inner().maximumElasticWorkerCount(); + } + @Override public Integer maximumNumberOfWorkers() { return this.inner().maximumNumberOfWorkers(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentDiagnosticsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentDiagnosticsImpl.java index eb9ccb2699e58..b6cb384f3a3c9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentDiagnosticsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentDiagnosticsImpl.java @@ -13,18 +13,18 @@ import rx.Observable; class HostingEnvironmentDiagnosticsImpl extends WrapperImpl implements HostingEnvironmentDiagnostics { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String diagnosticsName; - HostingEnvironmentDiagnosticsImpl(HostingEnvironmentDiagnosticsInner inner, AppServiceManager manager) { + HostingEnvironmentDiagnosticsImpl(HostingEnvironmentDiagnosticsInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentResourceMetricImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentResourceMetricImpl.java index f948db7e05134..495aefe0b31c4 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentResourceMetricImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentResourceMetricImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ResourceMetricProperty; class HostingEnvironmentResourceMetricImpl extends WrapperImpl implements HostingEnvironmentResourceMetric { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - HostingEnvironmentResourceMetricImpl(ResourceMetricInner inner, AppServiceManager manager) { + HostingEnvironmentResourceMetricImpl(ResourceMetricInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentSiteImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentSiteImpl.java index b6f608fbb5014..13f99b9945089 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentSiteImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentSiteImpl.java @@ -14,26 +14,28 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SiteAvailabilityState; import com.microsoft.azure.management.appservice.v2018_02_01.CloningInfo; import java.util.List; +import com.microsoft.azure.management.appservice.v2018_02_01.GeoDistribution; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentProfile; import com.microsoft.azure.management.appservice.v2018_02_01.HostNameSslState; import com.microsoft.azure.management.appservice.v2018_02_01.ManagedServiceIdentity; +import java.util.UUID; import org.joda.time.DateTime; +import com.microsoft.azure.management.appservice.v2018_02_01.RedundancyMode; import com.microsoft.azure.management.appservice.v2018_02_01.SiteConfig; import com.microsoft.azure.management.appservice.v2018_02_01.SlotSwapStatus; -import com.microsoft.azure.management.appservice.v2018_02_01.SnapshotRecoveryRequest; import java.util.Map; import com.microsoft.azure.management.appservice.v2018_02_01.UsageState; class HostingEnvironmentSiteImpl extends WrapperImpl implements HostingEnvironmentSite { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - HostingEnvironmentSiteImpl(SiteInner inner, AppServiceManager manager) { + HostingEnvironmentSiteImpl(SiteInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -54,6 +56,11 @@ public Boolean clientCertEnabled() { return this.inner().clientCertEnabled(); } + @Override + public String clientCertExclusionPaths() { + return this.inner().clientCertExclusionPaths(); + } + @Override public CloningInfo cloningInfo() { return this.inner().cloningInfo(); @@ -84,6 +91,11 @@ public List enabledHostNames() { return this.inner().enabledHostNames(); } + @Override + public List geoDistributions() { + return this.inner().geoDistributions(); + } + @Override public HostingEnvironmentProfile hostingEnvironmentProfile() { return this.inner().hostingEnvironmentProfile(); @@ -109,6 +121,11 @@ public Boolean httpsOnly() { return this.inner().httpsOnly(); } + @Override + public Boolean hyperV() { + return this.inner().hyperV(); + } + @Override public String id() { return this.inner().id(); @@ -119,6 +136,11 @@ public ManagedServiceIdentity identity() { return this.inner().identity(); } + @Override + public UUID inProgressOperationId() { + return this.inner().inProgressOperationId(); + } + @Override public Boolean isDefaultContainer() { return this.inner().isDefaultContainer(); @@ -164,6 +186,11 @@ public String possibleOutboundIpAddresses() { return this.inner().possibleOutboundIpAddresses(); } + @Override + public RedundancyMode redundancyMode() { + return this.inner().redundancyMode(); + } + @Override public String repositorySiteName() { return this.inner().repositorySiteName(); @@ -199,11 +226,6 @@ public SlotSwapStatus slotSwapStatus() { return this.inner().slotSwapStatus(); } - @Override - public SnapshotRecoveryRequest snapshotInfo() { - return this.inner().snapshotInfo(); - } - @Override public String state() { return this.inner().state(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionImpl.java index 51f2d4b08a3e3..36d1ea278fa06 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionImpl.java @@ -13,15 +13,15 @@ import rx.Observable; class HybridConnectionImpl extends WrapperImpl implements HybridConnection { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - HybridConnectionImpl(HybridConnectionInner inner, AppServiceManager manager) { + HybridConnectionImpl(HybridConnectionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionKeyImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionKeyImpl.java index e36f0a4605c2d..08fd4833e5d62 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionKeyImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionKeyImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class HybridConnectionKeyImpl extends WrapperImpl implements HybridConnectionKey { - private final AppServiceManager manager; - HybridConnectionKeyImpl(HybridConnectionKeyInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + HybridConnectionKeyImpl(HybridConnectionKeyInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionLimitsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionLimitsImpl.java index 80198832955f5..7f14e36257f7c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionLimitsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HybridConnectionLimitsImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class HybridConnectionLimitsImpl extends WrapperImpl implements HybridConnectionLimits { - private final AppServiceManager manager; - HybridConnectionLimitsImpl(HybridConnectionLimitsInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + HybridConnectionLimitsImpl(HybridConnectionLimitsInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/IdentifierImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/IdentifierImpl.java index 8e2c2f038f929..6e74d2f40c762 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/IdentifierImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/IdentifierImpl.java @@ -13,12 +13,12 @@ import rx.Observable; class IdentifierImpl extends CreatableUpdatableImpl implements Identifier, Identifier.Definition, Identifier.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String domainOwnershipIdentifierName; - IdentifierImpl(String name, AppServiceManager manager) { + IdentifierImpl(String name, CertificateRegistrationManager manager) { super(name, new IdentifierInner()); this.manager = manager; // Set resource name @@ -26,12 +26,12 @@ class IdentifierImpl extends CreatableUpdatableImpl implements InboundEnvironmentEndpoint { + private final CertificateRegistrationManager manager; + + InboundEnvironmentEndpointImpl(InboundEnvironmentEndpointInner inner, CertificateRegistrationManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public CertificateRegistrationManager manager() { + return this.manager; + } + + + + @Override + public String description() { + return this.inner().description(); + } + + @Override + public List endpoints() { + return this.inner().endpoints(); + } + + @Override + public List ports() { + return this.inner().ports(); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/InboundEnvironmentEndpointInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/InboundEnvironmentEndpointInner.java new file mode 100644 index 0000000000000..e15f139264431 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/InboundEnvironmentEndpointInner.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The IP Addresses and Ports that require inbound network access to and within + * the subnet of the App Service Environment. + */ +public class InboundEnvironmentEndpointInner { + /** + * Short text describing the purpose of the network traffic. + */ + @JsonProperty(value = "description") + private String description; + + /** + * The IP addresses that network traffic will originate from in cidr + * notation. + */ + @JsonProperty(value = "endpoints") + private List endpoints; + + /** + * The ports that network traffic will arrive to the App Service + * Environment at. + */ + @JsonProperty(value = "ports") + private List ports; + + /** + * Get short text describing the purpose of the network traffic. + * + * @return the description value + */ + public String description() { + return this.description; + } + + /** + * Set short text describing the purpose of the network traffic. + * + * @param description the description value to set + * @return the InboundEnvironmentEndpointInner object itself. + */ + public InboundEnvironmentEndpointInner withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the IP addresses that network traffic will originate from in cidr notation. + * + * @return the endpoints value + */ + public List endpoints() { + return this.endpoints; + } + + /** + * Set the IP addresses that network traffic will originate from in cidr notation. + * + * @param endpoints the endpoints value to set + * @return the InboundEnvironmentEndpointInner object itself. + */ + public InboundEnvironmentEndpointInner withEndpoints(List endpoints) { + this.endpoints = endpoints; + return this; + } + + /** + * Get the ports that network traffic will arrive to the App Service Environment at. + * + * @return the ports value + */ + public List ports() { + return this.ports; + } + + /** + * Set the ports that network traffic will arrive to the App Service Environment at. + * + * @param ports the ports value to set + * @return the InboundEnvironmentEndpointInner object itself. + */ + public InboundEnvironmentEndpointInner withPorts(List ports) { + this.ports = ports; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployLogImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployLogImpl.java index 0ebead3f97ffa..5e05436035468 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployLogImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployLogImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.MSDeployLogEntry; class MSDeployLogImpl extends WrapperImpl implements MSDeployLog { - private final AppServiceManager manager; - MSDeployLogImpl(MSDeployLogInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + MSDeployLogImpl(MSDeployLogInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployStatusImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployStatusImpl.java index fde126df67407..67fc742ae0200 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployStatusImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MSDeployStatusImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.MSDeployProvisioningState; class MSDeployStatusImpl extends WrapperImpl implements MSDeployStatus { - private final AppServiceManager manager; - MSDeployStatusImpl(MSDeployStatusInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + MSDeployStatusImpl(MSDeployStatusInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MetricDefinitionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MetricDefinitionImpl.java index 3a593f9fe0ce1..de7fd30bb0184 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MetricDefinitionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MetricDefinitionImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.MetricAvailabilily; class MetricDefinitionImpl extends WrapperImpl implements MetricDefinition { - private final AppServiceManager manager; - MetricDefinitionImpl(MetricDefinitionInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + MetricDefinitionImpl(MetricDefinitionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MigrateMySqlStatusImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MigrateMySqlStatusImpl.java index aa1a3a68388e8..8cb76d824ec74 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MigrateMySqlStatusImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MigrateMySqlStatusImpl.java @@ -13,14 +13,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.OperationStatus; class MigrateMySqlStatusImpl extends WrapperImpl implements MigrateMySqlStatus { - private final AppServiceManager manager; - MigrateMySqlStatusImpl(MigrateMySqlStatusInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + MigrateMySqlStatusImpl(MigrateMySqlStatusInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MultiRolePoolsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MultiRolePoolsImpl.java index 482c010b1bbd6..6d5a5b3463976 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MultiRolePoolsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/MultiRolePoolsImpl.java @@ -16,15 +16,15 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SkuDescription; class MultiRolePoolsImpl extends WrapperImpl implements MultiRolePools { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - MultiRolePoolsImpl(WorkerPoolResourceInner inner, AppServiceManager manager) { + MultiRolePoolsImpl(WorkerPoolResourceInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NameIdentifierImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NameIdentifierImpl.java index 311f5cda15b6f..ac702d3c686c5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NameIdentifierImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NameIdentifierImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class NameIdentifierImpl extends WrapperImpl implements NameIdentifier { - private final AppServiceManager manager; - NameIdentifierImpl(NameIdentifierInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + NameIdentifierImpl(NameIdentifierInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkFeaturesImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkFeaturesImpl.java index 6331613a0e78e..5fdaaf2daac7c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkFeaturesImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkFeaturesImpl.java @@ -18,21 +18,22 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SiteVnetInfo; class NetworkFeaturesImpl extends IndexableRefreshableWrapperImpl implements NetworkFeatures { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String view; - NetworkFeaturesImpl(NetworkFeaturesInner inner, AppServiceManager manager) { + NetworkFeaturesImpl(NetworkFeaturesInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.view = IdParsingUtils.getValueFromIdByName(inner.id(), "networkFeatures"); } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkTraceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkTraceImpl.java new file mode 100644 index 0000000000000..1120753587b9a --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkTraceImpl.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.management.appservice.v2018_02_01.NetworkTrace; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class NetworkTraceImpl extends WrapperImpl implements NetworkTrace { + private final CertificateRegistrationManager manager; + NetworkTraceImpl(NetworkTraceInner inner, CertificateRegistrationManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public CertificateRegistrationManager manager() { + return this.manager; + } + + @Override + public String message() { + return this.inner().message(); + } + + @Override + public String path() { + return this.inner().path(); + } + + @Override + public String status() { + return this.inner().status(); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkTraceInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkTraceInner.java new file mode 100644 index 0000000000000..dc6e6f52e2ef3 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/NetworkTraceInner.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Network trace. + */ +public class NetworkTraceInner { + /** + * Local file path for the captured network trace file. + */ + @JsonProperty(value = "path") + private String path; + + /** + * Current status of the network trace operation, same as Operation.Status + * (InProgress/Succeeded/Failed). + */ + @JsonProperty(value = "status") + private String status; + + /** + * Detailed message of a network trace operation, e.g. error message in + * case of failure. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get local file path for the captured network trace file. + * + * @return the path value + */ + public String path() { + return this.path; + } + + /** + * Set local file path for the captured network trace file. + * + * @param path the path value to set + * @return the NetworkTraceInner object itself. + */ + public NetworkTraceInner withPath(String path) { + this.path = path; + return this; + } + + /** + * Get current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed). + * + * @return the status value + */ + public String status() { + return this.status; + } + + /** + * Set current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed). + * + * @param status the status value to set + * @return the NetworkTraceInner object itself. + */ + public NetworkTraceInner withStatus(String status) { + this.status = status; + return this; + } + + /** + * Get detailed message of a network trace operation, e.g. error message in case of failure. + * + * @return the message value + */ + public String message() { + return this.message; + } + + /** + * Set detailed message of a network trace operation, e.g. error message in case of failure. + * + * @param message the message value to set + * @return the NetworkTraceInner object itself. + */ + public NetworkTraceInner withMessage(String message) { + this.message = message; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OperationImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OperationImpl.java index 98eca1f42064b..80f0e23e6cdb1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OperationImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OperationImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2018_02_01.OperationStatus; class OperationImpl extends WrapperImpl implements Operation { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - OperationImpl(OperationInner inner, AppServiceManager manager) { + OperationImpl(OperationInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OutboundEnvironmentEndpointImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OutboundEnvironmentEndpointImpl.java new file mode 100644 index 0000000000000..a91f79ca82189 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OutboundEnvironmentEndpointImpl.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.management.appservice.v2018_02_01.OutboundEnvironmentEndpoint; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import rx.Observable; +import java.util.List; +import com.microsoft.azure.management.appservice.v2018_02_01.EndpointDependency; + +class OutboundEnvironmentEndpointImpl extends WrapperImpl implements OutboundEnvironmentEndpoint { + private final CertificateRegistrationManager manager; + + OutboundEnvironmentEndpointImpl(OutboundEnvironmentEndpointInner inner, CertificateRegistrationManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public CertificateRegistrationManager manager() { + return this.manager; + } + + + + @Override + public String category() { + return this.inner().category(); + } + + @Override + public List endpoints() { + return this.inner().endpoints(); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OutboundEnvironmentEndpointInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OutboundEnvironmentEndpointInner.java new file mode 100644 index 0000000000000..4214cd443fc3f --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/OutboundEnvironmentEndpointInner.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import java.util.List; +import com.microsoft.azure.management.appservice.v2018_02_01.EndpointDependency; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Endpoints accessed for a common purpose that the App Service Environment + * requires outbound network access to. + */ +public class OutboundEnvironmentEndpointInner { + /** + * The type of service accessed by the App Service Environment, e.g., Azure + * Storage, Azure SQL Database, and Azure Active Directory. + */ + @JsonProperty(value = "category") + private String category; + + /** + * The endpoints that the App Service Environment reaches the service at. + */ + @JsonProperty(value = "endpoints") + private List endpoints; + + /** + * Get the type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory. + * + * @return the category value + */ + public String category() { + return this.category; + } + + /** + * Set the type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory. + * + * @param category the category value to set + * @return the OutboundEnvironmentEndpointInner object itself. + */ + public OutboundEnvironmentEndpointInner withCategory(String category) { + this.category = category; + return this; + } + + /** + * Get the endpoints that the App Service Environment reaches the service at. + * + * @return the endpoints value + */ + public List endpoints() { + return this.endpoints; + } + + /** + * Set the endpoints that the App Service Environment reaches the service at. + * + * @param endpoints the endpoints value to set + * @return the OutboundEnvironmentEndpointInner object itself. + */ + public OutboundEnvironmentEndpointInner withEndpoints(List endpoints) { + this.endpoints = endpoints; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PerfMonResponseImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PerfMonResponseImpl.java index 19a1f3f8d11cb..0c26493b35906 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PerfMonResponseImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PerfMonResponseImpl.java @@ -14,15 +14,15 @@ import com.microsoft.azure.management.appservice.v2018_02_01.PerfMonSet; class PerfMonResponseImpl extends WrapperImpl implements PerfMonResponse { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - PerfMonResponseImpl(PerfMonResponseInner inner, AppServiceManager manager) { + PerfMonResponseImpl(PerfMonResponseInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PremierAddOnImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PremierAddOnImpl.java index aace60013e5ec..36db90907fb68 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PremierAddOnImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PremierAddOnImpl.java @@ -11,36 +11,41 @@ import com.microsoft.azure.management.appservice.v2018_02_01.PremierAddOn; import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl; import rx.Observable; +import com.microsoft.azure.management.appservice.v2018_02_01.PremierAddOnPatchResource; import java.util.Map; +import rx.functions.Func1; class PremierAddOnImpl extends CreatableUpdatableImpl implements PremierAddOn, PremierAddOn.Definition, PremierAddOn.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String premierAddOnName; + private PremierAddOnPatchResource updateParameter; - PremierAddOnImpl(String name, AppServiceManager manager) { + PremierAddOnImpl(String name, CertificateRegistrationManager manager) { super(name, new PremierAddOnInner()); this.manager = manager; // Set resource name this.premierAddOnName = name; // + this.updateParameter = new PremierAddOnPatchResource(); } - PremierAddOnImpl(PremierAddOnInner inner, AppServiceManager manager) { + PremierAddOnImpl(PremierAddOnInner inner, CertificateRegistrationManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name this.premierAddOnName = inner.name(); - // resource ancestor names + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.premierAddOnName = IdParsingUtils.getValueFromIdByName(inner.id(), "premieraddons"); // + this.updateParameter = new PremierAddOnPatchResource(); } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -48,13 +53,27 @@ public AppServiceManager manager() { public Observable createResourceAsync() { WebAppsInner client = this.manager().inner().webApps(); return client.addPremierAddOnAsync(this.resourceGroupName, this.name, this.premierAddOnName, this.inner()) + .map(new Func1() { + @Override + public PremierAddOnInner call(PremierAddOnInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) .map(innerToFluentMap(this)); } @Override public Observable updateResourceAsync() { WebAppsInner client = this.manager().inner().webApps(); - return client.addPremierAddOnAsync(this.resourceGroupName, this.name, this.premierAddOnName, this.inner()) + return client.updatePremierAddOnAsync(this.resourceGroupName, this.name, this.premierAddOnName, this.updateParameter) + .map(new Func1() { + @Override + public PremierAddOnInner call(PremierAddOnInner resource) { + resetCreateUpdateParameters(); + return resource; + } + }) .map(innerToFluentMap(this)); } @@ -69,6 +88,9 @@ public boolean isInCreateMode() { return this.inner().id() == null; } + private void resetCreateUpdateParameters() { + this.updateParameter = new PremierAddOnPatchResource(); + } @Override public String id() { @@ -138,45 +160,69 @@ public PremierAddOnImpl withLocation(String location) { return this; } + @Override + public PremierAddOnImpl withTags(Map tags) { + this.inner().withTags(tags); + return this; + } + @Override public PremierAddOnImpl withKind(String kind) { - this.inner().withKind(kind); + if (isInCreateMode()) { + this.inner().withKind(kind); + } else { + this.updateParameter.withKind(kind); + } return this; } @Override public PremierAddOnImpl withMarketplaceOffer(String marketplaceOffer) { - this.inner().withMarketplaceOffer(marketplaceOffer); + if (isInCreateMode()) { + this.inner().withMarketplaceOffer(marketplaceOffer); + } else { + this.updateParameter.withMarketplaceOffer(marketplaceOffer); + } return this; } @Override public PremierAddOnImpl withMarketplacePublisher(String marketplacePublisher) { - this.inner().withMarketplacePublisher(marketplacePublisher); + if (isInCreateMode()) { + this.inner().withMarketplacePublisher(marketplacePublisher); + } else { + this.updateParameter.withMarketplacePublisher(marketplacePublisher); + } return this; } @Override public PremierAddOnImpl withProduct(String product) { - this.inner().withProduct(product); + if (isInCreateMode()) { + this.inner().withProduct(product); + } else { + this.updateParameter.withProduct(product); + } return this; } @Override public PremierAddOnImpl withSku(String sku) { - this.inner().withSku(sku); - return this; - } - - @Override - public PremierAddOnImpl withTags(Map tags) { - this.inner().withTags(tags); + if (isInCreateMode()) { + this.inner().withSku(sku); + } else { + this.updateParameter.withSku(sku); + } return this; } @Override public PremierAddOnImpl withVendor(String vendor) { - this.inner().withVendor(vendor); + if (isInCreateMode()) { + this.inner().withVendor(vendor); + } else { + this.updateParameter.withVendor(vendor); + } return this; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PrivateAccessImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PrivateAccessImpl.java index 824b9bbbd17f6..64011ad2ae784 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PrivateAccessImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PrivateAccessImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.PrivateAccessVirtualNetwork; class PrivateAccessImpl extends WrapperImpl implements PrivateAccess { - private final AppServiceManager manager; - PrivateAccessImpl(PrivateAccessInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + PrivateAccessImpl(PrivateAccessInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProcessInfoImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProcessInfoImpl.java index fd5a0e1628adb..300b0bea211e8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProcessInfoImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProcessInfoImpl.java @@ -19,15 +19,16 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ProcessThreadInfo; class ProcessInfoImpl extends IndexableRefreshableWrapperImpl implements ProcessInfo { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String processId; private String instanceId; - ProcessInfoImpl(ProcessInfoInner inner, AppServiceManager manager) { + ProcessInfoImpl(ProcessInfoInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.processId = IdParsingUtils.getValueFromIdByName(inner.id(), "processes"); @@ -35,7 +36,7 @@ class ProcessInfoImpl extends IndexableRefreshableWrapperImpl implements ProcessModuleInfo { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String processId; private String baseAddress; private String instanceId; - ProcessModuleInfoImpl(ProcessModuleInfoInner inner, AppServiceManager manager) { + ProcessModuleInfoImpl(ProcessModuleInfoInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.processId = IdParsingUtils.getValueFromIdByName(inner.id(), "processes"); @@ -31,7 +32,7 @@ class ProcessModuleInfoImpl extends IndexableRefreshableWrapperImpl implements ProcessThreadInfo { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String processId; private String threadId; private String instanceId; - ProcessThreadInfoImpl(ProcessThreadInfoInner inner, AppServiceManager manager) { + ProcessThreadInfoImpl(ProcessThreadInfoInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.processId = IdParsingUtils.getValueFromIdByName(inner.id(), "processes"); @@ -32,7 +33,7 @@ class ProcessThreadInfoImpl extends IndexableRefreshableWrapperImpl implements Providers { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - ProvidersImpl(AppServiceManager manager) { + ProvidersImpl(CertificateRegistrationManager manager) { super(manager.inner().providers()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProvidersInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProvidersInner.java index 4456db22cf4cf..64975639bedc7 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProvidersInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ProvidersInner.java @@ -189,7 +189,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * Get available application frameworks and their versions. * Get available application frameworks and their versions. * - * @param osTypeSelected Possible values include: 'Windows', 'Linux' + * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -230,7 +230,7 @@ public Observable>> call(String next * Get available application frameworks and their versions. * Get available application frameworks and their versions. * - * @param osTypeSelected Possible values include: 'Windows', 'Linux' + * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ApplicationStackInner> object */ @@ -248,7 +248,7 @@ public Page call(ServiceResponse>> call(ServiceResp * Get available application frameworks and their versions. * Get available application frameworks and their versions. * - ServiceResponse> * @param osTypeSelected Possible values include: 'Windows', 'Linux' + ServiceResponse> * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ApplicationStackInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -518,7 +518,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * Get available application frameworks and their versions. * Get available application frameworks and their versions. * - * @param osTypeSelected Possible values include: 'Windows', 'Linux' + * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -559,7 +559,7 @@ public Observable>> call(String next * Get available application frameworks and their versions. * Get available application frameworks and their versions. * - * @param osTypeSelected Possible values include: 'Windows', 'Linux' + * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ApplicationStackInner> object */ @@ -577,7 +577,7 @@ public Page call(ServiceResponse>> call(ServiceResp * Get available application frameworks and their versions. * Get available application frameworks and their versions. * - ServiceResponse> * @param osTypeSelected Possible values include: 'Windows', 'Linux' + ServiceResponse> * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ApplicationStackInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PublicCertificateImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PublicCertificateImpl.java index 6a3e46227f99b..ad0d8729fb759 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PublicCertificateImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PublicCertificateImpl.java @@ -14,12 +14,12 @@ import com.microsoft.azure.management.appservice.v2018_02_01.PublicCertificateLocation; class PublicCertificateImpl extends CreatableUpdatableImpl implements PublicCertificate, PublicCertificate.Definition, PublicCertificate.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String publicCertificateName; - PublicCertificateImpl(String name, AppServiceManager manager) { + PublicCertificateImpl(String name, CertificateRegistrationManager manager) { super(name, new PublicCertificateInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class PublicCertificateImpl extends CreatableUpdatableImpl implements PushSettings { - private final AppServiceManager manager; - PushSettingsImpl(PushSettingsInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + PushSettingsImpl(PushSettingsInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationImpl.java index 849129b556b3a..453dfe86cb5ae 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationImpl.java @@ -20,15 +20,15 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ResourceScopeType; class RecommendationImpl extends WrapperImpl implements Recommendation { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - RecommendationImpl(RecommendationInner inner, AppServiceManager manager) { + RecommendationImpl(RecommendationInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationInner.java index d14a48c3dd4b4..eb581e412dd8b 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationInner.java @@ -103,8 +103,8 @@ public class RecommendationInner extends ProxyOnlyResource { private Integer enabled; /** - * The list of states of this recommendation. If it's null then it shoud be - * considered "Active". + * The list of states of this recommendation. If it's null then it should + * be considered "Active". */ @JsonProperty(value = "properties.states") private List states; @@ -401,7 +401,7 @@ public RecommendationInner withEnabled(Integer enabled) { } /** - * Get the list of states of this recommendation. If it's null then it shoud be considered "Active". + * Get the list of states of this recommendation. If it's null then it should be considered "Active". * * @return the states value */ @@ -410,7 +410,7 @@ public List states() { } /** - * Set the list of states of this recommendation. If it's null then it shoud be considered "Active". + * Set the list of states of this recommendation. If it's null then it should be considered "Active". * * @param states the states value to set * @return the RecommendationInner object itself. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationRuleImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationRuleImpl.java index 1752f60f420a3..2b06f23653881 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationRuleImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationRuleImpl.java @@ -16,14 +16,14 @@ import java.util.UUID; class RecommendationRuleImpl extends WrapperImpl implements RecommendationRule { - private final AppServiceManager manager; - RecommendationRuleImpl(RecommendationRuleInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + RecommendationRuleImpl(RecommendationRuleInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsImpl.java index a182a21472aa4..25833d2bd75dd 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsImpl.java @@ -22,9 +22,9 @@ class RecommendationsImpl extends WrapperImpl implements Recommendations { private PagedListConverter converter; - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - RecommendationsImpl(AppServiceManager manager) { + RecommendationsImpl(CertificateRegistrationManager manager) { super(manager.inner().recommendations()); this.manager = manager; this.converter = new PagedListConverter() { @@ -35,7 +35,7 @@ public Observable typeConvertAsync(RecommendationInner inner) { }; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -55,6 +55,54 @@ public Completable disableRecommendationForSubscriptionAsync(String name) { return client.disableRecommendationForSubscriptionAsync(name).toCompletable(); } + @Override + public Observable listRecommendedRulesForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName) { + RecommendationsInner client = this.inner(); + return client.listRecommendedRulesForHostingEnvironmentAsync(resourceGroupName, hostingEnvironmentName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Recommendation call(RecommendationInner inner) { + return new RecommendationImpl(inner, manager()); + } + }); + } + + @Override + public Completable disableAllForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName) { + RecommendationsInner client = this.inner(); + return client.disableAllForHostingEnvironmentAsync(resourceGroupName, hostingEnvironmentName, environmentName).toCompletable(); + } + + @Override + public Completable resetAllFiltersForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName) { + RecommendationsInner client = this.inner(); + return client.resetAllFiltersForHostingEnvironmentAsync(resourceGroupName, hostingEnvironmentName, environmentName).toCompletable(); + } + + @Override + public Observable getRuleDetailsByHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String name) { + RecommendationsInner client = this.inner(); + return client.getRuleDetailsByHostingEnvironmentAsync(resourceGroupName, hostingEnvironmentName, name) + .map(new Func1() { + @Override + public RecommendationRule call(RecommendationRuleInner inner) { + return new RecommendationRuleImpl(inner, manager()); + } + }); + } + + @Override + public Completable disableRecommendationForHostingEnvironmentAsync(String resourceGroupName, String name, String hostingEnvironmentName, String environmentName) { + RecommendationsInner client = this.inner(); + return client.disableRecommendationForHostingEnvironmentAsync(resourceGroupName, name, hostingEnvironmentName, environmentName).toCompletable(); + } + @Override public Observable listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName) { RecommendationsInner client = this.inner(); @@ -127,6 +175,24 @@ public Recommendation call(RecommendationInner inner) { }); } + @Override + public Observable listHistoryForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName) { + RecommendationsInner client = this.inner(); + return client.listHistoryForHostingEnvironmentAsync(resourceGroupName, hostingEnvironmentName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Recommendation call(RecommendationInner inner) { + return new RecommendationImpl(inner, manager()); + } + }); + } + @Override public Observable listHistoryForWebAppAsync(final String resourceGroupName, final String siteName) { RecommendationsInner client = this.inner(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsInner.java index 29e11f058890f..56b9984c99155 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RecommendationsInner.java @@ -71,6 +71,30 @@ interface RecommendationsService { @POST("subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable") Observable> disableRecommendationForSubscription(@Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations listHistoryForHostingEnvironment" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory") + Observable> listHistoryForHostingEnvironment(@Path("resourceGroupName") String resourceGroupName, @Path("hostingEnvironmentName") String hostingEnvironmentName, @Path("subscriptionId") String subscriptionId, @Query("expiredOnly") Boolean expiredOnly, @Query(value = "$filter", encoded = true) String filter, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations listRecommendedRulesForHostingEnvironment" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations") + Observable> listRecommendedRulesForHostingEnvironment(@Path("resourceGroupName") String resourceGroupName, @Path("hostingEnvironmentName") String hostingEnvironmentName, @Path("subscriptionId") String subscriptionId, @Query("featured") Boolean featured, @Query(value = "$filter", encoded = true) String filter, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations disableAllForHostingEnvironment" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable") + Observable> disableAllForHostingEnvironment(@Path("resourceGroupName") String resourceGroupName, @Path("hostingEnvironmentName") String hostingEnvironmentName, @Path("subscriptionId") String subscriptionId, @Query("environmentName") String environmentName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations resetAllFiltersForHostingEnvironment" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset") + Observable> resetAllFiltersForHostingEnvironment(@Path("resourceGroupName") String resourceGroupName, @Path("hostingEnvironmentName") String hostingEnvironmentName, @Path("subscriptionId") String subscriptionId, @Query("environmentName") String environmentName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations getRuleDetailsByHostingEnvironment" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}") + Observable> getRuleDetailsByHostingEnvironment(@Path("resourceGroupName") String resourceGroupName, @Path("hostingEnvironmentName") String hostingEnvironmentName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("updateSeen") Boolean updateSeen, @Query("recommendationId") String recommendationId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations disableRecommendationForHostingEnvironment" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable") + Observable> disableRecommendationForHostingEnvironment(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("hostingEnvironmentName") String hostingEnvironmentName, @Path("subscriptionId") String subscriptionId, @Query("environmentName") String environmentName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations listHistoryForWebApp" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory") Observable> listHistoryForWebApp(@Path("resourceGroupName") String resourceGroupName, @Path("siteName") String siteName, @Path("subscriptionId") String subscriptionId, @Query("expiredOnly") Boolean expiredOnly, @Query(value = "$filter", encoded = true) String filter, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -99,6 +123,14 @@ interface RecommendationsService { @GET Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations listHistoryForHostingEnvironmentNext" }) + @GET + Observable> listHistoryForHostingEnvironmentNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations listRecommendedRulesForHostingEnvironmentNext" }) + @GET + Observable> listRecommendedRulesForHostingEnvironmentNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.Recommendations listHistoryForWebAppNext" }) @GET Observable> listHistoryForWebAppNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -221,7 +253,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * List all recommendations for a subscription. * * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -264,7 +296,7 @@ public Observable>> call(String nextPa * List all recommendations for a subscription. * * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ @@ -283,7 +315,7 @@ public Page call(ServiceResponse> * List all recommendations for a subscription. * * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ @@ -306,7 +338,7 @@ public Observable>> call(ServiceRespon * List all recommendations for a subscription. * ServiceResponse> * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - ServiceResponse> * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + ServiceResponse> * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -500,18 +532,18 @@ private ServiceResponse disableRecommendationForSubscriptionDelegate(Respo * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<RecommendationInner> object if successful. */ - public PagedList listHistoryForWebApp(final String resourceGroupName, final String siteName) { - ServiceResponse> response = listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName).toBlocking().single(); + public PagedList listHistoryForHostingEnvironment(final String resourceGroupName, final String hostingEnvironmentName) { + ServiceResponse> response = listHistoryForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return listHistoryForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + return listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } @@ -521,18 +553,18 @@ public Page nextPage(String nextPageLink) { * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName, final ListOperationCallback serviceCallback) { + public ServiceFuture> listHistoryForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName), + listHistoryForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { - return listHistoryForWebAppNextSinglePageAsync(nextPageLink); + return listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink); } }, serviceCallback); @@ -543,12 +575,12 @@ public Observable>> call(String nextPa * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName) { - return listHistoryForWebAppWithServiceResponseAsync(resourceGroupName, siteName) + public Observable> listHistoryForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName) { + return listHistoryForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -562,12 +594,12 @@ public Page call(ServiceResponse> * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable>> listHistoryForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName) { - return listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName) + public Observable>> listHistoryForHostingEnvironmentWithServiceResponseAsync(final String resourceGroupName, final String hostingEnvironmentName) { + return listHistoryForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -575,7 +607,7 @@ public Observable>> call(ServiceRespon if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listHistoryForWebAppNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listHistoryForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink)); } }); } @@ -585,16 +617,16 @@ public Observable>> call(ServiceRespon * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listHistoryForWebAppSinglePageAsync(final String resourceGroupName, final String siteName) { + public Observable>> listHistoryForHostingEnvironmentSinglePageAsync(final String resourceGroupName, final String hostingEnvironmentName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -604,12 +636,12 @@ public Observable>> listHistoryForWebA } final Boolean expiredOnly = null; final String filter = null; - return service.listHistoryForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), expiredOnly, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.listHistoryForHostingEnvironment(resourceGroupName, hostingEnvironmentName, this.client.subscriptionId(), expiredOnly, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listHistoryForWebAppDelegate(response); + ServiceResponse> result = listHistoryForHostingEnvironmentDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -623,20 +655,20 @@ public Observable>> call(Response listHistoryForWebApp(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { - ServiceResponse> response = listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName, expiredOnly, filter).toBlocking().single(); + public PagedList listHistoryForHostingEnvironment(final String resourceGroupName, final String hostingEnvironmentName, final Boolean expiredOnly, final String filter) { + ServiceResponse> response = listHistoryForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName, expiredOnly, filter).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return listHistoryForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + return listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } @@ -646,20 +678,20 @@ public Page nextPage(String nextPageLink) { * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. - * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter, final ListOperationCallback serviceCallback) { + public ServiceFuture> listHistoryForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean expiredOnly, final String filter, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName, expiredOnly, filter), + listHistoryForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName, expiredOnly, filter), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { - return listHistoryForWebAppNextSinglePageAsync(nextPageLink); + return listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink); } }, serviceCallback); @@ -670,14 +702,14 @@ public Observable>> call(String nextPa * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. - * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { - return listHistoryForWebAppWithServiceResponseAsync(resourceGroupName, siteName, expiredOnly, filter) + public Observable> listHistoryForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean expiredOnly, final String filter) { + return listHistoryForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, expiredOnly, filter) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -691,14 +723,14 @@ public Page call(ServiceResponse> * Get past recommendations for an app, optionally specified by the time range. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. - * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable>> listHistoryForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { - return listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName, expiredOnly, filter) + public Observable>> listHistoryForHostingEnvironmentWithServiceResponseAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean expiredOnly, final String filter) { + return listHistoryForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName, expiredOnly, filter) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -706,7 +738,7 @@ public Observable>> call(ServiceRespon if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listHistoryForWebAppNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listHistoryForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink)); } }); } @@ -716,18 +748,18 @@ public Observable>> call(ServiceRespon * Get past recommendations for an app, optionally specified by the time range. * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param siteName Name of the app. + ServiceResponse> * @param hostingEnvironmentName Name of the hosting environment. ServiceResponse> * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. - ServiceResponse> * @param filter Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D] + ServiceResponse> * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listHistoryForWebAppSinglePageAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { + public Observable>> listHistoryForHostingEnvironmentSinglePageAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean expiredOnly, final String filter) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -735,12 +767,12 @@ public Observable>> listHistoryForWebA if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listHistoryForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), expiredOnly, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.listHistoryForHostingEnvironment(resourceGroupName, hostingEnvironmentName, this.client.subscriptionId(), expiredOnly, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listHistoryForWebAppDelegate(response); + ServiceResponse> result = listHistoryForHostingEnvironmentDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -749,7 +781,7 @@ public Observable>> call(Response> listHistoryForWebAppDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listHistoryForHostingEnvironmentDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) @@ -761,18 +793,18 @@ private ServiceResponse> listHistoryForWebAppDeleg * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<RecommendationInner> object if successful. */ - public PagedList listRecommendedRulesForWebApp(final String resourceGroupName, final String siteName) { - ServiceResponse> response = listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName).toBlocking().single(); + public PagedList listRecommendedRulesForHostingEnvironment(final String resourceGroupName, final String hostingEnvironmentName) { + ServiceResponse> response = listRecommendedRulesForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + return listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } @@ -782,18 +814,18 @@ public Page nextPage(String nextPageLink) { * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName, final ListOperationCallback serviceCallback) { + public ServiceFuture> listRecommendedRulesForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName), + listRecommendedRulesForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { - return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink); + return listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink); } }, serviceCallback); @@ -804,12 +836,12 @@ public Observable>> call(String nextPa * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName) { - return listRecommendedRulesForWebAppWithServiceResponseAsync(resourceGroupName, siteName) + public Observable> listRecommendedRulesForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName) { + return listRecommendedRulesForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -823,12 +855,12 @@ public Page call(ServiceResponse> * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable>> listRecommendedRulesForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName) { - return listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName) + public Observable>> listRecommendedRulesForHostingEnvironmentWithServiceResponseAsync(final String resourceGroupName, final String hostingEnvironmentName) { + return listRecommendedRulesForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -836,7 +868,7 @@ public Observable>> call(ServiceRespon if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listRecommendedRulesForWebAppNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listRecommendedRulesForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink)); } }); } @@ -846,16 +878,16 @@ public Observable>> call(ServiceRespon * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listRecommendedRulesForWebAppSinglePageAsync(final String resourceGroupName, final String siteName) { + public Observable>> listRecommendedRulesForHostingEnvironmentSinglePageAsync(final String resourceGroupName, final String hostingEnvironmentName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -865,12 +897,12 @@ public Observable>> listRecommendedRul } final Boolean featured = null; final String filter = null; - return service.listRecommendedRulesForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), featured, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.listRecommendedRulesForHostingEnvironment(resourceGroupName, hostingEnvironmentName, this.client.subscriptionId(), featured, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listRecommendedRulesForWebAppDelegate(response); + ServiceResponse> result = listRecommendedRulesForHostingEnvironmentDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -884,20 +916,20 @@ public Observable>> call(Response listRecommendedRulesForWebApp(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { - ServiceResponse> response = listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName, featured, filter).toBlocking().single(); + public PagedList listRecommendedRulesForHostingEnvironment(final String resourceGroupName, final String hostingEnvironmentName, final Boolean featured, final String filter) { + ServiceResponse> response = listRecommendedRulesForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName, featured, filter).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + return listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } @@ -907,20 +939,20 @@ public Page nextPage(String nextPageLink) { * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' + * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter, final ListOperationCallback serviceCallback) { + public ServiceFuture> listRecommendedRulesForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean featured, final String filter, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName, featured, filter), + listRecommendedRulesForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName, featured, filter), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { - return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink); + return listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink); } }, serviceCallback); @@ -931,14 +963,14 @@ public Observable>> call(String nextPa * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' + * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { - return listRecommendedRulesForWebAppWithServiceResponseAsync(resourceGroupName, siteName, featured, filter) + public Observable> listRecommendedRulesForHostingEnvironmentAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean featured, final String filter) { + return listRecommendedRulesForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, featured, filter) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -952,14 +984,14 @@ public Page call(ServiceResponse> * Get all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the app. * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' + * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable>> listRecommendedRulesForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { - return listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName, featured, filter) + public Observable>> listRecommendedRulesForHostingEnvironmentWithServiceResponseAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean featured, final String filter) { + return listRecommendedRulesForHostingEnvironmentSinglePageAsync(resourceGroupName, hostingEnvironmentName, featured, filter) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -967,7 +999,7 @@ public Observable>> call(ServiceRespon if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listRecommendedRulesForWebAppNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listRecommendedRulesForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink)); } }); } @@ -977,18 +1009,18 @@ public Observable>> call(ServiceRespon * Get all recommendations for an app. * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param siteName Name of the app. + ServiceResponse> * @param hostingEnvironmentName Name of the app. ServiceResponse> * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. - ServiceResponse> * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' + ServiceResponse> * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listRecommendedRulesForWebAppSinglePageAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { + public Observable>> listRecommendedRulesForHostingEnvironmentSinglePageAsync(final String resourceGroupName, final String hostingEnvironmentName, final Boolean featured, final String filter) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -996,12 +1028,12 @@ public Observable>> listRecommendedRul if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listRecommendedRulesForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), featured, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.listRecommendedRulesForHostingEnvironment(resourceGroupName, hostingEnvironmentName, this.client.subscriptionId(), featured, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listRecommendedRulesForWebAppDelegate(response); + ServiceResponse> result = listRecommendedRulesForHostingEnvironmentDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -1010,7 +1042,7 @@ public Observable>> call(Response> listRecommendedRulesForWebAppDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listRecommendedRulesForHostingEnvironmentDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) @@ -1022,13 +1054,14 @@ private ServiceResponse> listRecommendedRulesForWe * Disable all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void disableAllForWebApp(String resourceGroupName, String siteName) { - disableAllForWebAppWithServiceResponseAsync(resourceGroupName, siteName).toBlocking().single().body(); + public void disableAllForHostingEnvironment(String resourceGroupName, String hostingEnvironmentName, String environmentName) { + disableAllForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, environmentName).toBlocking().single().body(); } /** @@ -1036,13 +1069,14 @@ public void disableAllForWebApp(String resourceGroupName, String siteName) { * Disable all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture disableAllForWebAppAsync(String resourceGroupName, String siteName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(disableAllForWebAppWithServiceResponseAsync(resourceGroupName, siteName), serviceCallback); + public ServiceFuture disableAllForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(disableAllForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, environmentName), serviceCallback); } /** @@ -1050,12 +1084,13 @@ public ServiceFuture disableAllForWebAppAsync(String resourceGroupName, St * Disable all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable disableAllForWebAppAsync(String resourceGroupName, String siteName) { - return disableAllForWebAppWithServiceResponseAsync(resourceGroupName, siteName).map(new Func1, Void>() { + public Observable disableAllForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName) { + return disableAllForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, environmentName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -1068,29 +1103,33 @@ public Void call(ServiceResponse response) { * Disable all recommendations for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> disableAllForWebAppWithServiceResponseAsync(String resourceGroupName, String siteName) { + public Observable> disableAllForHostingEnvironmentWithServiceResponseAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (environmentName == null) { + throw new IllegalArgumentException("Parameter environmentName is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.disableAllForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.disableAllForHostingEnvironment(resourceGroupName, hostingEnvironmentName, this.client.subscriptionId(), environmentName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = disableAllForWebAppDelegate(response); + ServiceResponse clientResponse = disableAllForHostingEnvironmentDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1099,7 +1138,7 @@ public Observable> call(Response response) { }); } - private ServiceResponse disableAllForWebAppDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse disableAllForHostingEnvironmentDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(204, new TypeToken() { }.getType()) .registerError(CloudException.class) @@ -1111,13 +1150,14 @@ private ServiceResponse disableAllForWebAppDelegate(Response * Reset all recommendation opt-out settings for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void resetAllFiltersForWebApp(String resourceGroupName, String siteName) { - resetAllFiltersForWebAppWithServiceResponseAsync(resourceGroupName, siteName).toBlocking().single().body(); + public void resetAllFiltersForHostingEnvironment(String resourceGroupName, String hostingEnvironmentName, String environmentName) { + resetAllFiltersForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, environmentName).toBlocking().single().body(); } /** @@ -1125,13 +1165,14 @@ public void resetAllFiltersForWebApp(String resourceGroupName, String siteName) * Reset all recommendation opt-out settings for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture resetAllFiltersForWebAppAsync(String resourceGroupName, String siteName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(resetAllFiltersForWebAppWithServiceResponseAsync(resourceGroupName, siteName), serviceCallback); + public ServiceFuture resetAllFiltersForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(resetAllFiltersForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, environmentName), serviceCallback); } /** @@ -1139,12 +1180,13 @@ public ServiceFuture resetAllFiltersForWebAppAsync(String resourceGroupNam * Reset all recommendation opt-out settings for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable resetAllFiltersForWebAppAsync(String resourceGroupName, String siteName) { - return resetAllFiltersForWebAppWithServiceResponseAsync(resourceGroupName, siteName).map(new Func1, Void>() { + public Observable resetAllFiltersForHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName) { + return resetAllFiltersForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, environmentName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -1157,29 +1199,33 @@ public Void call(ServiceResponse response) { * Reset all recommendation opt-out settings for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName the String value + * @param environmentName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> resetAllFiltersForWebAppWithServiceResponseAsync(String resourceGroupName, String siteName) { + public Observable> resetAllFiltersForHostingEnvironmentWithServiceResponseAsync(String resourceGroupName, String hostingEnvironmentName, String environmentName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (environmentName == null) { + throw new IllegalArgumentException("Parameter environmentName is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.resetAllFiltersForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.resetAllFiltersForHostingEnvironment(resourceGroupName, hostingEnvironmentName, this.client.subscriptionId(), environmentName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = resetAllFiltersForWebAppDelegate(response); + ServiceResponse clientResponse = resetAllFiltersForHostingEnvironmentDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1188,7 +1234,7 @@ public Observable> call(Response response) { }); } - private ServiceResponse resetAllFiltersForWebAppDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse resetAllFiltersForHostingEnvironmentDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(204, new TypeToken() { }.getType()) .registerError(CloudException.class) @@ -1200,15 +1246,15 @@ private ServiceResponse resetAllFiltersForWebAppDelegate(Response getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name), serviceCallback); + public ServiceFuture getRuleDetailsByHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getRuleDetailsByHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, name), serviceCallback); } /** @@ -1231,13 +1277,13 @@ public ServiceFuture getRuleDetailsByWebAppAsync(String * Get a recommendation rule for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param name Name of the recommendation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RecommendationRuleInner object */ - public Observable getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name) { - return getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name).map(new Func1, RecommendationRuleInner>() { + public Observable getRuleDetailsByHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String name) { + return getRuleDetailsByHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, name).map(new Func1, RecommendationRuleInner>() { @Override public RecommendationRuleInner call(ServiceResponse response) { return response.body(); @@ -1250,17 +1296,17 @@ public RecommendationRuleInner call(ServiceResponse res * Get a recommendation rule for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param name Name of the recommendation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RecommendationRuleInner object */ - public Observable> getRuleDetailsByWebAppWithServiceResponseAsync(String resourceGroupName, String siteName, String name) { + public Observable> getRuleDetailsByHostingEnvironmentWithServiceResponseAsync(String resourceGroupName, String hostingEnvironmentName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); @@ -1273,12 +1319,12 @@ public Observable> getRuleDetailsByWebA } final Boolean updateSeen = null; final String recommendationId = null; - return service.getRuleDetailsByWebApp(resourceGroupName, siteName, name, this.client.subscriptionId(), updateSeen, recommendationId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.getRuleDetailsByHostingEnvironment(resourceGroupName, hostingEnvironmentName, name, this.client.subscriptionId(), updateSeen, recommendationId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = getRuleDetailsByWebAppDelegate(response); + ServiceResponse clientResponse = getRuleDetailsByHostingEnvironmentDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1292,17 +1338,17 @@ public Observable> call(Response getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name, updateSeen, recommendationId), serviceCallback); + public ServiceFuture getRuleDetailsByHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String name, Boolean updateSeen, String recommendationId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getRuleDetailsByHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, name, updateSeen, recommendationId), serviceCallback); } /** @@ -1327,15 +1373,15 @@ public ServiceFuture getRuleDetailsByWebAppAsync(String * Get a recommendation rule for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param name Name of the recommendation. * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. - * @param recommendationId The GUID of the recommedation object if you query an expired one. You don't need to specify it to query an active entry. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RecommendationRuleInner object */ - public Observable getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId) { - return getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name, updateSeen, recommendationId).map(new Func1, RecommendationRuleInner>() { + public Observable getRuleDetailsByHostingEnvironmentAsync(String resourceGroupName, String hostingEnvironmentName, String name, Boolean updateSeen, String recommendationId) { + return getRuleDetailsByHostingEnvironmentWithServiceResponseAsync(resourceGroupName, hostingEnvironmentName, name, updateSeen, recommendationId).map(new Func1, RecommendationRuleInner>() { @Override public RecommendationRuleInner call(ServiceResponse response) { return response.body(); @@ -1348,19 +1394,19 @@ public RecommendationRuleInner call(ServiceResponse res * Get a recommendation rule for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Name of the app. + * @param hostingEnvironmentName Name of the hosting environment. * @param name Name of the recommendation. * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. - * @param recommendationId The GUID of the recommedation object if you query an expired one. You don't need to specify it to query an active entry. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RecommendationRuleInner object */ - public Observable> getRuleDetailsByWebAppWithServiceResponseAsync(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId) { + public Observable> getRuleDetailsByHostingEnvironmentWithServiceResponseAsync(String resourceGroupName, String hostingEnvironmentName, String name, Boolean updateSeen, String recommendationId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); @@ -1371,12 +1417,12 @@ public Observable> getRuleDetailsByWebA if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getRuleDetailsByWebApp(resourceGroupName, siteName, name, this.client.subscriptionId(), updateSeen, recommendationId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.getRuleDetailsByHostingEnvironment(resourceGroupName, hostingEnvironmentName, name, this.client.subscriptionId(), updateSeen, recommendationId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = getRuleDetailsByWebAppDelegate(response); + ServiceResponse clientResponse = getRuleDetailsByHostingEnvironmentDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1385,7 +1431,7 @@ public Observable> call(Response getRuleDetailsByWebAppDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse getRuleDetailsByHostingEnvironmentDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) @@ -1397,14 +1443,15 @@ private ServiceResponse getRuleDetailsByWebAppDelegate( * Disables the specific rule for a web site permanently. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site name * @param name Rule name + * @param hostingEnvironmentName the String value + * @param environmentName Site name * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void disableRecommendationForSite(String resourceGroupName, String siteName, String name) { - disableRecommendationForSiteWithServiceResponseAsync(resourceGroupName, siteName, name).toBlocking().single().body(); + public void disableRecommendationForHostingEnvironment(String resourceGroupName, String name, String hostingEnvironmentName, String environmentName) { + disableRecommendationForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, name, hostingEnvironmentName, environmentName).toBlocking().single().body(); } /** @@ -1412,14 +1459,15 @@ public void disableRecommendationForSite(String resourceGroupName, String siteNa * Disables the specific rule for a web site permanently. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site name * @param name Rule name + * @param hostingEnvironmentName the String value + * @param environmentName Site name * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture disableRecommendationForSiteAsync(String resourceGroupName, String siteName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(disableRecommendationForSiteWithServiceResponseAsync(resourceGroupName, siteName, name), serviceCallback); + public ServiceFuture disableRecommendationForHostingEnvironmentAsync(String resourceGroupName, String name, String hostingEnvironmentName, String environmentName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(disableRecommendationForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, name, hostingEnvironmentName, environmentName), serviceCallback); } /** @@ -1427,13 +1475,14 @@ public ServiceFuture disableRecommendationForSiteAsync(String resourceGrou * Disables the specific rule for a web site permanently. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site name * @param name Rule name + * @param hostingEnvironmentName the String value + * @param environmentName Site name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable disableRecommendationForSiteAsync(String resourceGroupName, String siteName, String name) { - return disableRecommendationForSiteWithServiceResponseAsync(resourceGroupName, siteName, name).map(new Func1, Void>() { + public Observable disableRecommendationForHostingEnvironmentAsync(String resourceGroupName, String name, String hostingEnvironmentName, String environmentName) { + return disableRecommendationForHostingEnvironmentWithServiceResponseAsync(resourceGroupName, name, hostingEnvironmentName, environmentName).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -1446,33 +1495,37 @@ public Void call(ServiceResponse response) { * Disables the specific rule for a web site permanently. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param siteName Site name * @param name Rule name + * @param hostingEnvironmentName the String value + * @param environmentName Site name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> disableRecommendationForSiteWithServiceResponseAsync(String resourceGroupName, String siteName, String name) { + public Observable> disableRecommendationForHostingEnvironmentWithServiceResponseAsync(String resourceGroupName, String name, String hostingEnvironmentName, String environmentName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - if (siteName == null) { - throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); - } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (hostingEnvironmentName == null) { + throw new IllegalArgumentException("Parameter hostingEnvironmentName is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (environmentName == null) { + throw new IllegalArgumentException("Parameter environmentName is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.disableRecommendationForSite(resourceGroupName, siteName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.disableRecommendationForHostingEnvironment(resourceGroupName, name, hostingEnvironmentName, this.client.subscriptionId(), environmentName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = disableRecommendationForSiteDelegate(response); + ServiceResponse clientResponse = disableRecommendationForHostingEnvironmentDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1481,7 +1534,7 @@ public Observable> call(Response response) { }); } - private ServiceResponse disableRecommendationForSiteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse disableRecommendationForHostingEnvironmentDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) @@ -1489,57 +1542,59 @@ private ServiceResponse disableRecommendationForSiteDelegate(Response listNext(final String nextPageLink) { - ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + public PagedList listHistoryForWebApp(final String resourceGroupName, final String siteName) { + ServiceResponse> response = listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + return listHistoryForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * List all recommendations for a subscription. - * List all recommendations for a subscription. + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. * - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + public ServiceFuture> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listNextSinglePageAsync(nextPageLink), + listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { - return listNextSinglePageAsync(nextPageLink); + return listHistoryForWebAppNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * List all recommendations for a subscription. - * List all recommendations for a subscription. + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. * - * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable> listNextAsync(final String nextPageLink) { - return listNextWithServiceResponseAsync(nextPageLink) + public Observable> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName) { + return listHistoryForWebAppWithServiceResponseAsync(resourceGroupName, siteName) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -1549,15 +1604,16 @@ public Page call(ServiceResponse> } /** - * List all recommendations for a subscription. - * List all recommendations for a subscription. + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. * - * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<RecommendationInner> object */ - public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { - return listNextSinglePageAsync(nextPageLink) + public Observable>> listHistoryForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName) { + return listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -1565,35 +1621,1025 @@ public Observable>> call(ServiceRespon if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listHistoryForWebAppNextWithServiceResponseAsync(nextPageLink)); } }); } /** - * List all recommendations for a subscription. - * List all recommendations for a subscription. + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. * - ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listNextSinglePageAsync(final String nextPageLink) { - if (nextPageLink == null) { - throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + public Observable>> listHistoryForWebAppSinglePageAsync(final String resourceGroupName, final String siteName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } - String nextUrl = String.format("%s", nextPageLink); - return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listNextDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Boolean expiredOnly = null; + final String filter = null; + return service.listHistoryForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), expiredOnly, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listHistoryForWebAppDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RecommendationInner> object if successful. + */ + public PagedList listHistoryForWebApp(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { + ServiceResponse> response = listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName, expiredOnly, filter).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listHistoryForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName, expiredOnly, filter), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listHistoryForWebAppNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable> listHistoryForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { + return listHistoryForWebAppWithServiceResponseAsync(resourceGroupName, siteName, expiredOnly, filter) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. + * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable>> listHistoryForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { + return listHistoryForWebAppSinglePageAsync(resourceGroupName, siteName, expiredOnly, filter) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listHistoryForWebAppNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Name of the app. + ServiceResponse> * @param expiredOnly Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations. + ServiceResponse> * @param filter Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D] + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listHistoryForWebAppSinglePageAsync(final String resourceGroupName, final String siteName, final Boolean expiredOnly, final String filter) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listHistoryForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), expiredOnly, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listHistoryForWebAppDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listHistoryForWebAppDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RecommendationInner> object if successful. + */ + public PagedList listRecommendedRulesForWebApp(final String resourceGroupName, final String siteName) { + ServiceResponse> response = listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName) { + return listRecommendedRulesForWebAppWithServiceResponseAsync(resourceGroupName, siteName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable>> listRecommendedRulesForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName) { + return listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listRecommendedRulesForWebAppNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listRecommendedRulesForWebAppSinglePageAsync(final String resourceGroupName, final String siteName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Boolean featured = null; + final String filter = null; + return service.listRecommendedRulesForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), featured, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listRecommendedRulesForWebAppDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. + * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RecommendationInner> object if successful. + */ + public PagedList listRecommendedRulesForWebApp(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { + ServiceResponse> response = listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName, featured, filter).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. + * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName, featured, filter), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listRecommendedRulesForWebAppNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. + * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable> listRecommendedRulesForWebAppAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { + return listRecommendedRulesForWebAppWithServiceResponseAsync(resourceGroupName, siteName, featured, filter) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. + * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable>> listRecommendedRulesForWebAppWithServiceResponseAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { + return listRecommendedRulesForWebAppSinglePageAsync(resourceGroupName, siteName, featured, filter) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listRecommendedRulesForWebAppNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param siteName Name of the app. + ServiceResponse> * @param featured Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations. + ServiceResponse> * @param filter Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listRecommendedRulesForWebAppSinglePageAsync(final String resourceGroupName, final String siteName, final Boolean featured, final String filter) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listRecommendedRulesForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), featured, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listRecommendedRulesForWebAppDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listRecommendedRulesForWebAppDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Disable all recommendations for an app. + * Disable all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void disableAllForWebApp(String resourceGroupName, String siteName) { + disableAllForWebAppWithServiceResponseAsync(resourceGroupName, siteName).toBlocking().single().body(); + } + + /** + * Disable all recommendations for an app. + * Disable all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture disableAllForWebAppAsync(String resourceGroupName, String siteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(disableAllForWebAppWithServiceResponseAsync(resourceGroupName, siteName), serviceCallback); + } + + /** + * Disable all recommendations for an app. + * Disable all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable disableAllForWebAppAsync(String resourceGroupName, String siteName) { + return disableAllForWebAppWithServiceResponseAsync(resourceGroupName, siteName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Disable all recommendations for an app. + * Disable all recommendations for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> disableAllForWebAppWithServiceResponseAsync(String resourceGroupName, String siteName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.disableAllForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = disableAllForWebAppDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse disableAllForWebAppDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Reset all recommendation opt-out settings for an app. + * Reset all recommendation opt-out settings for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void resetAllFiltersForWebApp(String resourceGroupName, String siteName) { + resetAllFiltersForWebAppWithServiceResponseAsync(resourceGroupName, siteName).toBlocking().single().body(); + } + + /** + * Reset all recommendation opt-out settings for an app. + * Reset all recommendation opt-out settings for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture resetAllFiltersForWebAppAsync(String resourceGroupName, String siteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(resetAllFiltersForWebAppWithServiceResponseAsync(resourceGroupName, siteName), serviceCallback); + } + + /** + * Reset all recommendation opt-out settings for an app. + * Reset all recommendation opt-out settings for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable resetAllFiltersForWebAppAsync(String resourceGroupName, String siteName) { + return resetAllFiltersForWebAppWithServiceResponseAsync(resourceGroupName, siteName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Reset all recommendation opt-out settings for an app. + * Reset all recommendation opt-out settings for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> resetAllFiltersForWebAppWithServiceResponseAsync(String resourceGroupName, String siteName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.resetAllFiltersForWebApp(resourceGroupName, siteName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = resetAllFiltersForWebAppDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse resetAllFiltersForWebAppDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RecommendationRuleInner object if successful. + */ + public RecommendationRuleInner getRuleDetailsByWebApp(String resourceGroupName, String siteName, String name) { + return getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name).toBlocking().single().body(); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name), serviceCallback); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RecommendationRuleInner object + */ + public Observable getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name) { + return getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name).map(new Func1, RecommendationRuleInner>() { + @Override + public RecommendationRuleInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RecommendationRuleInner object + */ + public Observable> getRuleDetailsByWebAppWithServiceResponseAsync(String resourceGroupName, String siteName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Boolean updateSeen = null; + final String recommendationId = null; + return service.getRuleDetailsByWebApp(resourceGroupName, siteName, name, this.client.subscriptionId(), updateSeen, recommendationId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getRuleDetailsByWebAppDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RecommendationRuleInner object if successful. + */ + public RecommendationRuleInner getRuleDetailsByWebApp(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId) { + return getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name, updateSeen, recommendationId).toBlocking().single().body(); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name, updateSeen, recommendationId), serviceCallback); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RecommendationRuleInner object + */ + public Observable getRuleDetailsByWebAppAsync(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId) { + return getRuleDetailsByWebAppWithServiceResponseAsync(resourceGroupName, siteName, name, updateSeen, recommendationId).map(new Func1, RecommendationRuleInner>() { + @Override + public RecommendationRuleInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a recommendation rule for an app. + * Get a recommendation rule for an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Name of the app. + * @param name Name of the recommendation. + * @param updateSeen Specify <code>true</code> to update the last-seen timestamp of the recommendation object. + * @param recommendationId The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RecommendationRuleInner object + */ + public Observable> getRuleDetailsByWebAppWithServiceResponseAsync(String resourceGroupName, String siteName, String name, Boolean updateSeen, String recommendationId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getRuleDetailsByWebApp(resourceGroupName, siteName, name, this.client.subscriptionId(), updateSeen, recommendationId, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getRuleDetailsByWebAppDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getRuleDetailsByWebAppDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Disables the specific rule for a web site permanently. + * Disables the specific rule for a web site permanently. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site name + * @param name Rule name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void disableRecommendationForSite(String resourceGroupName, String siteName, String name) { + disableRecommendationForSiteWithServiceResponseAsync(resourceGroupName, siteName, name).toBlocking().single().body(); + } + + /** + * Disables the specific rule for a web site permanently. + * Disables the specific rule for a web site permanently. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site name + * @param name Rule name + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture disableRecommendationForSiteAsync(String resourceGroupName, String siteName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(disableRecommendationForSiteWithServiceResponseAsync(resourceGroupName, siteName, name), serviceCallback); + } + + /** + * Disables the specific rule for a web site permanently. + * Disables the specific rule for a web site permanently. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site name + * @param name Rule name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable disableRecommendationForSiteAsync(String resourceGroupName, String siteName, String name) { + return disableRecommendationForSiteWithServiceResponseAsync(resourceGroupName, siteName, name).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Disables the specific rule for a web site permanently. + * Disables the specific rule for a web site permanently. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param siteName Site name + * @param name Rule name + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> disableRecommendationForSiteWithServiceResponseAsync(String resourceGroupName, String siteName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (siteName == null) { + throw new IllegalArgumentException("Parameter siteName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.disableRecommendationForSite(resourceGroupName, siteName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = disableRecommendationForSiteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse disableRecommendationForSiteDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * List all recommendations for a subscription. + * List all recommendations for a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RecommendationInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List all recommendations for a subscription. + * List all recommendations for a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List all recommendations for a subscription. + * List all recommendations for a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List all recommendations for a subscription. + * List all recommendations for a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List all recommendations for a subscription. + * List all recommendations for a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } }); } @@ -1604,6 +2650,238 @@ private ServiceResponse> listNextDelegate(Response .build(response); } + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RecommendationInner> object if successful. + */ + public PagedList listHistoryForHostingEnvironmentNext(final String nextPageLink) { + ServiceResponse> response = listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listHistoryForHostingEnvironmentNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable> listHistoryForHostingEnvironmentNextAsync(final String nextPageLink) { + return listHistoryForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable>> listHistoryForHostingEnvironmentNextWithServiceResponseAsync(final String nextPageLink) { + return listHistoryForHostingEnvironmentNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listHistoryForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get past recommendations for an app, optionally specified by the time range. + * Get past recommendations for an app, optionally specified by the time range. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listHistoryForHostingEnvironmentNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listHistoryForHostingEnvironmentNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listHistoryForHostingEnvironmentNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listHistoryForHostingEnvironmentNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<RecommendationInner> object if successful. + */ + public PagedList listRecommendedRulesForHostingEnvironmentNext(final String nextPageLink) { + ServiceResponse> response = listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listRecommendedRulesForHostingEnvironmentNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable> listRecommendedRulesForHostingEnvironmentNextAsync(final String nextPageLink) { + return listRecommendedRulesForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<RecommendationInner> object + */ + public Observable>> listRecommendedRulesForHostingEnvironmentNextWithServiceResponseAsync(final String nextPageLink) { + return listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listRecommendedRulesForHostingEnvironmentNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get all recommendations for an app. + * Get all recommendations for an app. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<RecommendationInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listRecommendedRulesForHostingEnvironmentNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listRecommendedRulesForHostingEnvironmentNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listRecommendedRulesForHostingEnvironmentNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listRecommendedRulesForHostingEnvironmentNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Get past recommendations for an app, optionally specified by the time range. * Get past recommendations for an app, optionally specified by the time range. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RelayServiceConnectionEntityImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RelayServiceConnectionEntityImpl.java index b5e9eba714e70..49151e38c9863 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RelayServiceConnectionEntityImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RelayServiceConnectionEntityImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class RelayServiceConnectionEntityImpl extends WrapperImpl implements RelayServiceConnectionEntity { - private final AppServiceManager manager; - RelayServiceConnectionEntityImpl(RelayServiceConnectionEntityInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + RelayServiceConnectionEntityImpl(RelayServiceConnectionEntityInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadataImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadataImpl.java new file mode 100644 index 0000000000000..0cd10014315b5 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadataImpl.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadata; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class ResourceHealthMetadataImpl extends WrapperImpl implements ResourceHealthMetadata { + private final CertificateRegistrationManager manager; + ResourceHealthMetadataImpl(ResourceHealthMetadataInner inner, CertificateRegistrationManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public CertificateRegistrationManager manager() { + return this.manager; + } + + @Override + public String category() { + return this.inner().category(); + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String kind() { + return this.inner().kind(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public Boolean signalAvailability() { + return this.inner().signalAvailability(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadataInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadataInner.java new file mode 100644 index 0000000000000..fd288dbd36f23 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadataInner.java @@ -0,0 +1,72 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource; + +/** + * Used for getting ResourceHealthCheck settings. + */ +@JsonFlatten +public class ResourceHealthMetadataInner extends ProxyOnlyResource { + /** + * The category that the resource matches in the RHC Policy File. + */ + @JsonProperty(value = "properties.category") + private String category; + + /** + * Is there a health signal for the resource. + */ + @JsonProperty(value = "properties.signalAvailability") + private Boolean signalAvailability; + + /** + * Get the category that the resource matches in the RHC Policy File. + * + * @return the category value + */ + public String category() { + return this.category; + } + + /** + * Set the category that the resource matches in the RHC Policy File. + * + * @param category the category value to set + * @return the ResourceHealthMetadataInner object itself. + */ + public ResourceHealthMetadataInner withCategory(String category) { + this.category = category; + return this; + } + + /** + * Get is there a health signal for the resource. + * + * @return the signalAvailability value + */ + public Boolean signalAvailability() { + return this.signalAvailability; + } + + /** + * Set is there a health signal for the resource. + * + * @param signalAvailability the signalAvailability value to set + * @return the ResourceHealthMetadataInner object itself. + */ + public ResourceHealthMetadataInner withSignalAvailability(Boolean signalAvailability) { + this.signalAvailability = signalAvailability; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadatasImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadatasImpl.java new file mode 100644 index 0000000000000..fee8abd0c8493 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadatasImpl.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * abc + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.arm.model.implementation.WrapperImpl; +import com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas; +import rx.functions.Func1; +import rx.Observable; +import com.microsoft.azure.Page; +import com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadata; + +class ResourceHealthMetadatasImpl extends WrapperImpl implements ResourceHealthMetadatas { + private final CertificateRegistrationManager manager; + + ResourceHealthMetadatasImpl(CertificateRegistrationManager manager) { + super(manager.inner().resourceHealthMetadatas()); + this.manager = manager; + } + + public CertificateRegistrationManager manager() { + return this.manager; + } + + @Override + public Observable listBySiteAsync(final String resourceGroupName, final String name) { + ResourceHealthMetadatasInner client = this.inner(); + return client.listBySiteAsync(resourceGroupName, name) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public ResourceHealthMetadata call(ResourceHealthMetadataInner inner) { + return new ResourceHealthMetadataImpl(inner, manager()); + } + }); + } + + @Override + public Observable getBySiteAsync(String resourceGroupName, String name) { + ResourceHealthMetadatasInner client = this.inner(); + return client.getBySiteAsync(resourceGroupName, name) + .map(new Func1() { + @Override + public ResourceHealthMetadata call(ResourceHealthMetadataInner inner) { + return new ResourceHealthMetadataImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAsync() { + ResourceHealthMetadatasInner client = this.inner(); + return client.listAsync() + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public ResourceHealthMetadata call(ResourceHealthMetadataInner inner) { + return new ResourceHealthMetadataImpl(inner, manager()); + } + }); + } + + @Override + public Observable listByResourceGroupAsync(final String resourceGroupName) { + ResourceHealthMetadatasInner client = this.inner(); + return client.listByResourceGroupAsync(resourceGroupName) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public ResourceHealthMetadata call(ResourceHealthMetadataInner inner) { + return new ResourceHealthMetadataImpl(inner, manager()); + } + }); + } + + @Override + public Observable listBySiteSlotAsync(final String resourceGroupName, final String name, final String slot) { + ResourceHealthMetadatasInner client = this.inner(); + return client.listBySiteSlotAsync(resourceGroupName, name, slot) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public ResourceHealthMetadata call(ResourceHealthMetadataInner inner) { + return new ResourceHealthMetadataImpl(inner, manager()); + } + }); + } + + @Override + public Observable getBySiteSlotAsync(String resourceGroupName, String name, String slot) { + ResourceHealthMetadatasInner client = this.inner(); + return client.getBySiteSlotAsync(resourceGroupName, name, slot) + .map(new Func1() { + @Override + public ResourceHealthMetadata call(ResourceHealthMetadataInner inner) { + return new ResourceHealthMetadataImpl(inner, manager()); + } + }); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadatasInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadatasInner.java new file mode 100644 index 0000000000000..040cd5f0e0ca2 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceHealthMetadatasInner.java @@ -0,0 +1,1250 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.arm.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.appservice.v2018_02_01.DefaultErrorResponseException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in ResourceHealthMetadatas. + */ +public class ResourceHealthMetadatasInner implements InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private ResourceHealthMetadatasService service; + /** The service client containing this operation class. */ + private WebSiteManagementClientImpl client; + + /** + * Initializes an instance of ResourceHealthMetadatasInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public ResourceHealthMetadatasInner(Retrofit retrofit, WebSiteManagementClientImpl client) { + this.service = retrofit.create(ResourceHealthMetadatasService.class); + this.client = client; + } + + /** + * The interface defining all the services for ResourceHealthMetadatas to be + * used by Retrofit to perform actually REST calls. + */ + interface ResourceHealthMetadatasService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Web/resourceHealthMetadata") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/resourceHealthMetadata") + Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas listBySite" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata") + Observable> listBySite(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas getBySite" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default") + Observable> getBySite(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas listBySiteSlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata") + Observable> listBySiteSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas getBySiteSlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata/default") + Observable> getBySiteSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas listBySiteNext" }) + @GET + Observable> listBySiteNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.ResourceHealthMetadatas listBySiteSlotNext" }) + @GET + Observable> listBySiteSlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList listBySite(final String resourceGroupName, final String name) { + ServiceResponse> response = listBySiteSinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listBySiteNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listBySiteAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listBySiteSinglePageAsync(resourceGroupName, name), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listBySiteNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listBySiteAsync(final String resourceGroupName, final String name) { + return listBySiteWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listBySiteWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listBySiteSinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listBySiteNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listBySiteSinglePageAsync(final String resourceGroupName, final String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listBySite(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listBySiteDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listBySiteDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceHealthMetadataInner object if successful. + */ + public ResourceHealthMetadataInner getBySite(String resourceGroupName, String name) { + return getBySiteWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getBySiteAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getBySiteWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceHealthMetadataInner object + */ + public Observable getBySiteAsync(String resourceGroupName, String name) { + return getBySiteWithServiceResponseAsync(resourceGroupName, name).map(new Func1, ResourceHealthMetadataInner>() { + @Override + public ResourceHealthMetadataInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceHealthMetadataInner object + */ + public Observable> getBySiteWithServiceResponseAsync(String resourceGroupName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getBySite(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getBySiteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getBySiteDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList listBySiteSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listBySiteSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listBySiteSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listBySiteSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listBySiteSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listBySiteSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listBySiteSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listBySiteSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listBySiteSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listBySiteSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listBySiteSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of web app. + ServiceResponse> * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listBySiteSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listBySiteSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listBySiteSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listBySiteSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ResourceHealthMetadataInner object if successful. + */ + public ResourceHealthMetadataInner getBySiteSlot(String resourceGroupName, String name, String slot) { + return getBySiteSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getBySiteSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getBySiteSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceHealthMetadataInner object + */ + public Observable getBySiteSlotAsync(String resourceGroupName, String name, String slot) { + return getBySiteSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, ResourceHealthMetadataInner>() { + @Override + public ResourceHealthMetadataInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site. + * Gets the category of ResourceHealthMetadata to use for the given site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app + * @param slot Name of web app slot. If not specified then will default to production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ResourceHealthMetadataInner object + */ + public Observable> getBySiteSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getBySiteSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getBySiteSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getBySiteSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the subscription. + * List all ResourceHealthMetadata for all sites in the subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * List all ResourceHealthMetadata for all sites in the resource group in the subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList listBySiteNext(final String nextPageLink) { + ServiceResponse> response = listBySiteNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listBySiteNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listBySiteNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listBySiteNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listBySiteNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listBySiteNextAsync(final String nextPageLink) { + return listBySiteNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listBySiteNextWithServiceResponseAsync(final String nextPageLink) { + return listBySiteNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listBySiteNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listBySiteNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listBySiteNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listBySiteNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listBySiteNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceHealthMetadataInner> object if successful. + */ + public PagedList listBySiteSlotNext(final String nextPageLink) { + ServiceResponse> response = listBySiteSlotNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listBySiteSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listBySiteSlotNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listBySiteSlotNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listBySiteSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable> listBySiteSlotNextAsync(final String nextPageLink) { + return listBySiteSlotNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceHealthMetadataInner> object + */ + public Observable>> listBySiteSlotNextWithServiceResponseAsync(final String nextPageLink) { + return listBySiteSlotNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listBySiteSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * Gets the category of ResourceHealthMetadata to use for the given site as a collection. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceHealthMetadataInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listBySiteSlotNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listBySiteSlotNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listBySiteSlotNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listBySiteSlotNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceNameAvailabilityInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceNameAvailabilityInner.java index 43b4e17c7785c..58d270ec2413c 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceNameAvailabilityInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ResourceNameAvailabilityInner.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Information regarding availbility of a resource name. + * Information regarding availability of a resource name. */ public class ResourceNameAvailabilityInner { /** diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RestoreRequestImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RestoreRequestImpl.java index 436396bac0c83..b07de0571eaa1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RestoreRequestImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/RestoreRequestImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.BackupRestoreOperationType; class RestoreRequestImpl extends WrapperImpl implements RestoreRequest { - private final AppServiceManager manager; - RestoreRequestImpl(RestoreRequestInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + RestoreRequestImpl(RestoreRequestInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmCsmUsageQuotaImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmCsmUsageQuotaImpl.java index 0d0a73177b892..bae7e82311809 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmCsmUsageQuotaImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmCsmUsageQuotaImpl.java @@ -15,15 +15,15 @@ import org.joda.time.DateTime; class ServerfarmCsmUsageQuotaImpl extends WrapperImpl implements ServerfarmCsmUsageQuota { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - ServerfarmCsmUsageQuotaImpl(CsmUsageQuotaInner inner, AppServiceManager manager) { + ServerfarmCsmUsageQuotaImpl(CsmUsageQuotaInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmHybridConnectionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmHybridConnectionImpl.java index e0bf060611f3c..d7683be6e47b9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmHybridConnectionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmHybridConnectionImpl.java @@ -13,15 +13,16 @@ import rx.Observable; class ServerfarmHybridConnectionImpl extends IndexableRefreshableWrapperImpl implements ServerfarmHybridConnection { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String namespaceName; private String relayName; - ServerfarmHybridConnectionImpl(HybridConnectionInner inner, AppServiceManager manager) { + ServerfarmHybridConnectionImpl(HybridConnectionInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "serverfarms"); this.namespaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "hybridConnectionNamespaces"); @@ -29,7 +30,7 @@ class ServerfarmHybridConnectionImpl extends IndexableRefreshableWrapperImpl implements ServerfarmResourceMetricDefinition { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - ServerfarmResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, AppServiceManager manager) { + ServerfarmResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmResourceMetricImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmResourceMetricImpl.java index 02f47d3e334e8..f0f3e28e188d5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmResourceMetricImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmResourceMetricImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ResourceMetricProperty; class ServerfarmResourceMetricImpl extends WrapperImpl implements ServerfarmResourceMetric { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - ServerfarmResourceMetricImpl(ResourceMetricInner inner, AppServiceManager manager) { + ServerfarmResourceMetricImpl(ResourceMetricInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmSiteImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmSiteImpl.java index d473580dd28f9..1886d8b95ef2f 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmSiteImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmSiteImpl.java @@ -14,26 +14,28 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SiteAvailabilityState; import com.microsoft.azure.management.appservice.v2018_02_01.CloningInfo; import java.util.List; +import com.microsoft.azure.management.appservice.v2018_02_01.GeoDistribution; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentProfile; import com.microsoft.azure.management.appservice.v2018_02_01.HostNameSslState; import com.microsoft.azure.management.appservice.v2018_02_01.ManagedServiceIdentity; +import java.util.UUID; import org.joda.time.DateTime; +import com.microsoft.azure.management.appservice.v2018_02_01.RedundancyMode; import com.microsoft.azure.management.appservice.v2018_02_01.SiteConfig; import com.microsoft.azure.management.appservice.v2018_02_01.SlotSwapStatus; -import com.microsoft.azure.management.appservice.v2018_02_01.SnapshotRecoveryRequest; import java.util.Map; import com.microsoft.azure.management.appservice.v2018_02_01.UsageState; class ServerfarmSiteImpl extends WrapperImpl implements ServerfarmSite { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - ServerfarmSiteImpl(SiteInner inner, AppServiceManager manager) { + ServerfarmSiteImpl(SiteInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -54,6 +56,11 @@ public Boolean clientCertEnabled() { return this.inner().clientCertEnabled(); } + @Override + public String clientCertExclusionPaths() { + return this.inner().clientCertExclusionPaths(); + } + @Override public CloningInfo cloningInfo() { return this.inner().cloningInfo(); @@ -84,6 +91,11 @@ public List enabledHostNames() { return this.inner().enabledHostNames(); } + @Override + public List geoDistributions() { + return this.inner().geoDistributions(); + } + @Override public HostingEnvironmentProfile hostingEnvironmentProfile() { return this.inner().hostingEnvironmentProfile(); @@ -109,6 +121,11 @@ public Boolean httpsOnly() { return this.inner().httpsOnly(); } + @Override + public Boolean hyperV() { + return this.inner().hyperV(); + } + @Override public String id() { return this.inner().id(); @@ -119,6 +136,11 @@ public ManagedServiceIdentity identity() { return this.inner().identity(); } + @Override + public UUID inProgressOperationId() { + return this.inner().inProgressOperationId(); + } + @Override public Boolean isDefaultContainer() { return this.inner().isDefaultContainer(); @@ -164,6 +186,11 @@ public String possibleOutboundIpAddresses() { return this.inner().possibleOutboundIpAddresses(); } + @Override + public RedundancyMode redundancyMode() { + return this.inner().redundancyMode(); + } + @Override public String repositorySiteName() { return this.inner().repositorySiteName(); @@ -199,11 +226,6 @@ public SlotSwapStatus slotSwapStatus() { return this.inner().slotSwapStatus(); } - @Override - public SnapshotRecoveryRequest snapshotInfo() { - return this.inner().snapshotInfo(); - } - @Override public String state() { return this.inner().state(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetGatewayImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetGatewayImpl.java index b7ae57967f072..fbcc338f005b6 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetGatewayImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetGatewayImpl.java @@ -13,13 +13,13 @@ import rx.Observable; class ServerfarmVnetGatewayImpl extends CreatableUpdatableImpl implements ServerfarmVnetGateway, ServerfarmVnetGateway.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String vnetName; private String gatewayName; - ServerfarmVnetGatewayImpl(String name, AppServiceManager manager) { + ServerfarmVnetGatewayImpl(String name, CertificateRegistrationManager manager) { super(name, new VnetGatewayInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class ServerfarmVnetGatewayImpl extends CreatableUpdatableImpl implements ServerfarmVnetInfo { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String vnetName; - ServerfarmVnetInfoImpl(VnetInfoInner inner, AppServiceManager manager) { + ServerfarmVnetInfoImpl(VnetInfoInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "serverfarms"); this.vnetName = IdParsingUtils.getValueFromIdByName(inner.id(), "virtualNetworkConnections"); } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -62,6 +63,11 @@ public String id() { return this.inner().id(); } + @Override + public Boolean isSwift() { + return this.inner().isSwift(); + } + @Override public String kind() { return this.inner().kind(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java index 1b920aea42353..e57dce34d6d06 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.UnauthenticatedClientAction; class SiteAuthSettingsImpl extends WrapperImpl implements SiteAuthSettings { - private final AppServiceManager manager; - SiteAuthSettingsImpl(SiteAuthSettingsInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SiteAuthSettingsImpl(SiteAuthSettingsInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -51,6 +51,11 @@ public String clientSecret() { return this.inner().clientSecret(); } + @Override + public String clientSecretCertificateThumbprint() { + return this.inner().clientSecretCertificateThumbprint(); + } + @Override public BuiltInAuthenticationProvider defaultProvider() { return this.inner().defaultProvider(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java index f0d378ed38975..a9e4dbc0239a8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java @@ -108,6 +108,14 @@ public class SiteAuthSettingsInner extends ProxyOnlyResource { @JsonProperty(value = "properties.clientSecret") private String clientSecret; + /** + * An alternative to the client secret, that is the thumbprint of a + * certificate used for signing purposes. This property acts as + * a replacement for the Client Secret. It is also optional. + */ + @JsonProperty(value = "properties.clientSecretCertificateThumbprint") + private String clientSecretCertificateThumbprint; + /** * The OpenID Connect Issuer URI that represents the entity which issues * access tokens for this application. @@ -455,6 +463,28 @@ public SiteAuthSettingsInner withClientSecret(String clientSecret) { return this; } + /** + * Get an alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as + a replacement for the Client Secret. It is also optional. + * + * @return the clientSecretCertificateThumbprint value + */ + public String clientSecretCertificateThumbprint() { + return this.clientSecretCertificateThumbprint; + } + + /** + * Set an alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as + a replacement for the Client Secret. It is also optional. + * + * @param clientSecretCertificateThumbprint the clientSecretCertificateThumbprint value to set + * @return the SiteAuthSettingsInner object itself. + */ + public SiteAuthSettingsInner withClientSecretCertificateThumbprint(String clientSecretCertificateThumbprint) { + this.clientSecretCertificateThumbprint = clientSecretCertificateThumbprint; + return this; + } + /** * Get the OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCloneabilityImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCloneabilityImpl.java index 61d2ff402a84e..6781bd3d9dbe8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCloneabilityImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCloneabilityImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.CloneAbilityResult; class SiteCloneabilityImpl extends WrapperImpl implements SiteCloneability { - private final AppServiceManager manager; - SiteCloneabilityImpl(SiteCloneabilityInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SiteCloneabilityImpl(SiteCloneabilityInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceImpl.java index 1027a44381ef3..b2e59dc919ac6 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceImpl.java @@ -14,6 +14,8 @@ import java.util.List; import com.microsoft.azure.management.appservice.v2018_02_01.NameValuePair; import com.microsoft.azure.management.appservice.v2018_02_01.AutoHealRules; +import java.util.Map; +import com.microsoft.azure.management.appservice.v2018_02_01.AzureStorageInfoValue; import com.microsoft.azure.management.appservice.v2018_02_01.ConnStringInfo; import com.microsoft.azure.management.appservice.v2018_02_01.CorsSettings; import com.microsoft.azure.management.appservice.v2018_02_01.Experiments; @@ -30,14 +32,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.VirtualApplication; class SiteConfigResourceImpl extends WrapperImpl implements SiteConfigResource { - private final AppServiceManager manager; - SiteConfigResourceImpl(SiteConfigResourceInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SiteConfigResourceImpl(SiteConfigResourceInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -76,6 +78,11 @@ public String autoSwapSlotName() { return this.inner().autoSwapSlotName(); } + @Override + public Map azureStorageAccounts() { + return this.inner().azureStorageAccounts(); + } + @Override public List connectionStrings() { return this.inner().connectionStrings(); @@ -261,6 +268,21 @@ public DateTime requestTracingExpirationTime() { return this.inner().requestTracingExpirationTime(); } + @Override + public Integer reservedInstanceCount() { + return this.inner().reservedInstanceCount(); + } + + @Override + public List scmIpSecurityRestrictions() { + return this.inner().scmIpSecurityRestrictions(); + } + + @Override + public Boolean scmIpSecurityRestrictionsUseMain() { + return this.inner().scmIpSecurityRestrictionsUseMain(); + } + @Override public ScmType scmType() { return this.inner().scmType(); @@ -297,8 +319,8 @@ public Boolean webSocketsEnabled() { } @Override - public String xenonFxVersion() { - return this.inner().xenonFxVersion(); + public String windowsFxVersion() { + return this.inner().windowsFxVersion(); } @Override diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceInner.java index d1a8d041b84f7..f98804c0aec63 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceInner.java @@ -11,6 +11,8 @@ import java.util.List; import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2018_02_01.NameValuePair; +import java.util.Map; +import com.microsoft.azure.management.appservice.v2018_02_01.AzureStorageInfoValue; import com.microsoft.azure.management.appservice.v2018_02_01.ConnStringInfo; import com.microsoft.azure.management.appservice.v2018_02_01.SiteMachineKey; import com.microsoft.azure.management.appservice.v2018_02_01.HandlerMapping; @@ -80,8 +82,8 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { /** * Xenon App Framework and version. */ - @JsonProperty(value = "properties.xenonFxVersion") - private String xenonFxVersion; + @JsonProperty(value = "properties.windowsFxVersion") + private String windowsFxVersion; /** * <code>true</code> if request tracing is enabled; otherwise, @@ -141,6 +143,12 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.appSettings") private List appSettings; + /** + * User-provided Azure storage accounts. + */ + @JsonProperty(value = "properties.azureStorageAccounts") + private Map azureStorageAccounts; + /** * Connection strings. */ @@ -239,7 +247,7 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { private SiteLoadBalancing loadBalancing; /** - * This is work around for polymophic types. + * This is work around for polymorphic types. */ @JsonProperty(value = "properties.experiments") private Experiments experiments; @@ -319,11 +327,23 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { private Integer xManagedServiceIdentityId; /** - * IP security restrictions. + * IP security restrictions for main. */ @JsonProperty(value = "properties.ipSecurityRestrictions") private List ipSecurityRestrictions; + /** + * IP security restrictions for scm. + */ + @JsonProperty(value = "properties.scmIpSecurityRestrictions") + private List scmIpSecurityRestrictions; + + /** + * IP security restrictions for scm to use main. + */ + @JsonProperty(value = "properties.scmIpSecurityRestrictionsUseMain") + private Boolean scmIpSecurityRestrictionsUseMain; + /** * Http20Enabled: configures a web site to allow clients to connect over * http2.0. @@ -345,6 +365,13 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.ftpsState") private FtpsState ftpsState; + /** + * Number of reserved instances. + * This setting only applies to the Consumption Plan. + */ + @JsonProperty(value = "properties.reservedInstanceCount") + private Integer reservedInstanceCount; + /** * Get number of workers. * @@ -488,20 +515,20 @@ public SiteConfigResourceInner withLinuxFxVersion(String linuxFxVersion) { /** * Get xenon App Framework and version. * - * @return the xenonFxVersion value + * @return the windowsFxVersion value */ - public String xenonFxVersion() { - return this.xenonFxVersion; + public String windowsFxVersion() { + return this.windowsFxVersion; } /** * Set xenon App Framework and version. * - * @param xenonFxVersion the xenonFxVersion value to set + * @param windowsFxVersion the windowsFxVersion value to set * @return the SiteConfigResourceInner object itself. */ - public SiteConfigResourceInner withXenonFxVersion(String xenonFxVersion) { - this.xenonFxVersion = xenonFxVersion; + public SiteConfigResourceInner withWindowsFxVersion(String windowsFxVersion) { + this.windowsFxVersion = windowsFxVersion; return this; } @@ -685,6 +712,26 @@ public SiteConfigResourceInner withAppSettings(List appSettings) return this; } + /** + * Get user-provided Azure storage accounts. + * + * @return the azureStorageAccounts value + */ + public Map azureStorageAccounts() { + return this.azureStorageAccounts; + } + + /** + * Set user-provided Azure storage accounts. + * + * @param azureStorageAccounts the azureStorageAccounts value to set + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withAzureStorageAccounts(Map azureStorageAccounts) { + this.azureStorageAccounts = azureStorageAccounts; + return this; + } + /** * Get connection strings. * @@ -975,7 +1022,7 @@ public SiteConfigResourceInner withLoadBalancing(SiteLoadBalancing loadBalancing } /** - * Get this is work around for polymophic types. + * Get this is work around for polymorphic types. * * @return the experiments value */ @@ -984,7 +1031,7 @@ public Experiments experiments() { } /** - * Set this is work around for polymophic types. + * Set this is work around for polymorphic types. * * @param experiments the experiments value to set * @return the SiteConfigResourceInner object itself. @@ -1235,7 +1282,7 @@ public SiteConfigResourceInner withXManagedServiceIdentityId(Integer xManagedSer } /** - * Get iP security restrictions. + * Get iP security restrictions for main. * * @return the ipSecurityRestrictions value */ @@ -1244,7 +1291,7 @@ public List ipSecurityRestrictions() { } /** - * Set iP security restrictions. + * Set iP security restrictions for main. * * @param ipSecurityRestrictions the ipSecurityRestrictions value to set * @return the SiteConfigResourceInner object itself. @@ -1254,6 +1301,46 @@ public SiteConfigResourceInner withIpSecurityRestrictions(List scmIpSecurityRestrictions() { + return this.scmIpSecurityRestrictions; + } + + /** + * Set iP security restrictions for scm. + * + * @param scmIpSecurityRestrictions the scmIpSecurityRestrictions value to set + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withScmIpSecurityRestrictions(List scmIpSecurityRestrictions) { + this.scmIpSecurityRestrictions = scmIpSecurityRestrictions; + return this; + } + + /** + * Get iP security restrictions for scm to use main. + * + * @return the scmIpSecurityRestrictionsUseMain value + */ + public Boolean scmIpSecurityRestrictionsUseMain() { + return this.scmIpSecurityRestrictionsUseMain; + } + + /** + * Set iP security restrictions for scm to use main. + * + * @param scmIpSecurityRestrictionsUseMain the scmIpSecurityRestrictionsUseMain value to set + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withScmIpSecurityRestrictionsUseMain(Boolean scmIpSecurityRestrictionsUseMain) { + this.scmIpSecurityRestrictionsUseMain = scmIpSecurityRestrictionsUseMain; + return this; + } + /** * Get http20Enabled: configures a web site to allow clients to connect over http2.0. * @@ -1314,4 +1401,26 @@ public SiteConfigResourceInner withFtpsState(FtpsState ftpsState) { return this; } + /** + * Get number of reserved instances. + This setting only applies to the Consumption Plan. + * + * @return the reservedInstanceCount value + */ + public Integer reservedInstanceCount() { + return this.reservedInstanceCount; + } + + /** + * Set number of reserved instances. + This setting only applies to the Consumption Plan. + * + * @param reservedInstanceCount the reservedInstanceCount value to set + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withReservedInstanceCount(Integer reservedInstanceCount) { + this.reservedInstanceCount = reservedInstanceCount; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigurationSnapshotInfoImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigurationSnapshotInfoImpl.java index 116343cb3b0f8..885e7ff958eb2 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigurationSnapshotInfoImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigurationSnapshotInfoImpl.java @@ -13,14 +13,14 @@ import org.joda.time.DateTime; class SiteConfigurationSnapshotInfoImpl extends WrapperImpl implements SiteConfigurationSnapshotInfo { - private final AppServiceManager manager; - SiteConfigurationSnapshotInfoImpl(SiteConfigurationSnapshotInfoInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SiteConfigurationSnapshotInfoImpl(SiteConfigurationSnapshotInfoInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCsmUsageQuotaImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCsmUsageQuotaImpl.java index 0e06d65c38398..c294ac4583199 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCsmUsageQuotaImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteCsmUsageQuotaImpl.java @@ -15,15 +15,15 @@ import org.joda.time.DateTime; class SiteCsmUsageQuotaImpl extends WrapperImpl implements SiteCsmUsageQuota { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - SiteCsmUsageQuotaImpl(CsmUsageQuotaInner inner, AppServiceManager manager) { + SiteCsmUsageQuotaImpl(CsmUsageQuotaInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteExtensionInfoImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteExtensionInfoImpl.java index 005e4ba5cbb9b..b733c880ddf2b 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteExtensionInfoImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteExtensionInfoImpl.java @@ -16,12 +16,12 @@ import org.joda.time.DateTime; class SiteExtensionInfoImpl extends CreatableUpdatableImpl implements SiteExtensionInfo, SiteExtensionInfo.Definition, SiteExtensionInfo.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String siteExtensionId; - SiteExtensionInfoImpl(String name, AppServiceManager manager) { + SiteExtensionInfoImpl(String name, CertificateRegistrationManager manager) { super(name, new SiteExtensionInfoInner()); this.manager = manager; // Set resource name @@ -29,12 +29,12 @@ class SiteExtensionInfoImpl extends CreatableUpdatableImpl implements SiteHybridConnection, SiteHybridConnection.Definition, SiteHybridConnection.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String namespaceName; private String relayName; - SiteHybridConnectionImpl(String name, AppServiceManager manager) { + SiteHybridConnectionImpl(String name, CertificateRegistrationManager manager) { super(name, new HybridConnectionInner()); this.manager = manager; // Set resource name @@ -27,12 +27,12 @@ class SiteHybridConnectionImpl extends CreatableUpdatableImpl geoDistributions; + /** * The identity property. */ @@ -403,7 +429,7 @@ public SiteInner withReserved(Boolean reserved) { } /** - * Get hyper-V sandbox. + * Get obsolete: Hyper-V sandbox. * * @return the isXenon value */ @@ -412,7 +438,7 @@ public Boolean isXenon() { } /** - * Set hyper-V sandbox. + * Set obsolete: Hyper-V sandbox. * * @param isXenon the isXenon value to set * @return the SiteInner object itself. @@ -422,6 +448,26 @@ public SiteInner withIsXenon(Boolean isXenon) { return this; } + /** + * Get hyper-V sandbox. + * + * @return the hyperV value + */ + public Boolean hyperV() { + return this.hyperV; + } + + /** + * Set hyper-V sandbox. + * + * @param hyperV the hyperV value to set + * @return the SiteInner object itself. + */ + public SiteInner withHyperV(Boolean hyperV) { + this.hyperV = hyperV; + return this; + } + /** * Get last time the app was modified, in UTC. Read-only. * @@ -549,6 +595,26 @@ public SiteInner withClientCertEnabled(Boolean clientCertEnabled) { return this; } + /** + * Get client certificate authentication comma-separated exclusion paths. + * + * @return the clientCertExclusionPaths value + */ + public String clientCertExclusionPaths() { + return this.clientCertExclusionPaths; + } + + /** + * Set client certificate authentication comma-separated exclusion paths. + * + * @param clientCertExclusionPaths the clientCertExclusionPaths value to set + * @return the SiteInner object itself. + */ + public SiteInner withClientCertExclusionPaths(String clientCertExclusionPaths) { + this.clientCertExclusionPaths = clientCertExclusionPaths; + return this; + } + /** * Get <code>true</code> to disable the public hostnames of the app; otherwise, <code>false</code>. If <code>true</code>, the app is only accessible via API management process. @@ -668,26 +734,6 @@ public SiteInner withCloningInfo(CloningInfo cloningInfo) { return this; } - /** - * Get if specified during app creation, the app is created from a previous snapshot. - * - * @return the snapshotInfo value - */ - public SnapshotRecoveryRequest snapshotInfo() { - return this.snapshotInfo; - } - - /** - * Set if specified during app creation, the app is created from a previous snapshot. - * - * @param snapshotInfo the snapshotInfo value to set - * @return the SiteInner object itself. - */ - public SiteInner withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo) { - this.snapshotInfo = snapshotInfo; - return this; - } - /** * Get name of the resource group the app belongs to. Read-only. * @@ -746,6 +792,55 @@ public SiteInner withHttpsOnly(Boolean httpsOnly) { return this; } + /** + * Get site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'. + * + * @return the redundancyMode value + */ + public RedundancyMode redundancyMode() { + return this.redundancyMode; + } + + /** + * Set site redundancy mode. Possible values include: 'None', 'Manual', 'Failover', 'ActiveActive', 'GeoRedundant'. + * + * @param redundancyMode the redundancyMode value to set + * @return the SiteInner object itself. + */ + public SiteInner withRedundancyMode(RedundancyMode redundancyMode) { + this.redundancyMode = redundancyMode; + return this; + } + + /** + * Get specifies an operation id if this site has a pending operation. + * + * @return the inProgressOperationId value + */ + public UUID inProgressOperationId() { + return this.inProgressOperationId; + } + + /** + * Get geoDistributions for this site. + * + * @return the geoDistributions value + */ + public List geoDistributions() { + return this.geoDistributions; + } + + /** + * Set geoDistributions for this site. + * + * @param geoDistributions the geoDistributions value to set + * @return the SiteInner object itself. + */ + public SiteInner withGeoDistributions(List geoDistributions) { + this.geoDistributions = geoDistributions; + return this; + } + /** * Get the identity value. * diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteInstanceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteInstanceImpl.java index 0c03c371c8d1d..aa957a98d9e2b 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteInstanceImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteInstanceImpl.java @@ -13,15 +13,15 @@ import rx.Observable; class SiteInstanceImpl extends WrapperImpl implements SiteInstance { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - SiteInstanceImpl(SiteInstanceInner inner, AppServiceManager manager) { + SiteInstanceImpl(SiteInstanceInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteLogsConfigImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteLogsConfigImpl.java index 2ac02fed45b35..ddc905b2fe7ba 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteLogsConfigImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteLogsConfigImpl.java @@ -15,14 +15,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.HttpLogsConfig; class SiteLogsConfigImpl extends WrapperImpl implements SiteLogsConfig { - private final AppServiceManager manager; - SiteLogsConfigImpl(SiteLogsConfigInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SiteLogsConfigImpl(SiteLogsConfigInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitePhpErrorLogFlagImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitePhpErrorLogFlagImpl.java index a8294e8ce263e..6ef330c301d9d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitePhpErrorLogFlagImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitePhpErrorLogFlagImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SitePhpErrorLogFlagImpl extends WrapperImpl implements SitePhpErrorLogFlag { - private final AppServiceManager manager; - SitePhpErrorLogFlagImpl(SitePhpErrorLogFlagInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SitePhpErrorLogFlagImpl(SitePhpErrorLogFlagInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricDefinitionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricDefinitionImpl.java index b2384cb53582e..041f99984d798 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricDefinitionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricDefinitionImpl.java @@ -16,15 +16,15 @@ import java.util.Map; class SiteResourceMetricDefinitionImpl extends WrapperImpl implements SiteResourceMetricDefinition { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - SiteResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, AppServiceManager manager) { + SiteResourceMetricDefinitionImpl(ResourceMetricDefinitionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricImpl.java index 1a1ca9b83b430..45ebe40fda103 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteResourceMetricImpl.java @@ -18,15 +18,15 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ResourceMetricProperty; class SiteResourceMetricImpl extends WrapperImpl implements SiteResourceMetric { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - SiteResourceMetricImpl(ResourceMetricInner inner, AppServiceManager manager) { + SiteResourceMetricImpl(ResourceMetricInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSealImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSealImpl.java index a1bb7fe9b215e..604976c57b150 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSealImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSealImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SiteSealImpl extends WrapperImpl implements SiteSeal { - private final AppServiceManager manager; - SiteSealImpl(SiteSealInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SiteSealImpl(SiteSealInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSourceControlImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSourceControlImpl.java index ea024b009c6e8..e282ab4a112c5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSourceControlImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteSourceControlImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SiteSourceControlImpl extends WrapperImpl implements SiteSourceControl { - private final AppServiceManager manager; - SiteSourceControlImpl(SiteSourceControlInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SiteSourceControlImpl(SiteSourceControlInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetGatewayImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetGatewayImpl.java index 6c43acd2c66a5..b0a46b6497f0f 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetGatewayImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetGatewayImpl.java @@ -13,27 +13,27 @@ import rx.Observable; class SiteVnetGatewayImpl extends CreatableUpdatableImpl implements SiteVnetGateway, SiteVnetGateway.Definition, SiteVnetGateway.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String vnetName; private String gatewayName; private String slot; - SiteVnetGatewayImpl(String name, AppServiceManager manager) { + SiteVnetGatewayImpl(String name, CertificateRegistrationManager manager) { super(name, new VnetGatewayInner()); this.manager = manager; // Set resource name - this.slot = name; + this.gatewayName = name; // } - SiteVnetGatewayImpl(VnetGatewayInner inner, AppServiceManager manager) { + SiteVnetGatewayImpl(VnetGatewayInner inner, CertificateRegistrationManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name - this.slot = inner.name(); - // resource ancestor names + this.gatewayName = inner.name(); + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.vnetName = IdParsingUtils.getValueFromIdByName(inner.id(), "virtualNetworkConnections"); @@ -43,7 +43,7 @@ class SiteVnetGatewayImpl extends CreatableUpdatableImpl implements SiteVnetInfo, SiteVnetInfo.Definition, SiteVnetInfo.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String vnetName; private String slot; - SiteVnetInfoImpl(String name, AppServiceManager manager) { + SiteVnetInfoImpl(String name, CertificateRegistrationManager manager) { super(name, new VnetInfoInner()); this.manager = manager; // Set resource name - this.slot = name; + this.vnetName = name; // } - SiteVnetInfoImpl(VnetInfoInner inner, AppServiceManager manager) { + SiteVnetInfoImpl(VnetInfoInner inner, CertificateRegistrationManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name - this.slot = inner.name(); - // resource ancestor names + this.vnetName = inner.name(); + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.vnetName = IdParsingUtils.getValueFromIdByName(inner.id(), "virtualNetworkConnections"); @@ -44,7 +44,7 @@ class SiteVnetInfoImpl extends CreatableUpdatableImpl implements Sites, Sites.Definition, Sites.Update { +class SitesImpl extends GroupableResourceCoreImpl implements Sites, Sites.Definition, Sites.Update { private SitePatchResource updateParameter; - SitesImpl(String name, SiteInner inner, AppServiceManager manager) { + SitesImpl(String name, SiteInner inner, CertificateRegistrationManager manager) { super(name, inner, manager); this.updateParameter = new SitePatchResource(); } @@ -90,6 +92,11 @@ public Boolean clientCertEnabled() { return this.inner().clientCertEnabled(); } + @Override + public String clientCertExclusionPaths() { + return this.inner().clientCertExclusionPaths(); + } + @Override public CloningInfo cloningInfo() { return this.inner().cloningInfo(); @@ -120,6 +127,11 @@ public List enabledHostNames() { return this.inner().enabledHostNames(); } + @Override + public List geoDistributions() { + return this.inner().geoDistributions(); + } + @Override public HostingEnvironmentProfile hostingEnvironmentProfile() { return this.inner().hostingEnvironmentProfile(); @@ -145,11 +157,21 @@ public Boolean httpsOnly() { return this.inner().httpsOnly(); } + @Override + public Boolean hyperV() { + return this.inner().hyperV(); + } + @Override public ManagedServiceIdentity identity() { return this.inner().identity(); } + @Override + public UUID inProgressOperationId() { + return this.inner().inProgressOperationId(); + } + @Override public Boolean isDefaultContainer() { return this.inner().isDefaultContainer(); @@ -185,6 +207,11 @@ public String possibleOutboundIpAddresses() { return this.inner().possibleOutboundIpAddresses(); } + @Override + public RedundancyMode redundancyMode() { + return this.inner().redundancyMode(); + } + @Override public String repositorySiteName() { return this.inner().repositorySiteName(); @@ -220,11 +247,6 @@ public SlotSwapStatus slotSwapStatus() { return this.inner().slotSwapStatus(); } - @Override - public SnapshotRecoveryRequest snapshotInfo() { - return this.inner().snapshotInfo(); - } - @Override public String state() { return this.inner().state(); @@ -276,6 +298,16 @@ public SitesImpl withClientCertEnabled(Boolean clientCertEnabled) { return this; } + @Override + public SitesImpl withClientCertExclusionPaths(String clientCertExclusionPaths) { + if (isInCreateMode()) { + this.inner().withClientCertExclusionPaths(clientCertExclusionPaths); + } else { + this.updateParameter.withClientCertExclusionPaths(clientCertExclusionPaths); + } + return this; + } + @Override public SitesImpl withCloningInfo(CloningInfo cloningInfo) { if (isInCreateMode()) { @@ -316,6 +348,16 @@ public SitesImpl withEnabled(Boolean enabled) { return this; } + @Override + public SitesImpl withGeoDistributions(List geoDistributions) { + if (isInCreateMode()) { + this.inner().withGeoDistributions(geoDistributions); + } else { + this.updateParameter.withGeoDistributions(geoDistributions); + } + return this; + } + @Override public SitesImpl withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile) { if (isInCreateMode()) { @@ -356,6 +398,16 @@ public SitesImpl withHttpsOnly(Boolean httpsOnly) { return this; } + @Override + public SitesImpl withHyperV(Boolean hyperV) { + if (isInCreateMode()) { + this.inner().withHyperV(hyperV); + } else { + this.updateParameter.withHyperV(hyperV); + } + return this; + } + @Override public SitesImpl withIsXenon(Boolean isXenon) { if (isInCreateMode()) { @@ -376,6 +428,16 @@ public SitesImpl withKind(String kind) { return this; } + @Override + public SitesImpl withRedundancyMode(RedundancyMode redundancyMode) { + if (isInCreateMode()) { + this.inner().withRedundancyMode(redundancyMode); + } else { + this.updateParameter.withRedundancyMode(redundancyMode); + } + return this; + } + @Override public SitesImpl withReserved(Boolean reserved) { if (isInCreateMode()) { @@ -416,14 +478,4 @@ public SitesImpl withSiteConfig(SiteConfig siteConfig) { return this; } - @Override - public SitesImpl withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo) { - if (isInCreateMode()) { - this.inner().withSnapshotInfo(snapshotInfo); - } else { - this.updateParameter.withSnapshotInfo(snapshotInfo); - } - return this; - } - } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SkuInfoImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SkuInfoImpl.java index d1ce0e0043412..9b513829681b8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SkuInfoImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SkuInfoImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SkuDescription; class SkuInfoImpl extends WrapperImpl implements SkuInfo { - private final AppServiceManager manager; - SkuInfoImpl(SkuInfoInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SkuInfoImpl(SkuInfoInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceImpl.java index 3de7321b127aa..c9780717ed85f 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceImpl.java @@ -13,14 +13,14 @@ import java.util.List; class SlotConfigNamesResourceImpl extends WrapperImpl implements SlotConfigNamesResource { - private final AppServiceManager manager; - SlotConfigNamesResourceImpl(SlotConfigNamesResourceInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SlotConfigNamesResourceImpl(SlotConfigNamesResourceInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -29,6 +29,11 @@ public List appSettingNames() { return this.inner().appSettingNames(); } + @Override + public List azureStorageConfigNames() { + return this.inner().azureStorageConfigNames(); + } + @Override public List connectionStringNames() { return this.inner().connectionStringNames(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceInner.java index 88c96aaf291e2..543d8e0e344ee 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotConfigNamesResourceInner.java @@ -30,6 +30,12 @@ public class SlotConfigNamesResourceInner extends ProxyOnlyResource { @JsonProperty(value = "properties.appSettingNames") private List appSettingNames; + /** + * List of external Azure storage account identifiers. + */ + @JsonProperty(value = "properties.azureStorageConfigNames") + private List azureStorageConfigNames; + /** * Get list of connection string names. * @@ -70,4 +76,24 @@ public SlotConfigNamesResourceInner withAppSettingNames(List appSettingN return this; } + /** + * Get list of external Azure storage account identifiers. + * + * @return the azureStorageConfigNames value + */ + public List azureStorageConfigNames() { + return this.azureStorageConfigNames; + } + + /** + * Set list of external Azure storage account identifiers. + * + * @param azureStorageConfigNames the azureStorageConfigNames value to set + * @return the SlotConfigNamesResourceInner object itself. + */ + public SlotConfigNamesResourceInner withAzureStorageConfigNames(List azureStorageConfigNames) { + this.azureStorageConfigNames = azureStorageConfigNames; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotDifferenceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotDifferenceImpl.java index ca25c3cb82490..62f136745a5e5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotDifferenceImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotDifferenceImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class SlotDifferenceImpl extends WrapperImpl implements SlotDifference { - private final AppServiceManager manager; - SlotDifferenceImpl(SlotDifferenceInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + SlotDifferenceImpl(SlotDifferenceInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotsImpl.java index 131bda520fde0..d903c6914b45d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotsImpl.java @@ -14,6 +14,7 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SitePatchResource; import java.util.List; import org.joda.time.DateTime; +import java.util.UUID; import java.util.Map; import com.microsoft.azure.management.appservice.v2018_02_01.UsageState; import com.microsoft.azure.management.appservice.v2018_02_01.SiteAvailabilityState; @@ -21,19 +22,20 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SiteConfig; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentProfile; import com.microsoft.azure.management.appservice.v2018_02_01.CloningInfo; -import com.microsoft.azure.management.appservice.v2018_02_01.SnapshotRecoveryRequest; import com.microsoft.azure.management.appservice.v2018_02_01.SlotSwapStatus; +import com.microsoft.azure.management.appservice.v2018_02_01.RedundancyMode; +import com.microsoft.azure.management.appservice.v2018_02_01.GeoDistribution; import com.microsoft.azure.management.appservice.v2018_02_01.ManagedServiceIdentity; import rx.functions.Func1; class SlotsImpl extends CreatableUpdatableImpl implements Slots, Slots.Definition, Slots.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String slot; private SitePatchResource updateParameter; - SlotsImpl(String name, AppServiceManager manager) { + SlotsImpl(String name, CertificateRegistrationManager manager) { super(name, new SiteInner()); this.manager = manager; // Set resource name @@ -42,12 +44,12 @@ class SlotsImpl extends CreatableUpdatableImpl impl this.updateParameter = new SitePatchResource(); } - SlotsImpl(SiteInner inner, AppServiceManager manager) { + SlotsImpl(SiteInner inner, CertificateRegistrationManager manager) { super(inner.name(), inner); this.manager = manager; // Set resource name this.slot = inner.name(); - // resource ancestor names + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.slot = IdParsingUtils.getValueFromIdByName(inner.id(), "slots"); @@ -56,7 +58,7 @@ class SlotsImpl extends CreatableUpdatableImpl impl } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -118,6 +120,11 @@ public Boolean clientCertEnabled() { return this.inner().clientCertEnabled(); } + @Override + public String clientCertExclusionPaths() { + return this.inner().clientCertExclusionPaths(); + } + @Override public CloningInfo cloningInfo() { return this.inner().cloningInfo(); @@ -148,6 +155,11 @@ public List enabledHostNames() { return this.inner().enabledHostNames(); } + @Override + public List geoDistributions() { + return this.inner().geoDistributions(); + } + @Override public HostingEnvironmentProfile hostingEnvironmentProfile() { return this.inner().hostingEnvironmentProfile(); @@ -173,6 +185,11 @@ public Boolean httpsOnly() { return this.inner().httpsOnly(); } + @Override + public Boolean hyperV() { + return this.inner().hyperV(); + } + @Override public String id() { return this.inner().id(); @@ -183,6 +200,11 @@ public ManagedServiceIdentity identity() { return this.inner().identity(); } + @Override + public UUID inProgressOperationId() { + return this.inner().inProgressOperationId(); + } + @Override public Boolean isDefaultContainer() { return this.inner().isDefaultContainer(); @@ -228,6 +250,11 @@ public String possibleOutboundIpAddresses() { return this.inner().possibleOutboundIpAddresses(); } + @Override + public RedundancyMode redundancyMode() { + return this.inner().redundancyMode(); + } + @Override public String repositorySiteName() { return this.inner().repositorySiteName(); @@ -263,11 +290,6 @@ public SlotSwapStatus slotSwapStatus() { return this.inner().slotSwapStatus(); } - @Override - public SnapshotRecoveryRequest snapshotInfo() { - return this.inner().snapshotInfo(); - } - @Override public String state() { return this.inner().state(); @@ -348,6 +370,16 @@ public SlotsImpl withClientCertEnabled(Boolean clientCertEnabled) { return this; } + @Override + public SlotsImpl withClientCertExclusionPaths(String clientCertExclusionPaths) { + if (isInCreateMode()) { + this.inner().withClientCertExclusionPaths(clientCertExclusionPaths); + } else { + this.updateParameter.withClientCertExclusionPaths(clientCertExclusionPaths); + } + return this; + } + @Override public SlotsImpl withCloningInfo(CloningInfo cloningInfo) { if (isInCreateMode()) { @@ -388,6 +420,16 @@ public SlotsImpl withEnabled(Boolean enabled) { return this; } + @Override + public SlotsImpl withGeoDistributions(List geoDistributions) { + if (isInCreateMode()) { + this.inner().withGeoDistributions(geoDistributions); + } else { + this.updateParameter.withGeoDistributions(geoDistributions); + } + return this; + } + @Override public SlotsImpl withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile) { if (isInCreateMode()) { @@ -428,6 +470,16 @@ public SlotsImpl withHttpsOnly(Boolean httpsOnly) { return this; } + @Override + public SlotsImpl withHyperV(Boolean hyperV) { + if (isInCreateMode()) { + this.inner().withHyperV(hyperV); + } else { + this.updateParameter.withHyperV(hyperV); + } + return this; + } + @Override public SlotsImpl withIsXenon(Boolean isXenon) { if (isInCreateMode()) { @@ -448,6 +500,16 @@ public SlotsImpl withKind(String kind) { return this; } + @Override + public SlotsImpl withRedundancyMode(RedundancyMode redundancyMode) { + if (isInCreateMode()) { + this.inner().withRedundancyMode(redundancyMode); + } else { + this.updateParameter.withRedundancyMode(redundancyMode); + } + return this; + } + @Override public SlotsImpl withReserved(Boolean reserved) { if (isInCreateMode()) { @@ -488,14 +550,4 @@ public SlotsImpl withSiteConfig(SiteConfig siteConfig) { return this; } - @Override - public SlotsImpl withSnapshotInfo(SnapshotRecoveryRequest snapshotInfo) { - if (isInCreateMode()) { - this.inner().withSnapshotInfo(snapshotInfo); - } else { - this.updateParameter.withSnapshotInfo(snapshotInfo); - } - return this; - } - } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SnapshotImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SnapshotImpl.java index 1998f0b52e3f3..27bd936c84190 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SnapshotImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SnapshotImpl.java @@ -13,15 +13,15 @@ import rx.Observable; class SnapshotImpl extends WrapperImpl implements Snapshot { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - SnapshotImpl(SnapshotInner inner, AppServiceManager manager) { + SnapshotImpl(SnapshotInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StampCapacityImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StampCapacityImpl.java index 9d380cfb93f52..ddc6e3886f02e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StampCapacityImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StampCapacityImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.WorkerSizeOptions; class StampCapacityImpl extends WrapperImpl implements StampCapacity { - private final AppServiceManager manager; - StampCapacityImpl(StampCapacityInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + StampCapacityImpl(StampCapacityInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StorageMigrationResponseImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StorageMigrationResponseImpl.java index 0a86a68374aa3..9719fb392c909 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StorageMigrationResponseImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StorageMigrationResponseImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class StorageMigrationResponseImpl extends WrapperImpl implements StorageMigrationResponse { - private final AppServiceManager manager; - StorageMigrationResponseImpl(StorageMigrationResponseInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + StorageMigrationResponseImpl(StorageMigrationResponseInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StringDictionaryImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StringDictionaryImpl.java index e691098a81df1..da1376caed186 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StringDictionaryImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/StringDictionaryImpl.java @@ -13,14 +13,14 @@ import java.util.Map; class StringDictionaryImpl extends WrapperImpl implements StringDictionary { - private final AppServiceManager manager; - StringDictionaryImpl(StringDictionaryInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + StringDictionaryImpl(StringDictionaryInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkImpl.java new file mode 100644 index 0000000000000..5887093fec084 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkImpl.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.microsoft.azure.management.appservice.v2018_02_01.SwiftVirtualNetwork; +import com.microsoft.azure.arm.model.implementation.WrapperImpl; + +class SwiftVirtualNetworkImpl extends WrapperImpl implements SwiftVirtualNetwork { + private final CertificateRegistrationManager manager; + SwiftVirtualNetworkImpl(SwiftVirtualNetworkInner inner, CertificateRegistrationManager manager) { + super(inner); + this.manager = manager; + } + + @Override + public CertificateRegistrationManager manager() { + return this.manager; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String kind() { + return this.inner().kind(); + } + + @Override + public String name() { + return this.inner().name(); + } + + @Override + public String subnetResourceId() { + return this.inner().subnetResourceId(); + } + + @Override + public Boolean swiftSupported() { + return this.inner().swiftSupported(); + } + + @Override + public String type() { + return this.inner().type(); + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkInner.java new file mode 100644 index 0000000000000..4d57e05030646 --- /dev/null +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkInner.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.appservice.v2018_02_01.implementation; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource; + +/** + * Swift Virtual Network Contract. This is used to enable the new Swift way of + * doing virtual network integration. + */ +@JsonFlatten +public class SwiftVirtualNetworkInner extends ProxyOnlyResource { + /** + * The Virtual Network subnet's resource ID. This is the subnet that this + * Web App will join. This subnet must have a delegation to + * Microsoft.Web/serverFarms defined first. + */ + @JsonProperty(value = "properties.subnetResourceId") + private String subnetResourceId; + + /** + * A flag that specifies if the scale unit this Web App is on supports + * Swift integration. + */ + @JsonProperty(value = "properties.swiftSupported") + private Boolean swiftSupported; + + /** + * Get the Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first. + * + * @return the subnetResourceId value + */ + public String subnetResourceId() { + return this.subnetResourceId; + } + + /** + * Set the Virtual Network subnet's resource ID. This is the subnet that this Web App will join. This subnet must have a delegation to Microsoft.Web/serverFarms defined first. + * + * @param subnetResourceId the subnetResourceId value to set + * @return the SwiftVirtualNetworkInner object itself. + */ + public SwiftVirtualNetworkInner withSubnetResourceId(String subnetResourceId) { + this.subnetResourceId = subnetResourceId; + return this; + } + + /** + * Get a flag that specifies if the scale unit this Web App is on supports Swift integration. + * + * @return the swiftSupported value + */ + public Boolean swiftSupported() { + return this.swiftSupported; + } + + /** + * Set a flag that specifies if the scale unit this Web App is on supports Swift integration. + * + * @param swiftSupported the swiftSupported value to set + * @return the SwiftVirtualNetworkInner object itself. + */ + public SwiftVirtualNetworkInner withSwiftSupported(Boolean swiftSupported) { + this.swiftSupported = swiftSupported; + return this; + } + +} diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TldLegalAgreementImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TldLegalAgreementImpl.java index ec89cc3b52a7f..9e4b1958221b9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TldLegalAgreementImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TldLegalAgreementImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class TldLegalAgreementImpl extends WrapperImpl implements TldLegalAgreement { - private final AppServiceManager manager; - TldLegalAgreementImpl(TldLegalAgreementInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + TldLegalAgreementImpl(TldLegalAgreementInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainImpl.java index 98210d5a4ad9b..c4f8ab25a9f0f 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainImpl.java @@ -15,16 +15,17 @@ class TopLevelDomainImpl extends IndexableRefreshableWrapperImpl implements TopLevelDomain { private String name; - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - TopLevelDomainImpl(TopLevelDomainInner inner, AppServiceManager manager) { + TopLevelDomainImpl(TopLevelDomainInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "topLevelDomains"); } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainsImpl.java index eba88d479e8fa..dc2883c85b0bc 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TopLevelDomainsImpl.java @@ -22,9 +22,9 @@ class TopLevelDomainsImpl extends WrapperImpl implements TopLevelDomains { private PagedListConverter converter; - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - TopLevelDomainsImpl(AppServiceManager manager) { + TopLevelDomainsImpl(CertificateRegistrationManager manager) { super(manager.inner().topLevelDomains()); this.manager = manager; this.converter = new PagedListConverter() { @@ -35,7 +35,7 @@ public Observable typeConvertAsync(TopLevelDomainInner inner) { }; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredJobHistoryImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredJobHistoryImpl.java index df9b680cdd97b..658cc27a38be3 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredJobHistoryImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredJobHistoryImpl.java @@ -14,14 +14,14 @@ import com.microsoft.azure.management.appservice.v2018_02_01.TriggeredJobRun; class TriggeredJobHistoryImpl extends WrapperImpl implements TriggeredJobHistory { - private final AppServiceManager manager; - TriggeredJobHistoryImpl(TriggeredJobHistoryInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + TriggeredJobHistoryImpl(TriggeredJobHistoryInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredWebJobImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredWebJobImpl.java index f9d76afe0f634..b94b7bd4ee5c9 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredWebJobImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/TriggeredWebJobImpl.java @@ -16,15 +16,16 @@ import com.microsoft.azure.management.appservice.v2018_02_01.WebJobType; class TriggeredWebJobImpl extends IndexableRefreshableWrapperImpl implements TriggeredWebJob { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String webJobName; private String slot; - TriggeredWebJobImpl(TriggeredWebJobInner inner, AppServiceManager manager) { + TriggeredWebJobImpl(TriggeredWebJobInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.webJobName = IdParsingUtils.getValueFromIdByName(inner.id(), "triggeredwebjobs"); @@ -32,7 +33,7 @@ class TriggeredWebJobImpl extends IndexableRefreshableWrapperImpl implements Usage { - private final AppServiceManager manager; - UsageImpl(UsageInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + UsageImpl(UsageInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserImpl.java index 4022c0003bad0..5676ae6c48b57 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserImpl.java @@ -12,14 +12,14 @@ import com.microsoft.azure.arm.model.implementation.WrapperImpl; class UserImpl extends WrapperImpl implements User { - private final AppServiceManager manager; - UserImpl(UserInner inner, AppServiceManager manager) { + private final CertificateRegistrationManager manager; + UserImpl(UserInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserInner.java index ecd0a93c45881..92a42c45522ae 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/UserInner.java @@ -13,7 +13,7 @@ import com.microsoft.azure.management.appservice.v2018_02_01.ProxyOnlyResource; /** - * User crendentials used for publishing activity. + * User credentials used for publishing activity. */ @JsonFlatten public class UserInner extends ProxyOnlyResource { diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java index fb5c52f0698bb..76573b732a59d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java @@ -58,6 +58,12 @@ public class VnetInfoInner extends ProxyOnlyResource { @JsonProperty(value = "properties.dnsServers") private String dnsServers; + /** + * Flag that is used to denote if this is VNET injection. + */ + @JsonProperty(value = "properties.isSwift") + private Boolean isSwift; + /** * Get the Virtual Network's resource ID. * @@ -147,4 +153,24 @@ public VnetInfoInner withDnsServers(String dnsServers) { return this; } + /** + * Get flag that is used to denote if this is VNET injection. + * + * @return the isSwift value + */ + public Boolean isSwift() { + return this.isSwift; + } + + /** + * Set flag that is used to denote if this is VNET injection. + * + * @param isSwift the isSwift value to set + * @return the VnetInfoInner object itself. + */ + public VnetInfoInner withIsSwift(Boolean isSwift) { + this.isSwift = isSwift; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetRouteImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetRouteImpl.java index b2c5ea1e267ee..1280fc303205a 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetRouteImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetRouteImpl.java @@ -14,13 +14,13 @@ import com.microsoft.azure.management.appservice.v2018_02_01.RouteType; class VnetRouteImpl extends CreatableUpdatableImpl implements VnetRoute, VnetRoute.Definition, VnetRoute.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String vnetName; private String routeName; - VnetRouteImpl(String name, AppServiceManager manager) { + VnetRouteImpl(String name, CertificateRegistrationManager manager) { super(name, new VnetRouteInner()); this.manager = manager; // Set resource name @@ -28,12 +28,12 @@ class VnetRouteImpl extends CreatableUpdatableImpl implements WebApps { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; - WebAppsImpl(AppServiceManager manager) { + WebAppsImpl(CertificateRegistrationManager manager) { super(manager.inner().webApps()); this.manager = manager; } - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } @@ -657,17 +662,29 @@ public SiteConfigResource call(SiteConfigResourceInner inner) { } @Override - public Completable getWebSiteContainerLogsAsync(String resourceGroupName, String name) { + public Observable getWebSiteContainerLogsAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.getWebSiteContainerLogsAsync(resourceGroupName, name).toCompletable(); - } + return client.getWebSiteContainerLogsAsync(resourceGroupName, name) + ;} @Override - public Completable getFunctionsAdminTokenAsync(String resourceGroupName, String name) { + public Observable discoverBackupAsync(String resourceGroupName, String name, RestoreRequestInner request) { WebAppsInner client = this.inner(); - return client.getFunctionsAdminTokenAsync(resourceGroupName, name).toCompletable(); + return client.discoverBackupAsync(resourceGroupName, name, request) + .map(new Func1() { + @Override + public RestoreRequest call(RestoreRequestInner inner) { + return new RestoreRequestImpl(inner, manager()); + } + }); } + @Override + public Observable getFunctionsAdminTokenAsync(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.getFunctionsAdminTokenAsync(resourceGroupName, name) + ;} + @Override public Observable listRelayServiceConnectionsAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -771,9 +788,69 @@ public Operation call(OperationInner inner) { } @Override - public Completable startWebSiteNetworkTraceAsync(String resourceGroupName, String name) { + public Observable getSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.getSwiftVirtualNetworkConnectionAsync(resourceGroupName, name) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Observable createOrUpdateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + WebAppsInner client = this.inner(); + return client.createOrUpdateSwiftVirtualNetworkConnectionAsync(resourceGroupName, name, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Completable deleteSwiftVirtualNetworkAsync(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.deleteSwiftVirtualNetworkAsync(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable updateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + WebAppsInner client = this.inner(); + return client.updateSwiftVirtualNetworkConnectionAsync(resourceGroupName, name, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.startWebSiteNetworkTraceAsync(resourceGroupName, name) + ;} + + @Override + public Observable startWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.startWebSiteNetworkTraceAsync(resourceGroupName, name).toCompletable(); + return client.startWebSiteNetworkTraceOperationAsync(resourceGroupName, name) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); } @Override @@ -782,6 +859,24 @@ public Completable stopWebSiteNetworkTraceAsync(String resourceGroupName, String return client.stopWebSiteNetworkTraceAsync(resourceGroupName, name).toCompletable(); } + @Override + public Observable getNetworkTracesAsync(String resourceGroupName, String name, String operationId) { + WebAppsInner client = this.inner(); + return client.getNetworkTracesAsync(resourceGroupName, name, operationId) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + @Override public Completable generateNewSitePublishingPasswordAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -801,16 +896,16 @@ public SitePhpErrorLogFlag call(SitePhpErrorLogFlagInner inner) { } @Override - public Completable getProcessDumpAsync(String resourceGroupName, String name, String processId) { + public Observable getProcessDumpAsync(String resourceGroupName, String name, String processId) { WebAppsInner client = this.inner(); - return client.getProcessDumpAsync(resourceGroupName, name, processId).toCompletable(); - } + return client.getProcessDumpAsync(resourceGroupName, name, processId) + ;} @Override - public Completable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name) { + public Observable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, CsmPublishingProfileOptions publishingProfileOptions) { WebAppsInner client = this.inner(); - return client.listPublishingProfileXmlWithSecretsAsync(resourceGroupName, name).toCompletable(); - } + return client.listPublishingProfileXmlWithSecretsAsync(resourceGroupName, name, publishingProfileOptions) + ;} @Override public Completable resetProductionSlotConfigAsync(String resourceGroupName, String name) { @@ -866,18 +961,60 @@ public Completable swapSlotWithProductionAsync(String resourceGroupName, String return client.swapSlotWithProductionAsync(resourceGroupName, name, slotSwapEntity).toCompletable(); } + @Override + public Observable listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name) { + WebAppsInner client = this.inner(); + return client.listSnapshotsFromDRSecondaryAsync(resourceGroupName, name) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Snapshot call(SnapshotInner inner) { + return new SnapshotImpl(inner, manager()); + } + }); + } + @Override public Completable startAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); return client.startAsync(resourceGroupName, name).toCompletable(); } + @Override + public Observable startNetworkTraceAsync(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.startNetworkTraceAsync(resourceGroupName, name) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + @Override public Completable stopAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); return client.stopAsync(resourceGroupName, name).toCompletable(); } + @Override + public Completable stopNetworkTraceAsync(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.stopNetworkTraceAsync(resourceGroupName, name).toCompletable(); + } + @Override public Completable syncRepositoryAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -926,18 +1063,6 @@ public Completable deleteBackupAsync(String resourceGroupName, String name, Stri return client.deleteBackupAsync(resourceGroupName, name, backupId).toCompletable(); } - @Override - public Observable discoverRestoreAsync(String resourceGroupName, String name, RestoreRequestInner request) { - WebAppsInner client = this.inner(); - return client.discoverRestoreAsync(resourceGroupName, name, request) - .map(new Func1() { - @Override - public RestoreRequest call(RestoreRequestInner inner) { - return new RestoreRequestImpl(inner, manager()); - } - }); - } - @Override public Observable listBackupStatusSecretsAsync(String resourceGroupName, String name, String backupId, BackupRequestInner request) { WebAppsInner client = this.inner(); @@ -974,18 +1099,6 @@ public BackupItem call(BackupItemInner inner) { }); } - @Override - public Observable discoverRestoreSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { - WebAppsInner client = this.inner(); - return client.discoverRestoreSlotAsync(resourceGroupName, name, slot, request) - .map(new Func1() { - @Override - public RestoreRequest call(RestoreRequestInner inner) { - return new RestoreRequestImpl(inner, manager()); - } - }); - } - @Override public Observable getBackupStatusSlotAsync(String resourceGroupName, String name, String backupId, String slot) { WebAppsInner client = this.inner(); @@ -1118,6 +1231,54 @@ public SiteAuthSettings call(SiteAuthSettingsInner inner) { }); } + @Override + public Observable updateAzureStorageAccountsAsync(String resourceGroupName, String name, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { + WebAppsInner client = this.inner(); + return client.updateAzureStorageAccountsAsync(resourceGroupName, name, azureStorageAccounts) + .map(new Func1() { + @Override + public AzureStoragePropertyDictionaryResource call(AzureStoragePropertyDictionaryResourceInner inner) { + return new AzureStoragePropertyDictionaryResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAzureStorageAccountsAsync(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.listAzureStorageAccountsAsync(resourceGroupName, name) + .map(new Func1() { + @Override + public AzureStoragePropertyDictionaryResource call(AzureStoragePropertyDictionaryResourceInner inner) { + return new AzureStoragePropertyDictionaryResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable updateAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { + WebAppsInner client = this.inner(); + return client.updateAzureStorageAccountsSlotAsync(resourceGroupName, name, slot, azureStorageAccounts) + .map(new Func1() { + @Override + public AzureStoragePropertyDictionaryResource call(AzureStoragePropertyDictionaryResourceInner inner) { + return new AzureStoragePropertyDictionaryResourceImpl(inner, manager()); + } + }); + } + + @Override + public Observable listAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.listAzureStorageAccountsSlotAsync(resourceGroupName, name, slot) + .map(new Func1() { + @Override + public AzureStoragePropertyDictionaryResource call(AzureStoragePropertyDictionaryResourceInner inner) { + return new AzureStoragePropertyDictionaryResourceImpl(inner, manager()); + } + }); + } + @Override public Observable updateConnectionStringsAsync(String resourceGroupName, String name, ConnectionStringDictionaryInner connectionStrings) { WebAppsInner client = this.inner(); @@ -1419,16 +1580,16 @@ public Snapshot call(SnapshotInner inner) { } @Override - public Completable getContainerLogsZipAsync(String resourceGroupName, String name) { + public Observable getContainerLogsZipAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); - return client.getContainerLogsZipAsync(resourceGroupName, name).toCompletable(); - } + return client.getContainerLogsZipAsync(resourceGroupName, name) + ;} @Override - public Completable getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot) { + public Observable getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.getContainerLogsZipSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.getContainerLogsZipSlotAsync(resourceGroupName, name, slot) + ;} @Override public Observable getContinuousWebJobAsync(String resourceGroupName, String name, String webJobName) { @@ -2193,10 +2354,10 @@ public SiteInstance call(SiteInstanceInner inner) { } @Override - public Completable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId) { + public Observable getInstanceProcessDumpAsync(String resourceGroupName, String name, String processId, String instanceId) { WebAppsInner client = this.inner(); - return client.getInstanceProcessDumpAsync(resourceGroupName, name, processId, instanceId).toCompletable(); - } + return client.getInstanceProcessDumpAsync(resourceGroupName, name, processId, instanceId) + ;} @Override public Observable listInstanceIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot) { @@ -2217,10 +2378,10 @@ public SiteInstance call(SiteInstanceInner inner) { } @Override - public Completable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + public Observable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { WebAppsInner client = this.inner(); - return client.getInstanceProcessDumpSlotAsync(resourceGroupName, name, processId, slot, instanceId).toCompletable(); - } + return client.getInstanceProcessDumpSlotAsync(resourceGroupName, name, processId, slot, instanceId) + ;} @Override public Observable getInstanceProcessAsync(String resourceGroupName, String name, String processId, String instanceId) { @@ -2726,6 +2887,114 @@ public NetworkFeatures call(NetworkFeaturesInner inner) { }); } + @Override + public Observable getNetworkTraceOperationAsync(String resourceGroupName, String name, String operationId) { + WebAppsInner client = this.inner(); + return client.getNetworkTraceOperationAsync(resourceGroupName, name, operationId) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + + @Override + public Observable getNetworkTraceOperationV2Async(String resourceGroupName, String name, String operationId) { + WebAppsInner client = this.inner(); + return client.getNetworkTraceOperationV2Async(resourceGroupName, name, operationId) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + + @Override + public Observable getNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String operationId, String slot) { + WebAppsInner client = this.inner(); + return client.getNetworkTraceOperationSlotAsync(resourceGroupName, name, operationId, slot) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + + @Override + public Observable getNetworkTraceOperationSlotV2Async(String resourceGroupName, String name, String operationId, String slot) { + WebAppsInner client = this.inner(); + return client.getNetworkTraceOperationSlotV2Async(resourceGroupName, name, operationId, slot) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + + @Override + public Observable getNetworkTracesV2Async(String resourceGroupName, String name, String operationId) { + WebAppsInner client = this.inner(); + return client.getNetworkTracesV2Async(resourceGroupName, name, operationId) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + + @Override + public Observable getNetworkTracesSlotV2Async(String resourceGroupName, String name, String operationId, String slot) { + WebAppsInner client = this.inner(); + return client.getNetworkTracesSlotV2Async(resourceGroupName, name, operationId, slot) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + @Override public Observable listPerfMonCountersAsync(final String resourceGroupName, final String name) { WebAppsInner client = this.inner(); @@ -2834,6 +3103,18 @@ public Completable deletePremierAddOnSlotAsync(String resourceGroupName, String return client.deletePremierAddOnSlotAsync(resourceGroupName, name, premierAddOnName, slot).toCompletable(); } + @Override + public Observable updatePremierAddOnSlotAsync(String resourceGroupName, String name, String premierAddOnName, String slot, PremierAddOnPatchResource premierAddOn) { + WebAppsInner client = this.inner(); + return client.updatePremierAddOnSlotAsync(resourceGroupName, name, premierAddOnName, slot, premierAddOn) + .map(new Func1() { + @Override + public PremierAddOn call(PremierAddOnInner inner) { + return new PremierAddOnImpl(inner, manager()); + } + }); + } + @Override public Observable getPrivateAccessAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -3225,17 +3506,29 @@ public SiteConfigResource call(SiteConfigResourceInner inner) { } @Override - public Completable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot) { + public Observable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); - return client.getWebSiteContainerLogsSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.getWebSiteContainerLogsSlotAsync(resourceGroupName, name, slot) + ;} @Override - public Completable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot) { + public Observable discoverBackupSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { WebAppsInner client = this.inner(); - return client.getFunctionsAdminTokenSlotAsync(resourceGroupName, name, slot).toCompletable(); + return client.discoverBackupSlotAsync(resourceGroupName, name, slot, request) + .map(new Func1() { + @Override + public RestoreRequest call(RestoreRequestInner inner) { + return new RestoreRequestImpl(inner, manager()); + } + }); } + @Override + public Observable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.getFunctionsAdminTokenSlotAsync(resourceGroupName, name, slot) + ;} + @Override public Observable listRelayServiceConnectionsSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); @@ -3315,9 +3608,69 @@ public FunctionSecrets call(FunctionSecretsInner inner) { } @Override - public Completable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + public Observable getSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.getSwiftVirtualNetworkConnectionSlotAsync(resourceGroupName, name, slot) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Observable createOrUpdateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + WebAppsInner client = this.inner(); + return client.createOrUpdateSwiftVirtualNetworkConnectionSlotAsync(resourceGroupName, name, slot, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Completable deleteSwiftVirtualNetworkSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.deleteSwiftVirtualNetworkSlotAsync(resourceGroupName, name, slot).toCompletable(); + } + + @Override + public Observable updateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { WebAppsInner client = this.inner(); - return client.startWebSiteNetworkTraceSlotAsync(resourceGroupName, name, slot).toCompletable(); + return client.updateSwiftVirtualNetworkConnectionSlotAsync(resourceGroupName, name, slot, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.startWebSiteNetworkTraceSlotAsync(resourceGroupName, name, slot) + ;} + + @Override + public Observable startWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.startWebSiteNetworkTraceOperationSlotAsync(resourceGroupName, name, slot) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); } @Override @@ -3326,6 +3679,24 @@ public Completable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, St return client.stopWebSiteNetworkTraceSlotAsync(resourceGroupName, name, slot).toCompletable(); } + @Override + public Observable getNetworkTracesSlotAsync(String resourceGroupName, String name, String operationId, String slot) { + WebAppsInner client = this.inner(); + return client.getNetworkTracesSlotAsync(resourceGroupName, name, operationId, slot) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + @Override public Completable generateNewSitePublishingPasswordSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); @@ -3345,16 +3716,16 @@ public SitePhpErrorLogFlag call(SitePhpErrorLogFlagInner inner) { } @Override - public Completable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot) { + public Observable getProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot) { WebAppsInner client = this.inner(); - return client.getProcessDumpSlotAsync(resourceGroupName, name, processId, slot).toCompletable(); - } + return client.getProcessDumpSlotAsync(resourceGroupName, name, processId, slot) + ;} @Override - public Completable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot) { + public Observable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, CsmPublishingProfileOptions publishingProfileOptions) { WebAppsInner client = this.inner(); - return client.listPublishingProfileXmlWithSecretsSlotAsync(resourceGroupName, name, slot).toCompletable(); - } + return client.listPublishingProfileXmlWithSecretsSlotAsync(resourceGroupName, name, slot, publishingProfileOptions) + ;} @Override public Completable resetSlotConfigurationSlotAsync(String resourceGroupName, String name, String slot) { @@ -3410,18 +3781,60 @@ public Completable swapSlotSlotAsync(String resourceGroupName, String name, Stri return client.swapSlotSlotAsync(resourceGroupName, name, slot, slotSwapEntity).toCompletable(); } + @Override + public Observable listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot) { + WebAppsInner client = this.inner(); + return client.listSnapshotsFromDRSecondarySlotAsync(resourceGroupName, name, slot) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Snapshot call(SnapshotInner inner) { + return new SnapshotImpl(inner, manager()); + } + }); + } + @Override public Completable startSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); return client.startSlotAsync(resourceGroupName, name, slot).toCompletable(); } + @Override + public Observable startNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.startNetworkTraceSlotAsync(resourceGroupName, name, slot) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List innerList) { + return Observable.from(innerList); + } + }) + .map(new Func1() { + @Override + public NetworkTrace call(NetworkTraceInner inner) { + return new NetworkTraceImpl(inner, manager()); + } + }); + } + @Override public Completable stopSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); return client.stopSlotAsync(resourceGroupName, name, slot).toCompletable(); } + @Override + public Completable stopNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.stopNetworkTraceSlotAsync(resourceGroupName, name, slot).toCompletable(); + } + @Override public Completable syncRepositorySlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsInner.java index a81903070ed58..5a0261e21d53e 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsInner.java @@ -22,7 +22,7 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DeletedAppRestoreRequest; import com.microsoft.azure.management.appservice.v2018_02_01.MigrateMySqlRequest; import com.microsoft.azure.management.appservice.v2018_02_01.MSDeploy; -import com.microsoft.azure.management.appservice.v2018_02_01.PublishingProfileFormat; +import com.microsoft.azure.management.appservice.v2018_02_01.PremierAddOnPatchResource; import com.microsoft.azure.management.appservice.v2018_02_01.SitePatchResource; import com.microsoft.azure.management.appservice.v2018_02_01.SnapshotRestoreRequest; import com.microsoft.azure.management.appservice.v2018_02_01.StorageMigrationOptions; @@ -122,10 +122,6 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups") Observable> listBackups(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps discoverRestore" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/discover") - Observable> discoverRestore(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body RestoreRequestInner request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getBackupStatus" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}") Observable> getBackupStatus(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("backupId") String backupId, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -166,6 +162,14 @@ interface WebAppsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings/list") Observable> getAuthSettings(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updateAzureStorageAccounts" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts") + Observable> updateAzureStorageAccounts(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body AzureStoragePropertyDictionaryResourceInner azureStorageAccounts, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listAzureStorageAccounts" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts/list") + Observable> listAzureStorageAccounts(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updateBackupConfiguration" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup") Observable> updateBackupConfiguration(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body BackupRequestInner request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -300,6 +304,10 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}/log") Observable> listDeploymentLog(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("id") String id, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps discoverBackup" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/discoverbackup") + Observable> discoverBackup(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body RestoreRequestInner request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listDomainOwnershipIdentifiers" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers") Observable> listDomainOwnershipIdentifiers(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -513,18 +521,58 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql/status") Observable> getMigrateMySqlStatus(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSwiftVirtualNetworkConnection" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork") + Observable> getSwiftVirtualNetworkConnection(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps createOrUpdateSwiftVirtualNetworkConnection" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork") + Observable> createOrUpdateSwiftVirtualNetworkConnection(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body SwiftVirtualNetworkInner connectionEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps deleteSwiftVirtualNetwork" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork", method = "DELETE", hasBody = true) + Observable> deleteSwiftVirtualNetwork(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updateSwiftVirtualNetworkConnection" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork") + Observable> updateSwiftVirtualNetworkConnection(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body SwiftVirtualNetworkInner connectionEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listNetworkFeatures" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkFeatures/{view}") Observable> listNetworkFeatures(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("view") String view, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTraceOperation" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/operationresults/{operationId}") + Observable> getNetworkTraceOperation(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps startWebSiteNetworkTrace" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/start") Observable> startWebSiteNetworkTrace(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps startWebSiteNetworkTraceOperation" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/startOperation") + Observable> startWebSiteNetworkTraceOperation(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps beginStartWebSiteNetworkTraceOperation" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/startOperation") + Observable> beginStartWebSiteNetworkTraceOperation(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps stopWebSiteNetworkTrace" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/stop") Observable> stopWebSiteNetworkTrace(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTraces" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTrace/{operationId}") + Observable> getNetworkTraces(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTraceOperationV2" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/current/operationresults/{operationId}") + Observable> getNetworkTraceOperationV2(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTracesV2" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkTraces/{operationId}") + Observable> getNetworkTracesV2(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps generateNewSitePublishingPassword" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/newpassword") Observable> generateNewSitePublishingPassword(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -553,6 +601,10 @@ interface WebAppsService { @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}", method = "DELETE", hasBody = true) Observable> deletePremierAddOn(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("premierAddOnName") String premierAddOnName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updatePremierAddOn" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}") + Observable> updatePremierAddOn(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("premierAddOnName") String premierAddOnName, @Path("subscriptionId") String subscriptionId, @Body PremierAddOnPatchResource premierAddOn, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getPrivateAccess" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateAccess/virtualNetworks") Observable> getPrivateAccess(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -613,7 +665,7 @@ interface WebAppsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listPublishingProfileXmlWithSecrets" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publishxml") @Streaming - Observable> listPublishingProfileXmlWithSecrets(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body CsmPublishingProfileOptions publishingProfileOptions, @Header("User-Agent") String userAgent); + Observable> listPublishingProfileXmlWithSecrets(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body CsmPublishingProfileOptions publishingProfileOptions, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps resetProductionSlotConfig" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resetSlotConfig") @@ -707,10 +759,6 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups") Observable> listBackupsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps discoverRestoreSlot" }) - @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/discover") - Observable> discoverRestoreSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body RestoreRequestInner request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getBackupStatusSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}") Observable> getBackupStatusSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("backupId") String backupId, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -751,6 +799,14 @@ interface WebAppsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings/list") Observable> getAuthSettingsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updateAzureStorageAccountsSlot" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts") + Observable> updateAzureStorageAccountsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body AzureStoragePropertyDictionaryResourceInner azureStorageAccounts, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listAzureStorageAccountsSlot" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts/list") + Observable> listAzureStorageAccountsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updateBackupConfigurationSlot" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/backup") Observable> updateBackupConfigurationSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body BackupRequestInner request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -877,6 +933,10 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}/log") Observable> listDeploymentLogSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("id") String id, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps discoverBackupSlot" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/discoverbackup") + Observable> discoverBackupSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body RestoreRequestInner request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listDomainOwnershipIdentifiersSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers") Observable> listDomainOwnershipIdentifiersSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1074,18 +1134,58 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/migratemysql/status") Observable> getMigrateMySqlStatusSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSwiftVirtualNetworkConnectionSlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork") + Observable> getSwiftVirtualNetworkConnectionSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps createOrUpdateSwiftVirtualNetworkConnectionSlot" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork") + Observable> createOrUpdateSwiftVirtualNetworkConnectionSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body SwiftVirtualNetworkInner connectionEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps deleteSwiftVirtualNetworkSlot" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork", method = "DELETE", hasBody = true) + Observable> deleteSwiftVirtualNetworkSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updateSwiftVirtualNetworkConnectionSlot" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork") + Observable> updateSwiftVirtualNetworkConnectionSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body SwiftVirtualNetworkInner connectionEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listNetworkFeaturesSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkFeatures/{view}") Observable> listNetworkFeaturesSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("view") String view, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTraceOperationSlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/operationresults/{operationId}") + Observable> getNetworkTraceOperationSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps startWebSiteNetworkTraceSlot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/start") Observable> startWebSiteNetworkTraceSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps startWebSiteNetworkTraceOperationSlot" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/startOperation") + Observable> startWebSiteNetworkTraceOperationSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps beginStartWebSiteNetworkTraceOperationSlot" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/startOperation") + Observable> beginStartWebSiteNetworkTraceOperationSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps stopWebSiteNetworkTraceSlot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/stop") Observable> stopWebSiteNetworkTraceSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTracesSlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTrace/{operationId}") + Observable> getNetworkTracesSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTraceOperationSlotV2" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/current/operationresults/{operationId}") + Observable> getNetworkTraceOperationSlotV2(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getNetworkTracesSlotV2" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkTraces/{operationId}") + Observable> getNetworkTracesSlotV2(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("operationId") String operationId, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps generateNewSitePublishingPasswordSlot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/newpassword") Observable> generateNewSitePublishingPasswordSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1114,6 +1214,10 @@ interface WebAppsService { @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}", method = "DELETE", hasBody = true) Observable> deletePremierAddOnSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("premierAddOnName") String premierAddOnName, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps updatePremierAddOnSlot" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}") + Observable> updatePremierAddOnSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("premierAddOnName") String premierAddOnName, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body PremierAddOnPatchResource premierAddOn, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getPrivateAccessSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateAccess/virtualNetworks") Observable> getPrivateAccessSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1174,7 +1278,7 @@ interface WebAppsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listPublishingProfileXmlWithSecretsSlot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publishxml") @Streaming - Observable> listPublishingProfileXmlWithSecretsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body CsmPublishingProfileOptions publishingProfileOptions, @Header("User-Agent") String userAgent); + Observable> listPublishingProfileXmlWithSecretsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body CsmPublishingProfileOptions publishingProfileOptions, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps resetSlotConfigurationSlot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resetSlotConfig") @@ -1244,6 +1348,10 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshots") Observable> listSnapshotsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondarySlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshotsdr") + Observable> listSnapshotsFromDRSecondarySlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSourceControlSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web") Observable> getSourceControlSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1268,10 +1376,22 @@ interface WebAppsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/start") Observable> startSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps startNetworkTraceSlot" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/startNetworkTrace") + Observable> startNetworkTraceSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps beginStartNetworkTraceSlot" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/startNetworkTrace") + Observable> beginStartNetworkTraceSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps stopSlot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/stop") Observable> stopSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps stopNetworkTraceSlot" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/stopNetworkTrace") + Observable> stopNetworkTraceSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps syncRepositorySlot" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sync") Observable> syncRepositorySlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1364,6 +1484,10 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshots") Observable> listSnapshots(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondary" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshotsdr") + Observable> listSnapshotsFromDRSecondary(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSourceControl" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web") Observable> getSourceControl(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1388,10 +1512,22 @@ interface WebAppsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/start") Observable> start(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps startNetworkTrace" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/startNetworkTrace") + Observable> startNetworkTrace(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps beginStartNetworkTrace" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/startNetworkTrace") + Observable> beginStartNetworkTrace(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("durationInSeconds") Integer durationInSeconds, @Query("maxFrameLength") Integer maxFrameLength, @Query("sasUrl") String sasUrl, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps stop" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stop") Observable> stop(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps stopNetworkTrace" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/stopNetworkTrace") + Observable> stopNetworkTrace(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps syncRepository" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sync") Observable> syncRepository(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1648,6 +1784,10 @@ interface WebAppsService { @GET Observable> listSnapshotsSlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondarySlotNext" }) + @GET + Observable> listSnapshotsFromDRSecondarySlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listTriggeredWebJobsSlotNext" }) @GET Observable> listTriggeredWebJobsSlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1672,6 +1812,10 @@ interface WebAppsService { @GET Observable> listSnapshotsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondaryNext" }) + @GET + Observable> listSnapshotsFromDRSecondaryNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listTriggeredWebJobsNext" }) @GET Observable> listTriggeredWebJobsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -3095,104 +3239,6 @@ private ServiceResponse> listBackupsDelegate(Response< .build(response); } - /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the RestoreRequestInner object if successful. - */ - public RestoreRequestInner discoverRestore(String resourceGroupName, String name, RestoreRequestInner request) { - return discoverRestoreWithServiceResponseAsync(resourceGroupName, name, request).toBlocking().single().body(); - } - - /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture discoverRestoreAsync(String resourceGroupName, String name, RestoreRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(discoverRestoreWithServiceResponseAsync(resourceGroupName, name, request), serviceCallback); - } - - /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RestoreRequestInner object - */ - public Observable discoverRestoreAsync(String resourceGroupName, String name, RestoreRequestInner request) { - return discoverRestoreWithServiceResponseAsync(resourceGroupName, name, request).map(new Func1, RestoreRequestInner>() { - @Override - public RestoreRequestInner call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RestoreRequestInner object - */ - public Observable> discoverRestoreWithServiceResponseAsync(String resourceGroupName, String name, RestoreRequestInner request) { - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (name == null) { - throw new IllegalArgumentException("Parameter name is required and cannot be null."); - } - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); - } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - Validator.validate(request); - return service.discoverRestore(resourceGroupName, name, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = discoverRestoreDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse discoverRestoreDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** * Gets a backup of an app by its ID. * Gets a backup of an app by its ID. @@ -4188,6 +4234,194 @@ private ServiceResponse getAuthSettingsDelegate(Response< .build(response); } + /** + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AzureStoragePropertyDictionaryResourceInner object if successful. + */ + public AzureStoragePropertyDictionaryResourceInner updateAzureStorageAccounts(String resourceGroupName, String name, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { + return updateAzureStorageAccountsWithServiceResponseAsync(resourceGroupName, name, azureStorageAccounts).toBlocking().single().body(); + } + + /** + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAzureStorageAccountsAsync(String resourceGroupName, String name, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateAzureStorageAccountsWithServiceResponseAsync(resourceGroupName, name, azureStorageAccounts), serviceCallback); + } + + /** + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object + */ + public Observable updateAzureStorageAccountsAsync(String resourceGroupName, String name, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { + return updateAzureStorageAccountsWithServiceResponseAsync(resourceGroupName, name, azureStorageAccounts).map(new Func1, AzureStoragePropertyDictionaryResourceInner>() { + @Override + public AzureStoragePropertyDictionaryResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param azureStorageAccounts Azure storage accounts of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object + */ + public Observable> updateAzureStorageAccountsWithServiceResponseAsync(String resourceGroupName, String name, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (azureStorageAccounts == null) { + throw new IllegalArgumentException("Parameter azureStorageAccounts is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(azureStorageAccounts); + return service.updateAzureStorageAccounts(resourceGroupName, name, this.client.subscriptionId(), azureStorageAccounts, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateAzureStorageAccountsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateAzureStorageAccountsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the AzureStoragePropertyDictionaryResourceInner object if successful. + */ + public AzureStoragePropertyDictionaryResourceInner listAzureStorageAccounts(String resourceGroupName, String name) { + return listAzureStorageAccountsWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listAzureStorageAccountsAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listAzureStorageAccountsWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object + */ + public Observable listAzureStorageAccountsAsync(String resourceGroupName, String name) { + return listAzureStorageAccountsWithServiceResponseAsync(resourceGroupName, name).map(new Func1, AzureStoragePropertyDictionaryResourceInner>() { + @Override + public AzureStoragePropertyDictionaryResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object + */ + public Observable> listAzureStorageAccountsWithServiceResponseAsync(String resourceGroupName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listAzureStorageAccounts(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listAzureStorageAccountsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listAzureStorageAccountsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Updates the backup configuration of an app. * Updates the backup configuration of an app. @@ -7398,6 +7632,104 @@ private ServiceResponse listDeploymentLogDelegate(Response discoverBackupAsync(String resourceGroupName, String name, RestoreRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(discoverBackupWithServiceResponseAsync(resourceGroupName, name, request), serviceCallback); + } + + /** + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RestoreRequestInner object + */ + public Observable discoverBackupAsync(String resourceGroupName, String name, RestoreRequestInner request) { + return discoverBackupWithServiceResponseAsync(resourceGroupName, name, request).map(new Func1, RestoreRequestInner>() { + @Override + public RestoreRequestInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RestoreRequestInner object + */ + public Observable> discoverBackupWithServiceResponseAsync(String resourceGroupName, String name, RestoreRequestInner request) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(request); + return service.discoverBackup(resourceGroupName, name, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = discoverBackupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse discoverBackupDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Lists ownership identifiers for domain associated with web app. * Lists ownership identifiers for domain associated with web app. @@ -12462,7 +12794,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param details Specify "true" to include metric details in the response. It is "false" by default. - * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -12509,7 +12841,7 @@ public Observable>> call(String nextPa * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param details Specify "true" to include metric details in the response. It is "false" by default. - * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -12530,7 +12862,7 @@ public Page call(ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param details Specify "true" to include metric details in the response. It is "false" by default. - * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ResourceMetricInner> object */ @@ -12555,7 +12887,7 @@ public Observable>> call(ServiceRespon ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of the app. ServiceResponse> * @param details Specify "true" to include metric details in the response. It is "false" by default. - ServiceResponse> * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -13056,87 +13388,80 @@ private ServiceResponse getMigrateMySqlStatusDelegate(R } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the NetworkFeaturesInner object if successful. + * @return the SwiftVirtualNetworkInner object if successful. */ - public NetworkFeaturesInner listNetworkFeatures(String resourceGroupName, String name, String view) { - return listNetworkFeaturesWithServiceResponseAsync(resourceGroupName, name, view).toBlocking().single().body(); + public SwiftVirtualNetworkInner getSwiftVirtualNetworkConnection(String resourceGroupName, String name) { + return getSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listNetworkFeaturesAsync(String resourceGroupName, String name, String view, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listNetworkFeaturesWithServiceResponseAsync(resourceGroupName, name, view), serviceCallback); + public ServiceFuture getSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the NetworkFeaturesInner object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable listNetworkFeaturesAsync(String resourceGroupName, String name, String view) { - return listNetworkFeaturesWithServiceResponseAsync(resourceGroupName, name, view).map(new Func1, NetworkFeaturesInner>() { + public Observable getSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name) { + return getSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name).map(new Func1, SwiftVirtualNetworkInner>() { @Override - public NetworkFeaturesInner call(ServiceResponse response) { + public SwiftVirtualNetworkInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the NetworkFeaturesInner object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable> listNetworkFeaturesWithServiceResponseAsync(String resourceGroupName, String name, String view) { + public Observable> getSwiftVirtualNetworkConnectionWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (view == null) { - throw new IllegalArgumentException("Parameter view is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listNetworkFeatures(resourceGroupName, name, view, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSwiftVirtualNetworkConnection(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listNetworkFeaturesDelegate(response); + ServiceResponse clientResponse = getSwiftVirtualNetworkConnectionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -13145,71 +13470,82 @@ public Observable> call(Response listNetworkFeaturesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getSwiftVirtualNetworkConnectionDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the String object if successful. + * @return the SwiftVirtualNetworkInner object if successful. */ - public String startWebSiteNetworkTrace(String resourceGroupName, String name) { - return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public SwiftVirtualNetworkInner createOrUpdateSwiftVirtualNetworkConnection(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).toBlocking().single().body(); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture startWebSiteNetworkTraceAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture createOrUpdateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope), serviceCallback); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name) { - return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).map(new Func1, String>() { + public Observable createOrUpdateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { @Override - public String call(ServiceResponse response) { + public SwiftVirtualNetworkInner call(ServiceResponse response) { return response.body(); } }); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable> startWebSiteNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -13219,18 +13555,19 @@ public Observable> startWebSiteNetworkTraceWithServiceRe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final Integer durationInSeconds = null; - final Integer maxFrameLength = null; - final String sasUrl = null; - return service.startWebSiteNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(connectionEnvelope); + return service.createOrUpdateSwiftVirtualNetworkConnection(resourceGroupName, name, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = startWebSiteNetworkTraceDelegate(response); + ServiceResponse clientResponse = createOrUpdateSwiftVirtualNetworkConnectionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -13239,75 +13576,69 @@ public Observable> call(Response response) }); } + private ServiceResponse createOrUpdateSwiftVirtualNetworkConnectionDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the String object if successful. */ - public String startWebSiteNetworkTrace(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { - return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); + public void deleteSwiftVirtualNetwork(String resourceGroupName, String name) { + deleteSwiftVirtualNetworkWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture startWebSiteNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); + public ServiceFuture deleteSwiftVirtualNetworkAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSwiftVirtualNetworkWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the {@link ServiceResponse} object if successful. */ - public Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { - return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).map(new Func1, String>() { + public Observable deleteSwiftVirtualNetworkAsync(String resourceGroupName, String name) { + return deleteSwiftVirtualNetworkWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { @Override - public String call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> startWebSiteNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + public Observable> deleteSwiftVirtualNetworkWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -13320,12 +13651,12 @@ public Observable> startWebSiteNetworkTraceWithServiceRe if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.startWebSiteNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deleteSwiftVirtualNetwork(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = startWebSiteNetworkTraceDelegate(response); + ServiceResponse clientResponse = deleteSwiftVirtualNetworkDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -13334,70 +13665,83 @@ public Observable> call(Response response) }); } - private ServiceResponse startWebSiteNetworkTraceDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteSwiftVirtualNetworkDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the String object if successful. + * @return the SwiftVirtualNetworkInner object if successful. */ - public String stopWebSiteNetworkTrace(String resourceGroupName, String name) { - return stopWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public SwiftVirtualNetworkInner updateSwiftVirtualNetworkConnection(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).toBlocking().single().body(); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture stopWebSiteNetworkTraceAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(stopWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture updateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope), serviceCallback); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name) { - return stopWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).map(new Func1, String>() { + public Observable updateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { @Override - public String call(ServiceResponse response) { + public SwiftVirtualNetworkInner call(ServiceResponse response) { return response.body(); } }); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. + * @param name Name of the app. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable> stopWebSiteNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -13407,15 +13751,19 @@ public Observable> stopWebSiteNetworkTraceWithServiceRes if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.stopWebSiteNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(connectionEnvelope); + return service.updateSwiftVirtualNetworkConnection(resourceGroupName, name, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = stopWebSiteNetworkTraceDelegate(response); + ServiceResponse clientResponse = updateSwiftVirtualNetworkConnectionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -13424,87 +13772,95 @@ public Observable> call(Response response) }); } - private ServiceResponse stopWebSiteNetworkTraceDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateSwiftVirtualNetworkConnectionDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Generates a new publishing password for an app (or deployment slot, if specified). - * Generates a new publishing password for an app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NetworkFeaturesInner object if successful. */ - public void generateNewSitePublishingPassword(String resourceGroupName, String name) { - generateNewSitePublishingPasswordWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public NetworkFeaturesInner listNetworkFeatures(String resourceGroupName, String name, String view) { + return listNetworkFeaturesWithServiceResponseAsync(resourceGroupName, name, view).toBlocking().single().body(); } /** - * Generates a new publishing password for an app (or deployment slot, if specified). - * Generates a new publishing password for an app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture generateNewSitePublishingPasswordAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(generateNewSitePublishingPasswordWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture listNetworkFeaturesAsync(String resourceGroupName, String name, String view, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listNetworkFeaturesWithServiceResponseAsync(resourceGroupName, name, view), serviceCallback); } /** - * Generates a new publishing password for an app (or deployment slot, if specified). - * Generates a new publishing password for an app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the NetworkFeaturesInner object */ - public Observable generateNewSitePublishingPasswordAsync(String resourceGroupName, String name) { - return generateNewSitePublishingPasswordWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { + public Observable listNetworkFeaturesAsync(String resourceGroupName, String name, String view) { + return listNetworkFeaturesWithServiceResponseAsync(resourceGroupName, name, view).map(new Func1, NetworkFeaturesInner>() { @Override - public Void call(ServiceResponse response) { + public NetworkFeaturesInner call(ServiceResponse response) { return response.body(); } }); } /** - * Generates a new publishing password for an app (or deployment slot, if specified). - * Generates a new publishing password for an app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the NetworkFeaturesInner object */ - public Observable> generateNewSitePublishingPasswordWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> listNetworkFeaturesWithServiceResponseAsync(String resourceGroupName, String name, String view) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (view == null) { + throw new IllegalArgumentException("Parameter view is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.generateNewSitePublishingPassword(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listNetworkFeatures(resourceGroupName, name, view, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = generateNewSitePublishingPasswordDelegate(response); + ServiceResponse clientResponse = listNetworkFeaturesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -13513,129 +13869,97 @@ public Observable> call(Response response) { }); } - private ServiceResponse generateNewSitePublishingPasswordDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) + private ServiceResponse listNetworkFeaturesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<PerfMonResponseInner> object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PagedList listPerfMonCounters(final String resourceGroupName, final String name) { - ServiceResponse> response = listPerfMonCountersSinglePageAsync(resourceGroupName, name).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listPerfMonCountersNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public List getNetworkTraceOperation(String resourceGroupName, String name, String operationId) { + return getNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, operationId).toBlocking().single().body(); } /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name Name of the app. + * @param operationId GUID of the operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listPerfMonCountersAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listPerfMonCountersSinglePageAsync(resourceGroupName, name), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listPerfMonCountersNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<PerfMonResponseInner> object - */ - public Observable> listPerfMonCountersAsync(final String resourceGroupName, final String name) { - return listPerfMonCountersWithServiceResponseAsync(resourceGroupName, name) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public ServiceFuture> getNetworkTraceOperationAsync(String resourceGroupName, String name, String operationId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, operationId), serviceCallback); } /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<PerfMonResponseInner> object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable>> listPerfMonCountersWithServiceResponseAsync(final String resourceGroupName, final String name) { - return listPerfMonCountersSinglePageAsync(resourceGroupName, name) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listPerfMonCountersNextWithServiceResponseAsync(nextPageLink)); - } - }); + public Observable> getNetworkTraceOperationAsync(String resourceGroupName, String name, String operationId) { + return getNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, operationId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<PerfMonResponseInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the List<NetworkTraceInner> object */ - public Observable>> listPerfMonCountersSinglePageAsync(final String resourceGroupName, final String name) { + public Observable>> getNetworkTraceOperationWithServiceResponseAsync(String resourceGroupName, String name, String operationId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final String filter = null; - return service.listPerfMonCounters(resourceGroupName, name, this.client.subscriptionId(), filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.getNetworkTraceOperation(resourceGroupName, name, operationId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listPerfMonCountersDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> clientResponse = getNetworkTraceOperationDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -13643,106 +13967,71 @@ public Observable>> call(Response> getNetworkTraceOperationDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<PerfMonResponseInner> object if successful. + * @return the String object if successful. */ - public PagedList listPerfMonCounters(final String resourceGroupName, final String name, final String filter) { - ServiceResponse> response = listPerfMonCountersSinglePageAsync(resourceGroupName, name, filter).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listPerfMonCountersNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public String startWebSiteNetworkTrace(String resourceGroupName, String name) { + return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listPerfMonCountersAsync(final String resourceGroupName, final String name, final String filter, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listPerfMonCountersSinglePageAsync(resourceGroupName, name, filter), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listPerfMonCountersNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture startWebSiteNetworkTraceAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<PerfMonResponseInner> object + * @return the observable to the String object */ - public Observable> listPerfMonCountersAsync(final String resourceGroupName, final String name, final String filter) { - return listPerfMonCountersWithServiceResponseAsync(resourceGroupName, name, filter) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name) { + return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).map(new Func1, String>() { + @Override + public String call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<PerfMonResponseInner> object - */ - public Observable>> listPerfMonCountersWithServiceResponseAsync(final String resourceGroupName, final String name, final String filter) { - return listPerfMonCountersSinglePageAsync(resourceGroupName, name, filter) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listPerfMonCountersNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets perfmon counters for web app. - * Gets perfmon counters for web app. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of web app. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<PerfMonResponseInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the String object */ - public Observable>> listPerfMonCountersSinglePageAsync(final String resourceGroupName, final String name, final String filter) { + public Observable> startWebSiteNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -13755,13 +14044,16 @@ public Observable>> listPerfMonCounte if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listPerfMonCounters(resourceGroupName, name, this.client.subscriptionId(), filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + return service.startWebSiteNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listPerfMonCountersDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = startWebSiteNetworkTraceDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -13769,70 +14061,75 @@ public Observable>> call(Response> listPerfMonCountersDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** - * Gets web app's event logs. - * Gets web app's event logs. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SitePhpErrorLogFlagInner object if successful. + * @return the String object if successful. */ - public SitePhpErrorLogFlagInner getSitePhpErrorLogFlag(String resourceGroupName, String name) { - return getSitePhpErrorLogFlagWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public String startWebSiteNetworkTrace(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); } /** - * Gets web app's event logs. - * Gets web app's event logs. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getSitePhpErrorLogFlagAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getSitePhpErrorLogFlagWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture startWebSiteNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); } /** - * Gets web app's event logs. - * Gets web app's event logs. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SitePhpErrorLogFlagInner object + * @return the observable to the String object */ - public Observable getSitePhpErrorLogFlagAsync(String resourceGroupName, String name) { - return getSitePhpErrorLogFlagWithServiceResponseAsync(resourceGroupName, name).map(new Func1, SitePhpErrorLogFlagInner>() { + public Observable startWebSiteNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).map(new Func1, String>() { @Override - public SitePhpErrorLogFlagInner call(ServiceResponse response) { + public String call(ServiceResponse response) { return response.body(); } }); } /** - * Gets web app's event logs. - * Gets web app's event logs. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SitePhpErrorLogFlagInner object + * @return the observable to the String object */ - public Observable> getSitePhpErrorLogFlagWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> startWebSiteNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -13845,12 +14142,12 @@ public Observable> getSitePhpErrorLogF if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSitePhpErrorLogFlag(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.startWebSiteNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getSitePhpErrorLogFlagDelegate(response); + ServiceResponse clientResponse = startWebSiteNetworkTraceDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -13859,70 +14156,70 @@ public Observable> call(Response getSitePhpErrorLogFlagDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse startWebSiteNetworkTraceDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the premier add-ons of an app. - * Gets the premier add-ons of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PremierAddOnInner object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PremierAddOnInner listPremierAddOns(String resourceGroupName, String name) { - return listPremierAddOnsWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public List startWebSiteNetworkTraceOperation(String resourceGroupName, String name) { + return startWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name).toBlocking().last().body(); } /** - * Gets the premier add-ons of an app. - * Gets the premier add-ons of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listPremierAddOnsAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listPremierAddOnsWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture> startWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Gets the premier add-ons of an app. - * Gets the premier add-ons of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PremierAddOnInner object + * @return the observable for the request */ - public Observable listPremierAddOnsAsync(String resourceGroupName, String name) { - return listPremierAddOnsWithServiceResponseAsync(resourceGroupName, name).map(new Func1, PremierAddOnInner>() { + public Observable> startWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name) { + return startWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name).map(new Func1>, List>() { @Override - public PremierAddOnInner call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Gets the premier add-ons of an app. - * Gets the premier add-ons of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PremierAddOnInner object + * @return the observable for the request */ - public Observable> listPremierAddOnsWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable>> startWebSiteNetworkTraceOperationWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -13935,214 +14232,175 @@ public Observable> listPremierAddOnsWithServi if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listPremierAddOns(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = listPremierAddOnsDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse listPremierAddOnsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + Observable> observable = service.startWebSiteNetworkTraceOperation(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); } - /** - * Gets a named add-on of an app. - * Gets a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PremierAddOnInner object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PremierAddOnInner getPremierAddOn(String resourceGroupName, String name, String premierAddOnName) { - return getPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).toBlocking().single().body(); + public List startWebSiteNetworkTraceOperation(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).toBlocking().last().body(); } /** - * Gets a named add-on of an app. - * Gets a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName), serviceCallback); + public ServiceFuture> startWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); } /** - * Gets a named add-on of an app. - * Gets a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PremierAddOnInner object + * @return the observable for the request */ - public Observable getPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName) { - return getPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).map(new Func1, PremierAddOnInner>() { + public Observable> startWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { @Override - public PremierAddOnInner call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Gets a named add-on of an app. - * Gets a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PremierAddOnInner object + * @return the observable for the request */ - public Observable> getPremierAddOnWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName) { + public Observable>> startWebSiteNetworkTraceOperationWithServiceResponseAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (premierAddOnName == null) { - throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getPremierAddOn(resourceGroupName, name, premierAddOnName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = getPremierAddOnDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse getPremierAddOnDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + Observable> observable = service.startWebSiteNetworkTraceOperation(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); } /** - * Updates a named add-on of an app. - * Updates a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. - * @param premierAddOn A JSON representation of the edited premier add-on. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PremierAddOnInner object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PremierAddOnInner addPremierAddOn(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn) { - return addPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn).toBlocking().single().body(); + public List beginStartWebSiteNetworkTraceOperation(String resourceGroupName, String name) { + return beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Updates a named add-on of an app. - * Updates a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. - * @param premierAddOn A JSON representation of the edited premier add-on. + * @param name The name of the web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture addPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(addPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn), serviceCallback); + public ServiceFuture> beginStartWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Updates a named add-on of an app. - * Updates a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. - * @param premierAddOn A JSON representation of the edited premier add-on. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PremierAddOnInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable addPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn) { - return addPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn).map(new Func1, PremierAddOnInner>() { + public Observable> beginStartWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name) { + return beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name).map(new Func1>, List>() { @Override - public PremierAddOnInner call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Updates a named add-on of an app. - * Updates a named add-on of an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. - * @param premierAddOn A JSON representation of the edited premier add-on. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PremierAddOnInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> addPremierAddOnWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn) { + public Observable>> beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (premierAddOnName == null) { - throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (premierAddOn == null) { - throw new IllegalArgumentException("Parameter premierAddOn is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(premierAddOn); - return service.addPremierAddOn(resourceGroupName, name, premierAddOnName, this.client.subscriptionId(), premierAddOn, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + return service.beginStartWebSiteNetworkTraceOperation(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = addPremierAddOnDelegate(response); + ServiceResponse> clientResponse = beginStartWebSiteNetworkTraceOperationDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -14151,94 +14409,93 @@ public Observable> call(Response addPremierAddOnDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** - * Delete a premier add-on from an app. - * Delete a premier add-on from an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. */ - public void deletePremierAddOn(String resourceGroupName, String name, String premierAddOnName) { - deletePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).toBlocking().single().body(); + public List beginStartWebSiteNetworkTraceOperation(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); } /** - * Delete a premier add-on from an app. - * Delete a premier add-on from an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deletePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deletePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName), serviceCallback); + public ServiceFuture> beginStartWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); } /** - * Delete a premier add-on from an app. - * Delete a premier add-on from an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the List<NetworkTraceInner> object */ - public Observable deletePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName) { - return deletePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).map(new Func1, Void>() { + public Observable> beginStartWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { @Override - public Void call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Delete a premier add-on from an app. - * Delete a premier add-on from an app. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param premierAddOnName Add-on name. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> deletePremierAddOnWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName) { + public Observable>> beginStartWebSiteNetworkTraceOperationWithServiceResponseAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (premierAddOnName == null) { - throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deletePremierAddOn(resourceGroupName, name, premierAddOnName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.beginStartWebSiteNetworkTraceOperation(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = deletePremierAddOnDelegate(response); + ServiceResponse> clientResponse = beginStartWebSiteNetworkTraceOperationDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -14247,31 +14504,31 @@ public Observable> call(Response response) { }); } - private ServiceResponse deletePremierAddOnDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> beginStartWebSiteNetworkTraceOperationDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PrivateAccessInner object if successful. */ - public PrivateAccessInner getPrivateAccess(String resourceGroupName, String name) { - return getPrivateAccessWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public void stopWebSiteNetworkTrace(String resourceGroupName, String name) { + stopWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name The name of the web app. @@ -14279,38 +14536,38 @@ public PrivateAccessInner getPrivateAccess(String resourceGroupName, String name * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getPrivateAccessAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getPrivateAccessWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture stopWebSiteNetworkTraceAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PrivateAccessInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getPrivateAccessAsync(String resourceGroupName, String name) { - return getPrivateAccessWithServiceResponseAsync(resourceGroupName, name).map(new Func1, PrivateAccessInner>() { + public Observable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name) { + return stopWebSiteNetworkTraceWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { @Override - public PrivateAccessInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. - * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PrivateAccessInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getPrivateAccessWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> stopWebSiteNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -14323,12 +14580,12 @@ public Observable> getPrivateAccessWithServi if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getPrivateAccess(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.stopWebSiteNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getPrivateAccessDelegate(response); + ServiceResponse clientResponse = stopWebSiteNetworkTraceDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -14337,96 +14594,96 @@ public Observable> call(Response getPrivateAccessDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse stopWebSiteNetworkTraceDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param access The information for the private access + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PrivateAccessInner object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PrivateAccessInner putPrivateAccessVnet(String resourceGroupName, String name, PrivateAccessInner access) { - return putPrivateAccessVnetWithServiceResponseAsync(resourceGroupName, name, access).toBlocking().single().body(); + public List getNetworkTraces(String resourceGroupName, String name, String operationId) { + return getNetworkTracesWithServiceResponseAsync(resourceGroupName, name, operationId).toBlocking().single().body(); } /** - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param access The information for the private access + * @param name Name of the app. + * @param operationId GUID of the operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture putPrivateAccessVnetAsync(String resourceGroupName, String name, PrivateAccessInner access, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(putPrivateAccessVnetWithServiceResponseAsync(resourceGroupName, name, access), serviceCallback); + public ServiceFuture> getNetworkTracesAsync(String resourceGroupName, String name, String operationId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTracesWithServiceResponseAsync(resourceGroupName, name, operationId), serviceCallback); } /** - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param access The information for the private access + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PrivateAccessInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable putPrivateAccessVnetAsync(String resourceGroupName, String name, PrivateAccessInner access) { - return putPrivateAccessVnetWithServiceResponseAsync(resourceGroupName, name, access).map(new Func1, PrivateAccessInner>() { + public Observable> getNetworkTracesAsync(String resourceGroupName, String name, String operationId) { + return getNetworkTracesWithServiceResponseAsync(resourceGroupName, name, operationId).map(new Func1>, List>() { @Override - public PrivateAccessInner call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. - * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param access The information for the private access + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PrivateAccessInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> putPrivateAccessVnetWithServiceResponseAsync(String resourceGroupName, String name, PrivateAccessInner access) { + public Observable>> getNetworkTracesWithServiceResponseAsync(String resourceGroupName, String name, String operationId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (access == null) { - throw new IllegalArgumentException("Parameter access is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(access); - return service.putPrivateAccessVnet(resourceGroupName, name, this.client.subscriptionId(), access, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getNetworkTraces(resourceGroupName, name, operationId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = putPrivateAccessVnetDelegate(response); + ServiceResponse> clientResponse = getNetworkTracesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -14435,127 +14692,96 @@ public Observable> call(Response putPrivateAccessVnetDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> getNetworkTracesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ProcessInfoInner> object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PagedList listProcesses(final String resourceGroupName, final String name) { - ServiceResponse> response = listProcessesSinglePageAsync(resourceGroupName, name).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listProcessesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public List getNetworkTraceOperationV2(String resourceGroupName, String name, String operationId) { + return getNetworkTraceOperationV2WithServiceResponseAsync(resourceGroupName, name, operationId).toBlocking().single().body(); } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. + * @param name Name of the app. + * @param operationId GUID of the operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listProcessesAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listProcessesSinglePageAsync(resourceGroupName, name), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listProcessesNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture> getNetworkTraceOperationV2Async(String resourceGroupName, String name, String operationId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTraceOperationV2WithServiceResponseAsync(resourceGroupName, name, operationId), serviceCallback); } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessInfoInner> object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> listProcessesAsync(final String resourceGroupName, final String name) { - return listProcessesWithServiceResponseAsync(resourceGroupName, name) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable> getNetworkTraceOperationV2Async(String resourceGroupName, String name, String operationId) { + return getNetworkTraceOperationV2WithServiceResponseAsync(resourceGroupName, name, operationId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessInfoInner> object - */ - public Observable>> listProcessesWithServiceResponseAsync(final String resourceGroupName, final String name) { - return listProcessesSinglePageAsync(resourceGroupName, name) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listProcessesNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ProcessInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the List<NetworkTraceInner> object */ - public Observable>> listProcessesSinglePageAsync(final String resourceGroupName, final String name) { + public Observable>> getNetworkTraceOperationV2WithServiceResponseAsync(String resourceGroupName, String name, String operationId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listProcesses(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.getNetworkTraceOperationV2(resourceGroupName, name, operationId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listProcessesDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> clientResponse = getNetworkTraceOperationV2Delegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -14563,83 +14789,83 @@ public Observable>> call(Response> listProcessesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> getNetworkTraceOperationV2Delegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ProcessInfoInner object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public ProcessInfoInner getProcess(String resourceGroupName, String name, String processId) { - return getProcessWithServiceResponseAsync(resourceGroupName, name, processId).toBlocking().single().body(); + public List getNetworkTracesV2(String resourceGroupName, String name, String operationId) { + return getNetworkTracesV2WithServiceResponseAsync(resourceGroupName, name, operationId).toBlocking().single().body(); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. + * @param operationId GUID of the operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getProcessAsync(String resourceGroupName, String name, String processId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getProcessWithServiceResponseAsync(resourceGroupName, name, processId), serviceCallback); + public ServiceFuture> getNetworkTracesV2Async(String resourceGroupName, String name, String operationId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTracesV2WithServiceResponseAsync(resourceGroupName, name, operationId), serviceCallback); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessInfoInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable getProcessAsync(String resourceGroupName, String name, String processId) { - return getProcessWithServiceResponseAsync(resourceGroupName, name, processId).map(new Func1, ProcessInfoInner>() { + public Observable> getNetworkTracesV2Async(String resourceGroupName, String name, String operationId) { + return getNetworkTracesV2WithServiceResponseAsync(resourceGroupName, name, operationId).map(new Func1>, List>() { @Override - public ProcessInfoInner call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. + * @param operationId GUID of the operation. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessInfoInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> getProcessWithServiceResponseAsync(String resourceGroupName, String name, String processId) { + public Observable>> getNetworkTracesV2WithServiceResponseAsync(String resourceGroupName, String name, String operationId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -14647,12 +14873,12 @@ public Observable> getProcessWithServiceRespon if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getProcess(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getNetworkTracesV2(resourceGroupName, name, operationId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getProcessDelegate(response); + ServiceResponse> clientResponse = getNetworkTracesV2Delegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -14661,56 +14887,52 @@ public Observable> call(Response }); } - private ServiceResponse getProcessDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> getNetworkTracesV2Delegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Generates a new publishing password for an app (or deployment slot, if specified). + * Generates a new publishing password for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteProcess(String resourceGroupName, String name, String processId) { - deleteProcessWithServiceResponseAsync(resourceGroupName, name, processId).toBlocking().single().body(); + public void generateNewSitePublishingPassword(String resourceGroupName, String name) { + generateNewSitePublishingPasswordWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Generates a new publishing password for an app (or deployment slot, if specified). + * Generates a new publishing password for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteProcessAsync(String resourceGroupName, String name, String processId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteProcessWithServiceResponseAsync(resourceGroupName, name, processId), serviceCallback); + public ServiceFuture generateNewSitePublishingPasswordAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(generateNewSitePublishingPasswordWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Generates a new publishing password for an app (or deployment slot, if specified). + * Generates a new publishing password for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable deleteProcessAsync(String resourceGroupName, String name, String processId) { - return deleteProcessWithServiceResponseAsync(resourceGroupName, name, processId).map(new Func1, Void>() { + public Observable generateNewSitePublishingPasswordAsync(String resourceGroupName, String name) { + return generateNewSitePublishingPasswordWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -14719,37 +14941,33 @@ public Void call(ServiceResponse response) { } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Generates a new publishing password for an app (or deployment slot, if specified). + * Generates a new publishing password for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> deleteProcessWithServiceResponseAsync(String resourceGroupName, String name, String processId) { + public Observable> generateNewSitePublishingPasswordWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteProcess(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.generateNewSitePublishingPassword(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteProcessDelegate(response); + ServiceResponse clientResponse = generateNewSitePublishingPasswordDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -14758,97 +14976,129 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteProcessDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse generateNewSitePublishingPasswordDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .register(204, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the InputStream object if successful. + * @return the PagedList<PerfMonResponseInner> object if successful. */ - public InputStream getProcessDump(String resourceGroupName, String name, String processId) { - return getProcessDumpWithServiceResponseAsync(resourceGroupName, name, processId).toBlocking().single().body(); + public PagedList listPerfMonCounters(final String resourceGroupName, final String name) { + ServiceResponse> response = listPerfMonCountersSinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listPerfMonCountersNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getProcessDumpAsync(String resourceGroupName, String name, String processId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getProcessDumpWithServiceResponseAsync(resourceGroupName, name, processId), serviceCallback); + public ServiceFuture> listPerfMonCountersAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listPerfMonCountersSinglePageAsync(resourceGroupName, name), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listPerfMonCountersNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the PagedList<PerfMonResponseInner> object */ - public Observable getProcessDumpAsync(String resourceGroupName, String name, String processId) { - return getProcessDumpWithServiceResponseAsync(resourceGroupName, name, processId).map(new Func1, InputStream>() { - @Override - public InputStream call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listPerfMonCountersAsync(final String resourceGroupName, final String name) { + return listPerfMonCountersWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the PagedList<PerfMonResponseInner> object */ - public Observable> getProcessDumpWithServiceResponseAsync(String resourceGroupName, String name, String processId) { + public Observable>> listPerfMonCountersWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listPerfMonCountersSinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listPerfMonCountersNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<PerfMonResponseInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listPerfMonCountersSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getProcessDump(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + final String filter = null; + return service.listPerfMonCounters(resourceGroupName, name, this.client.subscriptionId(), filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getProcessDumpDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listPerfMonCountersDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -14856,136 +15106,125 @@ public Observable> call(Response resp }); } - private ServiceResponse getProcessDumpDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ProcessModuleInfoInner> object if successful. + * @return the PagedList<PerfMonResponseInner> object if successful. */ - public PagedList listProcessModules(final String resourceGroupName, final String name, final String processId) { - ServiceResponse> response = listProcessModulesSinglePageAsync(resourceGroupName, name, processId).toBlocking().single(); - return new PagedList(response.body()) { + public PagedList listPerfMonCounters(final String resourceGroupName, final String name, final String filter) { + ServiceResponse> response = listPerfMonCountersSinglePageAsync(resourceGroupName, name, filter).toBlocking().single(); + return new PagedList(response.body()) { @Override - public Page nextPage(String nextPageLink) { - return listProcessModulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + public Page nextPage(String nextPageLink) { + return listPerfMonCountersNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listProcessModulesAsync(final String resourceGroupName, final String name, final String processId, final ListOperationCallback serviceCallback) { + public ServiceFuture> listPerfMonCountersAsync(final String resourceGroupName, final String name, final String filter, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listProcessModulesSinglePageAsync(resourceGroupName, name, processId), - new Func1>>>() { + listPerfMonCountersSinglePageAsync(resourceGroupName, name, filter), + new Func1>>>() { @Override - public Observable>> call(String nextPageLink) { - return listProcessModulesNextSinglePageAsync(nextPageLink); + public Observable>> call(String nextPageLink) { + return listPerfMonCountersNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessModuleInfoInner> object + * @return the observable to the PagedList<PerfMonResponseInner> object */ - public Observable> listProcessModulesAsync(final String resourceGroupName, final String name, final String processId) { - return listProcessModulesWithServiceResponseAsync(resourceGroupName, name, processId) - .map(new Func1>, Page>() { + public Observable> listPerfMonCountersAsync(final String resourceGroupName, final String name, final String filter) { + return listPerfMonCountersWithServiceResponseAsync(resourceGroupName, name, filter) + .map(new Func1>, Page>() { @Override - public Page call(ServiceResponse> response) { + public Page call(ServiceResponse> response) { return response.body(); } }); } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of web app. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessModuleInfoInner> object + * @return the observable to the PagedList<PerfMonResponseInner> object */ - public Observable>> listProcessModulesWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId) { - return listProcessModulesSinglePageAsync(resourceGroupName, name, processId) - .concatMap(new Func1>, Observable>>>() { + public Observable>> listPerfMonCountersWithServiceResponseAsync(final String resourceGroupName, final String name, final String filter) { + return listPerfMonCountersSinglePageAsync(resourceGroupName, name, filter) + .concatMap(new Func1>, Observable>>>() { @Override - public Observable>> call(ServiceResponse> page) { + public Observable>> call(ServiceResponse> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listProcessModulesNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listPerfMonCountersNextWithServiceResponseAsync(nextPageLink)); } }); } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Gets perfmon counters for web app. + * Gets perfmon counters for web app. * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. - ServiceResponse> * @param processId PID. + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of web app. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ProcessModuleInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the PagedList<PerfMonResponseInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listProcessModulesSinglePageAsync(final String resourceGroupName, final String name, final String processId) { + public Observable>> listPerfMonCountersSinglePageAsync(final String resourceGroupName, final String name, final String filter) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listProcessModules(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listPerfMonCounters(resourceGroupName, name, this.client.subscriptionId(), filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listProcessModulesDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> result = listPerfMonCountersDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -14993,103 +15232,88 @@ public Observable>> call(Response> listProcessModulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> listPerfMonCountersDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets web app's event logs. + * Gets web app's event logs. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. + * @param name Name of web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ProcessModuleInfoInner object if successful. + * @return the SitePhpErrorLogFlagInner object if successful. */ - public ProcessModuleInfoInner getProcessModule(String resourceGroupName, String name, String processId, String baseAddress) { - return getProcessModuleWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress).toBlocking().single().body(); + public SitePhpErrorLogFlagInner getSitePhpErrorLogFlag(String resourceGroupName, String name) { + return getSitePhpErrorLogFlagWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets web app's event logs. + * Gets web app's event logs. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. + * @param name Name of web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getProcessModuleAsync(String resourceGroupName, String name, String processId, String baseAddress, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getProcessModuleWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress), serviceCallback); + public ServiceFuture getSitePhpErrorLogFlagAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSitePhpErrorLogFlagWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets web app's event logs. + * Gets web app's event logs. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. + * @param name Name of web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessModuleInfoInner object + * @return the observable to the SitePhpErrorLogFlagInner object */ - public Observable getProcessModuleAsync(String resourceGroupName, String name, String processId, String baseAddress) { - return getProcessModuleWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress).map(new Func1, ProcessModuleInfoInner>() { + public Observable getSitePhpErrorLogFlagAsync(String resourceGroupName, String name) { + return getSitePhpErrorLogFlagWithServiceResponseAsync(resourceGroupName, name).map(new Func1, SitePhpErrorLogFlagInner>() { @Override - public ProcessModuleInfoInner call(ServiceResponse response) { + public SitePhpErrorLogFlagInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Gets web app's event logs. + * Gets web app's event logs. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. + * @param name Name of web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessModuleInfoInner object + * @return the observable to the SitePhpErrorLogFlagInner object */ - public Observable> getProcessModuleWithServiceResponseAsync(String resourceGroupName, String name, String processId, String baseAddress) { + public Observable> getSitePhpErrorLogFlagWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } - if (baseAddress == null) { - throw new IllegalArgumentException("Parameter baseAddress is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getProcessModule(resourceGroupName, name, processId, baseAddress, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSitePhpErrorLogFlag(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getProcessModuleDelegate(response); + ServiceResponse clientResponse = getSitePhpErrorLogFlagDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -15098,136 +15322,89 @@ public Observable> call(Response getProcessModuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getSitePhpErrorLogFlagDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets the premier add-ons of an app. + * Gets the premier add-ons of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ProcessThreadInfoInner> object if successful. + * @return the PremierAddOnInner object if successful. */ - public PagedList listProcessThreads(final String resourceGroupName, final String name, final String processId) { - ServiceResponse> response = listProcessThreadsSinglePageAsync(resourceGroupName, name, processId).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listProcessThreadsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public PremierAddOnInner listPremierAddOns(String resourceGroupName, String name) { + return listPremierAddOnsWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets the premier add-ons of an app. + * Gets the premier add-ons of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listProcessThreadsAsync(final String resourceGroupName, final String name, final String processId, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listProcessThreadsSinglePageAsync(resourceGroupName, name, processId), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listProcessThreadsNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture listPremierAddOnsAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listPremierAddOnsWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets the premier add-ons of an app. + * Gets the premier add-ons of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessThreadInfoInner> object + * @return the observable to the PremierAddOnInner object */ - public Observable> listProcessThreadsAsync(final String resourceGroupName, final String name, final String processId) { - return listProcessThreadsWithServiceResponseAsync(resourceGroupName, name, processId) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable listPremierAddOnsAsync(String resourceGroupName, String name) { + return listPremierAddOnsWithServiceResponseAsync(resourceGroupName, name).map(new Func1, PremierAddOnInner>() { + @Override + public PremierAddOnInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets the premier add-ons of an app. + * Gets the premier add-ons of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessThreadInfoInner> object - */ - public Observable>> listProcessThreadsWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId) { - return listProcessThreadsSinglePageAsync(resourceGroupName, name, processId) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listProcessThreadsNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. - ServiceResponse> * @param processId PID. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ProcessThreadInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the PremierAddOnInner object */ - public Observable>> listProcessThreadsSinglePageAsync(final String resourceGroupName, final String name, final String processId) { + public Observable> listPremierAddOnsWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listProcessThreads(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listPremierAddOns(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listProcessThreadsDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = listPremierAddOnsDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -15235,90 +15412,82 @@ public Observable>> call(Response> listProcessThreadsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse listPremierAddOnsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named add-on of an app. + * Gets a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. + * @param name Name of the app. + * @param premierAddOnName Add-on name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ProcessThreadInfoInner object if successful. + * @return the PremierAddOnInner object if successful. */ - public ProcessThreadInfoInner getProcessThread(String resourceGroupName, String name, String processId, String threadId) { - return getProcessThreadWithServiceResponseAsync(resourceGroupName, name, processId, threadId).toBlocking().single().body(); + public PremierAddOnInner getPremierAddOn(String resourceGroupName, String name, String premierAddOnName) { + return getPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).toBlocking().single().body(); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named add-on of an app. + * Gets a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. + * @param name Name of the app. + * @param premierAddOnName Add-on name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getProcessThreadAsync(String resourceGroupName, String name, String processId, String threadId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getProcessThreadWithServiceResponseAsync(resourceGroupName, name, processId, threadId), serviceCallback); + public ServiceFuture getPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName), serviceCallback); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named add-on of an app. + * Gets a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. + * @param name Name of the app. + * @param premierAddOnName Add-on name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessThreadInfoInner object + * @return the observable to the PremierAddOnInner object */ - public Observable getProcessThreadAsync(String resourceGroupName, String name, String processId, String threadId) { - return getProcessThreadWithServiceResponseAsync(resourceGroupName, name, processId, threadId).map(new Func1, ProcessThreadInfoInner>() { + public Observable getPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName) { + return getPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).map(new Func1, PremierAddOnInner>() { @Override - public ProcessThreadInfoInner call(ServiceResponse response) { + public PremierAddOnInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named add-on of an app. + * Gets a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. + * @param name Name of the app. + * @param premierAddOnName Add-on name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessThreadInfoInner object + * @return the observable to the PremierAddOnInner object */ - public Observable> getProcessThreadWithServiceResponseAsync(String resourceGroupName, String name, String processId, String threadId) { + public Observable> getPremierAddOnWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } - if (threadId == null) { - throw new IllegalArgumentException("Parameter threadId is required and cannot be null."); + if (premierAddOnName == null) { + throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -15326,12 +15495,12 @@ public Observable> getProcessThreadWithS if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getProcessThread(resourceGroupName, name, processId, threadId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getPremierAddOn(resourceGroupName, name, premierAddOnName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getProcessThreadDelegate(response); + ServiceResponse clientResponse = getPremierAddOnDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -15340,128 +15509,104 @@ public Observable> call(Response getProcessThreadDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getPremierAddOnDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get public certificates for an app or a deployment slot. - * Get public certificates for an app or a deployment slot. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<PublicCertificateInner> object if successful. + * @return the PremierAddOnInner object if successful. */ - public PagedList listPublicCertificates(final String resourceGroupName, final String name) { - ServiceResponse> response = listPublicCertificatesSinglePageAsync(resourceGroupName, name).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listPublicCertificatesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public PremierAddOnInner addPremierAddOn(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn) { + return addPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn).toBlocking().single().body(); } /** - * Get public certificates for an app or a deployment slot. - * Get public certificates for an app or a deployment slot. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listPublicCertificatesAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listPublicCertificatesSinglePageAsync(resourceGroupName, name), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listPublicCertificatesNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture addPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(addPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn), serviceCallback); } /** - * Get public certificates for an app or a deployment slot. - * Get public certificates for an app or a deployment slot. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<PublicCertificateInner> object + * @return the observable to the PremierAddOnInner object */ - public Observable> listPublicCertificatesAsync(final String resourceGroupName, final String name) { - return listPublicCertificatesWithServiceResponseAsync(resourceGroupName, name) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable addPremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn) { + return addPremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn).map(new Func1, PremierAddOnInner>() { + @Override + public PremierAddOnInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Get public certificates for an app or a deployment slot. - * Get public certificates for an app or a deployment slot. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<PublicCertificateInner> object - */ - public Observable>> listPublicCertificatesWithServiceResponseAsync(final String resourceGroupName, final String name) { - return listPublicCertificatesSinglePageAsync(resourceGroupName, name) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listPublicCertificatesNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Get public certificates for an app or a deployment slot. - * Get public certificates for an app or a deployment slot. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<PublicCertificateInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the PremierAddOnInner object */ - public Observable>> listPublicCertificatesSinglePageAsync(final String resourceGroupName, final String name) { + public Observable> addPremierAddOnWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnInner premierAddOn) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (premierAddOnName == null) { + throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (premierAddOn == null) { + throw new IllegalArgumentException("Parameter premierAddOn is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listPublicCertificates(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + Validator.validate(premierAddOn); + return service.addPremierAddOn(resourceGroupName, name, premierAddOnName, this.client.subscriptionId(), premierAddOn, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listPublicCertificatesDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = addPremierAddOnDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -15469,82 +15614,81 @@ public Observable>> call(Response> listPublicCertificatesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse addPremierAddOnDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get the named public certificate for an app (or deployment slot, if specified). - * Get the named public certificate for an app (or deployment slot, if specified). + * Delete a premier add-on from an app. + * Delete a premier add-on from an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param premierAddOnName Add-on name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PublicCertificateInner object if successful. */ - public PublicCertificateInner getPublicCertificate(String resourceGroupName, String name, String publicCertificateName) { - return getPublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).toBlocking().single().body(); + public void deletePremierAddOn(String resourceGroupName, String name, String premierAddOnName) { + deletePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).toBlocking().single().body(); } /** - * Get the named public certificate for an app (or deployment slot, if specified). - * Get the named public certificate for an app (or deployment slot, if specified). + * Delete a premier add-on from an app. + * Delete a premier add-on from an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param premierAddOnName Add-on name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getPublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getPublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName), serviceCallback); + public ServiceFuture deletePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deletePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName), serviceCallback); } /** - * Get the named public certificate for an app (or deployment slot, if specified). - * Get the named public certificate for an app (or deployment slot, if specified). + * Delete a premier add-on from an app. + * Delete a premier add-on from an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param premierAddOnName Add-on name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PublicCertificateInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getPublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName) { - return getPublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).map(new Func1, PublicCertificateInner>() { + public Observable deletePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName) { + return deletePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName).map(new Func1, Void>() { @Override - public PublicCertificateInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Get the named public certificate for an app (or deployment slot, if specified). - * Get the named public certificate for an app (or deployment slot, if specified). + * Delete a premier add-on from an app. + * Delete a premier add-on from an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param premierAddOnName Add-on name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PublicCertificateInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getPublicCertificateWithServiceResponseAsync(String resourceGroupName, String name, String publicCertificateName) { + public Observable> deletePremierAddOnWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (publicCertificateName == null) { - throw new IllegalArgumentException("Parameter publicCertificateName is required and cannot be null."); + if (premierAddOnName == null) { + throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -15552,12 +15696,12 @@ public Observable> getPublicCertificateW if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getPublicCertificate(resourceGroupName, name, publicCertificateName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deletePremierAddOn(resourceGroupName, name, premierAddOnName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getPublicCertificateDelegate(response); + ServiceResponse clientResponse = deletePremierAddOnDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -15566,103 +15710,103 @@ public Observable> call(Response getPublicCertificateDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deletePremierAddOnDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. - * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PublicCertificateInner object if successful. + * @return the PremierAddOnInner object if successful. */ - public PublicCertificateInner createOrUpdatePublicCertificate(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate) { - return createOrUpdatePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName, publicCertificate).toBlocking().single().body(); + public PremierAddOnInner updatePremierAddOn(String resourceGroupName, String name, String premierAddOnName, PremierAddOnPatchResource premierAddOn) { + return updatePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn).toBlocking().single().body(); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. - * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createOrUpdatePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdatePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName, publicCertificate), serviceCallback); + public ServiceFuture updatePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnPatchResource premierAddOn, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updatePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn), serviceCallback); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. - * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PublicCertificateInner object + * @return the observable to the PremierAddOnInner object */ - public Observable createOrUpdatePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate) { - return createOrUpdatePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName, publicCertificate).map(new Func1, PublicCertificateInner>() { + public Observable updatePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnPatchResource premierAddOn) { + return updatePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn).map(new Func1, PremierAddOnInner>() { @Override - public PublicCertificateInner call(ServiceResponse response) { + public PremierAddOnInner call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Updates a named add-on of an app. + * Updates a named add-on of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param publicCertificateName Public certificate name. - * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. + * @param premierAddOnName Add-on name. + * @param premierAddOn A JSON representation of the edited premier add-on. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PublicCertificateInner object + * @return the observable to the PremierAddOnInner object */ - public Observable> createOrUpdatePublicCertificateWithServiceResponseAsync(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate) { + public Observable> updatePremierAddOnWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnPatchResource premierAddOn) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (publicCertificateName == null) { - throw new IllegalArgumentException("Parameter publicCertificateName is required and cannot be null."); + if (premierAddOnName == null) { + throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (publicCertificate == null) { - throw new IllegalArgumentException("Parameter publicCertificate is required and cannot be null."); + if (premierAddOn == null) { + throw new IllegalArgumentException("Parameter premierAddOn is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(publicCertificate); - return service.createOrUpdatePublicCertificate(resourceGroupName, name, publicCertificateName, this.client.subscriptionId(), publicCertificate, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(premierAddOn); + return service.updatePremierAddOn(resourceGroupName, name, premierAddOnName, this.client.subscriptionId(), premierAddOn, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = createOrUpdatePublicCertificateDelegate(response); + ServiceResponse clientResponse = updatePremierAddOnDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -15671,94 +15815,88 @@ public Observable> call(Response createOrUpdatePublicCertificateDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updatePremierAddOnDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PrivateAccessInner object if successful. */ - public void deletePublicCertificate(String resourceGroupName, String name, String publicCertificateName) { - deletePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).toBlocking().single().body(); + public PrivateAccessInner getPrivateAccess(String resourceGroupName, String name) { + return getPrivateAccessWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param name The name of the web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deletePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deletePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName), serviceCallback); + public ServiceFuture getPrivateAccessAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getPrivateAccessWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PrivateAccessInner object */ - public Observable deletePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName) { - return deletePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).map(new Func1, Void>() { + public Observable getPrivateAccessAsync(String resourceGroupName, String name) { + return getPrivateAccessWithServiceResponseAsync(resourceGroupName, name).map(new Func1, PrivateAccessInner>() { @Override - public Void call(ServiceResponse response) { + public PrivateAccessInner call(ServiceResponse response) { return response.body(); } }); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. + * Gets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param publicCertificateName Public certificate name. + * @param name The name of the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PrivateAccessInner object */ - public Observable> deletePublicCertificateWithServiceResponseAsync(String resourceGroupName, String name, String publicCertificateName) { + public Observable> getPrivateAccessWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (publicCertificateName == null) { - throw new IllegalArgumentException("Parameter publicCertificateName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deletePublicCertificate(resourceGroupName, name, publicCertificateName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getPrivateAccess(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deletePublicCertificateDelegate(response); + ServiceResponse clientResponse = getPrivateAccessDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -15767,71 +15905,74 @@ public Observable> call(Response response) { }); } - private ServiceResponse deletePublicCertificateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getPrivateAccessDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. + * @param access The information for the private access * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the InputStream object if successful. + * @return the PrivateAccessInner object if successful. */ - public InputStream listPublishingProfileXmlWithSecrets(String resourceGroupName, String name) { - return listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public PrivateAccessInner putPrivateAccessVnet(String resourceGroupName, String name, PrivateAccessInner access) { + return putPrivateAccessVnetWithServiceResponseAsync(resourceGroupName, name, access).toBlocking().single().body(); } /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. + * @param access The information for the private access * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture putPrivateAccessVnetAsync(String resourceGroupName, String name, PrivateAccessInner access, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(putPrivateAccessVnetWithServiceResponseAsync(resourceGroupName, name, access), serviceCallback); } /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. + * @param access The information for the private access * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the PrivateAccessInner object */ - public Observable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name) { - return listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name).map(new Func1, InputStream>() { + public Observable putPrivateAccessVnetAsync(String resourceGroupName, String name, PrivateAccessInner access) { + return putPrivateAccessVnetWithServiceResponseAsync(resourceGroupName, name, access).map(new Func1, PrivateAccessInner>() { @Override - public InputStream call(ServiceResponse response) { + public PrivateAccessInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. + * Sets data around private site access enablement and authorized Virtual Networks that can access the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name The name of the web app. + * @param access The information for the private access * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the PrivateAccessInner object */ - public Observable> listPublishingProfileXmlWithSecretsWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> putPrivateAccessVnetWithServiceResponseAsync(String resourceGroupName, String name, PrivateAccessInner access) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -15841,18 +15982,19 @@ public Observable> listPublishingProfileXmlWithSecr if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (access == null) { + throw new IllegalArgumentException("Parameter access is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final PublishingProfileFormat format = null; - CsmPublishingProfileOptions publishingProfileOptions = new CsmPublishingProfileOptions(); - publishingProfileOptions.withFormat(null); - return service.listPublishingProfileXmlWithSecrets(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), publishingProfileOptions, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(access); + return service.putPrivateAccessVnet(resourceGroupName, name, this.client.subscriptionId(), access, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listPublishingProfileXmlWithSecretsDelegate(response); + ServiceResponse clientResponse = putPrivateAccessVnetDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -15861,79 +16003,108 @@ public Observable> call(Response resp }); } + private ServiceResponse putPrivateAccessVnetDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + * @param name Site name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the InputStream object if successful. + * @return the PagedList<ProcessInfoInner> object if successful. */ - public InputStream listPublishingProfileXmlWithSecrets(String resourceGroupName, String name, PublishingProfileFormat format) { - return listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name, format).toBlocking().single().body(); + public PagedList listProcesses(final String resourceGroupName, final String name) { + ServiceResponse> response = listProcessesSinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listProcessesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + * @param name Site name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, PublishingProfileFormat format, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name, format), serviceCallback); + public ServiceFuture> listProcessesAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listProcessesSinglePageAsync(resourceGroupName, name), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listProcessesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + * @param name Site name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the PagedList<ProcessInfoInner> object */ - public Observable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, PublishingProfileFormat format) { - return listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name, format).map(new Func1, InputStream>() { - @Override - public InputStream call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listProcessesAsync(final String resourceGroupName, final String name) { + return listProcessesWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' + * @param name Site name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the PagedList<ProcessInfoInner> object + */ + public Observable>> listProcessesWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listProcessesSinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listProcessesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ProcessInfoInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable> listPublishingProfileXmlWithSecretsWithServiceResponseAsync(String resourceGroupName, String name, PublishingProfileFormat format) { + public Observable>> listProcessesSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -15946,15 +16117,13 @@ public Observable> listPublishingProfileXmlWithSecr if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - CsmPublishingProfileOptions publishingProfileOptions = new CsmPublishingProfileOptions(); - publishingProfileOptions.withFormat(format); - return service.listPublishingProfileXmlWithSecrets(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), publishingProfileOptions, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listProcesses(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = listPublishingProfileXmlWithSecretsDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listProcessesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -15962,87 +16131,96 @@ public Observable> call(Response resp }); } - private ServiceResponse listPublishingProfileXmlWithSecretsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse> listProcessesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ProcessInfoInner object if successful. */ - public void resetProductionSlotConfig(String resourceGroupName, String name) { - resetProductionSlotConfigWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public ProcessInfoInner getProcess(String resourceGroupName, String name, String processId) { + return getProcessWithServiceResponseAsync(resourceGroupName, name, processId).toBlocking().single().body(); } /** - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture resetProductionSlotConfigAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(resetProductionSlotConfigWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture getProcessAsync(String resourceGroupName, String name, String processId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getProcessWithServiceResponseAsync(resourceGroupName, name, processId), serviceCallback); } /** - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ProcessInfoInner object */ - public Observable resetProductionSlotConfigAsync(String resourceGroupName, String name) { - return resetProductionSlotConfigWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { + public Observable getProcessAsync(String resourceGroupName, String name, String processId) { + return getProcessWithServiceResponseAsync(resourceGroupName, name, processId).map(new Func1, ProcessInfoInner>() { @Override - public Void call(ServiceResponse response) { + public ProcessInfoInner call(ServiceResponse response) { return response.body(); } }); } /** - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. - * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ProcessInfoInner object */ - public Observable> resetProductionSlotConfigWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> getProcessWithServiceResponseAsync(String resourceGroupName, String name, String processId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.resetProductionSlotConfig(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getProcess(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = resetProductionSlotConfigDelegate(response); + ServiceResponse clientResponse = getProcessDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -16051,52 +16229,56 @@ public Observable> call(Response response) { }); } - private ServiceResponse resetProductionSlotConfigDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getProcessDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void restart(String resourceGroupName, String name) { - restartWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public void deleteProcess(String resourceGroupName, String name, String processId) { + deleteProcessWithServiceResponseAsync(resourceGroupName, name, processId).toBlocking().single().body(); } /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture restartAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(restartWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + public ServiceFuture deleteProcessAsync(String resourceGroupName, String name, String processId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteProcessWithServiceResponseAsync(resourceGroupName, name, processId), serviceCallback); } /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable restartAsync(String resourceGroupName, String name) { - return restartWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { + public Observable deleteProcessAsync(String resourceGroupName, String name, String processId) { + return deleteProcessWithServiceResponseAsync(resourceGroupName, name, processId).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -16105,35 +16287,37 @@ public Void call(ServiceResponse response) { } /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> restartWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> deleteProcessWithServiceResponseAsync(String resourceGroupName, String name, String processId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final Boolean softRestart = null; - final Boolean synchronous = null; - return service.restart(resourceGroupName, name, this.client.subscriptionId(), softRestart, synchronous, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.deleteProcess(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = restartDelegate(response); + ServiceResponse clientResponse = deleteProcessDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -16142,88 +16326,96 @@ public Observable> call(Response response) { }); } + private ServiceResponse deleteProcessDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. - * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the InputStream object if successful. */ - public void restart(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous) { - restartWithServiceResponseAsync(resourceGroupName, name, softRestart, synchronous).toBlocking().single().body(); + public InputStream getProcessDump(String resourceGroupName, String name, String processId) { + return getProcessDumpWithServiceResponseAsync(resourceGroupName, name, processId).toBlocking().single().body(); } /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. - * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). + * @param name Site name. + * @param processId PID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture restartAsync(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(restartWithServiceResponseAsync(resourceGroupName, name, softRestart, synchronous), serviceCallback); + public ServiceFuture getProcessDumpAsync(String resourceGroupName, String name, String processId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getProcessDumpWithServiceResponseAsync(resourceGroupName, name, processId), serviceCallback); } /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. - * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the InputStream object */ - public Observable restartAsync(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous) { - return restartWithServiceResponseAsync(resourceGroupName, name, softRestart, synchronous).map(new Func1, Void>() { + public Observable getProcessDumpAsync(String resourceGroupName, String name, String processId) { + return getProcessDumpWithServiceResponseAsync(resourceGroupName, name, processId).map(new Func1, InputStream>() { @Override - public Void call(ServiceResponse response) { + public InputStream call(ServiceResponse response) { return response.body(); } }); } /** - * Restarts an app (or deployment slot, if specified). - * Restarts an app (or deployment slot, if specified). + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. - * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the InputStream object */ - public Observable> restartWithServiceResponseAsync(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous) { + public Observable> getProcessDumpWithServiceResponseAsync(String resourceGroupName, String name, String processId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.restart(resourceGroupName, name, this.client.subscriptionId(), softRestart, synchronous, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getProcessDump(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = restartDelegate(response); + ServiceResponse clientResponse = getProcessDumpDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -16232,175 +16424,240 @@ public Observable> call(Response response) { }); } - private ServiceResponse restartDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getProcessDumpDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ProcessModuleInfoInner> object if successful. */ - public void restoreFromBackupBlob(String resourceGroupName, String name, RestoreRequestInner request) { - restoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).toBlocking().last().body(); + public PagedList listProcessModules(final String resourceGroupName, final String name, final String processId) { + ServiceResponse> response = listProcessModulesSinglePageAsync(resourceGroupName, name, processId).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listProcessModulesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture restoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(restoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request), serviceCallback); + public ServiceFuture> listProcessModulesAsync(final String resourceGroupName, final String name, final String processId, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listProcessModulesSinglePageAsync(resourceGroupName, name, processId), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listProcessModulesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the PagedList<ProcessModuleInfoInner> object */ - public Observable restoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request) { - return restoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listProcessModulesAsync(final String resourceGroupName, final String name, final String processId) { + return listProcessModulesWithServiceResponseAsync(resourceGroupName, name, processId) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the PagedList<ProcessModuleInfoInner> object */ - public Observable> restoreFromBackupBlobWithServiceResponseAsync(String resourceGroupName, String name, RestoreRequestInner request) { + public Observable>> listProcessModulesWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId) { + return listProcessModulesSinglePageAsync(resourceGroupName, name, processId) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listProcessModulesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + ServiceResponse> * @param processId PID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ProcessModuleInfoInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listProcessModulesSinglePageAsync(final String resourceGroupName, final String name, final String processId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - Observable> observable = service.restoreFromBackupBlob(resourceGroupName, name, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + return service.listProcessModules(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listProcessModulesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listProcessModulesDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ProcessModuleInfoInner object if successful. */ - public void beginRestoreFromBackupBlob(String resourceGroupName, String name, RestoreRequestInner request) { - beginRestoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).toBlocking().single().body(); + public ProcessModuleInfoInner getProcessModule(String resourceGroupName, String name, String processId, String baseAddress) { + return getProcessModuleWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress).toBlocking().single().body(); } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginRestoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginRestoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request), serviceCallback); + public ServiceFuture getProcessModuleAsync(String resourceGroupName, String name, String processId, String baseAddress, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getProcessModuleWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress), serviceCallback); } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ProcessModuleInfoInner object */ - public Observable beginRestoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request) { - return beginRestoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).map(new Func1, Void>() { + public Observable getProcessModuleAsync(String resourceGroupName, String name, String processId, String baseAddress) { + return getProcessModuleWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress).map(new Func1, ProcessModuleInfoInner>() { @Override - public Void call(ServiceResponse response) { + public ProcessModuleInfoInner call(ServiceResponse response) { return response.body(); } }); } /** - * Restores an app from a backup blob in Azure Storage. - * Restores an app from a backup blob in Azure Storage. + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param request Information on restore request . + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ProcessModuleInfoInner object */ - public Observable> beginRestoreFromBackupBlobWithServiceResponseAsync(String resourceGroupName, String name, RestoreRequestInner request) { + public Observable> getProcessModuleWithServiceResponseAsync(String resourceGroupName, String name, String processId, String baseAddress) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (baseAddress == null) { + throw new IllegalArgumentException("Parameter baseAddress is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - return service.beginRestoreFromBackupBlob(resourceGroupName, name, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getProcessModule(resourceGroupName, name, processId, baseAddress, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginRestoreFromBackupBlobDelegate(response); + ServiceResponse clientResponse = getProcessModuleDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -16409,176 +16666,240 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginRestoreFromBackupBlobDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) + private ServiceResponse getProcessModuleDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ProcessThreadInfoInner> object if successful. */ - public void restoreFromDeletedApp(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { - restoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().last().body(); + public PagedList listProcessThreads(final String resourceGroupName, final String name, final String processId) { + ServiceResponse> response = listProcessThreadsSinglePageAsync(resourceGroupName, name, processId).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listProcessThreadsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + * @param name Site name. + * @param processId PID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture restoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(restoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); + public ServiceFuture> listProcessThreadsAsync(final String resourceGroupName, final String name, final String processId, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listProcessThreadsSinglePageAsync(resourceGroupName, name, processId), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listProcessThreadsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the PagedList<ProcessThreadInfoInner> object */ - public Observable restoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { - return restoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listProcessThreadsAsync(final String resourceGroupName, final String name, final String processId) { + return listProcessThreadsWithServiceResponseAsync(resourceGroupName, name, processId) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + * @param name Site name. + * @param processId PID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the PagedList<ProcessThreadInfoInner> object */ - public Observable> restoreFromDeletedAppWithServiceResponseAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { + public Observable>> listProcessThreadsWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId) { + return listProcessThreadsSinglePageAsync(resourceGroupName, name, processId) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listProcessThreadsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + ServiceResponse> * @param processId PID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ProcessThreadInfoInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listProcessThreadsSinglePageAsync(final String resourceGroupName, final String name, final String processId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (restoreRequest == null) { - throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(restoreRequest); - Observable> observable = service.restoreFromDeletedApp(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); - } - - /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + return service.listProcessThreads(resourceGroupName, name, processId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listProcessThreadsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listProcessThreadsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ProcessThreadInfoInner object if successful. */ - public void beginRestoreFromDeletedApp(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { - beginRestoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().single().body(); + public ProcessThreadInfoInner getProcessThread(String resourceGroupName, String name, String processId, String threadId) { + return getProcessThreadWithServiceResponseAsync(resourceGroupName, name, processId, threadId).toBlocking().single().body(); } /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + * @param name Site name. + * @param processId PID. + * @param threadId TID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginRestoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginRestoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); + public ServiceFuture getProcessThreadAsync(String resourceGroupName, String name, String processId, String threadId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getProcessThreadWithServiceResponseAsync(resourceGroupName, name, processId, threadId), serviceCallback); } /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + * @param name Site name. + * @param processId PID. + * @param threadId TID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ProcessThreadInfoInner object */ - public Observable beginRestoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { - return beginRestoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { + public Observable getProcessThreadAsync(String resourceGroupName, String name, String processId, String threadId) { + return getProcessThreadWithServiceResponseAsync(resourceGroupName, name, processId, threadId).map(new Func1, ProcessThreadInfoInner>() { @Override - public Void call(ServiceResponse response) { + public ProcessThreadInfoInner call(ServiceResponse response) { return response.body(); } }); } /** - * Restores a deleted web app to this web app. - * Restores a deleted web app to this web app. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Deleted web app restore information. + * @param name Site name. + * @param processId PID. + * @param threadId TID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ProcessThreadInfoInner object */ - public Observable> beginRestoreFromDeletedAppWithServiceResponseAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { + public Observable> getProcessThreadWithServiceResponseAsync(String resourceGroupName, String name, String processId, String threadId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (threadId == null) { + throw new IllegalArgumentException("Parameter threadId is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (restoreRequest == null) { - throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(restoreRequest); - return service.beginRestoreFromDeletedApp(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getProcessThread(resourceGroupName, name, processId, threadId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginRestoreFromDeletedAppDelegate(response); + ServiceResponse clientResponse = getProcessThreadDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -16587,74 +16908,109 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginRestoreFromDeletedAppDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) + private ServiceResponse getProcessThreadDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get public certificates for an app or a deployment slot. + * Get public certificates for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<PublicCertificateInner> object if successful. */ - public void restoreSnapshot(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { - restoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().last().body(); + public PagedList listPublicCertificates(final String resourceGroupName, final String name) { + ServiceResponse> response = listPublicCertificatesSinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listPublicCertificatesNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get public certificates for an app or a deployment slot. + * Get public certificates for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture restoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(restoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); + public ServiceFuture> listPublicCertificatesAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listPublicCertificatesSinglePageAsync(resourceGroupName, name), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listPublicCertificatesNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get public certificates for an app or a deployment slot. + * Get public certificates for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the PagedList<PublicCertificateInner> object */ - public Observable restoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { - return restoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listPublicCertificatesAsync(final String resourceGroupName, final String name) { + return listPublicCertificatesWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get public certificates for an app or a deployment slot. + * Get public certificates for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the PagedList<PublicCertificateInner> object */ - public Observable> restoreSnapshotWithServiceResponseAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { + public Observable>> listPublicCertificatesWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listPublicCertificatesSinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listPublicCertificatesNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get public certificates for an app or a deployment slot. + * Get public certificates for an app or a deployment slot. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<PublicCertificateInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listPublicCertificatesSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -16664,99 +17020,112 @@ public Observable> restoreSnapshotWithServiceResponseAsync if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (restoreRequest == null) { - throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(restoreRequest); - Observable> observable = service.restoreSnapshot(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + return service.listPublicCertificates(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listPublicCertificatesDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listPublicCertificatesDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get the named public certificate for an app (or deployment slot, if specified). + * Get the named public certificate for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PublicCertificateInner object if successful. */ - public void beginRestoreSnapshot(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { - beginRestoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().single().body(); + public PublicCertificateInner getPublicCertificate(String resourceGroupName, String name, String publicCertificateName) { + return getPublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).toBlocking().single().body(); } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get the named public certificate for an app (or deployment slot, if specified). + * Get the named public certificate for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginRestoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginRestoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); + public ServiceFuture getPublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getPublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName), serviceCallback); } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get the named public certificate for an app (or deployment slot, if specified). + * Get the named public certificate for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PublicCertificateInner object */ - public Observable beginRestoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { - return beginRestoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { + public Observable getPublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName) { + return getPublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).map(new Func1, PublicCertificateInner>() { @Override - public Void call(ServiceResponse response) { + public PublicCertificateInner call(ServiceResponse response) { return response.body(); } }); } /** - * Restores a web app from a snapshot. - * Restores a web app from a snapshot. + * Get the named public certificate for an app (or deployment slot, if specified). + * Get the named public certificate for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PublicCertificateInner object */ - public Observable> beginRestoreSnapshotWithServiceResponseAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { + public Observable> getPublicCertificateWithServiceResponseAsync(String resourceGroupName, String name, String publicCertificateName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (publicCertificateName == null) { + throw new IllegalArgumentException("Parameter publicCertificateName is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (restoreRequest == null) { - throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(restoreRequest); - return service.beginRestoreSnapshot(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getPublicCertificate(resourceGroupName, name, publicCertificateName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginRestoreSnapshotDelegate(response); + ServiceResponse clientResponse = getPublicCertificateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -16765,128 +17134,104 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginRestoreSnapshotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getPublicCertificateDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<SiteExtensionInfoInner> object if successful. + * @return the PublicCertificateInner object if successful. */ - public PagedList listSiteExtensions(final String resourceGroupName, final String name) { - ServiceResponse> response = listSiteExtensionsSinglePageAsync(resourceGroupName, name).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listSiteExtensionsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public PublicCertificateInner createOrUpdatePublicCertificate(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate) { + return createOrUpdatePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName, publicCertificate).toBlocking().single().body(); } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listSiteExtensionsAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listSiteExtensionsSinglePageAsync(resourceGroupName, name), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listSiteExtensionsNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture createOrUpdatePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdatePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName, publicCertificate), serviceCallback); } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteExtensionInfoInner> object + * @return the observable to the PublicCertificateInner object */ - public Observable> listSiteExtensionsAsync(final String resourceGroupName, final String name) { - return listSiteExtensionsWithServiceResponseAsync(resourceGroupName, name) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable createOrUpdatePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate) { + return createOrUpdatePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName, publicCertificate).map(new Func1, PublicCertificateInner>() { + @Override + public PublicCertificateInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteExtensionInfoInner> object - */ - public Observable>> listSiteExtensionsWithServiceResponseAsync(final String resourceGroupName, final String name) { - return listSiteExtensionsSinglePageAsync(resourceGroupName, name) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listSiteExtensionsNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Get list of siteextensions for a web site, or a deployment slot. - * Get list of siteextensions for a web site, or a deployment slot. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. + * @param publicCertificate Public certificate details. This is the JSON representation of a PublicCertificate object. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<SiteExtensionInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the PublicCertificateInner object */ - public Observable>> listSiteExtensionsSinglePageAsync(final String resourceGroupName, final String name) { + public Observable> createOrUpdatePublicCertificateWithServiceResponseAsync(String resourceGroupName, String name, String publicCertificateName, PublicCertificateInner publicCertificate) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (publicCertificateName == null) { + throw new IllegalArgumentException("Parameter publicCertificateName is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (publicCertificate == null) { + throw new IllegalArgumentException("Parameter publicCertificate is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSiteExtensions(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + Validator.validate(publicCertificate); + return service.createOrUpdatePublicCertificate(resourceGroupName, name, publicCertificateName, this.client.subscriptionId(), publicCertificate, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listSiteExtensionsDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = createOrUpdatePublicCertificateDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -16894,83 +17239,81 @@ public Observable>> call(Response> listSiteExtensionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse createOrUpdatePublicCertificateDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get site extension information by its ID for a web site, or a deployment slot. - * Get site extension information by its ID for a web site, or a deployment slot. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteExtensionInfoInner object if successful. */ - public SiteExtensionInfoInner getSiteExtension(String resourceGroupName, String name, String siteExtensionId) { - return getSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().single().body(); + public void deletePublicCertificate(String resourceGroupName, String name, String publicCertificateName) { + deletePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).toBlocking().single().body(); } /** - * Get site extension information by its ID for a web site, or a deployment slot. - * Get site extension information by its ID for a web site, or a deployment slot. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); + public ServiceFuture deletePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deletePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName), serviceCallback); } /** - * Get site extension information by its ID for a web site, or a deployment slot. - * Get site extension information by its ID for a web site, or a deployment slot. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteExtensionInfoInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { - return getSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, SiteExtensionInfoInner>() { + public Observable deletePublicCertificateAsync(String resourceGroupName, String name, String publicCertificateName) { + return deletePublicCertificateWithServiceResponseAsync(resourceGroupName, name, publicCertificateName).map(new Func1, Void>() { @Override - public SiteExtensionInfoInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Get site extension information by its ID for a web site, or a deployment slot. - * Get site extension information by its ID for a web site, or a deployment slot. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publicCertificateName Public certificate name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteExtensionInfoInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { + public Observable> deletePublicCertificateWithServiceResponseAsync(String resourceGroupName, String name, String publicCertificateName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (siteExtensionId == null) { - throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); + if (publicCertificateName == null) { + throw new IllegalArgumentException("Parameter publicCertificateName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -16978,12 +17321,12 @@ public Observable> getSiteExtensionWithS if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deletePublicCertificate(resourceGroupName, name, publicCertificateName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getSiteExtensionDelegate(response); + ServiceResponse clientResponse = deletePublicCertificateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -16992,176 +17335,186 @@ public Observable> call(Response getSiteExtensionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) + private ServiceResponse deletePublicCertificateDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Gets the publishing profile for an app (or deployment slot, if specified). + * Gets the publishing profile for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteExtensionInfoInner object if successful. + * @return the InputStream object if successful. */ - public SiteExtensionInfoInner installSiteExtension(String resourceGroupName, String name, String siteExtensionId) { - return installSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().last().body(); + public InputStream listPublishingProfileXmlWithSecrets(String resourceGroupName, String name, CsmPublishingProfileOptions publishingProfileOptions) { + return listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name, publishingProfileOptions).toBlocking().single().body(); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Gets the publishing profile for an app (or deployment slot, if specified). + * Gets the publishing profile for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture installSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(installSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); + public ServiceFuture listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, CsmPublishingProfileOptions publishingProfileOptions, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name, publishingProfileOptions), serviceCallback); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Gets the publishing profile for an app (or deployment slot, if specified). + * Gets the publishing profile for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the InputStream object */ - public Observable installSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { - return installSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, SiteExtensionInfoInner>() { + public Observable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, CsmPublishingProfileOptions publishingProfileOptions) { + return listPublishingProfileXmlWithSecretsWithServiceResponseAsync(resourceGroupName, name, publishingProfileOptions).map(new Func1, InputStream>() { @Override - public SiteExtensionInfoInner call(ServiceResponse response) { + public InputStream call(ServiceResponse response) { return response.body(); } }); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Gets the publishing profile for an app (or deployment slot, if specified). + * Gets the publishing profile for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the InputStream object */ - public Observable> installSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { + public Observable> listPublishingProfileXmlWithSecretsWithServiceResponseAsync(String resourceGroupName, String name, CsmPublishingProfileOptions publishingProfileOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (siteExtensionId == null) { - throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (publishingProfileOptions == null) { + throw new IllegalArgumentException("Parameter publishingProfileOptions is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.installSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + Validator.validate(publishingProfileOptions); + return service.listPublishingProfileXmlWithSecrets(resourceGroupName, name, this.client.subscriptionId(), publishingProfileOptions, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listPublishingProfileXmlWithSecretsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listPublishingProfileXmlWithSecretsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteExtensionInfoInner object if successful. */ - public SiteExtensionInfoInner beginInstallSiteExtension(String resourceGroupName, String name, String siteExtensionId) { - return beginInstallSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().single().body(); + public void resetProductionSlotConfig(String resourceGroupName, String name) { + resetProductionSlotConfigWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginInstallSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginInstallSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); + public ServiceFuture resetProductionSlotConfigAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(resetProductionSlotConfigWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteExtensionInfoInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable beginInstallSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { - return beginInstallSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, SiteExtensionInfoInner>() { + public Observable resetProductionSlotConfigAsync(String resourceGroupName, String name) { + return resetProductionSlotConfigWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { @Override - public SiteExtensionInfoInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Install site extension on a web site, or a deployment slot. - * Install site extension on a web site, or a deployment slot. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. + * Resets the configuration settings of the current slot if they were previously modified by calling the API with POST. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteExtensionInfoInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> beginInstallSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { + public Observable> resetProductionSlotConfigWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (siteExtensionId == null) { - throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginInstallSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.resetProductionSlotConfig(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginInstallSiteExtensionDelegate(response); + ServiceResponse clientResponse = resetProductionSlotConfigDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -17170,57 +17523,52 @@ public Observable> call(Response beginInstallSiteExtensionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(201, new TypeToken() { }.getType()) - .register(429, new TypeToken() { }.getType()) + private ServiceResponse resetProductionSlotConfigDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Remove a site extension from a web site, or a deployment slot. - * Remove a site extension from a web site, or a deployment slot. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteSiteExtension(String resourceGroupName, String name, String siteExtensionId) { - deleteSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().single().body(); + public void restart(String resourceGroupName, String name) { + restartWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** - * Remove a site extension from a web site, or a deployment slot. - * Remove a site extension from a web site, or a deployment slot. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); + public ServiceFuture restartAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(restartWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } /** - * Remove a site extension from a web site, or a deployment slot. - * Remove a site extension from a web site, or a deployment slot. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable deleteSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { - return deleteSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, Void>() { + public Observable restartAsync(String resourceGroupName, String name) { + return restartWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -17229,37 +17577,35 @@ public Void call(ServiceResponse response) { } /** - * Remove a site extension from a web site, or a deployment slot. - * Remove a site extension from a web site, or a deployment slot. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param siteExtensionId Site extension name. + * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> deleteSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { + public Observable> restartWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (siteExtensionId == null) { - throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final Boolean softRestart = null; + final Boolean synchronous = null; + return service.restart(resourceGroupName, name, this.client.subscriptionId(), softRestart, synchronous, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteSiteExtensionDelegate(response); + ServiceResponse clientResponse = restartDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -17268,109 +17614,70 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteSiteExtensionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(204, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - /** - * Gets an app's deployment slots. - * Gets an app's deployment slots. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. + * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<SiteInner> object if successful. */ - public PagedList listSlots(final String resourceGroupName, final String name) { - ServiceResponse> response = listSlotsSinglePageAsync(resourceGroupName, name).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listSlotsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public void restart(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous) { + restartWithServiceResponseAsync(resourceGroupName, name, softRestart, synchronous).toBlocking().single().body(); } /** - * Gets an app's deployment slots. - * Gets an app's deployment slots. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. + * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listSlotsAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listSlotsSinglePageAsync(resourceGroupName, name), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listSlotsNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture restartAsync(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(restartWithServiceResponseAsync(resourceGroupName, name, softRestart, synchronous), serviceCallback); } /** - * Gets an app's deployment slots. - * Gets an app's deployment slots. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. + * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteInner> object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listSlotsAsync(final String resourceGroupName, final String name) { - return listSlotsWithServiceResponseAsync(resourceGroupName, name) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable restartAsync(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous) { + return restartWithServiceResponseAsync(resourceGroupName, name, softRestart, synchronous).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Gets an app's deployment slots. - * Gets an app's deployment slots. + * Restarts an app (or deployment slot, if specified). + * Restarts an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. + * @param softRestart Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app. + * @param synchronous Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous). * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteInner> object - */ - public Observable>> listSlotsWithServiceResponseAsync(final String resourceGroupName, final String name) { - return listSlotsSinglePageAsync(resourceGroupName, name) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listSlotsNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets an app's deployment slots. - * Gets an app's deployment slots. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<SiteInner> object wrapped in {@link ServiceResponse} if successful. + * @return the {@link ServiceResponse} object if successful. */ - public Observable>> listSlotsSinglePageAsync(final String resourceGroupName, final String name) { + public Observable> restartWithServiceResponseAsync(String resourceGroupName, String name, Boolean softRestart, Boolean synchronous) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -17383,13 +17690,13 @@ public Observable>> listSlotsSinglePageAsync(fin if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSlots(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.restart(resourceGroupName, name, this.client.subscriptionId(), softRestart, synchronous, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listSlotsDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = restartDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -17397,347 +17704,313 @@ public Observable>> call(Response }); } - private ServiceResponse> listSlotsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse restartDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Gets the details of a web, mobile, or API app. - * Gets the details of a web, mobile, or API app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteInner object if successful. */ - public SiteInner getSlot(String resourceGroupName, String name, String slot) { - return getSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void restoreFromBackupBlob(String resourceGroupName, String name, RestoreRequestInner request) { + restoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).toBlocking().last().body(); } /** - * Gets the details of a web, mobile, or API app. - * Gets the details of a web, mobile, or API app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns the production slot. + * @param request Information on restore request . * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture restoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(restoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request), serviceCallback); } /** - * Gets the details of a web, mobile, or API app. - * Gets the details of a web, mobile, or API app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteInner object + * @return the observable for the request */ - public Observable getSlotAsync(String resourceGroupName, String name, String slot) { - return getSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteInner>() { + public Observable restoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request) { + return restoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).map(new Func1, Void>() { @Override - public SiteInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the details of a web, mobile, or API app. - * Gets the details of a web, mobile, or API app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteInner object + * @return the observable for the request */ - public Observable> getSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> restoreFromBackupBlobWithServiceResponseAsync(String resourceGroupName, String name, RestoreRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = getSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse getSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); + Validator.validate(request); + Observable> observable = service.restoreFromBackupBlob(resourceGroupName, name, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of the app. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteInner object if successful. */ - public SiteInner createOrUpdateSlot(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { - return createOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).toBlocking().last().body(); + public void beginRestoreFromBackupBlob(String resourceGroupName, String name, RestoreRequestInner request) { + beginRestoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).toBlocking().single().body(); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of the app. + * @param request Information on restore request . * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope), serviceCallback); + public ServiceFuture beginRestoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginRestoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request), serviceCallback); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of the app. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the {@link ServiceResponse} object if successful. */ - public Observable createOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { - return createOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).map(new Func1, SiteInner>() { + public Observable beginRestoreFromBackupBlobAsync(String resourceGroupName, String name, RestoreRequestInner request) { + return beginRestoreFromBackupBlobWithServiceResponseAsync(resourceGroupName, name, request).map(new Func1, Void>() { @Override - public SiteInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores an app from a backup blob in Azure Storage. + * Restores an app from a backup blob in Azure Storage. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of the app. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the {@link ServiceResponse} object if successful. */ - public Observable> createOrUpdateSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { + public Observable> beginRestoreFromBackupBlobWithServiceResponseAsync(String resourceGroupName, String name, RestoreRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (siteEnvelope == null) { - throw new IllegalArgumentException("Parameter siteEnvelope is required and cannot be null."); + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(siteEnvelope); - Observable> observable = service.createOrUpdateSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + Validator.validate(request); + return service.beginRestoreFromBackupBlob(resourceGroupName, name, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginRestoreFromBackupBlobDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginRestoreFromBackupBlobDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteInner object if successful. */ - public SiteInner beginCreateOrUpdateSlot(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { - return beginCreateOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).toBlocking().single().body(); + public void restoreFromDeletedApp(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { + restoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().last().body(); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope), serviceCallback); + public ServiceFuture restoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(restoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteInner object + * @return the observable for the request */ - public Observable beginCreateOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { - return beginCreateOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).map(new Func1, SiteInner>() { + public Observable restoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { + return restoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { @Override - public SiteInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteInner object + * @return the observable for the request */ - public Observable> beginCreateOrUpdateSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { + public Observable> restoreFromDeletedAppWithServiceResponseAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (siteEnvelope == null) { - throw new IllegalArgumentException("Parameter siteEnvelope is required and cannot be null."); + if (restoreRequest == null) { + throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(siteEnvelope); - return service.beginCreateOrUpdateSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = beginCreateOrUpdateSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse beginCreateOrUpdateSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + Validator.validate(restoreRequest); + Observable> observable = service.restoreFromDeletedApp(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteSlot(String resourceGroupName, String name, String slot) { - deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void beginRestoreFromDeletedApp(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { + beginRestoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().single().body(); } /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture beginRestoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginRestoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); } /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable deleteSlotAsync(String resourceGroupName, String name, String slot) { - return deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { + public Observable beginRestoreFromDeletedAppAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { + return beginRestoreFromDeletedAppWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -17746,39 +18019,38 @@ public Void call(ServiceResponse response) { } /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a deleted web app to this web app. + * Restores a deleted web app to this web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param name Name of web app. + * @param restoreRequest Deleted web app restore information. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> deleteSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> beginRestoreFromDeletedAppWithServiceResponseAsync(String resourceGroupName, String name, DeletedAppRestoreRequest restoreRequest) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (restoreRequest == null) { + throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final Boolean deleteMetrics = null; - final Boolean deleteEmptyServerFarm = null; - return service.deleteSlot(resourceGroupName, name, slot, this.client.subscriptionId(), deleteMetrics, deleteEmptyServerFarm, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + Validator.validate(restoreRequest); + return service.beginRestoreFromDeletedApp(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteSlotDelegate(response); + ServiceResponse clientResponse = beginRestoreFromDeletedAppDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -17787,54 +18059,56 @@ public Observable> call(Response response) { }); } + private ServiceResponse beginRestoreFromDeletedAppDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. - * @param deleteMetrics If true, web app metrics are also deleted. - * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteSlot(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm) { - deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot, deleteMetrics, deleteEmptyServerFarm).toBlocking().single().body(); + public void restoreSnapshot(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { + restoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().last().body(); } /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. - * @param deleteMetrics If true, web app metrics are also deleted. - * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteSlotAsync(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot, deleteMetrics, deleteEmptyServerFarm), serviceCallback); + public ServiceFuture restoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(restoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); } /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. - * @param deleteMetrics If true, web app metrics are also deleted. - * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ - public Observable deleteSlotAsync(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm) { - return deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot, deleteMetrics, deleteEmptyServerFarm).map(new Func1, Void>() { + public Observable restoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { + return restoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -17843,146 +18117,118 @@ public Void call(ServiceResponse response) { } /** - * Deletes a web, mobile, or API app, or one of the deployment slots. - * Deletes a web, mobile, or API app, or one of the deployment slots. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app to delete. - * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. - * @param deleteMetrics If true, web app metrics are also deleted. - * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ - public Observable> deleteSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm) { + public Observable> restoreSnapshotWithServiceResponseAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (restoreRequest == null) { + throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteSlot(resourceGroupName, name, slot, this.client.subscriptionId(), deleteMetrics, deleteEmptyServerFarm, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = deleteSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse deleteSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); + Validator.validate(restoreRequest); + Observable> observable = service.restoreSnapshot(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteInner object if successful. */ - public SiteInner updateSlot(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope) { - return updateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).toBlocking().single().body(); + public void beginRestoreSnapshot(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { + beginRestoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).toBlocking().single().body(); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateSlotAsync(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope), serviceCallback); + public ServiceFuture beginRestoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginRestoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest), serviceCallback); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable updateSlotAsync(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope) { - return updateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).map(new Func1, SiteInner>() { + public Observable beginRestoreSnapshotAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { + return beginRestoreSnapshotWithServiceResponseAsync(resourceGroupName, name, restoreRequest).map(new Func1, Void>() { @Override - public SiteInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. - * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Restores a web app from a snapshot. + * Restores a web app from a snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. - * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. - * @param siteEnvelope A JSON representation of the app properties. See example. + * @param name Name of web app. + * @param restoreRequest Snapshot restore settings. Snapshot information can be obtained by calling GetDeletedSites or GetSiteSnapshots API. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> updateSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope) { + public Observable> beginRestoreSnapshotWithServiceResponseAsync(String resourceGroupName, String name, SnapshotRestoreRequest restoreRequest) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (siteEnvelope == null) { - throw new IllegalArgumentException("Parameter siteEnvelope is required and cannot be null."); + if (restoreRequest == null) { + throw new IllegalArgumentException("Parameter restoreRequest is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(siteEnvelope); - return service.updateSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(restoreRequest); + return service.beginRestoreSnapshot(resourceGroupName, name, this.client.subscriptionId(), restoreRequest, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateSlotDelegate(response); + ServiceResponse clientResponse = beginRestoreSnapshotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -17991,98 +18237,128 @@ public Observable> call(Response respon }); } - private ServiceResponse updateSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse beginRestoreSnapshotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get list of siteextensions for a web site, or a deployment slot. + * Get list of siteextensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the CustomHostnameAnalysisResultInner object if successful. + * @return the PagedList<SiteExtensionInfoInner> object if successful. */ - public CustomHostnameAnalysisResultInner analyzeCustomHostnameSlot(String resourceGroupName, String name, String slot) { - return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public PagedList listSiteExtensions(final String resourceGroupName, final String name) { + ServiceResponse> response = listSiteExtensionsSinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSiteExtensionsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get list of siteextensions for a web site, or a deployment slot. + * Get list of siteextensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture> listSiteExtensionsAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSiteExtensionsSinglePageAsync(resourceGroupName, name), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSiteExtensionsNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get list of siteextensions for a web site, or a deployment slot. + * Get list of siteextensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CustomHostnameAnalysisResultInner object + * @return the observable to the PagedList<SiteExtensionInfoInner> object */ - public Observable analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot) { - return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, CustomHostnameAnalysisResultInner>() { - @Override - public CustomHostnameAnalysisResultInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listSiteExtensionsAsync(final String resourceGroupName, final String name) { + return listSiteExtensionsWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get list of siteextensions for a web site, or a deployment slot. + * Get list of siteextensions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CustomHostnameAnalysisResultInner object + * @return the observable to the PagedList<SiteExtensionInfoInner> object */ - public Observable> analyzeCustomHostnameSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable>> listSiteExtensionsWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listSiteExtensionsSinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSiteExtensionsNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get list of siteextensions for a web site, or a deployment slot. + * Get list of siteextensions for a web site, or a deployment slot. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SiteExtensionInfoInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSiteExtensionsSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final String hostName = null; - return service.analyzeCustomHostnameSlot(resourceGroupName, name, slot, this.client.subscriptionId(), hostName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listSiteExtensions(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = analyzeCustomHostnameSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listSiteExtensionsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -18090,79 +18366,83 @@ public Observable> call(Respo }); } + private ServiceResponse> listSiteExtensionsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get site extension information by its ID for a web site, or a deployment slot. + * Get site extension information by its ID for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param hostName Custom hostname. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the CustomHostnameAnalysisResultInner object if successful. + * @return the SiteExtensionInfoInner object if successful. */ - public CustomHostnameAnalysisResultInner analyzeCustomHostnameSlot(String resourceGroupName, String name, String slot, String hostName) { - return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).toBlocking().single().body(); + public SiteExtensionInfoInner getSiteExtension(String resourceGroupName, String name, String siteExtensionId) { + return getSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().single().body(); } /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get site extension information by its ID for a web site, or a deployment slot. + * Get site extension information by its ID for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param hostName Custom hostname. + * @param name Site name. + * @param siteExtensionId Site extension name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot, String hostName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName), serviceCallback); + public ServiceFuture getSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); } /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get site extension information by its ID for a web site, or a deployment slot. + * Get site extension information by its ID for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param hostName Custom hostname. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CustomHostnameAnalysisResultInner object + * @return the observable to the SiteExtensionInfoInner object */ - public Observable analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot, String hostName) { - return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).map(new Func1, CustomHostnameAnalysisResultInner>() { + public Observable getSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { + return getSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, SiteExtensionInfoInner>() { @Override - public CustomHostnameAnalysisResultInner call(ServiceResponse response) { + public SiteExtensionInfoInner call(ServiceResponse response) { return response.body(); } }); } /** - * Analyze a custom hostname. - * Analyze a custom hostname. + * Get site extension information by its ID for a web site, or a deployment slot. + * Get site extension information by its ID for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param hostName Custom hostname. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the CustomHostnameAnalysisResultInner object + * @return the observable to the SiteExtensionInfoInner object */ - public Observable> analyzeCustomHostnameSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String hostName) { + public Observable> getSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + if (siteExtensionId == null) { + throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -18170,12 +18450,12 @@ public Observable> analyzeCus if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.analyzeCustomHostnameSlot(resourceGroupName, name, slot, this.client.subscriptionId(), hostName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = analyzeCustomHostnameSlotDelegate(response); + ServiceResponse clientResponse = getSiteExtensionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -18184,102 +18464,176 @@ public Observable> call(Respo }); } - private ServiceResponse analyzeCustomHostnameSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse getSiteExtensionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Applies the configuration settings from the target slot onto the current slot. - * Applies the configuration settings from the target slot onto the current slot. + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. - * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteExtensionInfoInner object if successful. */ - public void applySlotConfigurationSlot(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { - applySlotConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity).toBlocking().single().body(); + public SiteExtensionInfoInner installSiteExtension(String resourceGroupName, String name, String siteExtensionId) { + return installSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().last().body(); } /** - * Applies the configuration settings from the target slot onto the current slot. - * Applies the configuration settings from the target slot onto the current slot. + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. - * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param name Site name. + * @param siteExtensionId Site extension name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture applySlotConfigurationSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(applySlotConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity), serviceCallback); + public ServiceFuture installSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(installSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); } /** - * Applies the configuration settings from the target slot onto the current slot. - * Applies the configuration settings from the target slot onto the current slot. + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. - * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ - public Observable applySlotConfigurationSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { - return applySlotConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity).map(new Func1, Void>() { + public Observable installSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { + return installSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, SiteExtensionInfoInner>() { @Override - public Void call(ServiceResponse response) { + public SiteExtensionInfoInner call(ServiceResponse response) { return response.body(); } }); } /** - * Applies the configuration settings from the target slot onto the current slot. - * Applies the configuration settings from the target slot onto the current slot. + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. - * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ - public Observable> applySlotConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { + public Observable> installSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + if (siteExtensionId == null) { + throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (slotSwapEntity == null) { - throw new IllegalArgumentException("Parameter slotSwapEntity is required and cannot be null."); + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.installSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteExtensionInfoInner object if successful. + */ + public SiteExtensionInfoInner beginInstallSiteExtension(String resourceGroupName, String name, String siteExtensionId) { + return beginInstallSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().single().body(); + } + + /** + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginInstallSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginInstallSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); + } + + /** + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SiteExtensionInfoInner object + */ + public Observable beginInstallSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { + return beginInstallSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, SiteExtensionInfoInner>() { + @Override + public SiteExtensionInfoInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Install site extension on a web site, or a deployment slot. + * Install site extension on a web site, or a deployment slot. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param siteExtensionId Site extension name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SiteExtensionInfoInner object + */ + public Observable> beginInstallSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (siteExtensionId == null) { + throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(slotSwapEntity); - return service.applySlotConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), slotSwapEntity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.beginInstallSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = applySlotConfigurationSlotDelegate(response); + ServiceResponse clientResponse = beginInstallSiteExtensionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -18288,103 +18642,96 @@ public Observable> call(Response response) { }); } - private ServiceResponse applySlotConfigurationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginInstallSiteExtensionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .register(429, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Creates a backup of an app. - * Creates a backup of an app. + * Remove a site extension from a web site, or a deployment slot. + * Remove a site extension from a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. - * @param request Backup configuration. You can use the JSON response from the POST action as input here. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the BackupItemInner object if successful. */ - public BackupItemInner backupSlot(String resourceGroupName, String name, String slot, BackupRequestInner request) { - return backupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).toBlocking().single().body(); + public void deleteSiteExtension(String resourceGroupName, String name, String siteExtensionId) { + deleteSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).toBlocking().single().body(); } /** - * Creates a backup of an app. - * Creates a backup of an app. + * Remove a site extension from a web site, or a deployment slot. + * Remove a site extension from a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. - * @param request Backup configuration. You can use the JSON response from the POST action as input here. + * @param name Site name. + * @param siteExtensionId Site extension name. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture backupSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(backupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request), serviceCallback); + public ServiceFuture deleteSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId), serviceCallback); } /** - * Creates a backup of an app. - * Creates a backup of an app. + * Remove a site extension from a web site, or a deployment slot. + * Remove a site extension from a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. - * @param request Backup configuration. You can use the JSON response from the POST action as input here. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupItemInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable backupSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { - return backupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).map(new Func1, BackupItemInner>() { + public Observable deleteSiteExtensionAsync(String resourceGroupName, String name, String siteExtensionId) { + return deleteSiteExtensionWithServiceResponseAsync(resourceGroupName, name, siteExtensionId).map(new Func1, Void>() { @Override - public BackupItemInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a backup of an app. - * Creates a backup of an app. + * Remove a site extension from a web site, or a deployment slot. + * Remove a site extension from a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. - * @param request Backup configuration. You can use the JSON response from the POST action as input here. + * @param name Site name. + * @param siteExtensionId Site extension name. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupItemInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> backupSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { + public Observable> deleteSiteExtensionWithServiceResponseAsync(String resourceGroupName, String name, String siteExtensionId) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + if (siteExtensionId == null) { + throw new IllegalArgumentException("Parameter siteExtensionId is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - return service.backupSlot(resourceGroupName, name, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deleteSiteExtension(resourceGroupName, name, siteExtensionId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = backupSlotDelegate(response); + ServiceResponse clientResponse = deleteSiteExtensionDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -18393,135 +18740,128 @@ public Observable> call(Response }); } - private ServiceResponse backupSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteSiteExtensionDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Gets existing backups of an app. - * Gets existing backups of an app. + * Gets an app's deployment slots. + * Gets an app's deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<BackupItemInner> object if successful. + * @return the PagedList<SiteInner> object if successful. */ - public PagedList listBackupsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listBackupsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { + public PagedList listSlots(final String resourceGroupName, final String name) { + ServiceResponse> response = listSlotsSinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { @Override - public Page nextPage(String nextPageLink) { - return listBackupsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + public Page nextPage(String nextPageLink) { + return listSlotsNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * Gets existing backups of an app. - * Gets existing backups of an app. + * Gets an app's deployment slots. + * Gets an app's deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listBackupsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + public ServiceFuture> listSlotsAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listBackupsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { + listSlotsSinglePageAsync(resourceGroupName, name), + new Func1>>>() { @Override - public Observable>> call(String nextPageLink) { - return listBackupsSlotNextSinglePageAsync(nextPageLink); + public Observable>> call(String nextPageLink) { + return listSlotsNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * Gets existing backups of an app. - * Gets existing backups of an app. + * Gets an app's deployment slots. + * Gets an app's deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<BackupItemInner> object + * @return the observable to the PagedList<SiteInner> object */ - public Observable> listBackupsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listBackupsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { + public Observable> listSlotsAsync(final String resourceGroupName, final String name) { + return listSlotsWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { @Override - public Page call(ServiceResponse> response) { + public Page call(ServiceResponse> response) { return response.body(); } }); } /** - * Gets existing backups of an app. - * Gets existing backups of an app. + * Gets an app's deployment slots. + * Gets an app's deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<BackupItemInner> object + * @return the observable to the PagedList<SiteInner> object */ - public Observable>> listBackupsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listBackupsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { + public Observable>> listSlotsWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listSlotsSinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { @Override - public Observable>> call(ServiceResponse> page) { + public Observable>> call(ServiceResponse> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listBackupsSlotNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listSlotsNextWithServiceResponseAsync(nextPageLink)); } }); } /** - * Gets existing backups of an app. - * Gets existing backups of an app. + * Gets an app's deployment slots. + * Gets an app's deployment slots. * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<BackupItemInner> object wrapped in {@link ServiceResponse} if successful. + * @return the PagedList<SiteInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listBackupsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable>> listSlotsSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listBackupsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listSlots(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listBackupsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> result = listSlotsDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -18529,78 +18869,74 @@ public Observable>> call(Response> listBackupsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listSlotsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. + * Gets the details of a web, mobile, or API app. + * Gets the details of a web, mobile, or API app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @param slot Name of the deployment slot. By default, this API returns the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the RestoreRequestInner object if successful. + * @return the SiteInner object if successful. */ - public RestoreRequestInner discoverRestoreSlot(String resourceGroupName, String name, String slot, RestoreRequestInner request) { - return discoverRestoreSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).toBlocking().single().body(); + public SiteInner getSlot(String resourceGroupName, String name, String slot) { + return getSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. + * Gets the details of a web, mobile, or API app. + * Gets the details of a web, mobile, or API app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @param slot Name of the deployment slot. By default, this API returns the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture discoverRestoreSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(discoverRestoreSlotWithServiceResponseAsync(resourceGroupName, name, slot, request), serviceCallback); + public ServiceFuture getSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. + * Gets the details of a web, mobile, or API app. + * Gets the details of a web, mobile, or API app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @param slot Name of the deployment slot. By default, this API returns the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RestoreRequestInner object + * @return the observable to the SiteInner object */ - public Observable discoverRestoreSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { - return discoverRestoreSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).map(new Func1, RestoreRequestInner>() { + public Observable getSlotAsync(String resourceGroupName, String name, String slot) { + return getSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteInner>() { @Override - public RestoreRequestInner call(ServiceResponse response) { + public SiteInner call(ServiceResponse response) { return response.body(); } }); } /** - * Discovers an existing app backup that can be restored from a blob in Azure storage. - * Discovers an existing app backup that can be restored from a blob in Azure storage. + * Gets the details of a web, mobile, or API app. + * Gets the details of a web, mobile, or API app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. - * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. + * @param slot Name of the deployment slot. By default, this API returns the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RestoreRequestInner object + * @return the observable to the SiteInner object */ - public Observable> discoverRestoreSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { + public Observable> getSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -18613,19 +18949,15 @@ public Observable> discoverRestoreSlotWithS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - return service.discoverRestoreSlot(resourceGroupName, name, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = discoverRestoreSlotDelegate(response); + ServiceResponse clientResponse = getSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -18634,205 +18966,192 @@ public Observable> call(Response discoverRestoreSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse getSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Gets a backup of an app by its ID. - * Gets a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the BackupItemInner object if successful. + * @return the SiteInner object if successful. */ - public BackupItemInner getBackupStatusSlot(String resourceGroupName, String name, String backupId, String slot) { - return getBackupStatusSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).toBlocking().single().body(); + public SiteInner createOrUpdateSlot(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { + return createOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).toBlocking().last().body(); } /** - * Gets a backup of an app by its ID. - * Gets a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getBackupStatusSlotAsync(String resourceGroupName, String name, String backupId, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getBackupStatusSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot), serviceCallback); + public ServiceFuture createOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope), serviceCallback); } /** - * Gets a backup of an app by its ID. - * Gets a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupItemInner object + * @return the observable for the request */ - public Observable getBackupStatusSlotAsync(String resourceGroupName, String name, String backupId, String slot) { - return getBackupStatusSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).map(new Func1, BackupItemInner>() { + public Observable createOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { + return createOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).map(new Func1, SiteInner>() { @Override - public BackupItemInner call(ServiceResponse response) { + public SiteInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets a backup of an app by its ID. - * Gets a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupItemInner object + * @return the observable for the request */ - public Observable> getBackupStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot) { + public Observable> createOrUpdateSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (backupId == null) { - throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (siteEnvelope == null) { + throw new IllegalArgumentException("Parameter siteEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getBackupStatusSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = getBackupStatusSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse getBackupStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + Validator.validate(siteEnvelope); + Observable> observable = service.createOrUpdateSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** - * Deletes a backup of an app by its ID. - * Deletes a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteInner object if successful. */ - public void deleteBackupSlot(String resourceGroupName, String name, String backupId, String slot) { - deleteBackupSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).toBlocking().single().body(); + public SiteInner beginCreateOrUpdateSlot(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { + return beginCreateOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).toBlocking().single().body(); } /** - * Deletes a backup of an app by its ID. - * Deletes a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteBackupSlotAsync(String resourceGroupName, String name, String backupId, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteBackupSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot), serviceCallback); + public ServiceFuture beginCreateOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope), serviceCallback); } /** - * Deletes a backup of an app by its ID. - * Deletes a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteInner object */ - public Observable deleteBackupSlotAsync(String resourceGroupName, String name, String backupId, String slot) { - return deleteBackupSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).map(new Func1, Void>() { + public Observable beginCreateOrUpdateSlotAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { + return beginCreateOrUpdateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).map(new Func1, SiteInner>() { @Override - public Void call(ServiceResponse response) { + public SiteInner call(ServiceResponse response) { return response.body(); } }); } /** - * Deletes a backup of an app by its ID. - * Deletes a backup of an app by its ID. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteInner object */ - public Observable> deleteBackupSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot) { + public Observable> beginCreateOrUpdateSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteInner siteEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (backupId == null) { - throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (siteEnvelope == null) { + throw new IllegalArgumentException("Parameter siteEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteBackupSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(siteEnvelope); + return service.beginCreateOrUpdateSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteBackupSlotDelegate(response); + ServiceResponse clientResponse = beginCreateOrUpdateSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -18841,111 +19160,97 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteBackupSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse beginCreateOrUpdateSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param backupId ID of backup. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param request Information on backup request. + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the BackupItemInner object if successful. */ - public BackupItemInner listBackupStatusSecretsSlot(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request) { - return listBackupStatusSecretsSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).toBlocking().single().body(); + public void deleteSlot(String resourceGroupName, String name, String slot) { + deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param backupId ID of backup. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param request Information on backup request. + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listBackupStatusSecretsSlotAsync(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listBackupStatusSecretsSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request), serviceCallback); + public ServiceFuture deleteSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param backupId ID of backup. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param request Information on backup request. + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupItemInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable listBackupStatusSecretsSlotAsync(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request) { - return listBackupStatusSecretsSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).map(new Func1, BackupItemInner>() { + public Observable deleteSlotAsync(String resourceGroupName, String name, String slot) { + return deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { @Override - public BackupItemInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. - * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param backupId ID of backup. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param request Information on backup request. + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupItemInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listBackupStatusSecretsSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request) { + public Observable> deleteSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (backupId == null) { - throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - return service.listBackupStatusSecretsSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + final Boolean deleteMetrics = null; + final Boolean deleteEmptyServerFarm = null; + return service.deleteSlot(resourceGroupName, name, slot, this.client.subscriptionId(), deleteMetrics, deleteEmptyServerFarm, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listBackupStatusSecretsSlotDelegate(response); + ServiceResponse clientResponse = deleteSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -18954,61 +19259,54 @@ public Observable> call(Response }); } - private ServiceResponse listBackupStatusSecretsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param deleteMetrics If true, web app metrics are also deleted. + * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void restoreSlot(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { - restoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).toBlocking().last().body(); + public void deleteSlot(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm) { + deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot, deleteMetrics, deleteEmptyServerFarm).toBlocking().single().body(); } /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param deleteMetrics If true, web app metrics are also deleted. + * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture restoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(restoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request), serviceCallback); + public ServiceFuture deleteSlotAsync(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot, deleteMetrics, deleteEmptyServerFarm), serviceCallback); } /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param deleteMetrics If true, web app metrics are also deleted. + * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the {@link ServiceResponse} object if successful. */ - public Observable restoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { - return restoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).map(new Func1, Void>() { + public Observable deleteSlotAsync(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm) { + return deleteSlotWithServiceResponseAsync(resourceGroupName, name, slot, deleteMetrics, deleteEmptyServerFarm).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -19017,140 +19315,146 @@ public Void call(ServiceResponse response) { } /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Deletes a web, mobile, or API app, or one of the deployment slots. + * Deletes a web, mobile, or API app, or one of the deployment slots. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Name of the app to delete. + * @param slot Name of the deployment slot to delete. By default, the API deletes the production slot. + * @param deleteMetrics If true, web app metrics are also deleted. + * @param deleteEmptyServerFarm Specify true if the App Service plan will be empty after app deletion and you want to delete the empty App Service plan. By default, the empty App Service plan is not deleted. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the {@link ServiceResponse} object if successful. */ - public Observable> restoreSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { + public Observable> deleteSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Boolean deleteMetrics, Boolean deleteEmptyServerFarm) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (backupId == null) { - throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - Observable> observable = service.restoreSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + return service.deleteSlot(resourceGroupName, name, slot, this.client.subscriptionId(), deleteMetrics, deleteEmptyServerFarm, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); } /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteInner object if successful. */ - public void beginRestoreSlot(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { - beginRestoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).toBlocking().single().body(); + public SiteInner updateSlot(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope) { + return updateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).toBlocking().single().body(); } /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginRestoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginRestoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request), serviceCallback); + public ServiceFuture updateSlotAsync(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope), serviceCallback); } /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteInner object */ - public Observable beginRestoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { - return beginRestoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).map(new Func1, Void>() { + public Observable updateSlotAsync(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope) { + return updateSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteEnvelope).map(new Func1, SiteInner>() { @Override - public Void call(ServiceResponse response) { + public SiteInner call(ServiceResponse response) { return response.body(); } }); } /** - * Restores a specific backup to another app (or deployment slot, if specified). - * Restores a specific backup to another app (or deployment slot, if specified). + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. + * Creates a new web, mobile, or API app in an existing resource group, or updates an existing app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param backupId ID of the backup. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. - * @param request Information on restore request . + * @param name Unique name of the app to create or update. To create or update a deployment slot, use the {slot} parameter. + * @param slot Name of the deployment slot to create or update. By default, this API attempts to create or modify the production slot. + * @param siteEnvelope A JSON representation of the app properties. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteInner object */ - public Observable> beginRestoreSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { + public Observable> updateSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SitePatchResource siteEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (backupId == null) { - throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); + if (siteEnvelope == null) { + throw new IllegalArgumentException("Parameter siteEnvelope is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - return service.beginRestoreSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(siteEnvelope); + return service.updateSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginRestoreSlotDelegate(response); + ServiceResponse clientResponse = updateSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -19159,114 +19463,75 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginRestoreSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse updateSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * List the configurations of an app. - * List the configurations of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<SiteConfigResourceInner> object if successful. + * @return the CustomHostnameAnalysisResultInner object if successful. */ - public PagedList listConfigurationsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listConfigurationsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listConfigurationsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public CustomHostnameAnalysisResultInner analyzeCustomHostnameSlot(String resourceGroupName, String name, String slot) { + return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * List the configurations of an app. - * List the configurations of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listConfigurationsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listConfigurationsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listConfigurationsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * List the configurations of an app. - * List the configurations of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteConfigResourceInner> object + * @return the observable to the CustomHostnameAnalysisResultInner object */ - public Observable> listConfigurationsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listConfigurationsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot) { + return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, CustomHostnameAnalysisResultInner>() { + @Override + public CustomHostnameAnalysisResultInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * List the configurations of an app. - * List the configurations of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteConfigResourceInner> object - */ - public Observable>> listConfigurationsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listConfigurationsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listConfigurationsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * List the configurations of an app. - * List the configurations of an app. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<SiteConfigResourceInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the CustomHostnameAnalysisResultInner object */ - public Observable>> listConfigurationsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> analyzeCustomHostnameSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -19282,13 +19547,14 @@ public Observable>> listConfigurat if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listConfigurationsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + final String hostName = null; + return service.analyzeCustomHostnameSlot(resourceGroupName, name, slot, this.client.subscriptionId(), hostName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listConfigurationsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = analyzeCustomHostnameSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -19296,78 +19562,71 @@ public Observable>> call(Response< }); } - private ServiceResponse> listConfigurationsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** - * Replaces the application settings of an app. - * Replaces the application settings of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. - * @param appSettings Application settings of the app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param hostName Custom hostname. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the StringDictionaryInner object if successful. + * @return the CustomHostnameAnalysisResultInner object if successful. */ - public StringDictionaryInner updateApplicationSettingsSlot(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings) { - return updateApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, appSettings).toBlocking().single().body(); + public CustomHostnameAnalysisResultInner analyzeCustomHostnameSlot(String resourceGroupName, String name, String slot, String hostName) { + return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).toBlocking().single().body(); } /** - * Replaces the application settings of an app. - * Replaces the application settings of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. - * @param appSettings Application settings of the app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param hostName Custom hostname. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, appSettings), serviceCallback); + public ServiceFuture analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot, String hostName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName), serviceCallback); } /** - * Replaces the application settings of an app. - * Replaces the application settings of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. - * @param appSettings Application settings of the app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param hostName Custom hostname. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the StringDictionaryInner object + * @return the observable to the CustomHostnameAnalysisResultInner object */ - public Observable updateApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings) { - return updateApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, appSettings).map(new Func1, StringDictionaryInner>() { + public Observable analyzeCustomHostnameSlotAsync(String resourceGroupName, String name, String slot, String hostName) { + return analyzeCustomHostnameSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).map(new Func1, CustomHostnameAnalysisResultInner>() { @Override - public StringDictionaryInner call(ServiceResponse response) { + public CustomHostnameAnalysisResultInner call(ServiceResponse response) { return response.body(); } }); } /** - * Replaces the application settings of an app. - * Replaces the application settings of an app. + * Analyze a custom hostname. + * Analyze a custom hostname. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. - * @param appSettings Application settings of the app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param hostName Custom hostname. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the StringDictionaryInner object + * @return the observable to the CustomHostnameAnalysisResultInner object */ - public Observable> updateApplicationSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings) { + public Observable> analyzeCustomHostnameSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String hostName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -19380,19 +19639,15 @@ public Observable> updateApplicationSetti if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (appSettings == null) { - throw new IllegalArgumentException("Parameter appSettings is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(appSettings); - return service.updateApplicationSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), appSettings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.analyzeCustomHostnameSlot(resourceGroupName, name, slot, this.client.subscriptionId(), hostName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateApplicationSettingsSlotDelegate(response); + ServiceResponse clientResponse = analyzeCustomHostnameSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -19401,74 +19656,77 @@ public Observable> call(Response updateApplicationSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse analyzeCustomHostnameSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the application settings of an app. - * Gets the application settings of an app. - * + * Applies the configuration settings from the target slot onto the current slot. + * Applies the configuration settings from the target slot onto the current slot. + * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. + * @param slotSwapEntity JSON object that contains the target slot name. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the StringDictionaryInner object if successful. */ - public StringDictionaryInner listApplicationSettingsSlot(String resourceGroupName, String name, String slot) { - return listApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void applySlotConfigurationSlot(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { + applySlotConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity).toBlocking().single().body(); } /** - * Gets the application settings of an app. - * Gets the application settings of an app. + * Applies the configuration settings from the target slot onto the current slot. + * Applies the configuration settings from the target slot onto the current slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. + * @param slotSwapEntity JSON object that contains the target slot name. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture applySlotConfigurationSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(applySlotConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity), serviceCallback); } /** - * Gets the application settings of an app. - * Gets the application settings of an app. + * Applies the configuration settings from the target slot onto the current slot. + * Applies the configuration settings from the target slot onto the current slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. + * @param slotSwapEntity JSON object that contains the target slot name. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the StringDictionaryInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable listApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot) { - return listApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, StringDictionaryInner>() { + public Observable applySlotConfigurationSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { + return applySlotConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity).map(new Func1, Void>() { @Override - public StringDictionaryInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the application settings of an app. - * Gets the application settings of an app. + * Applies the configuration settings from the target slot onto the current slot. + * Applies the configuration settings from the target slot onto the current slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. + * @param slotSwapEntity JSON object that contains the target slot name. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the StringDictionaryInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listApplicationSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> applySlotConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -19481,15 +19739,19 @@ public Observable> listApplicationSetting if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (slotSwapEntity == null) { + throw new IllegalArgumentException("Parameter slotSwapEntity is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listApplicationSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(slotSwapEntity); + return service.applySlotConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), slotSwapEntity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listApplicationSettingsSlotDelegate(response); + ServiceResponse clientResponse = applySlotConfigurationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -19498,78 +19760,78 @@ public Observable> call(Response listApplicationSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse applySlotConfigurationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Updates the Authentication / Authorization settings associated with web app. - * Updates the Authentication / Authorization settings associated with web app. + * Creates a backup of an app. + * Creates a backup of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param siteAuthSettings Auth settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. + * @param request Backup configuration. You can use the JSON response from the POST action as input here. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteAuthSettingsInner object if successful. + * @return the BackupItemInner object if successful. */ - public SiteAuthSettingsInner updateAuthSettingsSlot(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings) { - return updateAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteAuthSettings).toBlocking().single().body(); + public BackupItemInner backupSlot(String resourceGroupName, String name, String slot, BackupRequestInner request) { + return backupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).toBlocking().single().body(); } /** - * Updates the Authentication / Authorization settings associated with web app. - * Updates the Authentication / Authorization settings associated with web app. + * Creates a backup of an app. + * Creates a backup of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param siteAuthSettings Auth settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. + * @param request Backup configuration. You can use the JSON response from the POST action as input here. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateAuthSettingsSlotAsync(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteAuthSettings), serviceCallback); + public ServiceFuture backupSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(backupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request), serviceCallback); } /** - * Updates the Authentication / Authorization settings associated with web app. - * Updates the Authentication / Authorization settings associated with web app. + * Creates a backup of an app. + * Creates a backup of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param siteAuthSettings Auth settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. + * @param request Backup configuration. You can use the JSON response from the POST action as input here. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteAuthSettingsInner object + * @return the observable to the BackupItemInner object */ - public Observable updateAuthSettingsSlotAsync(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings) { - return updateAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteAuthSettings).map(new Func1, SiteAuthSettingsInner>() { + public Observable backupSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { + return backupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).map(new Func1, BackupItemInner>() { @Override - public SiteAuthSettingsInner call(ServiceResponse response) { + public BackupItemInner call(ServiceResponse response) { return response.body(); } }); } /** - * Updates the Authentication / Authorization settings associated with web app. - * Updates the Authentication / Authorization settings associated with web app. + * Creates a backup of an app. + * Creates a backup of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param siteAuthSettings Auth settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a backup for the production slot. + * @param request Backup configuration. You can use the JSON response from the POST action as input here. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteAuthSettingsInner object + * @return the observable to the BackupItemInner object */ - public Observable> updateAuthSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings) { + public Observable> backupSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -19582,19 +19844,19 @@ public Observable> updateAuthSettingsSlot if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (siteAuthSettings == null) { - throw new IllegalArgumentException("Parameter siteAuthSettings is required and cannot be null."); + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(siteAuthSettings); - return service.updateAuthSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteAuthSettings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(request); + return service.backupSlot(resourceGroupName, name, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateAuthSettingsSlotDelegate(response); + ServiceResponse clientResponse = backupSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -19603,74 +19865,113 @@ public Observable> call(Response updateAuthSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse backupSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the Authentication/Authorization settings of an app. - * Gets the Authentication/Authorization settings of an app. + * Gets existing backups of an app. + * Gets existing backups of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteAuthSettingsInner object if successful. + * @return the PagedList<BackupItemInner> object if successful. */ - public SiteAuthSettingsInner getAuthSettingsSlot(String resourceGroupName, String name, String slot) { - return getAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public PagedList listBackupsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listBackupsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listBackupsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Gets the Authentication/Authorization settings of an app. - * Gets the Authentication/Authorization settings of an app. + * Gets existing backups of an app. + * Gets existing backups of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getAuthSettingsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture> listBackupsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listBackupsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listBackupsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Gets the Authentication/Authorization settings of an app. - * Gets the Authentication/Authorization settings of an app. + * Gets existing backups of an app. + * Gets existing backups of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteAuthSettingsInner object + * @return the observable to the PagedList<BackupItemInner> object */ - public Observable getAuthSettingsSlotAsync(String resourceGroupName, String name, String slot) { - return getAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteAuthSettingsInner>() { - @Override - public SiteAuthSettingsInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listBackupsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listBackupsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Gets the Authentication/Authorization settings of an app. - * Gets the Authentication/Authorization settings of an app. + * Gets existing backups of an app. + * Gets existing backups of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteAuthSettingsInner object + * @return the observable to the PagedList<BackupItemInner> object */ - public Observable> getAuthSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable>> listBackupsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listBackupsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listBackupsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets existing backups of an app. + * Gets existing backups of an app. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will get backups of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<BackupItemInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listBackupsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -19686,13 +19987,13 @@ public Observable> getAuthSettingsSlotWit if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getAuthSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listBackupsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getAuthSettingsSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listBackupsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -19700,103 +20001,102 @@ public Observable> call(Response getAuthSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> listBackupsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Updates the backup configuration of an app. - * Updates the backup configuration of an app. + * Gets a backup of an app by its ID. + * Gets a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. - * @param request Edited backup configuration. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the BackupRequestInner object if successful. + * @return the BackupItemInner object if successful. */ - public BackupRequestInner updateBackupConfigurationSlot(String resourceGroupName, String name, String slot, BackupRequestInner request) { - return updateBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).toBlocking().single().body(); + public BackupItemInner getBackupStatusSlot(String resourceGroupName, String name, String backupId, String slot) { + return getBackupStatusSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).toBlocking().single().body(); } /** - * Updates the backup configuration of an app. - * Updates the backup configuration of an app. + * Gets a backup of an app by its ID. + * Gets a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. - * @param request Edited backup configuration. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, request), serviceCallback); + public ServiceFuture getBackupStatusSlotAsync(String resourceGroupName, String name, String backupId, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getBackupStatusSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot), serviceCallback); } /** - * Updates the backup configuration of an app. - * Updates the backup configuration of an app. + * Gets a backup of an app by its ID. + * Gets a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. - * @param request Edited backup configuration. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupRequestInner object + * @return the observable to the BackupItemInner object */ - public Observable updateBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { - return updateBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).map(new Func1, BackupRequestInner>() { + public Observable getBackupStatusSlotAsync(String resourceGroupName, String name, String backupId, String slot) { + return getBackupStatusSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).map(new Func1, BackupItemInner>() { @Override - public BackupRequestInner call(ServiceResponse response) { + public BackupItemInner call(ServiceResponse response) { return response.body(); } }); } /** - * Updates the backup configuration of an app. - * Updates the backup configuration of an app. + * Gets a backup of an app by its ID. + * Gets a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. - * @param request Edited backup configuration. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a backup of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupRequestInner object + * @return the observable to the BackupItemInner object */ - public Observable> updateBackupConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { + public Observable> getBackupStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (backupId == null) { + throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (request == null) { - throw new IllegalArgumentException("Parameter request is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(request); - return service.updateBackupConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getBackupStatusSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateBackupConfigurationSlotDelegate(response); + ServiceResponse clientResponse = getBackupStatusSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -19805,55 +20105,58 @@ public Observable> call(Response updateBackupConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getBackupStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Deletes the backup configuration of an app. - * Deletes the backup configuration of an app. + * Deletes a backup of an app by its ID. + * Deletes a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */ - public void deleteBackupConfigurationSlot(String resourceGroupName, String name, String slot) { - deleteBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void deleteBackupSlot(String resourceGroupName, String name, String backupId, String slot) { + deleteBackupSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).toBlocking().single().body(); } /** - * Deletes the backup configuration of an app. - * Deletes the backup configuration of an app. + * Deletes a backup of an app by its ID. + * Deletes a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture deleteBackupSlotAsync(String resourceGroupName, String name, String backupId, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteBackupSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot), serviceCallback); } /** - * Deletes the backup configuration of an app. - * Deletes the backup configuration of an app. + * Deletes a backup of an app by its ID. + * Deletes a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable deleteBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot) { - return deleteBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { + public Observable deleteBackupSlotAsync(String resourceGroupName, String name, String backupId, String slot) { + return deleteBackupSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot).map(new Func1, Void>() { @Override public Void call(ServiceResponse response) { return response.body(); @@ -19862,22 +20165,26 @@ public Void call(ServiceResponse response) { } /** - * Deletes the backup configuration of an app. - * Deletes the backup configuration of an app. + * Deletes a backup of an app by its ID. + * Deletes a backup of an app by its ID. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a backup of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */ - public Observable> deleteBackupConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> deleteBackupSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (backupId == null) { + throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -19887,12 +20194,12 @@ public Observable> deleteBackupConfigurationSlotWithServic if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteBackupConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.deleteBackupSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteBackupConfigurationSlotDelegate(response); + ServiceResponse clientResponse = deleteBackupSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -19901,95 +20208,111 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteBackupConfigurationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse deleteBackupSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Gets the backup configuration of an app. - * Gets the backup configuration of an app. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. + * @param name Name of web app. + * @param backupId ID of backup. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param request Information on backup request. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the BackupRequestInner object if successful. + * @return the BackupItemInner object if successful. */ - public BackupRequestInner getBackupConfigurationSlot(String resourceGroupName, String name, String slot) { - return getBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public BackupItemInner listBackupStatusSecretsSlot(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request) { + return listBackupStatusSecretsSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).toBlocking().single().body(); } /** - * Gets the backup configuration of an app. - * Gets the backup configuration of an app. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. + * @param name Name of web app. + * @param backupId ID of backup. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param request Information on backup request. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture listBackupStatusSecretsSlotAsync(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listBackupStatusSecretsSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request), serviceCallback); } /** - * Gets the backup configuration of an app. - * Gets the backup configuration of an app. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. + * @param name Name of web app. + * @param backupId ID of backup. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param request Information on backup request. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupRequestInner object + * @return the observable to the BackupItemInner object */ - public Observable getBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot) { - return getBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, BackupRequestInner>() { + public Observable listBackupStatusSecretsSlotAsync(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request) { + return listBackupStatusSecretsSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).map(new Func1, BackupItemInner>() { @Override - public BackupRequestInner call(ServiceResponse response) { + public BackupItemInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the backup configuration of an app. - * Gets the backup configuration of an app. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. + * Gets status of a web app backup that may be in progress, including secrets associated with the backup, such as the Azure Storage SAS URL. Also can be used to update the SAS URL for the backup if a new URL is passed in the request body. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. + * @param name Name of web app. + * @param backupId ID of backup. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param request Information on backup request. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the BackupRequestInner object + * @return the observable to the BackupItemInner object */ - public Observable> getBackupConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> listBackupStatusSecretsSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot, BackupRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (backupId == null) { + throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getBackupConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(request); + return service.listBackupStatusSecretsSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getBackupConfigurationSlotDelegate(response); + ServiceResponse clientResponse = listBackupStatusSecretsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -19998,200 +20321,203 @@ public Observable> call(Response getBackupConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse listBackupStatusSecretsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Replaces the connection strings of an app. - * Replaces the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. - * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ConnectionStringDictionaryInner object if successful. */ - public ConnectionStringDictionaryInner updateConnectionStringsSlot(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings) { - return updateConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionStrings).toBlocking().single().body(); + public void restoreSlot(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { + restoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).toBlocking().last().body(); } /** - * Replaces the connection strings of an app. - * Replaces the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. - * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateConnectionStringsSlotAsync(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionStrings), serviceCallback); + public ServiceFuture restoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(restoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request), serviceCallback); } /** - * Replaces the connection strings of an app. - * Replaces the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. - * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ConnectionStringDictionaryInner object + * @return the observable for the request */ - public Observable updateConnectionStringsSlotAsync(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings) { - return updateConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionStrings).map(new Func1, ConnectionStringDictionaryInner>() { + public Observable restoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { + return restoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).map(new Func1, Void>() { @Override - public ConnectionStringDictionaryInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Replaces the connection strings of an app. - * Replaces the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. - * @param connectionStrings Connection strings of the app or deployment slot. See example. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ConnectionStringDictionaryInner object + * @return the observable for the request */ - public Observable> updateConnectionStringsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings) { + public Observable> restoreSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (backupId == null) { + throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (connectionStrings == null) { - throw new IllegalArgumentException("Parameter connectionStrings is required and cannot be null."); + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(connectionStrings); - return service.updateConnectionStringsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), connectionStrings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = updateConnectionStringsSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse updateConnectionStringsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + Validator.validate(request); + Observable> observable = service.restoreSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Gets the connection strings of an app. - * Gets the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ConnectionStringDictionaryInner object if successful. */ - public ConnectionStringDictionaryInner listConnectionStringsSlot(String resourceGroupName, String name, String slot) { - return listConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void beginRestoreSlot(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { + beginRestoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).toBlocking().single().body(); } /** - * Gets the connection strings of an app. - * Gets the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listConnectionStringsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture beginRestoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginRestoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request), serviceCallback); } /** - * Gets the connection strings of an app. - * Gets the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ConnectionStringDictionaryInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable listConnectionStringsSlotAsync(String resourceGroupName, String name, String slot) { - return listConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, ConnectionStringDictionaryInner>() { + public Observable beginRestoreSlotAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { + return beginRestoreSlotWithServiceResponseAsync(resourceGroupName, name, backupId, slot, request).map(new Func1, Void>() { @Override - public ConnectionStringDictionaryInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the connection strings of an app. - * Gets the connection strings of an app. + * Restores a specific backup to another app (or deployment slot, if specified). + * Restores a specific backup to another app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. + * @param backupId ID of the backup. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param request Information on restore request . * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ConnectionStringDictionaryInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listConnectionStringsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> beginRestoreSlotWithServiceResponseAsync(String resourceGroupName, String name, String backupId, String slot, RestoreRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (backupId == null) { + throw new IllegalArgumentException("Parameter backupId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listConnectionStringsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(request); + return service.beginRestoreSlot(resourceGroupName, name, backupId, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listConnectionStringsSlotDelegate(response); + ServiceResponse clientResponse = beginRestoreSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -20200,74 +20526,114 @@ public Observable> call(Respons }); } - private ServiceResponse listConnectionStringsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse beginRestoreSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Gets the logging configuration of an app. - * Gets the logging configuration of an app. + * List the configurations of an app. + * List the configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteLogsConfigInner object if successful. + * @return the PagedList<SiteConfigResourceInner> object if successful. */ - public SiteLogsConfigInner getDiagnosticLogsConfigurationSlot(String resourceGroupName, String name, String slot) { - return getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public PagedList listConfigurationsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listConfigurationsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listConfigurationsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Gets the logging configuration of an app. - * Gets the logging configuration of an app. + * List the configurations of an app. + * List the configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getDiagnosticLogsConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture> listConfigurationsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listConfigurationsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listConfigurationsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Gets the logging configuration of an app. - * Gets the logging configuration of an app. + * List the configurations of an app. + * List the configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteLogsConfigInner object + * @return the observable to the PagedList<SiteConfigResourceInner> object */ - public Observable getDiagnosticLogsConfigurationSlotAsync(String resourceGroupName, String name, String slot) { - return getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteLogsConfigInner>() { - @Override - public SiteLogsConfigInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listConfigurationsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listConfigurationsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Gets the logging configuration of an app. - * Gets the logging configuration of an app. + * List the configurations of an app. + * List the configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteLogsConfigInner object + * @return the observable to the PagedList<SiteConfigResourceInner> object */ - public Observable> getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable>> listConfigurationsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listConfigurationsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listConfigurationsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List the configurations of an app. + * List the configurations of an app. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SiteConfigResourceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listConfigurationsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20283,13 +20649,13 @@ public Observable> getDiagnosticLogsConfigu if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getDiagnosticLogsConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listConfigurationsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getDiagnosticLogsConfigurationSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listConfigurationsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -20297,78 +20663,78 @@ public Observable> call(Response getDiagnosticLogsConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> listConfigurationsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Updates the logging configuration of an app. - * Updates the logging configuration of an app. + * Replaces the application settings of an app. + * Replaces the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. - * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. + * @param appSettings Application settings of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteLogsConfigInner object if successful. + * @return the StringDictionaryInner object if successful. */ - public SiteLogsConfigInner updateDiagnosticLogsConfigSlot(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig) { - return updateDiagnosticLogsConfigSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteLogsConfig).toBlocking().single().body(); + public StringDictionaryInner updateApplicationSettingsSlot(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings) { + return updateApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, appSettings).toBlocking().single().body(); } /** - * Updates the logging configuration of an app. - * Updates the logging configuration of an app. + * Replaces the application settings of an app. + * Replaces the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. - * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. + * @param appSettings Application settings of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateDiagnosticLogsConfigSlotAsync(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateDiagnosticLogsConfigSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteLogsConfig), serviceCallback); + public ServiceFuture updateApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, appSettings), serviceCallback); } /** - * Updates the logging configuration of an app. - * Updates the logging configuration of an app. + * Replaces the application settings of an app. + * Replaces the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. - * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. + * @param appSettings Application settings of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteLogsConfigInner object + * @return the observable to the StringDictionaryInner object */ - public Observable updateDiagnosticLogsConfigSlotAsync(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig) { - return updateDiagnosticLogsConfigSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteLogsConfig).map(new Func1, SiteLogsConfigInner>() { + public Observable updateApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings) { + return updateApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, appSettings).map(new Func1, StringDictionaryInner>() { @Override - public SiteLogsConfigInner call(ServiceResponse response) { + public StringDictionaryInner call(ServiceResponse response) { return response.body(); } }); } /** - * Updates the logging configuration of an app. - * Updates the logging configuration of an app. + * Replaces the application settings of an app. + * Replaces the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. - * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the application settings for the production slot. + * @param appSettings Application settings of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteLogsConfigInner object + * @return the observable to the StringDictionaryInner object */ - public Observable> updateDiagnosticLogsConfigSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig) { + public Observable> updateApplicationSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, StringDictionaryInner appSettings) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20381,19 +20747,19 @@ public Observable> updateDiagnosticLogsConf if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (siteLogsConfig == null) { - throw new IllegalArgumentException("Parameter siteLogsConfig is required and cannot be null."); + if (appSettings == null) { + throw new IllegalArgumentException("Parameter appSettings is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(siteLogsConfig); - return service.updateDiagnosticLogsConfigSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteLogsConfig, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(appSettings); + return service.updateApplicationSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), appSettings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateDiagnosticLogsConfigSlotDelegate(response); + ServiceResponse clientResponse = updateApplicationSettingsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -20402,59 +20768,56 @@ public Observable> call(Response updateDiagnosticLogsConfigSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateApplicationSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Replaces the metadata of an app. - * Replaces the metadata of an app. + * Gets the application settings of an app. + * Gets the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. - * @param metadata Edited metadata of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the StringDictionaryInner object if successful. */ - public StringDictionaryInner updateMetadataSlot(String resourceGroupName, String name, String slot, StringDictionaryInner metadata) { - return updateMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot, metadata).toBlocking().single().body(); + public StringDictionaryInner listApplicationSettingsSlot(String resourceGroupName, String name, String slot) { + return listApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Replaces the metadata of an app. - * Replaces the metadata of an app. + * Gets the application settings of an app. + * Gets the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. - * @param metadata Edited metadata of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateMetadataSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner metadata, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot, metadata), serviceCallback); + public ServiceFuture listApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Replaces the metadata of an app. - * Replaces the metadata of an app. + * Gets the application settings of an app. + * Gets the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. - * @param metadata Edited metadata of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the StringDictionaryInner object */ - public Observable updateMetadataSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner metadata) { - return updateMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot, metadata).map(new Func1, StringDictionaryInner>() { + public Observable listApplicationSettingsSlotAsync(String resourceGroupName, String name, String slot) { + return listApplicationSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, StringDictionaryInner>() { @Override public StringDictionaryInner call(ServiceResponse response) { return response.body(); @@ -20463,17 +20826,16 @@ public StringDictionaryInner call(ServiceResponse respons } /** - * Replaces the metadata of an app. - * Replaces the metadata of an app. + * Gets the application settings of an app. + * Gets the application settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. - * @param metadata Edited metadata of the app or deployment slot. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the application settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the StringDictionaryInner object */ - public Observable> updateMetadataSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, StringDictionaryInner metadata) { + public Observable> listApplicationSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20486,19 +20848,15 @@ public Observable> updateMetadataSlotWith if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (metadata == null) { - throw new IllegalArgumentException("Parameter metadata is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(metadata); - return service.updateMetadataSlot(resourceGroupName, name, slot, this.client.subscriptionId(), metadata, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.listApplicationSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateMetadataSlotDelegate(response); + ServiceResponse clientResponse = listApplicationSettingsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -20507,7 +20865,7 @@ public Observable> call(Response updateMetadataSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse listApplicationSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) @@ -20515,66 +20873,70 @@ private ServiceResponse updateMetadataSlotDelegate(Respon } /** - * Gets the metadata of an app. - * Gets the metadata of an app. + * Updates the Authentication / Authorization settings associated with web app. + * Updates the Authentication / Authorization settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param siteAuthSettings Auth settings associated with web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the StringDictionaryInner object if successful. + * @return the SiteAuthSettingsInner object if successful. */ - public StringDictionaryInner listMetadataSlot(String resourceGroupName, String name, String slot) { - return listMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public SiteAuthSettingsInner updateAuthSettingsSlot(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings) { + return updateAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteAuthSettings).toBlocking().single().body(); } /** - * Gets the metadata of an app. - * Gets the metadata of an app. + * Updates the Authentication / Authorization settings associated with web app. + * Updates the Authentication / Authorization settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param siteAuthSettings Auth settings associated with web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listMetadataSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture updateAuthSettingsSlotAsync(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteAuthSettings), serviceCallback); } /** - * Gets the metadata of an app. - * Gets the metadata of an app. + * Updates the Authentication / Authorization settings associated with web app. + * Updates the Authentication / Authorization settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param siteAuthSettings Auth settings associated with web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the StringDictionaryInner object + * @return the observable to the SiteAuthSettingsInner object */ - public Observable listMetadataSlotAsync(String resourceGroupName, String name, String slot) { - return listMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, StringDictionaryInner>() { + public Observable updateAuthSettingsSlotAsync(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings) { + return updateAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteAuthSettings).map(new Func1, SiteAuthSettingsInner>() { @Override - public StringDictionaryInner call(ServiceResponse response) { + public SiteAuthSettingsInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the metadata of an app. - * Gets the metadata of an app. + * Updates the Authentication / Authorization settings associated with web app. + * Updates the Authentication / Authorization settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param siteAuthSettings Auth settings associated with web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the StringDictionaryInner object + * @return the observable to the SiteAuthSettingsInner object */ - public Observable> listMetadataSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> updateAuthSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteAuthSettingsInner siteAuthSettings) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20587,15 +20949,19 @@ public Observable> listMetadataSlotWithSe if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (siteAuthSettings == null) { + throw new IllegalArgumentException("Parameter siteAuthSettings is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listMetadataSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(siteAuthSettings); + return service.updateAuthSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteAuthSettings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listMetadataSlotDelegate(response); + ServiceResponse clientResponse = updateAuthSettingsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -20604,74 +20970,74 @@ public Observable> call(Response listMetadataSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateAuthSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Gets the Authentication/Authorization settings of an app. + * Gets the Authentication/Authorization settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UserInner object if successful. + * @return the SiteAuthSettingsInner object if successful. */ - public UserInner listPublishingCredentialsSlot(String resourceGroupName, String name, String slot) { - return listPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().last().body(); + public SiteAuthSettingsInner getAuthSettingsSlot(String resourceGroupName, String name, String slot) { + return getAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Gets the Authentication/Authorization settings of an app. + * Gets the Authentication/Authorization settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture getAuthSettingsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Gets the Authentication/Authorization settings of an app. + * Gets the Authentication/Authorization settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the SiteAuthSettingsInner object */ - public Observable listPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot) { - return listPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, UserInner>() { + public Observable getAuthSettingsSlotAsync(String resourceGroupName, String name, String slot) { + return getAuthSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteAuthSettingsInner>() { @Override - public UserInner call(ServiceResponse response) { + public SiteAuthSettingsInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Gets the Authentication/Authorization settings of an app. + * Gets the Authentication/Authorization settings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the SiteAuthSettingsInner object */ - public Observable> listPublishingCredentialsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> getAuthSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20687,71 +21053,92 @@ public Observable> listPublishingCredentialsSlotWithS if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.listPublishingCredentialsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + return service.getAuthSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getAuthSettingsSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getAuthSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. + * @param azureStorageAccounts Azure storage accounts of the app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UserInner object if successful. + * @return the AzureStoragePropertyDictionaryResourceInner object if successful. */ - public UserInner beginListPublishingCredentialsSlot(String resourceGroupName, String name, String slot) { - return beginListPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public AzureStoragePropertyDictionaryResourceInner updateAzureStorageAccountsSlot(String resourceGroupName, String name, String slot, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { + return updateAzureStorageAccountsSlotWithServiceResponseAsync(resourceGroupName, name, slot, azureStorageAccounts).toBlocking().single().body(); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. + * @param azureStorageAccounts Azure storage accounts of the app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginListPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginListPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture updateAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateAzureStorageAccountsSlotWithServiceResponseAsync(resourceGroupName, name, slot, azureStorageAccounts), serviceCallback); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. + * @param azureStorageAccounts Azure storage accounts of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UserInner object + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object */ - public Observable beginListPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot) { - return beginListPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, UserInner>() { + public Observable updateAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { + return updateAzureStorageAccountsSlotWithServiceResponseAsync(resourceGroupName, name, slot, azureStorageAccounts).map(new Func1, AzureStoragePropertyDictionaryResourceInner>() { @Override - public UserInner call(ServiceResponse response) { + public AzureStoragePropertyDictionaryResourceInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the Git/FTP publishing credentials of an app. - * Gets the Git/FTP publishing credentials of an app. + * Updates the Azure storage account configurations of an app. + * Updates the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. + * @param azureStorageAccounts Azure storage accounts of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UserInner object + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object */ - public Observable> beginListPublishingCredentialsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> updateAzureStorageAccountsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20764,15 +21151,19 @@ public Observable> beginListPublishingCredentialsSlot if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (azureStorageAccounts == null) { + throw new IllegalArgumentException("Parameter azureStorageAccounts is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginListPublishingCredentialsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(azureStorageAccounts); + return service.updateAzureStorageAccountsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), azureStorageAccounts, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginListPublishingCredentialsSlotDelegate(response); + ServiceResponse clientResponse = updateAzureStorageAccountsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -20781,78 +21172,74 @@ public Observable> call(Response respon }); } - private ServiceResponse beginListPublishingCredentialsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateAzureStorageAccountsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Updates the Push settings associated with web app. - * Updates the Push settings associated with web app. + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param pushSettings Push settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PushSettingsInner object if successful. + * @return the AzureStoragePropertyDictionaryResourceInner object if successful. */ - public PushSettingsInner updateSitePushSettingsSlot(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings) { - return updateSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, pushSettings).toBlocking().single().body(); + public AzureStoragePropertyDictionaryResourceInner listAzureStorageAccountsSlot(String resourceGroupName, String name, String slot) { + return listAzureStorageAccountsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Updates the Push settings associated with web app. - * Updates the Push settings associated with web app. + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param pushSettings Push settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, pushSettings), serviceCallback); + public ServiceFuture listAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listAzureStorageAccountsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Updates the Push settings associated with web app. - * Updates the Push settings associated with web app. + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param pushSettings Push settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PushSettingsInner object + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object */ - public Observable updateSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings) { - return updateSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, pushSettings).map(new Func1, PushSettingsInner>() { + public Observable listAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot) { + return listAzureStorageAccountsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, AzureStoragePropertyDictionaryResourceInner>() { @Override - public PushSettingsInner call(ServiceResponse response) { + public AzureStoragePropertyDictionaryResourceInner call(ServiceResponse response) { return response.body(); } }); } /** - * Updates the Push settings associated with web app. - * Updates the Push settings associated with web app. + * Gets the Azure storage account configurations of an app. + * Gets the Azure storage account configurations of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param pushSettings Push settings associated with web app. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PushSettingsInner object + * @return the observable to the AzureStoragePropertyDictionaryResourceInner object */ - public Observable> updateSitePushSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings) { + public Observable> listAzureStorageAccountsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20865,19 +21252,15 @@ public Observable> updateSitePushSettingsSlot if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (pushSettings == null) { - throw new IllegalArgumentException("Parameter pushSettings is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(pushSettings); - return service.updateSitePushSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), pushSettings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listAzureStorageAccountsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateSitePushSettingsSlotDelegate(response); + ServiceResponse clientResponse = listAzureStorageAccountsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -20886,74 +21269,78 @@ public Observable> call(Response updateSitePushSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse listAzureStorageAccountsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the Push settings associated with web app. - * Gets the Push settings associated with web app. + * Updates the backup configuration of an app. + * Updates the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. + * @param request Edited backup configuration. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PushSettingsInner object if successful. + * @return the BackupRequestInner object if successful. */ - public PushSettingsInner listSitePushSettingsSlot(String resourceGroupName, String name, String slot) { - return listSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public BackupRequestInner updateBackupConfigurationSlot(String resourceGroupName, String name, String slot, BackupRequestInner request) { + return updateBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).toBlocking().single().body(); } /** - * Gets the Push settings associated with web app. - * Gets the Push settings associated with web app. + * Updates the backup configuration of an app. + * Updates the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. + * @param request Edited backup configuration. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture updateBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, request), serviceCallback); } /** - * Gets the Push settings associated with web app. - * Gets the Push settings associated with web app. + * Updates the backup configuration of an app. + * Updates the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. + * @param request Edited backup configuration. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PushSettingsInner object + * @return the observable to the BackupRequestInner object */ - public Observable listSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot) { - return listSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, PushSettingsInner>() { + public Observable updateBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { + return updateBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).map(new Func1, BackupRequestInner>() { @Override - public PushSettingsInner call(ServiceResponse response) { + public BackupRequestInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the Push settings associated with web app. - * Gets the Push settings associated with web app. + * Updates the backup configuration of an app. + * Updates the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the backup configuration for the production slot. + * @param request Edited backup configuration. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PushSettingsInner object + * @return the observable to the BackupRequestInner object */ - public Observable> listSitePushSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> updateBackupConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, BackupRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -20966,15 +21353,19 @@ public Observable> listSitePushSettingsSlotWi if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSitePushSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(request); + return service.updateBackupConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listSitePushSettingsSlotDelegate(response); + ServiceResponse clientResponse = updateBackupConfigurationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -20983,74 +21374,73 @@ public Observable> call(Response listSitePushSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateBackupConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Deletes the backup configuration of an app. + * Deletes the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteConfigResourceInner object if successful. */ - public SiteConfigResourceInner getConfigurationSlot(String resourceGroupName, String name, String slot) { - return getConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void deleteBackupConfigurationSlot(String resourceGroupName, String name, String slot) { + deleteBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Deletes the backup configuration of an app. + * Deletes the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture deleteBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Deletes the backup configuration of an app. + * Deletes the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getConfigurationSlotAsync(String resourceGroupName, String name, String slot) { - return getConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteConfigResourceInner>() { + public Observable deleteBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot) { + return deleteBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { @Override - public SiteConfigResourceInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. - * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Deletes the backup configuration of an app. + * Deletes the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the backup configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> deleteBackupConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -21066,12 +21456,12 @@ public Observable> getConfigurationSlot if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deleteBackupConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getConfigurationSlotDelegate(response); + ServiceResponse clientResponse = deleteBackupConfigurationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -21080,78 +21470,74 @@ public Observable> call(Response getConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteBackupConfigurationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Gets the backup configuration of an app. + * Gets the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteConfigResourceInner object if successful. + * @return the BackupRequestInner object if successful. */ - public SiteConfigResourceInner createOrUpdateConfigurationSlot(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { - return createOrUpdateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).toBlocking().single().body(); + public BackupRequestInner getBackupConfigurationSlot(String resourceGroupName, String name, String slot) { + return getBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Gets the backup configuration of an app. + * Gets the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createOrUpdateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig), serviceCallback); + public ServiceFuture getBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Gets the backup configuration of an app. + * Gets the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the observable to the BackupRequestInner object */ - public Observable createOrUpdateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { - return createOrUpdateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).map(new Func1, SiteConfigResourceInner>() { + public Observable getBackupConfigurationSlotAsync(String resourceGroupName, String name, String slot) { + return getBackupConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, BackupRequestInner>() { @Override - public SiteConfigResourceInner call(ServiceResponse response) { + public BackupRequestInner call(ServiceResponse response) { return response.body(); } }); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Gets the backup configuration of an app. + * Gets the backup configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the backup configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the observable to the BackupRequestInner object */ - public Observable> createOrUpdateConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { + public Observable> getBackupConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -21164,19 +21550,15 @@ public Observable> createOrUpdateConfig if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (siteConfig == null) { - throw new IllegalArgumentException("Parameter siteConfig is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(siteConfig); - return service.createOrUpdateConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteConfig, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getBackupConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = createOrUpdateConfigurationSlotDelegate(response); + ServiceResponse clientResponse = getBackupConfigurationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -21185,78 +21567,78 @@ public Observable> call(Response createOrUpdateConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getBackupConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Replaces the connection strings of an app. + * Replaces the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. + * @param connectionStrings Connection strings of the app or deployment slot. See example. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteConfigResourceInner object if successful. + * @return the ConnectionStringDictionaryInner object if successful. */ - public SiteConfigResourceInner updateConfigurationSlot(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { - return updateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).toBlocking().single().body(); + public ConnectionStringDictionaryInner updateConnectionStringsSlot(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings) { + return updateConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionStrings).toBlocking().single().body(); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Replaces the connection strings of an app. + * Replaces the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. + * @param connectionStrings Connection strings of the app or deployment slot. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig), serviceCallback); + public ServiceFuture updateConnectionStringsSlotAsync(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionStrings), serviceCallback); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Replaces the connection strings of an app. + * Replaces the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. + * @param connectionStrings Connection strings of the app or deployment slot. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the observable to the ConnectionStringDictionaryInner object */ - public Observable updateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { - return updateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).map(new Func1, SiteConfigResourceInner>() { + public Observable updateConnectionStringsSlotAsync(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings) { + return updateConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionStrings).map(new Func1, ConnectionStringDictionaryInner>() { @Override - public SiteConfigResourceInner call(ServiceResponse response) { + public ConnectionStringDictionaryInner call(ServiceResponse response) { return response.body(); } }); } /** - * Updates the configuration of an app. - * Updates the configuration of an app. + * Replaces the connection strings of an app. + * Replaces the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. - * @param siteConfig JSON representation of a SiteConfig object. See example. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the connection settings for the production slot. + * @param connectionStrings Connection strings of the app or deployment slot. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the observable to the ConnectionStringDictionaryInner object */ - public Observable> updateConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { + public Observable> updateConnectionStringsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, ConnectionStringDictionaryInner connectionStrings) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -21269,19 +21651,19 @@ public Observable> updateConfigurationS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (siteConfig == null) { - throw new IllegalArgumentException("Parameter siteConfig is required and cannot be null."); + if (connectionStrings == null) { + throw new IllegalArgumentException("Parameter connectionStrings is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(siteConfig); - return service.updateConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteConfig, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(connectionStrings); + return service.updateConnectionStringsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), connectionStrings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateConfigurationSlotDelegate(response); + ServiceResponse clientResponse = updateConnectionStringsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -21290,113 +21672,74 @@ public Observable> call(Response updateConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateConnectionStringsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets the connection strings of an app. + * Gets the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<SiteConfigurationSnapshotInfoInner> object if successful. + * @return the ConnectionStringDictionaryInner object if successful. */ - public PagedList listConfigurationSnapshotInfoSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listConfigurationSnapshotInfoSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listConfigurationSnapshotInfoSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public ConnectionStringDictionaryInner listConnectionStringsSlot(String resourceGroupName, String name, String slot) { + return listConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets the connection strings of an app. + * Gets the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listConfigurationSnapshotInfoSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listConfigurationSnapshotInfoSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listConfigurationSnapshotInfoSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture listConnectionStringsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets the connection strings of an app. + * Gets the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteConfigurationSnapshotInfoInner> object + * @return the observable to the ConnectionStringDictionaryInner object */ - public Observable> listConfigurationSnapshotInfoSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listConfigurationSnapshotInfoSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable listConnectionStringsSlotAsync(String resourceGroupName, String name, String slot) { + return listConnectionStringsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, ConnectionStringDictionaryInner>() { + @Override + public ConnectionStringDictionaryInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets the connection strings of an app. + * Gets the connection strings of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteConfigurationSnapshotInfoInner> object - */ - public Observable>> listConfigurationSnapshotInfoSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listConfigurationSnapshotInfoSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listConfigurationSnapshotInfoSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. - * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the connection settings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<SiteConfigurationSnapshotInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the ConnectionStringDictionaryInner object */ - public Observable>> listConfigurationSnapshotInfoSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> listConnectionStringsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -21412,13 +21755,13 @@ public Observable>> lis if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listConfigurationSnapshotInfoSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listConnectionStringsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listConfigurationSnapshotInfoSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = listConnectionStringsSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -21426,87 +21769,80 @@ public Observable>> cal }); } - private ServiceResponse> listConfigurationSnapshotInfoSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse listConnectionStringsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets a snapshot of the configuration of an app at a previous point in time. - * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets the logging configuration of an app. + * Gets the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteConfigResourceInner object if successful. + * @return the SiteLogsConfigInner object if successful. */ - public SiteConfigResourceInner getConfigurationSnapshotSlot(String resourceGroupName, String name, String snapshotId, String slot) { - return getConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).toBlocking().single().body(); + public SiteLogsConfigInner getDiagnosticLogsConfigurationSlot(String resourceGroupName, String name, String slot) { + return getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets a snapshot of the configuration of an app at a previous point in time. - * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets the logging configuration of an app. + * Gets the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot), serviceCallback); + public ServiceFuture getDiagnosticLogsConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets a snapshot of the configuration of an app at a previous point in time. - * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets the logging configuration of an app. + * Gets the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the observable to the SiteLogsConfigInner object */ - public Observable getConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot) { - return getConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).map(new Func1, SiteConfigResourceInner>() { + public Observable getDiagnosticLogsConfigurationSlotAsync(String resourceGroupName, String name, String slot) { + return getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteLogsConfigInner>() { @Override - public SiteConfigResourceInner call(ServiceResponse response) { + public SiteLogsConfigInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets a snapshot of the configuration of an app at a previous point in time. - * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets the logging configuration of an app. + * Gets the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the logging configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteConfigResourceInner object + * @return the observable to the SiteLogsConfigInner object */ - public Observable> getConfigurationSnapshotSlotWithServiceResponseAsync(String resourceGroupName, String name, String snapshotId, String slot) { + public Observable> getDiagnosticLogsConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (snapshotId == null) { - throw new IllegalArgumentException("Parameter snapshotId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -21516,12 +21852,12 @@ public Observable> getConfigurationSnap if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getConfigurationSnapshotSlot(resourceGroupName, name, snapshotId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getDiagnosticLogsConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getConfigurationSnapshotSlotDelegate(response); + ServiceResponse clientResponse = getDiagnosticLogsConfigurationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -21530,101 +21866,103 @@ public Observable> call(Response getConfigurationSnapshotSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getDiagnosticLogsConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Reverts the configuration of an app to a previous snapshot. - * Reverts the configuration of an app to a previous snapshot. + * Updates the logging configuration of an app. + * Updates the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteLogsConfigInner object if successful. */ - public void recoverSiteConfigurationSnapshotSlot(String resourceGroupName, String name, String snapshotId, String slot) { - recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).toBlocking().single().body(); + public SiteLogsConfigInner updateDiagnosticLogsConfigSlot(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig) { + return updateDiagnosticLogsConfigSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteLogsConfig).toBlocking().single().body(); } /** - * Reverts the configuration of an app to a previous snapshot. - * Reverts the configuration of an app to a previous snapshot. + * Updates the logging configuration of an app. + * Updates the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture recoverSiteConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot), serviceCallback); + public ServiceFuture updateDiagnosticLogsConfigSlotAsync(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateDiagnosticLogsConfigSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteLogsConfig), serviceCallback); } /** - * Reverts the configuration of an app to a previous snapshot. - * Reverts the configuration of an app to a previous snapshot. + * Updates the logging configuration of an app. + * Updates the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteLogsConfigInner object */ - public Observable recoverSiteConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot) { - return recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).map(new Func1, Void>() { + public Observable updateDiagnosticLogsConfigSlotAsync(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig) { + return updateDiagnosticLogsConfigSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteLogsConfig).map(new Func1, SiteLogsConfigInner>() { @Override - public Void call(ServiceResponse response) { + public SiteLogsConfigInner call(ServiceResponse response) { return response.body(); } }); } /** - * Reverts the configuration of an app to a previous snapshot. - * Reverts the configuration of an app to a previous snapshot. + * Updates the logging configuration of an app. + * Updates the logging configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param snapshotId The ID of the snapshot to read. - * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the logging configuration for the production slot. + * @param siteLogsConfig A SiteLogsConfig JSON object that contains the logging configuration to change in the "properties" property. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteLogsConfigInner object */ - public Observable> recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(String resourceGroupName, String name, String snapshotId, String slot) { + public Observable> updateDiagnosticLogsConfigSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteLogsConfigInner siteLogsConfig) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (snapshotId == null) { - throw new IllegalArgumentException("Parameter snapshotId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (siteLogsConfig == null) { + throw new IllegalArgumentException("Parameter siteLogsConfig is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.recoverSiteConfigurationSnapshotSlot(resourceGroupName, name, snapshotId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(siteLogsConfig); + return service.updateDiagnosticLogsConfigSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteLogsConfig, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = recoverSiteConfigurationSnapshotSlotDelegate(response); + ServiceResponse clientResponse = updateDiagnosticLogsConfigSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -21633,74 +21971,78 @@ public Observable> call(Response response) { }); } - private ServiceResponse recoverSiteConfigurationSnapshotSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse updateDiagnosticLogsConfigSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the last lines of docker logs for the given site. - * Gets the last lines of docker logs for the given site. + * Replaces the metadata of an app. + * Replaces the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. + * @param metadata Edited metadata of the app or deployment slot. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the InputStream object if successful. + * @return the StringDictionaryInner object if successful. */ - public InputStream getWebSiteContainerLogsSlot(String resourceGroupName, String name, String slot) { - return getWebSiteContainerLogsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public StringDictionaryInner updateMetadataSlot(String resourceGroupName, String name, String slot, StringDictionaryInner metadata) { + return updateMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot, metadata).toBlocking().single().body(); } /** - * Gets the last lines of docker logs for the given site. - * Gets the last lines of docker logs for the given site. + * Replaces the metadata of an app. + * Replaces the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. + * @param metadata Edited metadata of the app or deployment slot. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getWebSiteContainerLogsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture updateMetadataSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner metadata, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot, metadata), serviceCallback); } /** - * Gets the last lines of docker logs for the given site. - * Gets the last lines of docker logs for the given site. + * Replaces the metadata of an app. + * Replaces the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. + * @param metadata Edited metadata of the app or deployment slot. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the StringDictionaryInner object */ - public Observable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot) { - return getWebSiteContainerLogsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, InputStream>() { + public Observable updateMetadataSlotAsync(String resourceGroupName, String name, String slot, StringDictionaryInner metadata) { + return updateMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot, metadata).map(new Func1, StringDictionaryInner>() { @Override - public InputStream call(ServiceResponse response) { + public StringDictionaryInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the last lines of docker logs for the given site. - * Gets the last lines of docker logs for the given site. + * Replaces the metadata of an app. + * Replaces the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the metadata for the production slot. + * @param metadata Edited metadata of the app or deployment slot. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the StringDictionaryInner object */ - public Observable> getWebSiteContainerLogsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> updateMetadataSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, StringDictionaryInner metadata) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -21713,15 +22055,19 @@ public Observable> getWebSiteContainerLogsSlotWithS if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (metadata == null) { + throw new IllegalArgumentException("Parameter metadata is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getWebSiteContainerLogsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(metadata); + return service.updateMetadataSlot(resourceGroupName, name, slot, this.client.subscriptionId(), metadata, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getWebSiteContainerLogsSlotDelegate(response); + ServiceResponse clientResponse = updateMetadataSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -21730,75 +22076,74 @@ public Observable> call(Response resp }); } - private ServiceResponse getWebSiteContainerLogsSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse updateMetadataSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the ZIP archived docker log files for the given site. - * Gets the ZIP archived docker log files for the given site. + * Gets the metadata of an app. + * Gets the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the InputStream object if successful. + * @return the StringDictionaryInner object if successful. */ - public InputStream getContainerLogsZipSlot(String resourceGroupName, String name, String slot) { - return getContainerLogsZipSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public StringDictionaryInner listMetadataSlot(String resourceGroupName, String name, String slot) { + return listMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets the ZIP archived docker log files for the given site. - * Gets the ZIP archived docker log files for the given site. + * Gets the metadata of an app. + * Gets the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getContainerLogsZipSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture listMetadataSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets the ZIP archived docker log files for the given site. - * Gets the ZIP archived docker log files for the given site. + * Gets the metadata of an app. + * Gets the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the StringDictionaryInner object */ - public Observable getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot) { - return getContainerLogsZipSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, InputStream>() { + public Observable listMetadataSlotAsync(String resourceGroupName, String name, String slot) { + return listMetadataSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, StringDictionaryInner>() { @Override - public InputStream call(ServiceResponse response) { + public StringDictionaryInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the ZIP archived docker log files for the given site. - * Gets the ZIP archived docker log files for the given site. + * Gets the metadata of an app. + * Gets the metadata of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the metadata for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the StringDictionaryInner object */ - public Observable> getContainerLogsZipSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> listMetadataSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -21814,12 +22159,12 @@ public Observable> getContainerLogsZipSlotWithServi if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getContainerLogsZipSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listMetadataSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getContainerLogsZipSlotDelegate(response); + ServiceResponse clientResponse = listMetadataSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -21828,114 +22173,74 @@ public Observable> call(Response resp }); } - private ServiceResponse getContainerLogsZipSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse listMetadataSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * List continuous web jobs for an app, or a deployment slot. - * List continuous web jobs for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ContinuousWebJobInner> object if successful. + * @return the UserInner object if successful. */ - public PagedList listContinuousWebJobsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listContinuousWebJobsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listContinuousWebJobsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public UserInner listPublishingCredentialsSlot(String resourceGroupName, String name, String slot) { + return listPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().last().body(); } /** - * List continuous web jobs for an app, or a deployment slot. - * List continuous web jobs for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listContinuousWebJobsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listContinuousWebJobsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listContinuousWebJobsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture listPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * List continuous web jobs for an app, or a deployment slot. - * List continuous web jobs for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ContinuousWebJobInner> object + * @return the observable for the request */ - public Observable> listContinuousWebJobsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listContinuousWebJobsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable listPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot) { + return listPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, UserInner>() { + @Override + public UserInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * List continuous web jobs for an app, or a deployment slot. - * List continuous web jobs for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ContinuousWebJobInner> object - */ - public Observable>> listContinuousWebJobsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listContinuousWebJobsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listContinuousWebJobsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * List continuous web jobs for an app, or a deployment slot. - * List continuous web jobs for an app, or a deployment slot. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ContinuousWebJobInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable for the request */ - public Observable>> listContinuousWebJobsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> listPublishingCredentialsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -21951,101 +22256,77 @@ public Observable>> listContinuousWe if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listContinuousWebJobsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listContinuousWebJobsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listContinuousWebJobsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + Observable> observable = service.listPublishingCredentialsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** - * Gets a continuous web job by its ID for an app, or a deployment slot. - * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ContinuousWebJobInner object if successful. + * @return the UserInner object if successful. */ - public ContinuousWebJobInner getContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { - return getContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); + public UserInner beginListPublishingCredentialsSlot(String resourceGroupName, String name, String slot) { + return beginListPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets a continuous web job by its ID for an app, or a deployment slot. - * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); + public ServiceFuture beginListPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginListPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets a continuous web job by its ID for an app, or a deployment slot. - * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContinuousWebJobInner object + * @return the observable to the UserInner object */ - public Observable getContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { - return getContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, ContinuousWebJobInner>() { + public Observable beginListPublishingCredentialsSlotAsync(String resourceGroupName, String name, String slot) { + return beginListPublishingCredentialsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, UserInner>() { @Override - public ContinuousWebJobInner call(ServiceResponse response) { + public UserInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets a continuous web job by its ID for an app, or a deployment slot. - * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets the Git/FTP publishing credentials of an app. + * Gets the Git/FTP publishing credentials of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing credentials for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ContinuousWebJobInner object + * @return the observable to the UserInner object */ - public Observable> getContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { + public Observable> beginListPublishingCredentialsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (webJobName == null) { - throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -22055,12 +22336,12 @@ public Observable> getContinuousWebJobSlo if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.beginListPublishingCredentialsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getContinuousWebJobSlotDelegate(response); + ServiceResponse clientResponse = beginListPublishingCredentialsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -22069,102 +22350,103 @@ public Observable> call(Response getContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse beginListPublishingCredentialsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Delete a continuous web job by its ID for an app, or a deployment slot. - * Delete a continuous web job by its ID for an app, or a deployment slot. + * Updates the Push settings associated with web app. + * Updates the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param pushSettings Push settings associated with web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PushSettingsInner object if successful. */ - public void deleteContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { - deleteContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); + public PushSettingsInner updateSitePushSettingsSlot(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings) { + return updateSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, pushSettings).toBlocking().single().body(); } /** - * Delete a continuous web job by its ID for an app, or a deployment slot. - * Delete a continuous web job by its ID for an app, or a deployment slot. + * Updates the Push settings associated with web app. + * Updates the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param pushSettings Push settings associated with web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); + public ServiceFuture updateSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, pushSettings), serviceCallback); } /** - * Delete a continuous web job by its ID for an app, or a deployment slot. - * Delete a continuous web job by its ID for an app, or a deployment slot. + * Updates the Push settings associated with web app. + * Updates the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param pushSettings Push settings associated with web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PushSettingsInner object */ - public Observable deleteContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { - return deleteContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, Void>() { + public Observable updateSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings) { + return updateSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot, pushSettings).map(new Func1, PushSettingsInner>() { @Override - public Void call(ServiceResponse response) { + public PushSettingsInner call(ServiceResponse response) { return response.body(); } }); } /** - * Delete a continuous web job by its ID for an app, or a deployment slot. - * Delete a continuous web job by its ID for an app, or a deployment slot. + * Updates the Push settings associated with web app. + * Updates the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param pushSettings Push settings associated with web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PushSettingsInner object */ - public Observable> deleteContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { + public Observable> updateSitePushSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, PushSettingsInner pushSettings) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (webJobName == null) { - throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (pushSettings == null) { + throw new IllegalArgumentException("Parameter pushSettings is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(pushSettings); + return service.updateSitePushSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), pushSettings, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteContinuousWebJobSlotDelegate(response); + ServiceResponse clientResponse = updateSitePushSettingsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -22173,87 +22455,80 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse updateSitePushSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Start a continuous web job for an app, or a deployment slot. - * Start a continuous web job for an app, or a deployment slot. + * Gets the Push settings associated with web app. + * Gets the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PushSettingsInner object if successful. */ - public void startContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { - startContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); + public PushSettingsInner listSitePushSettingsSlot(String resourceGroupName, String name, String slot) { + return listSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Start a continuous web job for an app, or a deployment slot. - * Start a continuous web job for an app, or a deployment slot. + * Gets the Push settings associated with web app. + * Gets the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture startContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(startContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); + public ServiceFuture listSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Start a continuous web job for an app, or a deployment slot. - * Start a continuous web job for an app, or a deployment slot. + * Gets the Push settings associated with web app. + * Gets the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PushSettingsInner object */ - public Observable startContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { - return startContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, Void>() { + public Observable listSitePushSettingsSlotAsync(String resourceGroupName, String name, String slot) { + return listSitePushSettingsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, PushSettingsInner>() { @Override - public Void call(ServiceResponse response) { + public PushSettingsInner call(ServiceResponse response) { return response.body(); } }); } /** - * Start a continuous web job for an app, or a deployment slot. - * Start a continuous web job for an app, or a deployment slot. + * Gets the Push settings associated with web app. + * Gets the Push settings associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PushSettingsInner object */ - public Observable> startContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { + public Observable> listSitePushSettingsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (webJobName == null) { - throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -22263,12 +22538,12 @@ public Observable> startContinuousWebJobSlotWithServiceRes if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.startContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listSitePushSettingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = startContinuousWebJobSlotDelegate(response); + ServiceResponse clientResponse = listSitePushSettingsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -22277,87 +22552,80 @@ public Observable> call(Response response) { }); } - private ServiceResponse startContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse listSitePushSettingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Stop a continuous web job for an app, or a deployment slot. - * Stop a continuous web job for an app, or a deployment slot. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteConfigResourceInner object if successful. */ - public void stopContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { - stopContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); + public SiteConfigResourceInner getConfigurationSlot(String resourceGroupName, String name, String slot) { + return getConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Stop a continuous web job for an app, or a deployment slot. - * Stop a continuous web job for an app, or a deployment slot. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture stopContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(stopContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); + public ServiceFuture getConfigurationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Stop a continuous web job for an app, or a deployment slot. - * Stop a continuous web job for an app, or a deployment slot. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteConfigResourceInner object */ - public Observable stopContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { - return stopContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, Void>() { + public Observable getConfigurationSlotAsync(String resourceGroupName, String name, String slot) { + return getConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteConfigResourceInner>() { @Override - public Void call(ServiceResponse response) { + public SiteConfigResourceInner call(ServiceResponse response) { return response.body(); } }); } /** - * Stop a continuous web job for an app, or a deployment slot. - * Stop a continuous web job for an app, or a deployment slot. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. + * Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param webJobName Name of Web Job. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteConfigResourceInner object */ - public Observable> stopContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { + public Observable> getConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (webJobName == null) { - throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -22367,12 +22635,12 @@ public Observable> stopContinuousWebJobSlotWithServiceResp if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.stopContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = stopContinuousWebJobSlotDelegate(response); + ServiceResponse clientResponse = getConfigurationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -22381,114 +22649,78 @@ public Observable> call(Response response) { }); } - private ServiceResponse stopContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * List deployments for an app, or a deployment slot. - * List deployments for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<DeploymentInner> object if successful. + * @return the SiteConfigResourceInner object if successful. */ - public PagedList listDeploymentsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listDeploymentsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listDeploymentsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public SiteConfigResourceInner createOrUpdateConfigurationSlot(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { + return createOrUpdateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).toBlocking().single().body(); } /** - * List deployments for an app, or a deployment slot. - * List deployments for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listDeploymentsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listDeploymentsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listDeploymentsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture createOrUpdateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig), serviceCallback); } /** - * List deployments for an app, or a deployment slot. - * List deployments for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DeploymentInner> object + * @return the observable to the SiteConfigResourceInner object */ - public Observable> listDeploymentsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listDeploymentsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable createOrUpdateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { + return createOrUpdateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).map(new Func1, SiteConfigResourceInner>() { + @Override + public SiteConfigResourceInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * List deployments for an app, or a deployment slot. - * List deployments for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<DeploymentInner> object - */ - public Observable>> listDeploymentsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listDeploymentsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listDeploymentsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * List deployments for an app, or a deployment slot. - * List deployments for an app, or a deployment slot. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<DeploymentInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the SiteConfigResourceInner object */ - public Observable>> listDeploymentsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> createOrUpdateConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -22501,16 +22733,20 @@ public Observable>> listDeploymentsSlotSin if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (siteConfig == null) { + throw new IllegalArgumentException("Parameter siteConfig is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listDeploymentsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + Validator.validate(siteConfig); + return service.createOrUpdateConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteConfig, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listDeploymentsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = createOrUpdateConfigurationSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -22518,102 +22754,103 @@ public Observable>> call(Response> listDeploymentsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse createOrUpdateConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get a deployment by its ID for an app, or a deployment slot. - * Get a deployment by its ID for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DeploymentInner object if successful. + * @return the SiteConfigResourceInner object if successful. */ - public DeploymentInner getDeploymentSlot(String resourceGroupName, String name, String id, String slot) { - return getDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).toBlocking().single().body(); + public SiteConfigResourceInner updateConfigurationSlot(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { + return updateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).toBlocking().single().body(); } /** - * Get a deployment by its ID for an app, or a deployment slot. - * Get a deployment by its ID for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot), serviceCallback); + public ServiceFuture updateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig), serviceCallback); } /** - * Get a deployment by its ID for an app, or a deployment slot. - * Get a deployment by its ID for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DeploymentInner object + * @return the observable to the SiteConfigResourceInner object */ - public Observable getDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot) { - return getDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).map(new Func1, DeploymentInner>() { + public Observable updateConfigurationSlotAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { + return updateConfigurationSlotWithServiceResponseAsync(resourceGroupName, name, slot, siteConfig).map(new Func1, SiteConfigResourceInner>() { @Override - public DeploymentInner call(ServiceResponse response) { + public SiteConfigResourceInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get a deployment by its ID for an app, or a deployment slot. - * Get a deployment by its ID for an app, or a deployment slot. + * Updates the configuration of an app. + * Updates the configuration of an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update configuration for the production slot. + * @param siteConfig JSON representation of a SiteConfig object. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DeploymentInner object + * @return the observable to the SiteConfigResourceInner object */ - public Observable> getDeploymentSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot) { + public Observable> updateConfigurationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SiteConfigResourceInner siteConfig) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (id == null) { - throw new IllegalArgumentException("Parameter id is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (siteConfig == null) { + throw new IllegalArgumentException("Parameter siteConfig is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getDeploymentSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(siteConfig); + return service.updateConfigurationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), siteConfig, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getDeploymentSlotDelegate(response); + ServiceResponse clientResponse = updateConfigurationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -22622,111 +22859,135 @@ public Observable> call(Response }); } - private ServiceResponse getDeploymentSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateConfigurationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Create a deployment for an app, or a deployment slot. - * Create a deployment for an app, or a deployment slot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id ID of an existing deployment. - * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. - * @param deployment Deployment details. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DeploymentInner object if successful. + * @return the PagedList<SiteConfigurationSnapshotInfoInner> object if successful. */ - public DeploymentInner createDeploymentSlot(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment) { - return createDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot, deployment).toBlocking().single().body(); + public PagedList listConfigurationSnapshotInfoSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listConfigurationSnapshotInfoSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listConfigurationSnapshotInfoSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Create a deployment for an app, or a deployment slot. - * Create a deployment for an app, or a deployment slot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id ID of an existing deployment. - * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. - * @param deployment Deployment details. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot, deployment), serviceCallback); + public ServiceFuture> listConfigurationSnapshotInfoSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listConfigurationSnapshotInfoSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listConfigurationSnapshotInfoSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Create a deployment for an app, or a deployment slot. - * Create a deployment for an app, or a deployment slot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id ID of an existing deployment. - * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. - * @param deployment Deployment details. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DeploymentInner object + * @return the observable to the PagedList<SiteConfigurationSnapshotInfoInner> object */ - public Observable createDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment) { - return createDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot, deployment).map(new Func1, DeploymentInner>() { - @Override - public DeploymentInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listConfigurationSnapshotInfoSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listConfigurationSnapshotInfoSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Create a deployment for an app, or a deployment slot. - * Create a deployment for an app, or a deployment slot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id ID of an existing deployment. - * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. - * @param deployment Deployment details. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DeploymentInner object + * @return the observable to the PagedList<SiteConfigurationSnapshotInfoInner> object */ - public Observable> createDeploymentSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment) { + public Observable>> listConfigurationSnapshotInfoSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listConfigurationSnapshotInfoSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listConfigurationSnapshotInfoSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * Gets a list of web app configuration snapshots identifiers. Each element of the list contains a timestamp and the ID of the snapshot. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SiteConfigurationSnapshotInfoInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listConfigurationSnapshotInfoSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (id == null) { - throw new IllegalArgumentException("Parameter id is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (deployment == null) { - throw new IllegalArgumentException("Parameter deployment is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(deployment); - return service.createDeploymentSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), deployment, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listConfigurationSnapshotInfoSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = createDeploymentSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listConfigurationSnapshotInfoSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -22734,85 +22995,86 @@ public Observable> call(Response }); } - private ServiceResponse createDeploymentSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> listConfigurationSnapshotInfoSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Delete a deployment by its ID for an app, or a deployment slot. - * Delete a deployment by its ID for an app, or a deployment slot. + * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets a snapshot of the configuration of an app at a previous point in time. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteConfigResourceInner object if successful. */ - public void deleteDeploymentSlot(String resourceGroupName, String name, String id, String slot) { - deleteDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).toBlocking().single().body(); - } + public SiteConfigResourceInner getConfigurationSnapshotSlot(String resourceGroupName, String name, String snapshotId, String slot) { + return getConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).toBlocking().single().body(); + } /** - * Delete a deployment by its ID for an app, or a deployment slot. - * Delete a deployment by its ID for an app, or a deployment slot. + * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets a snapshot of the configuration of an app at a previous point in time. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot), serviceCallback); + public ServiceFuture getConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot), serviceCallback); } /** - * Delete a deployment by its ID for an app, or a deployment slot. - * Delete a deployment by its ID for an app, or a deployment slot. + * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets a snapshot of the configuration of an app at a previous point in time. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteConfigResourceInner object */ - public Observable deleteDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot) { - return deleteDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).map(new Func1, Void>() { + public Observable getConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot) { + return getConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).map(new Func1, SiteConfigResourceInner>() { @Override - public Void call(ServiceResponse response) { + public SiteConfigResourceInner call(ServiceResponse response) { return response.body(); } }); } /** - * Delete a deployment by its ID for an app, or a deployment slot. - * Delete a deployment by its ID for an app, or a deployment slot. + * Gets a snapshot of the configuration of an app at a previous point in time. + * Gets a snapshot of the configuration of an app at a previous point in time. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id Deployment ID. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SiteConfigResourceInner object */ - public Observable> deleteDeploymentSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot) { + public Observable> getConfigurationSnapshotSlotWithServiceResponseAsync(String resourceGroupName, String name, String snapshotId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (id == null) { - throw new IllegalArgumentException("Parameter id is required and cannot be null."); + if (snapshotId == null) { + throw new IllegalArgumentException("Parameter snapshotId is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -22823,12 +23085,12 @@ public Observable> deleteDeploymentSlotWithServiceResponse if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteDeploymentSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getConfigurationSnapshotSlot(resourceGroupName, name, snapshotId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteDeploymentSlotDelegate(response); + ServiceResponse clientResponse = getConfigurationSnapshotSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -22837,87 +23099,85 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteDeploymentSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getConfigurationSnapshotSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * List deployment log for specific deployment for an app, or a deployment slot. - * List deployment log for specific deployment for an app, or a deployment slot. + * Reverts the configuration of an app to a previous snapshot. + * Reverts the configuration of an app to a previous snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the DeploymentInner object if successful. */ - public DeploymentInner listDeploymentLogSlot(String resourceGroupName, String name, String id, String slot) { - return listDeploymentLogSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).toBlocking().single().body(); + public void recoverSiteConfigurationSnapshotSlot(String resourceGroupName, String name, String snapshotId, String slot) { + recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).toBlocking().single().body(); } /** - * List deployment log for specific deployment for an app, or a deployment slot. - * List deployment log for specific deployment for an app, or a deployment slot. + * Reverts the configuration of an app to a previous snapshot. + * Reverts the configuration of an app to a previous snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listDeploymentLogSlotAsync(String resourceGroupName, String name, String id, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listDeploymentLogSlotWithServiceResponseAsync(resourceGroupName, name, id, slot), serviceCallback); + public ServiceFuture recoverSiteConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot), serviceCallback); } /** - * List deployment log for specific deployment for an app, or a deployment slot. - * List deployment log for specific deployment for an app, or a deployment slot. + * Reverts the configuration of an app to a previous snapshot. + * Reverts the configuration of an app to a previous snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DeploymentInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable listDeploymentLogSlotAsync(String resourceGroupName, String name, String id, String slot) { - return listDeploymentLogSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).map(new Func1, DeploymentInner>() { + public Observable recoverSiteConfigurationSnapshotSlotAsync(String resourceGroupName, String name, String snapshotId, String slot) { + return recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(resourceGroupName, name, snapshotId, slot).map(new Func1, Void>() { @Override - public DeploymentInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * List deployment log for specific deployment for an app, or a deployment slot. - * List deployment log for specific deployment for an app, or a deployment slot. + * Reverts the configuration of an app to a previous snapshot. + * Reverts the configuration of an app to a previous snapshot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param snapshotId The ID of the snapshot to read. + * @param slot Name of the deployment slot. If a slot is not specified, the API will return configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the DeploymentInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listDeploymentLogSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot) { + public Observable> recoverSiteConfigurationSnapshotSlotWithServiceResponseAsync(String resourceGroupName, String name, String snapshotId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (id == null) { - throw new IllegalArgumentException("Parameter id is required and cannot be null."); + if (snapshotId == null) { + throw new IllegalArgumentException("Parameter snapshotId is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -22928,12 +23188,12 @@ public Observable> listDeploymentLogSlotWithSer if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listDeploymentLogSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.recoverSiteConfigurationSnapshotSlot(resourceGroupName, name, snapshotId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listDeploymentLogSlotDelegate(response); + ServiceResponse clientResponse = recoverSiteConfigurationSnapshotSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -22942,113 +23202,74 @@ public Observable> call(Response }); } - private ServiceResponse listDeploymentLogSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse recoverSiteConfigurationSnapshotSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Lists ownership identifiers for domain associated with web app. - * Lists ownership identifiers for domain associated with web app. + * Gets the last lines of docker logs for the given site. + * Gets the last lines of docker logs for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<IdentifierInner> object if successful. + * @return the InputStream object if successful. */ - public PagedList listDomainOwnershipIdentifiersSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listDomainOwnershipIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listDomainOwnershipIdentifiersSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public InputStream getWebSiteContainerLogsSlot(String resourceGroupName, String name, String slot) { + return getWebSiteContainerLogsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Lists ownership identifiers for domain associated with web app. - * Lists ownership identifiers for domain associated with web app. + * Gets the last lines of docker logs for the given site. + * Gets the last lines of docker logs for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listDomainOwnershipIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listDomainOwnershipIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listDomainOwnershipIdentifiersSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWebSiteContainerLogsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Lists ownership identifiers for domain associated with web app. - * Lists ownership identifiers for domain associated with web app. + * Gets the last lines of docker logs for the given site. + * Gets the last lines of docker logs for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<IdentifierInner> object + * @return the observable to the InputStream object */ - public Observable> listDomainOwnershipIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listDomainOwnershipIdentifiersSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable getWebSiteContainerLogsSlotAsync(String resourceGroupName, String name, String slot) { + return getWebSiteContainerLogsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, InputStream>() { + @Override + public InputStream call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Lists ownership identifiers for domain associated with web app. - * Lists ownership identifiers for domain associated with web app. + * Gets the last lines of docker logs for the given site. + * Gets the last lines of docker logs for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<IdentifierInner> object - */ - public Observable>> listDomainOwnershipIdentifiersSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listDomainOwnershipIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listDomainOwnershipIdentifiersSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Lists ownership identifiers for domain associated with web app. - * Lists ownership identifiers for domain associated with web app. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<IdentifierInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the InputStream object */ - public Observable>> listDomainOwnershipIdentifiersSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> getWebSiteContainerLogsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -23064,13 +23285,13 @@ public Observable>> listDomainOwnershipIde if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listDomainOwnershipIdentifiersSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.getWebSiteContainerLogsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listDomainOwnershipIdentifiersSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = getWebSiteContainerLogsSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -23078,87 +23299,81 @@ public Observable>> call(Response> listDomainOwnershipIdentifiersSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse getWebSiteContainerLogsSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Get domain ownership identifier for web app. - * Get domain ownership identifier for web app. + * Gets the ZIP archived docker log files for the given site. + * Gets the ZIP archived docker log files for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the IdentifierInner object if successful. + * @return the InputStream object if successful. */ - public IdentifierInner getDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { - return getDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).toBlocking().single().body(); + public InputStream getContainerLogsZipSlot(String resourceGroupName, String name, String slot) { + return getContainerLogsZipSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Get domain ownership identifier for web app. - * Get domain ownership identifier for web app. + * Gets the ZIP archived docker log files for the given site. + * Gets the ZIP archived docker log files for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot), serviceCallback); + public ServiceFuture getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getContainerLogsZipSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Get domain ownership identifier for web app. - * Get domain ownership identifier for web app. + * Gets the ZIP archived docker log files for the given site. + * Gets the ZIP archived docker log files for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the IdentifierInner object + * @return the observable to the InputStream object */ - public Observable getDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { - return getDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).map(new Func1, IdentifierInner>() { + public Observable getContainerLogsZipSlotAsync(String resourceGroupName, String name, String slot) { + return getContainerLogsZipSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, InputStream>() { @Override - public IdentifierInner call(ServiceResponse response) { + public InputStream call(ServiceResponse response) { return response.body(); } }); } /** - * Get domain ownership identifier for web app. - * Get domain ownership identifier for web app. + * Gets the ZIP archived docker log files for the given site. + * Gets the ZIP archived docker log files for the given site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the IdentifierInner object + * @return the observable to the InputStream object */ - public Observable> getDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { + public Observable> getContainerLogsZipSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (domainOwnershipIdentifierName == null) { - throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -23168,12 +23383,12 @@ public Observable> getDomainOwnershipIdentifier if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getContainerLogsZipSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getDomainOwnershipIdentifierSlotDelegate(response); + ServiceResponse clientResponse = getContainerLogsZipSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -23182,111 +23397,136 @@ public Observable> call(Response }); } - private ServiceResponse getDomainOwnershipIdentifierSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse getContainerLogsZipSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * List continuous web jobs for an app, or a deployment slot. + * List continuous web jobs for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the IdentifierInner object if successful. + * @return the PagedList<ContinuousWebJobInner> object if successful. */ - public IdentifierInner createOrUpdateDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { - return createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).toBlocking().single().body(); + public PagedList listContinuousWebJobsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listContinuousWebJobsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listContinuousWebJobsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * List continuous web jobs for an app, or a deployment slot. + * List continuous web jobs for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createOrUpdateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier), serviceCallback); + public ServiceFuture> listContinuousWebJobsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listContinuousWebJobsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listContinuousWebJobsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * List continuous web jobs for an app, or a deployment slot. + * List continuous web jobs for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the IdentifierInner object + * @return the observable to the PagedList<ContinuousWebJobInner> object */ - public Observable createOrUpdateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { - return createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).map(new Func1, IdentifierInner>() { - @Override - public IdentifierInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listContinuousWebJobsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listContinuousWebJobsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * List continuous web jobs for an app, or a deployment slot. + * List continuous web jobs for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the IdentifierInner object + * @return the observable to the PagedList<ContinuousWebJobInner> object */ - public Observable> createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { + public Observable>> listContinuousWebJobsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listContinuousWebJobsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listContinuousWebJobsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List continuous web jobs for an app, or a deployment slot. + * List continuous web jobs for an app, or a deployment slot. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ContinuousWebJobInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listContinuousWebJobsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (domainOwnershipIdentifierName == null) { - throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (domainOwnershipIdentifier == null) { - throw new IllegalArgumentException("Parameter domainOwnershipIdentifier is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(domainOwnershipIdentifier); - return service.createOrUpdateDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), domainOwnershipIdentifier, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listContinuousWebJobsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = createOrUpdateDomainOwnershipIdentifierSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listContinuousWebJobsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -23294,85 +23534,86 @@ public Observable> call(Response }); } - private ServiceResponse createOrUpdateDomainOwnershipIdentifierSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> listContinuousWebJobsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Deletes a domain ownership identifier for a web app. - * Deletes a domain ownership identifier for a web app. + * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ContinuousWebJobInner object if successful. */ - public void deleteDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { - deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).toBlocking().single().body(); + public ContinuousWebJobInner getContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { + return getContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); } /** - * Deletes a domain ownership identifier for a web app. - * Deletes a domain ownership identifier for a web app. + * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot), serviceCallback); + public ServiceFuture getContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); } /** - * Deletes a domain ownership identifier for a web app. - * Deletes a domain ownership identifier for a web app. + * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ContinuousWebJobInner object */ - public Observable deleteDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { - return deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).map(new Func1, Void>() { + public Observable getContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { + return getContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, ContinuousWebJobInner>() { @Override - public Void call(ServiceResponse response) { + public ContinuousWebJobInner call(ServiceResponse response) { return response.body(); } }); } /** - * Deletes a domain ownership identifier for a web app. - * Deletes a domain ownership identifier for a web app. + * Gets a continuous web job by its ID for an app, or a deployment slot. + * Gets a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the ContinuousWebJobInner object */ - public Observable> deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { + public Observable> getContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (domainOwnershipIdentifierName == null) { - throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); + if (webJobName == null) { + throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -23383,12 +23624,12 @@ public Observable> deleteDomainOwnershipIdentifierSlotWith if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteDomainOwnershipIdentifierSlotDelegate(response); + ServiceResponse clientResponse = getContinuousWebJobSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -23397,91 +23638,86 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteDomainOwnershipIdentifierSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) + private ServiceResponse getContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Delete a continuous web job by its ID for an app, or a deployment slot. + * Delete a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the IdentifierInner object if successful. */ - public IdentifierInner updateDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { - return updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).toBlocking().single().body(); + public void deleteContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { + deleteContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Delete a continuous web job by its ID for an app, or a deployment slot. + * Delete a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier), serviceCallback); + public ServiceFuture deleteContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Delete a continuous web job by its ID for an app, or a deployment slot. + * Delete a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the IdentifierInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable updateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { - return updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).map(new Func1, IdentifierInner>() { + public Observable deleteContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { + return deleteContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, Void>() { @Override - public IdentifierInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. - * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Delete a continuous web job by its ID for an app, or a deployment slot. + * Delete a continuous web job by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param domainOwnershipIdentifierName Name of domain ownership identifier. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the IdentifierInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { + public Observable> deleteContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (domainOwnershipIdentifierName == null) { - throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); + if (webJobName == null) { + throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -23489,19 +23725,15 @@ public Observable> updateDomainOwnershipIdentif if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (domainOwnershipIdentifier == null) { - throw new IllegalArgumentException("Parameter domainOwnershipIdentifier is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(domainOwnershipIdentifier); - return service.updateDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), domainOwnershipIdentifier, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deleteContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateDomainOwnershipIdentifierSlotDelegate(response); + ServiceResponse clientResponse = deleteContinuousWebJobSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -23510,80 +23742,87 @@ public Observable> call(Response }); } - private ServiceResponse updateDomainOwnershipIdentifierSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Start a continuous web job for an app, or a deployment slot. + * Start a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployStatusInner object if successful. */ - public MSDeployStatusInner getMSDeployStatusSlot(String resourceGroupName, String name, String slot) { - return getMSDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void startContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { + startContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Start a continuous web job for an app, or a deployment slot. + * Start a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getMSDeployStatusSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getMSDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture startContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Start a continuous web job for an app, or a deployment slot. + * Start a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getMSDeployStatusSlotAsync(String resourceGroupName, String name, String slot) { - return getMSDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, MSDeployStatusInner>() { + public Observable startContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { + return startContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, Void>() { @Override - public MSDeployStatusInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Start a continuous web job for an app, or a deployment slot. + * Start a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getMSDeployStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> startContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (webJobName == null) { + throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -23593,12 +23832,12 @@ public Observable> getMSDeployStatusSlotWit if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getMSDeployStatusSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.startContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getMSDeployStatusSlotDelegate(response); + ServiceResponse clientResponse = startContinuousWebJobSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -23607,166 +23846,218 @@ public Observable> call(Response getMSDeployStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse startContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Stop a continuous web job for an app, or a deployment slot. + * Stop a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployStatusInner object if successful. */ - public MSDeployStatusInner createMSDeployOperationSlot(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { - return createMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).toBlocking().last().body(); + public void stopContinuousWebJobSlot(String resourceGroupName, String name, String webJobName, String slot) { + stopContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).toBlocking().single().body(); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Stop a continuous web job for an app, or a deployment slot. + * Stop a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy), serviceCallback); + public ServiceFuture stopContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Stop a continuous web job for an app, or a deployment slot. + * Stop a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the {@link ServiceResponse} object if successful. */ - public Observable createMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { - return createMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).map(new Func1, MSDeployStatusInner>() { + public Observable stopContinuousWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot) { + return stopContinuousWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot).map(new Func1, Void>() { @Override - public MSDeployStatusInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Stop a continuous web job for an app, or a deployment slot. + * Stop a continuous web job for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Site name. + * @param webJobName Name of Web Job. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the {@link ServiceResponse} object if successful. */ - public Observable> createMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { + public Observable> stopContinuousWebJobSlotWithServiceResponseAsync(String resourceGroupName, String name, String webJobName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (webJobName == null) { + throw new IllegalArgumentException("Parameter webJobName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (mSDeploy == null) { - throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(mSDeploy); - Observable> observable = service.createMSDeployOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + return service.stopContinuousWebJobSlot(resourceGroupName, name, webJobName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = stopContinuousWebJobSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse stopContinuousWebJobSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * List deployments for an app, or a deployment slot. + * List deployments for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployStatusInner object if successful. + * @return the PagedList<DeploymentInner> object if successful. */ - public MSDeployStatusInner beginCreateMSDeployOperationSlot(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { - return beginCreateMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).toBlocking().single().body(); + public PagedList listDeploymentsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listDeploymentsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listDeploymentsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * List deployments for an app, or a deployment slot. + * List deployments for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy), serviceCallback); + public ServiceFuture> listDeploymentsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listDeploymentsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listDeploymentsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * List deployments for an app, or a deployment slot. + * List deployments for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the observable to the PagedList<DeploymentInner> object */ - public Observable beginCreateMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { - return beginCreateMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).map(new Func1, MSDeployStatusInner>() { - @Override - public MSDeployStatusInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listDeploymentsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listDeploymentsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * List deployments for an app, or a deployment slot. + * List deployments for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param mSDeploy Details of MSDeploy operation + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the observable to the PagedList<DeploymentInner> object */ - public Observable> beginCreateMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { + public Observable>> listDeploymentsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listDeploymentsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listDeploymentsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List deployments for an app, or a deployment slot. + * List deployments for an app, or a deployment slot. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<DeploymentInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listDeploymentsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -23779,20 +24070,16 @@ public Observable> beginCreateMSDeployOpera if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (mSDeploy == null) { - throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(mSDeploy); - return service.beginCreateMSDeployOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listDeploymentsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = beginCreateMSDeployOperationSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listDeploymentsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -23800,81 +24087,87 @@ public Observable> call(Response beginCreateMSDeployOperationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(201, new TypeToken() { }.getType()) - .register(409, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> listDeploymentsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Get a deployment by its ID for an app, or a deployment slot. + * Get a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployLogInner object if successful. + * @return the DeploymentInner object if successful. */ - public MSDeployLogInner getMSDeployLogSlot(String resourceGroupName, String name, String slot) { - return getMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public DeploymentInner getDeploymentSlot(String resourceGroupName, String name, String id, String slot) { + return getDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).toBlocking().single().body(); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Get a deployment by its ID for an app, or a deployment slot. + * Get a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getMSDeployLogSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture getDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot), serviceCallback); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Get a deployment by its ID for an app, or a deployment slot. + * Get a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployLogInner object + * @return the observable to the DeploymentInner object */ - public Observable getMSDeployLogSlotAsync(String resourceGroupName, String name, String slot) { - return getMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, MSDeployLogInner>() { + public Observable getDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot) { + return getDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).map(new Func1, DeploymentInner>() { @Override - public MSDeployLogInner call(ServiceResponse response) { + public DeploymentInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Get a deployment by its ID for an app, or a deployment slot. + * Get a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployLogInner object + * @return the observable to the DeploymentInner object */ - public Observable> getMSDeployLogSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> getDeploymentSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (id == null) { + throw new IllegalArgumentException("Parameter id is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -23884,12 +24177,12 @@ public Observable> getMSDeployLogSlotWithServi if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getMSDeployLogSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getDeploymentSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getMSDeployLogSlotDelegate(response); + ServiceResponse clientResponse = getDeploymentSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -23898,136 +24191,111 @@ public Observable> call(Response }); } - private ServiceResponse getMSDeployLogSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - + private ServiceResponse getDeploymentSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** - * List the functions for a web site, or a deployment slot. - * List the functions for a web site, or a deployment slot. + * Create a deployment for an app, or a deployment slot. + * Create a deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. + * @param deployment Deployment details. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<FunctionEnvelopeInner> object if successful. + * @return the DeploymentInner object if successful. */ - public PagedList listInstanceFunctionsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listInstanceFunctionsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listInstanceFunctionsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public DeploymentInner createDeploymentSlot(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment) { + return createDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot, deployment).toBlocking().single().body(); } /** - * List the functions for a web site, or a deployment slot. - * List the functions for a web site, or a deployment slot. + * Create a deployment for an app, or a deployment slot. + * Create a deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. + * @param deployment Deployment details. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listInstanceFunctionsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listInstanceFunctionsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listInstanceFunctionsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture createDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot, deployment), serviceCallback); } /** - * List the functions for a web site, or a deployment slot. - * List the functions for a web site, or a deployment slot. + * Create a deployment for an app, or a deployment slot. + * Create a deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. + * @param deployment Deployment details. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FunctionEnvelopeInner> object + * @return the observable to the DeploymentInner object */ - public Observable> listInstanceFunctionsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listInstanceFunctionsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable createDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment) { + return createDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot, deployment).map(new Func1, DeploymentInner>() { + @Override + public DeploymentInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * List the functions for a web site, or a deployment slot. - * List the functions for a web site, or a deployment slot. + * Create a deployment for an app, or a deployment slot. + * Create a deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<FunctionEnvelopeInner> object - */ - public Observable>> listInstanceFunctionsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listInstanceFunctionsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listInstanceFunctionsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * List the functions for a web site, or a deployment slot. - * List the functions for a web site, or a deployment slot. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id ID of an existing deployment. + * @param slot Name of the deployment slot. If a slot is not specified, the API creates a deployment for the production slot. + * @param deployment Deployment details. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<FunctionEnvelopeInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the DeploymentInner object */ - public Observable>> listInstanceFunctionsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> createDeploymentSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot, DeploymentInner deployment) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (id == null) { + throw new IllegalArgumentException("Parameter id is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (deployment == null) { + throw new IllegalArgumentException("Parameter deployment is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listInstanceFunctionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + Validator.validate(deployment); + return service.createDeploymentSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), deployment, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listInstanceFunctionsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = createDeploymentSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -24035,81 +24303,86 @@ public Observable>> call(Response> listInstanceFunctionsSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse createDeploymentSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Fetch a short lived token that can be exchanged for a master key. - * Fetch a short lived token that can be exchanged for a master key. + * Delete a deployment by its ID for an app, or a deployment slot. + * Delete a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the String object if successful. */ - public String getFunctionsAdminTokenSlot(String resourceGroupName, String name, String slot) { - return getFunctionsAdminTokenSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void deleteDeploymentSlot(String resourceGroupName, String name, String id, String slot) { + deleteDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).toBlocking().single().body(); } /** - * Fetch a short lived token that can be exchanged for a master key. - * Fetch a short lived token that can be exchanged for a master key. + * Delete a deployment by its ID for an app, or a deployment slot. + * Delete a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getFunctionsAdminTokenSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture deleteDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot), serviceCallback); } /** - * Fetch a short lived token that can be exchanged for a master key. - * Fetch a short lived token that can be exchanged for a master key. + * Delete a deployment by its ID for an app, or a deployment slot. + * Delete a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot) { - return getFunctionsAdminTokenSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, String>() { + public Observable deleteDeploymentSlotAsync(String resourceGroupName, String name, String id, String slot) { + return deleteDeploymentSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).map(new Func1, Void>() { @Override - public String call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Fetch a short lived token that can be exchanged for a master key. - * Fetch a short lived token that can be exchanged for a master key. + * Delete a deployment by its ID for an app, or a deployment slot. + * Delete a deployment by its ID for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. + * @param name Name of the app. + * @param id Deployment ID. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getFunctionsAdminTokenSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> deleteDeploymentSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (id == null) { + throw new IllegalArgumentException("Parameter id is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -24119,12 +24392,12 @@ public Observable> getFunctionsAdminTokenSlotWithService if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getFunctionsAdminTokenSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deleteDeploymentSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getFunctionsAdminTokenSlotDelegate(response); + ServiceResponse clientResponse = deleteDeploymentSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -24133,86 +24406,87 @@ public Observable> call(Response response) }); } - private ServiceResponse getFunctionsAdminTokenSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteDeploymentSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Get function information by its ID for web site, or a deployment slot. - * Get function information by its ID for web site, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the FunctionEnvelopeInner object if successful. + * @return the DeploymentInner object if successful. */ - public FunctionEnvelopeInner getInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot) { - return getInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).toBlocking().single().body(); + public DeploymentInner listDeploymentLogSlot(String resourceGroupName, String name, String id, String slot) { + return listDeploymentLogSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).toBlocking().single().body(); } /** - * Get function information by its ID for web site, or a deployment slot. - * Get function information by its ID for web site, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot), serviceCallback); + public ServiceFuture listDeploymentLogSlotAsync(String resourceGroupName, String name, String id, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listDeploymentLogSlotWithServiceResponseAsync(resourceGroupName, name, id, slot), serviceCallback); } /** - * Get function information by its ID for web site, or a deployment slot. - * Get function information by its ID for web site, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionEnvelopeInner object + * @return the observable to the DeploymentInner object */ - public Observable getInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot) { - return getInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).map(new Func1, FunctionEnvelopeInner>() { + public Observable listDeploymentLogSlotAsync(String resourceGroupName, String name, String id, String slot) { + return listDeploymentLogSlotWithServiceResponseAsync(resourceGroupName, name, id, slot).map(new Func1, DeploymentInner>() { @Override - public FunctionEnvelopeInner call(ServiceResponse response) { + public DeploymentInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get function information by its ID for web site, or a deployment slot. - * Get function information by its ID for web site, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. + * List deployment log for specific deployment for an app, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param id The ID of a specific deployment. This is the value of the name property in the JSON response from "GET /api/sites/{siteName}/deployments". + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionEnvelopeInner object + * @return the observable to the DeploymentInner object */ - public Observable> getInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot) { + public Observable> listDeploymentLogSlotWithServiceResponseAsync(String resourceGroupName, String name, String id, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (functionName == null) { - throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); + if (id == null) { + throw new IllegalArgumentException("Parameter id is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -24223,12 +24497,12 @@ public Observable> getInstanceFunctionSlo if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listDeploymentLogSlot(resourceGroupName, name, id, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getInstanceFunctionSlotDelegate(response); + ServiceResponse clientResponse = listDeploymentLogSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -24237,207 +24511,240 @@ public Observable> call(Response getInstanceFunctionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse listDeploymentLogSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the FunctionEnvelopeInner object if successful. + * @return the RestoreRequestInner object if successful. */ - public FunctionEnvelopeInner createInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { - return createInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).toBlocking().last().body(); + public RestoreRequestInner discoverBackupSlot(String resourceGroupName, String name, String slot, RestoreRequestInner request) { + return discoverBackupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).toBlocking().single().body(); } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope), serviceCallback); + public ServiceFuture discoverBackupSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(discoverBackupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request), serviceCallback); } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the RestoreRequestInner object */ - public Observable createInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { - return createInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).map(new Func1, FunctionEnvelopeInner>() { + public Observable discoverBackupSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { + return discoverBackupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).map(new Func1, RestoreRequestInner>() { @Override - public FunctionEnvelopeInner call(ServiceResponse response) { + public RestoreRequestInner call(ServiceResponse response) { return response.body(); } }); } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. + * Discovers an existing app backup that can be restored from a blob in Azure storage. Use this to get information about the databases stored in a backup. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will perform discovery for the production slot. + * @param request A RestoreRequest object that includes Azure storage URL and blog name for discovery of backup. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the RestoreRequestInner object */ - public Observable> createInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { + public Observable> discoverBackupSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (functionName == null) { - throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (functionEnvelope == null) { - throw new IllegalArgumentException("Parameter functionEnvelope is required and cannot be null."); + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(functionEnvelope); - Observable> observable = service.createInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), functionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + Validator.validate(request); + return service.discoverBackupSlot(resourceGroupName, name, slot, this.client.subscriptionId(), request, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = discoverBackupSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse discoverBackupSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Lists ownership identifiers for domain associated with web app. + * Lists ownership identifiers for domain associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the FunctionEnvelopeInner object if successful. + * @return the PagedList<IdentifierInner> object if successful. */ - public FunctionEnvelopeInner beginCreateInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { - return beginCreateInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).toBlocking().single().body(); + public PagedList listDomainOwnershipIdentifiersSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listDomainOwnershipIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listDomainOwnershipIdentifiersSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Lists ownership identifiers for domain associated with web app. + * Lists ownership identifiers for domain associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope), serviceCallback); + public ServiceFuture> listDomainOwnershipIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listDomainOwnershipIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listDomainOwnershipIdentifiersSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Lists ownership identifiers for domain associated with web app. + * Lists ownership identifiers for domain associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionEnvelopeInner object + * @return the observable to the PagedList<IdentifierInner> object */ - public Observable beginCreateInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { - return beginCreateInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).map(new Func1, FunctionEnvelopeInner>() { - @Override - public FunctionEnvelopeInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listDomainOwnershipIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listDomainOwnershipIdentifiersSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Create function for web site, or a deployment slot. - * Create function for web site, or a deployment slot. + * Lists ownership identifiers for domain associated with web app. + * Lists ownership identifiers for domain associated with web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. - * @param functionEnvelope Function details. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionEnvelopeInner object + * @return the observable to the PagedList<IdentifierInner> object */ - public Observable> beginCreateInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { + public Observable>> listDomainOwnershipIdentifiersSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listDomainOwnershipIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listDomainOwnershipIdentifiersSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists ownership identifiers for domain associated with web app. + * Lists ownership identifiers for domain associated with web app. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<IdentifierInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listDomainOwnershipIdentifiersSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (functionName == null) { - throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (functionEnvelope == null) { - throw new IllegalArgumentException("Parameter functionEnvelope is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(functionEnvelope); - return service.beginCreateInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), functionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listDomainOwnershipIdentifiersSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = beginCreateInstanceFunctionSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listDomainOwnershipIdentifiersSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -24445,85 +24752,86 @@ public Observable> call(Response beginCreateInstanceFunctionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(201, new TypeToken() { }.getType()) + private ServiceResponse> listDomainOwnershipIdentifiersSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Delete a function for web site, or a deployment slot. - * Delete a function for web site, or a deployment slot. + * Get domain ownership identifier for web app. + * Get domain ownership identifier for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the IdentifierInner object if successful. */ - public void deleteInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot) { - deleteInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).toBlocking().single().body(); + public IdentifierInner getDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { + return getDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).toBlocking().single().body(); } /** - * Delete a function for web site, or a deployment slot. - * Delete a function for web site, or a deployment slot. + * Get domain ownership identifier for web app. + * Get domain ownership identifier for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot), serviceCallback); + public ServiceFuture getDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot), serviceCallback); } /** - * Delete a function for web site, or a deployment slot. - * Delete a function for web site, or a deployment slot. + * Get domain ownership identifier for web app. + * Get domain ownership identifier for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the IdentifierInner object */ - public Observable deleteInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot) { - return deleteInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).map(new Func1, Void>() { + public Observable getDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { + return getDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).map(new Func1, IdentifierInner>() { @Override - public Void call(ServiceResponse response) { + public IdentifierInner call(ServiceResponse response) { return response.body(); } }); } /** - * Delete a function for web site, or a deployment slot. - * Delete a function for web site, or a deployment slot. + * Get domain ownership identifier for web app. + * Get domain ownership identifier for web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the IdentifierInner object */ - public Observable> deleteInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot) { + public Observable> getDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (functionName == null) { - throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); + if (domainOwnershipIdentifierName == null) { + throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -24534,12 +24842,12 @@ public Observable> deleteInstanceFunctionSlotWithServiceRe if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteInstanceFunctionSlotDelegate(response); + ServiceResponse clientResponse = getDomainOwnershipIdentifierSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -24548,87 +24856,90 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteInstanceFunctionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(204, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getDomainOwnershipIdentifierSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get function secrets for a function in a web site, or a deployment slot. - * Get function secrets for a function in a web site, or a deployment slot. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the FunctionSecretsInner object if successful. + * @return the IdentifierInner object if successful. */ - public FunctionSecretsInner listFunctionSecretsSlot(String resourceGroupName, String name, String functionName, String slot) { - return listFunctionSecretsSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).toBlocking().single().body(); + public IdentifierInner createOrUpdateDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { + return createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).toBlocking().single().body(); } /** - * Get function secrets for a function in a web site, or a deployment slot. - * Get function secrets for a function in a web site, or a deployment slot. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listFunctionSecretsSlotAsync(String resourceGroupName, String name, String functionName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listFunctionSecretsSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot), serviceCallback); + public ServiceFuture createOrUpdateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier), serviceCallback); } /** - * Get function secrets for a function in a web site, or a deployment slot. - * Get function secrets for a function in a web site, or a deployment slot. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionSecretsInner object + * @return the observable to the IdentifierInner object */ - public Observable listFunctionSecretsSlotAsync(String resourceGroupName, String name, String functionName, String slot) { - return listFunctionSecretsSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).map(new Func1, FunctionSecretsInner>() { + public Observable createOrUpdateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { + return createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).map(new Func1, IdentifierInner>() { @Override - public FunctionSecretsInner call(ServiceResponse response) { + public IdentifierInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get function secrets for a function in a web site, or a deployment slot. - * Get function secrets for a function in a web site, or a deployment slot. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param functionName Function name. - * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param name Name of the app. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionSecretsInner object + * @return the observable to the IdentifierInner object */ - public Observable> listFunctionSecretsSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot) { + public Observable> createOrUpdateDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (functionName == null) { - throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); + if (domainOwnershipIdentifierName == null) { + throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -24636,15 +24947,19 @@ public Observable> listFunctionSecretsSlot if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (domainOwnershipIdentifier == null) { + throw new IllegalArgumentException("Parameter domainOwnershipIdentifier is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listFunctionSecretsSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(domainOwnershipIdentifier); + return service.createOrUpdateDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), domainOwnershipIdentifier, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listFunctionSecretsSlotDelegate(response); + ServiceResponse clientResponse = createOrUpdateDomainOwnershipIdentifierSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -24653,119 +24968,86 @@ public Observable> call(Response listFunctionSecretsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse createOrUpdateDomainOwnershipIdentifierSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get hostname bindings for an app or a deployment slot. - * Get hostname bindings for an app or a deployment slot. + * Deletes a domain ownership identifier for a web app. + * Deletes a domain ownership identifier for a web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<HostNameBindingInner> object if successful. */ - public PagedList listHostNameBindingsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listHostNameBindingsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listHostNameBindingsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public void deleteDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { + deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).toBlocking().single().body(); } /** - * Get hostname bindings for an app or a deployment slot. - * Get hostname bindings for an app or a deployment slot. + * Deletes a domain ownership identifier for a web app. + * Deletes a domain ownership identifier for a web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listHostNameBindingsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listHostNameBindingsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listHostNameBindingsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture deleteDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot), serviceCallback); } /** - * Get hostname bindings for an app or a deployment slot. - * Get hostname bindings for an app or a deployment slot. + * Deletes a domain ownership identifier for a web app. + * Deletes a domain ownership identifier for a web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<HostNameBindingInner> object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listHostNameBindingsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listHostNameBindingsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable deleteDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { + return deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Get hostname bindings for an app or a deployment slot. - * Get hostname bindings for an app or a deployment slot. + * Deletes a domain ownership identifier for a web app. + * Deletes a domain ownership identifier for a web app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<HostNameBindingInner> object - */ - public Observable>> listHostNameBindingsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listHostNameBindingsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listHostNameBindingsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Get hostname bindings for an app or a deployment slot. - * Get hostname bindings for an app or a deployment slot. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<HostNameBindingInner> object wrapped in {@link ServiceResponse} if successful. + * @return the {@link ServiceResponse} object if successful. */ - public Observable>> listHostNameBindingsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> deleteDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (domainOwnershipIdentifierName == null) { + throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -24775,13 +25057,13 @@ public Observable>> listHostNameBindi if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listHostNameBindingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.deleteDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listHostNameBindingsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = deleteDomainOwnershipIdentifierSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -24789,102 +25071,111 @@ public Observable>> call(Response> listHostNameBindingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteDomainOwnershipIdentifierSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Get the named hostname binding for an app (or deployment slot, if specified). - * Get the named hostname binding for an app (or deployment slot, if specified). + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the HostNameBindingInner object if successful. + * @return the IdentifierInner object if successful. */ - public HostNameBindingInner getHostNameBindingSlot(String resourceGroupName, String name, String slot, String hostName) { - return getHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).toBlocking().single().body(); + public IdentifierInner updateDomainOwnershipIdentifierSlot(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { + return updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).toBlocking().single().body(); } /** - * Get the named hostname binding for an app (or deployment slot, if specified). - * Get the named hostname binding for an app (or deployment slot, if specified). + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName), serviceCallback); + public ServiceFuture updateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier), serviceCallback); } /** - * Get the named hostname binding for an app (or deployment slot, if specified). - * Get the named hostname binding for an app (or deployment slot, if specified). + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HostNameBindingInner object + * @return the observable to the IdentifierInner object */ - public Observable getHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName) { - return getHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).map(new Func1, HostNameBindingInner>() { + public Observable updateDomainOwnershipIdentifierSlotAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { + return updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(resourceGroupName, name, domainOwnershipIdentifierName, slot, domainOwnershipIdentifier).map(new Func1, IdentifierInner>() { @Override - public HostNameBindingInner call(ServiceResponse response) { + public IdentifierInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get the named hostname binding for an app (or deployment slot, if specified). - * Get the named hostname binding for an app (or deployment slot, if specified). + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. + * Creates a domain ownership identifier for web app, or updates an existing ownership identifier. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param domainOwnershipIdentifierName Name of domain ownership identifier. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param domainOwnershipIdentifier A JSON representation of the domain ownership properties. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HostNameBindingInner object + * @return the observable to the IdentifierInner object */ - public Observable> getHostNameBindingSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String hostName) { + public Observable> updateDomainOwnershipIdentifierSlotWithServiceResponseAsync(String resourceGroupName, String name, String domainOwnershipIdentifierName, String slot, IdentifierInner domainOwnershipIdentifier) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (domainOwnershipIdentifierName == null) { + throw new IllegalArgumentException("Parameter domainOwnershipIdentifierName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (hostName == null) { - throw new IllegalArgumentException("Parameter hostName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (domainOwnershipIdentifier == null) { + throw new IllegalArgumentException("Parameter domainOwnershipIdentifier is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getHostNameBindingSlot(resourceGroupName, name, slot, hostName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(domainOwnershipIdentifier); + return service.updateDomainOwnershipIdentifierSlot(resourceGroupName, name, domainOwnershipIdentifierName, slot, this.client.subscriptionId(), domainOwnershipIdentifier, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getHostNameBindingSlotDelegate(response); + ServiceResponse clientResponse = updateDomainOwnershipIdentifierSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -24893,110 +25184,95 @@ public Observable> call(Response getHostNameBindingSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse updateDomainOwnershipIdentifierSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param hostName Hostname in the hostname binding. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. - * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the HostNameBindingInner object if successful. + * @return the MSDeployStatusInner object if successful. */ - public HostNameBindingInner createOrUpdateHostNameBindingSlot(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding) { - return createOrUpdateHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, hostName, slot, hostNameBinding).toBlocking().single().body(); + public MSDeployStatusInner getMSDeployStatusSlot(String resourceGroupName, String name, String slot) { + return getMSDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param hostName Hostname in the hostname binding. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. - * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createOrUpdateHostNameBindingSlotAsync(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, hostName, slot, hostNameBinding), serviceCallback); + public ServiceFuture getMSDeployStatusSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMSDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param hostName Hostname in the hostname binding. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. - * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HostNameBindingInner object + * @return the observable to the MSDeployStatusInner object */ - public Observable createOrUpdateHostNameBindingSlotAsync(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding) { - return createOrUpdateHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, hostName, slot, hostNameBinding).map(new Func1, HostNameBindingInner>() { + public Observable getMSDeployStatusSlotAsync(String resourceGroupName, String name, String slot) { + return getMSDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, MSDeployStatusInner>() { @Override - public HostNameBindingInner call(ServiceResponse response) { + public MSDeployStatusInner call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a hostname binding for an app. - * Creates a hostname binding for an app. + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param hostName Hostname in the hostname binding. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. - * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HostNameBindingInner object + * @return the observable to the MSDeployStatusInner object */ - public Observable> createOrUpdateHostNameBindingSlotWithServiceResponseAsync(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding) { + public Observable> getMSDeployStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (hostName == null) { - throw new IllegalArgumentException("Parameter hostName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (hostNameBinding == null) { - throw new IllegalArgumentException("Parameter hostNameBinding is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(hostNameBinding); - return service.createOrUpdateHostNameBindingSlot(resourceGroupName, name, hostName, slot, this.client.subscriptionId(), hostNameBinding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getMSDeployStatusSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = createOrUpdateHostNameBindingSlotDelegate(response); + ServiceResponse clientResponse = getMSDeployStatusSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -25005,77 +25281,78 @@ public Observable> call(Response createOrUpdateHostNameBindingSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getMSDeployStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the MSDeployStatusInner object if successful. */ - public void deleteHostNameBindingSlot(String resourceGroupName, String name, String slot, String hostName) { - deleteHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).toBlocking().single().body(); + public MSDeployStatusInner createMSDeployOperationSlot(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { + return createMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).toBlocking().last().body(); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName), serviceCallback); + public ServiceFuture createMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy), serviceCallback); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ - public Observable deleteHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName) { - return deleteHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).map(new Func1, Void>() { + public Observable createMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { + return createMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).map(new Func1, MSDeployStatusInner>() { @Override - public Void call(ServiceResponse response) { + public MSDeployStatusInner call(ServiceResponse response) { return response.body(); } }); } /** - * Deletes a hostname binding for an app. - * Deletes a hostname binding for an app. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. - * @param hostName Hostname in the hostname binding. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable for the request */ - public Observable> deleteHostNameBindingSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String hostName) { + public Observable> createMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -25085,133 +25362,110 @@ public Observable> deleteHostNameBindingSlotWithServiceRes if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (hostName == null) { - throw new IllegalArgumentException("Parameter hostName is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (mSDeploy == null) { + throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteHostNameBindingSlot(resourceGroupName, name, slot, hostName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = deleteHostNameBindingSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse deleteHostNameBindingSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(204, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); + Validator.validate(mSDeploy); + Observable> observable = service.createMSDeployOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the HybridConnectionInner object if successful. + * @return the MSDeployStatusInner object if successful. */ - public HybridConnectionInner getHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { - return getHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).toBlocking().single().body(); + public MSDeployStatusInner beginCreateMSDeployOperationSlot(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { + return beginCreateMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).toBlocking().single().body(); } /** - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot), serviceCallback); + public ServiceFuture beginCreateMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy), serviceCallback); } /** - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable to the MSDeployStatusInner object */ - public Observable getHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { - return getHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).map(new Func1, HybridConnectionInner>() { + public Observable beginCreateMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { + return beginCreateMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, mSDeploy).map(new Func1, MSDeployStatusInner>() { @Override - public HybridConnectionInner call(ServiceResponse response) { + public MSDeployStatusInner call(ServiceResponse response) { return response.body(); } }); } /** - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. - * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param mSDeploy Details of MSDeploy operation * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable to the MSDeployStatusInner object */ - public Observable> getHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + public Observable> beginCreateMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, MSDeploy mSDeploy) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (namespaceName == null) { - throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); - } - if (relayName == null) { - throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (mSDeploy == null) { + throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(mSDeploy); + return service.beginCreateMSDeployOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getHybridConnectionSlotDelegate(response); + ServiceResponse clientResponse = beginCreateMSDeployOperationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -25220,117 +25474,96 @@ public Observable> call(Response getHybridConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse beginCreateMSDeployOperationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) + .register(409, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the HybridConnectionInner object if successful. + * @return the MSDeployLogInner object if successful. */ - public HybridConnectionInner createOrUpdateHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { - return createOrUpdateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).toBlocking().single().body(); + public MSDeployLogInner getMSDeployLogSlot(String resourceGroupName, String name, String slot) { + return getMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createOrUpdateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope), serviceCallback); + public ServiceFuture getMSDeployLogSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable to the MSDeployLogInner object */ - public Observable createOrUpdateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { - return createOrUpdateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).map(new Func1, HybridConnectionInner>() { + public Observable getMSDeployLogSlotAsync(String resourceGroupName, String name, String slot) { + return getMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, MSDeployLogInner>() { @Override - public HybridConnectionInner call(ServiceResponse response) { + public MSDeployLogInner call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable to the MSDeployLogInner object */ - public Observable> createOrUpdateHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { + public Observable> getMSDeployLogSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (namespaceName == null) { - throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); - } - if (relayName == null) { - throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (connectionEnvelope == null) { - throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(connectionEnvelope); - return service.createOrUpdateHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getMSDeployLogSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = createOrUpdateHybridConnectionSlotDelegate(response); + ServiceResponse clientResponse = getMSDeployLogSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -25339,93 +25572,120 @@ public Observable> call(Response createOrUpdateHybridConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse getMSDeployLogSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Removes a Hybrid Connection from this site. - * Removes a Hybrid Connection from this site. + * List the functions for a web site, or a deployment slot. + * List the functions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<FunctionEnvelopeInner> object if successful. */ - public void deleteHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { - deleteHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).toBlocking().single().body(); + public PagedList listInstanceFunctionsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listInstanceFunctionsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listInstanceFunctionsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Removes a Hybrid Connection from this site. - * Removes a Hybrid Connection from this site. + * List the functions for a web site, or a deployment slot. + * List the functions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot), serviceCallback); + public ServiceFuture> listInstanceFunctionsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listInstanceFunctionsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listInstanceFunctionsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Removes a Hybrid Connection from this site. - * Removes a Hybrid Connection from this site. + * List the functions for a web site, or a deployment slot. + * List the functions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PagedList<FunctionEnvelopeInner> object */ - public Observable deleteHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { - return deleteHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listInstanceFunctionsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listInstanceFunctionsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Removes a Hybrid Connection from this site. - * Removes a Hybrid Connection from this site. + * List the functions for a web site, or a deployment slot. + * List the functions for a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PagedList<FunctionEnvelopeInner> object */ - public Observable> deleteHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + public Observable>> listInstanceFunctionsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listInstanceFunctionsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listInstanceFunctionsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List the functions for a web site, or a deployment slot. + * List the functions for a web site, or a deployment slot. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<FunctionEnvelopeInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listInstanceFunctionsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (namespaceName == null) { - throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); - } - if (relayName == null) { - throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -25435,13 +25695,13 @@ public Observable> deleteHybridConnectionSlotWithServiceRe if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listInstanceFunctionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = deleteHybridConnectionSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listInstanceFunctionsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -25449,118 +25709,96 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteHybridConnectionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> listInstanceFunctionsSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Fetch a short lived token that can be exchanged for a master key. + * Fetch a short lived token that can be exchanged for a master key. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the HybridConnectionInner object if successful. + * @return the String object if successful. */ - public HybridConnectionInner updateHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { - return updateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).toBlocking().single().body(); + public String getFunctionsAdminTokenSlot(String resourceGroupName, String name, String slot) { + return getFunctionsAdminTokenSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Fetch a short lived token that can be exchanged for a master key. + * Fetch a short lived token that can be exchanged for a master key. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope), serviceCallback); + public ServiceFuture getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getFunctionsAdminTokenSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Fetch a short lived token that can be exchanged for a master key. + * Fetch a short lived token that can be exchanged for a master key. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable to the String object */ - public Observable updateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { - return updateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).map(new Func1, HybridConnectionInner>() { + public Observable getFunctionsAdminTokenSlotAsync(String resourceGroupName, String name, String slot) { + return getFunctionsAdminTokenSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, String>() { @Override - public HybridConnectionInner call(ServiceResponse response) { + public String call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a new Hybrid Connection using a Service Bus relay. - * Creates a new Hybrid Connection using a Service Bus relay. + * Fetch a short lived token that can be exchanged for a master key. + * Fetch a short lived token that can be exchanged for a master key. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. - * @param connectionEnvelope The details of the hybrid connection. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable to the String object */ - public Observable> updateHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { + public Observable> getFunctionsAdminTokenSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (namespaceName == null) { - throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); - } - if (relayName == null) { - throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (connectionEnvelope == null) { - throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(connectionEnvelope); - return service.updateHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getFunctionsAdminTokenSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateHybridConnectionSlotDelegate(response); + ServiceResponse clientResponse = getFunctionsAdminTokenSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -25569,93 +25807,86 @@ public Observable> call(Response updateHybridConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getFunctionsAdminTokenSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets the send key name and value for a Hybrid Connection. - * Gets the send key name and value for a Hybrid Connection. + * Get function information by its ID for web site, or a deployment slot. + * Get function information by its ID for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the HybridConnectionKeyInner object if successful. + * @return the FunctionEnvelopeInner object if successful. */ - public HybridConnectionKeyInner listHybridConnectionKeysSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { - return listHybridConnectionKeysSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).toBlocking().single().body(); + public FunctionEnvelopeInner getInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot) { + return getInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).toBlocking().single().body(); } /** - * Gets the send key name and value for a Hybrid Connection. - * Gets the send key name and value for a Hybrid Connection. + * Get function information by its ID for web site, or a deployment slot. + * Get function information by its ID for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listHybridConnectionKeysSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listHybridConnectionKeysSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot), serviceCallback); + public ServiceFuture getInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot), serviceCallback); } /** - * Gets the send key name and value for a Hybrid Connection. - * Gets the send key name and value for a Hybrid Connection. + * Get function information by its ID for web site, or a deployment slot. + * Get function information by its ID for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionKeyInner object + * @return the observable to the FunctionEnvelopeInner object */ - public Observable listHybridConnectionKeysSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { - return listHybridConnectionKeysSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).map(new Func1, HybridConnectionKeyInner>() { + public Observable getInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot) { + return getInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).map(new Func1, FunctionEnvelopeInner>() { @Override - public HybridConnectionKeyInner call(ServiceResponse response) { + public FunctionEnvelopeInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets the send key name and value for a Hybrid Connection. - * Gets the send key name and value for a Hybrid Connection. + * Get function information by its ID for web site, or a deployment slot. + * Get function information by its ID for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param namespaceName The namespace for this hybrid connection. - * @param relayName The relay name for this hybrid connection. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionKeyInner object + * @return the observable to the FunctionEnvelopeInner object */ - public Observable> listHybridConnectionKeysSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + public Observable> getInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (namespaceName == null) { - throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); - } - if (relayName == null) { - throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); + if (functionName == null) { + throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -25666,12 +25897,12 @@ public Observable> listHybridConnectio if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listHybridConnectionKeysSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listHybridConnectionKeysSlotDelegate(response); + ServiceResponse clientResponse = getInstanceFunctionSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -25680,192 +25911,206 @@ public Observable> call(Response listHybridConnectionKeysSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse getInstanceFunctionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Retrieves all Service Bus Hybrid Connections used by this Web App. - * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the HybridConnectionInner object if successful. + * @return the FunctionEnvelopeInner object if successful. */ - public HybridConnectionInner listHybridConnectionsSlot(String resourceGroupName, String name, String slot) { - return listHybridConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public FunctionEnvelopeInner createInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { + return createInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).toBlocking().last().body(); } /** - * Retrieves all Service Bus Hybrid Connections used by this Web App. - * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listHybridConnectionsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listHybridConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture createInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope), serviceCallback); } /** - * Retrieves all Service Bus Hybrid Connections used by this Web App. - * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable for the request */ - public Observable listHybridConnectionsSlotAsync(String resourceGroupName, String name, String slot) { - return listHybridConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, HybridConnectionInner>() { + public Observable createInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { + return createInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).map(new Func1, FunctionEnvelopeInner>() { @Override - public HybridConnectionInner call(ServiceResponse response) { + public FunctionEnvelopeInner call(ServiceResponse response) { return response.body(); } }); } /** - * Retrieves all Service Bus Hybrid Connections used by this Web App. - * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for the web app. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the HybridConnectionInner object + * @return the observable for the request */ - public Observable> listHybridConnectionsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> createInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (functionName == null) { + throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (functionEnvelope == null) { + throw new IllegalArgumentException("Parameter functionEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listHybridConnectionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = listHybridConnectionsSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse listHybridConnectionsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + Validator.validate(functionEnvelope); + Observable> observable = service.createInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), functionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } /** - * Gets hybrid connections configured for an app (or deployment slot, if specified). - * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the RelayServiceConnectionEntityInner object if successful. + * @return the FunctionEnvelopeInner object if successful. */ - public RelayServiceConnectionEntityInner listRelayServiceConnectionsSlot(String resourceGroupName, String name, String slot) { - return listRelayServiceConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public FunctionEnvelopeInner beginCreateInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { + return beginCreateInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).toBlocking().single().body(); } /** - * Gets hybrid connections configured for an app (or deployment slot, if specified). - * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listRelayServiceConnectionsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listRelayServiceConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture beginCreateInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope), serviceCallback); } /** - * Gets hybrid connections configured for an app (or deployment slot, if specified). - * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the observable to the FunctionEnvelopeInner object */ - public Observable listRelayServiceConnectionsSlotAsync(String resourceGroupName, String name, String slot) { - return listRelayServiceConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, RelayServiceConnectionEntityInner>() { + public Observable beginCreateInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { + return beginCreateInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot, functionEnvelope).map(new Func1, FunctionEnvelopeInner>() { @Override - public RelayServiceConnectionEntityInner call(ServiceResponse response) { + public FunctionEnvelopeInner call(ServiceResponse response) { return response.body(); } }); } /** - * Gets hybrid connections configured for an app (or deployment slot, if specified). - * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Create function for web site, or a deployment slot. + * Create function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. + * @param functionEnvelope Function details. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the observable to the FunctionEnvelopeInner object */ - public Observable> listRelayServiceConnectionsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> beginCreateInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot, FunctionEnvelopeInner functionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (functionName == null) { + throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (functionEnvelope == null) { + throw new IllegalArgumentException("Parameter functionEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listRelayServiceConnectionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(functionEnvelope); + return service.beginCreateInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), functionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listRelayServiceConnectionsSlotDelegate(response); + ServiceResponse clientResponse = beginCreateInstanceFunctionSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -25874,86 +26119,85 @@ public Observable> call(Respo }); } - private ServiceResponse listRelayServiceConnectionsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse beginCreateInstanceFunctionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets a hybrid connection configuration by its name. - * Gets a hybrid connection configuration by its name. + * Delete a function for web site, or a deployment slot. + * Delete a function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the RelayServiceConnectionEntityInner object if successful. */ - public RelayServiceConnectionEntityInner getRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot) { - return getRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).toBlocking().single().body(); + public void deleteInstanceFunctionSlot(String resourceGroupName, String name, String functionName, String slot) { + deleteInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).toBlocking().single().body(); } /** - * Gets a hybrid connection configuration by its name. - * Gets a hybrid connection configuration by its name. + * Delete a function for web site, or a deployment slot. + * Delete a function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot), serviceCallback); + public ServiceFuture deleteInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot), serviceCallback); } /** - * Gets a hybrid connection configuration by its name. - * Gets a hybrid connection configuration by its name. + * Delete a function for web site, or a deployment slot. + * Delete a function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot) { - return getRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).map(new Func1, RelayServiceConnectionEntityInner>() { + public Observable deleteInstanceFunctionSlotAsync(String resourceGroupName, String name, String functionName, String slot) { + return deleteInstanceFunctionSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).map(new Func1, Void>() { @Override - public RelayServiceConnectionEntityInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets a hybrid connection configuration by its name. - * Gets a hybrid connection configuration by its name. + * Delete a function for web site, or a deployment slot. + * Delete a function for web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot) { + public Observable> deleteInstanceFunctionSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (entityName == null) { - throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); + if (functionName == null) { + throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -25964,12 +26208,12 @@ public Observable> getRelaySe if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deleteInstanceFunctionSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getRelayServiceConnectionSlotDelegate(response); + ServiceResponse clientResponse = deleteInstanceFunctionSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -25978,90 +26222,87 @@ public Observable> call(Respo }); } - private ServiceResponse getRelayServiceConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteInstanceFunctionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get function secrets for a function in a web site, or a deployment slot. + * Get function secrets for a function in a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the RelayServiceConnectionEntityInner object if successful. + * @return the FunctionSecretsInner object if successful. */ - public RelayServiceConnectionEntityInner createOrUpdateRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { - return createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).toBlocking().single().body(); + public FunctionSecretsInner listFunctionSecretsSlot(String resourceGroupName, String name, String functionName, String slot) { + return listFunctionSecretsSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).toBlocking().single().body(); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get function secrets for a function in a web site, or a deployment slot. + * Get function secrets for a function in a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createOrUpdateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope), serviceCallback); + public ServiceFuture listFunctionSecretsSlotAsync(String resourceGroupName, String name, String functionName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listFunctionSecretsSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot), serviceCallback); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get function secrets for a function in a web site, or a deployment slot. + * Get function secrets for a function in a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the observable to the FunctionSecretsInner object */ - public Observable createOrUpdateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { - return createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).map(new Func1, RelayServiceConnectionEntityInner>() { + public Observable listFunctionSecretsSlotAsync(String resourceGroupName, String name, String functionName, String slot) { + return listFunctionSecretsSlotWithServiceResponseAsync(resourceGroupName, name, functionName, slot).map(new Func1, FunctionSecretsInner>() { @Override - public RelayServiceConnectionEntityInner call(ServiceResponse response) { + public FunctionSecretsInner call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get function secrets for a function in a web site, or a deployment slot. + * Get function secrets for a function in a web site, or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param name Site name. + * @param functionName Function name. + * @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the observable to the FunctionSecretsInner object */ - public Observable> createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + public Observable> listFunctionSecretsSlotWithServiceResponseAsync(String resourceGroupName, String name, String functionName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (entityName == null) { - throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); + if (functionName == null) { + throw new IllegalArgumentException("Parameter functionName is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); @@ -26069,19 +26310,15 @@ public Observable> createOrUp if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (connectionEnvelope == null) { - throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(connectionEnvelope); - return service.createOrUpdateRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listFunctionSecretsSlot(resourceGroupName, name, functionName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = createOrUpdateRelayServiceConnectionSlotDelegate(response); + ServiceResponse clientResponse = listFunctionSecretsSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -26090,86 +26327,119 @@ public Observable> call(Respo }); } - private ServiceResponse createOrUpdateRelayServiceConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse listFunctionSecretsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Deletes a relay service connection by its name. - * Deletes a relay service connection by its name. + * Get hostname bindings for an app or a deployment slot. + * Get hostname bindings for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<HostNameBindingInner> object if successful. */ - public void deleteRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot) { - deleteRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).toBlocking().single().body(); + public PagedList listHostNameBindingsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listHostNameBindingsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listHostNameBindingsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; } /** - * Deletes a relay service connection by its name. - * Deletes a relay service connection by its name. + * Get hostname bindings for an app or a deployment slot. + * Get hostname bindings for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot), serviceCallback); + public ServiceFuture> listHostNameBindingsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listHostNameBindingsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listHostNameBindingsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); } /** - * Deletes a relay service connection by its name. - * Deletes a relay service connection by its name. + * Get hostname bindings for an app or a deployment slot. + * Get hostname bindings for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PagedList<HostNameBindingInner> object */ - public Observable deleteRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot) { - return deleteRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); + public Observable> listHostNameBindingsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listHostNameBindingsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Deletes a relay service connection by its name. - * Deletes a relay service connection by its name. + * Get hostname bindings for an app or a deployment slot. + * Get hostname bindings for an app or a deployment slot. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PagedList<HostNameBindingInner> object */ - public Observable> deleteRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot) { + public Observable>> listHostNameBindingsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listHostNameBindingsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listHostNameBindingsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get hostname bindings for an app or a deployment slot. + * Get hostname bindings for an app or a deployment slot. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API gets hostname bindings for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<HostNameBindingInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listHostNameBindingsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (entityName == null) { - throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -26179,13 +26449,13 @@ public Observable> deleteRelayServiceConnectionSlotWithSer if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listHostNameBindingsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = deleteRelayServiceConnectionSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listHostNameBindingsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -26193,111 +26463,102 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteRelayServiceConnectionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> listHostNameBindingsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get the named hostname binding for an app (or deployment slot, if specified). + * Get the named hostname binding for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. + * @param hostName Hostname in the hostname binding. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the RelayServiceConnectionEntityInner object if successful. + * @return the HostNameBindingInner object if successful. */ - public RelayServiceConnectionEntityInner updateRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { - return updateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).toBlocking().single().body(); + public HostNameBindingInner getHostNameBindingSlot(String resourceGroupName, String name, String slot, String hostName) { + return getHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).toBlocking().single().body(); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get the named hostname binding for an app (or deployment slot, if specified). + * Get the named hostname binding for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. + * @param hostName Hostname in the hostname binding. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope), serviceCallback); + public ServiceFuture getHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName), serviceCallback); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get the named hostname binding for an app (or deployment slot, if specified). + * Get the named hostname binding for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. + * @param hostName Hostname in the hostname binding. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the observable to the HostNameBindingInner object */ - public Observable updateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { - return updateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).map(new Func1, RelayServiceConnectionEntityInner>() { + public Observable getHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName) { + return getHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).map(new Func1, HostNameBindingInner>() { @Override - public RelayServiceConnectionEntityInner call(ServiceResponse response) { + public HostNameBindingInner call(ServiceResponse response) { return response.body(); } }); } /** - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). - * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Get the named hostname binding for an app (or deployment slot, if specified). + * Get the named hostname binding for an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param entityName Name of the hybrid connection configuration. - * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. - * @param connectionEnvelope Details of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API the named binding for the production slot. + * @param hostName Hostname in the hostname binding. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the RelayServiceConnectionEntityInner object + * @return the observable to the HostNameBindingInner object */ - public Observable> updateRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + public Observable> getHostNameBindingSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String hostName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (entityName == null) { - throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } + if (hostName == null) { + throw new IllegalArgumentException("Parameter hostName is required and cannot be null."); + } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (connectionEnvelope == null) { - throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(connectionEnvelope); - return service.updateRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getHostNameBindingSlot(resourceGroupName, name, slot, hostName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateRelayServiceConnectionSlotDelegate(response); + ServiceResponse clientResponse = getHostNameBindingSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -26306,135 +26567,111 @@ public Observable> call(Respo }); } - private ServiceResponse updateRelayServiceConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getHostNameBindingSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets all scale-out instances of an app. - * Gets all scale-out instances of an app. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @param hostName Hostname in the hostname binding. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<SiteInstanceInner> object if successful. + * @return the HostNameBindingInner object if successful. */ - public PagedList listInstanceIdentifiersSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listInstanceIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listInstanceIdentifiersSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public HostNameBindingInner createOrUpdateHostNameBindingSlot(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding) { + return createOrUpdateHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, hostName, slot, hostNameBinding).toBlocking().single().body(); } /** - * Gets all scale-out instances of an app. - * Gets all scale-out instances of an app. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @param hostName Hostname in the hostname binding. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listInstanceIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listInstanceIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listInstanceIdentifiersSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture createOrUpdateHostNameBindingSlotAsync(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, hostName, slot, hostNameBinding), serviceCallback); } /** - * Gets all scale-out instances of an app. - * Gets all scale-out instances of an app. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @param hostName Hostname in the hostname binding. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteInstanceInner> object + * @return the observable to the HostNameBindingInner object */ - public Observable> listInstanceIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listInstanceIdentifiersSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable createOrUpdateHostNameBindingSlotAsync(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding) { + return createOrUpdateHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, hostName, slot, hostNameBinding).map(new Func1, HostNameBindingInner>() { + @Override + public HostNameBindingInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * Gets all scale-out instances of an app. - * Gets all scale-out instances of an app. + * Creates a hostname binding for an app. + * Creates a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<SiteInstanceInner> object - */ - public Observable>> listInstanceIdentifiersSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listInstanceIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listInstanceIdentifiersSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets all scale-out instances of an app. - * Gets all scale-out instances of an app. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @param hostName Hostname in the hostname binding. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. + * @param hostNameBinding Binding details. This is the JSON representation of a HostNameBinding object. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<SiteInstanceInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the HostNameBindingInner object */ - public Observable>> listInstanceIdentifiersSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable> createOrUpdateHostNameBindingSlotWithServiceResponseAsync(String resourceGroupName, String name, String hostName, String slot, HostNameBindingInner hostNameBinding) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (hostName == null) { + throw new IllegalArgumentException("Parameter hostName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (hostNameBinding == null) { + throw new IllegalArgumentException("Parameter hostNameBinding is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listInstanceIdentifiersSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + Validator.validate(hostNameBinding); + return service.createOrUpdateHostNameBindingSlot(resourceGroupName, name, hostName, slot, this.client.subscriptionId(), hostNameBinding, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listInstanceIdentifiersSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = createOrUpdateHostNameBindingSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -26442,78 +26679,77 @@ public Observable>> call(Response> listInstanceIdentifiersSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse createOrUpdateHostNameBindingSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param hostName Hostname in the hostname binding. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployStatusInner object if successful. */ - public MSDeployStatusInner getInstanceMsDeployStatusSlot(String resourceGroupName, String name, String slot, String instanceId) { - return getInstanceMsDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).toBlocking().single().body(); + public void deleteHostNameBindingSlot(String resourceGroupName, String name, String slot, String hostName) { + deleteHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).toBlocking().single().body(); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param hostName Hostname in the hostname binding. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getInstanceMsDeployStatusSlotAsync(String resourceGroupName, String name, String slot, String instanceId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getInstanceMsDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId), serviceCallback); + public ServiceFuture deleteHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName), serviceCallback); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param hostName Hostname in the hostname binding. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable getInstanceMsDeployStatusSlotAsync(String resourceGroupName, String name, String slot, String instanceId) { - return getInstanceMsDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).map(new Func1, MSDeployStatusInner>() { + public Observable deleteHostNameBindingSlotAsync(String resourceGroupName, String name, String slot, String hostName) { + return deleteHostNameBindingSlotWithServiceResponseAsync(resourceGroupName, name, slot, hostName).map(new Func1, Void>() { @Override - public MSDeployStatusInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Get the status of the last MSDeploy operation. - * Get the status of the last MSDeploy operation. + * Deletes a hostname binding for an app. + * Deletes a hostname binding for an app. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the binding for the production slot. + * @param hostName Hostname in the hostname binding. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> getInstanceMsDeployStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId) { + public Observable> deleteHostNameBindingSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String hostName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -26523,8 +26759,8 @@ public Observable> getInstanceMsDeployStatu if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + if (hostName == null) { + throw new IllegalArgumentException("Parameter hostName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); @@ -26532,12 +26768,12 @@ public Observable> getInstanceMsDeployStatu if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getInstanceMsDeployStatusSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.deleteHostNameBindingSlot(resourceGroupName, name, slot, hostName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getInstanceMsDeployStatusSlotDelegate(response); + ServiceResponse clientResponse = deleteHostNameBindingSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -26546,205 +26782,229 @@ public Observable> call(Response getInstanceMsDeployStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) + private ServiceResponse deleteHostNameBindingSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) .build(response); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployStatusInner object if successful. + * @return the HybridConnectionInner object if successful. */ - public MSDeployStatusInner createInstanceMSDeployOperationSlot(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { - return createInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).toBlocking().last().body(); + public HybridConnectionInner getHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + return getHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).toBlocking().single().body(); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy), serviceCallback); + public ServiceFuture getHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot), serviceCallback); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the HybridConnectionInner object */ - public Observable createInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { - return createInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).map(new Func1, MSDeployStatusInner>() { + public Observable getHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + return getHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).map(new Func1, HybridConnectionInner>() { @Override - public MSDeployStatusInner call(ServiceResponse response) { + public HybridConnectionInner call(ServiceResponse response) { return response.body(); } }); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. + * Retrieves a specific Service Bus Hybrid Connection used by this Web App. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable for the request + * @return the observable to the HybridConnectionInner object */ - public Observable> createInstanceMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + public Observable> getHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (relayName == null) { + throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (mSDeploy == null) { - throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(mSDeploy); - Observable> observable = service.createInstanceMSDeployOperationSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); - return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + return service.getHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getHybridConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getHybridConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployStatusInner object if successful. + * @return the HybridConnectionInner object if successful. */ - public MSDeployStatusInner beginCreateInstanceMSDeployOperationSlot(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { - return beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).toBlocking().single().body(); + public HybridConnectionInner createOrUpdateHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { + return createOrUpdateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).toBlocking().single().body(); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy), serviceCallback); + public ServiceFuture createOrUpdateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope), serviceCallback); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the observable to the HybridConnectionInner object */ - public Observable beginCreateInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { - return beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).map(new Func1, MSDeployStatusInner>() { + public Observable createOrUpdateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { + return createOrUpdateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).map(new Func1, HybridConnectionInner>() { @Override - public MSDeployStatusInner call(ServiceResponse response) { + public HybridConnectionInner call(ServiceResponse response) { return response.body(); } }); } /** - * Invoke the MSDeploy web app extension. - * Invoke the MSDeploy web app extension. + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param mSDeploy Details of MSDeploy operation + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployStatusInner object + * @return the observable to the HybridConnectionInner object */ - public Observable> beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + public Observable> createOrUpdateHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (relayName == null) { + throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (mSDeploy == null) { - throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(mSDeploy); - return service.beginCreateInstanceMSDeployOperationSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(connectionEnvelope); + return service.createOrUpdateHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = beginCreateInstanceMSDeployOperationSlotDelegate(response); + ServiceResponse clientResponse = createOrUpdateHybridConnectionSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -26753,79 +27013,2987 @@ public Observable> call(Response beginCreateInstanceMSDeployOperationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(201, new TypeToken() { }.getType()) - .register(409, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse createOrUpdateHybridConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Removes a Hybrid Connection from this site. + * Removes a Hybrid Connection from this site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MSDeployLogInner object if successful. */ - public MSDeployLogInner getInstanceMSDeployLogSlot(String resourceGroupName, String name, String slot, String instanceId) { - return getInstanceMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).toBlocking().single().body(); + public void deleteHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + deleteHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).toBlocking().single().body(); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Removes a Hybrid Connection from this site. + * Removes a Hybrid Connection from this site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot), serviceCallback); + } + + /** + * Removes a Hybrid Connection from this site. + * Removes a Hybrid Connection from this site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + return deleteHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Removes a Hybrid Connection from this site. + * Removes a Hybrid Connection from this site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (relayName == null) { + throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteHybridConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteHybridConnectionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the HybridConnectionInner object if successful. + */ + public HybridConnectionInner updateHybridConnectionSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { + return updateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).toBlocking().single().body(); + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope), serviceCallback); + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HybridConnectionInner object + */ + public Observable updateHybridConnectionSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { + return updateHybridConnectionSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot, connectionEnvelope).map(new Func1, HybridConnectionInner>() { + @Override + public HybridConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new Hybrid Connection using a Service Bus relay. + * Creates a new Hybrid Connection using a Service Bus relay. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param connectionEnvelope The details of the hybrid connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HybridConnectionInner object + */ + public Observable> updateHybridConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, HybridConnectionInner connectionEnvelope) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (relayName == null) { + throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(connectionEnvelope); + return service.updateHybridConnectionSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateHybridConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateHybridConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets the send key name and value for a Hybrid Connection. + * Gets the send key name and value for a Hybrid Connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the HybridConnectionKeyInner object if successful. + */ + public HybridConnectionKeyInner listHybridConnectionKeysSlot(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + return listHybridConnectionKeysSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).toBlocking().single().body(); + } + + /** + * Gets the send key name and value for a Hybrid Connection. + * Gets the send key name and value for a Hybrid Connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listHybridConnectionKeysSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listHybridConnectionKeysSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot), serviceCallback); + } + + /** + * Gets the send key name and value for a Hybrid Connection. + * Gets the send key name and value for a Hybrid Connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HybridConnectionKeyInner object + */ + public Observable listHybridConnectionKeysSlotAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + return listHybridConnectionKeysSlotWithServiceResponseAsync(resourceGroupName, name, namespaceName, relayName, slot).map(new Func1, HybridConnectionKeyInner>() { + @Override + public HybridConnectionKeyInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets the send key name and value for a Hybrid Connection. + * Gets the send key name and value for a Hybrid Connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param namespaceName The namespace for this hybrid connection. + * @param relayName The relay name for this hybrid connection. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HybridConnectionKeyInner object + */ + public Observable> listHybridConnectionKeysSlotWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (relayName == null) { + throw new IllegalArgumentException("Parameter relayName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listHybridConnectionKeysSlot(resourceGroupName, name, namespaceName, relayName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listHybridConnectionKeysSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listHybridConnectionKeysSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the HybridConnectionInner object if successful. + */ + public HybridConnectionInner listHybridConnectionsSlot(String resourceGroupName, String name, String slot) { + return listHybridConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listHybridConnectionsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listHybridConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HybridConnectionInner object + */ + public Observable listHybridConnectionsSlotAsync(String resourceGroupName, String name, String slot) { + return listHybridConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, HybridConnectionInner>() { + @Override + public HybridConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * Retrieves all Service Bus Hybrid Connections used by this Web App. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HybridConnectionInner object + */ + public Observable> listHybridConnectionsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listHybridConnectionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listHybridConnectionsSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listHybridConnectionsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RelayServiceConnectionEntityInner object if successful. + */ + public RelayServiceConnectionEntityInner listRelayServiceConnectionsSlot(String resourceGroupName, String name, String slot) { + return listRelayServiceConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listRelayServiceConnectionsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listRelayServiceConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable listRelayServiceConnectionsSlotAsync(String resourceGroupName, String name, String slot) { + return listRelayServiceConnectionsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, RelayServiceConnectionEntityInner>() { + @Override + public RelayServiceConnectionEntityInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * Gets hybrid connections configured for an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get hybrid connections for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable> listRelayServiceConnectionsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listRelayServiceConnectionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listRelayServiceConnectionsSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listRelayServiceConnectionsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets a hybrid connection configuration by its name. + * Gets a hybrid connection configuration by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RelayServiceConnectionEntityInner object if successful. + */ + public RelayServiceConnectionEntityInner getRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot) { + return getRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).toBlocking().single().body(); + } + + /** + * Gets a hybrid connection configuration by its name. + * Gets a hybrid connection configuration by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot), serviceCallback); + } + + /** + * Gets a hybrid connection configuration by its name. + * Gets a hybrid connection configuration by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable getRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot) { + return getRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).map(new Func1, RelayServiceConnectionEntityInner>() { + @Override + public RelayServiceConnectionEntityInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gets a hybrid connection configuration by its name. + * Gets a hybrid connection configuration by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a hybrid connection for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable> getRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (entityName == null) { + throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getRelayServiceConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getRelayServiceConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RelayServiceConnectionEntityInner object if successful. + */ + public RelayServiceConnectionEntityInner createOrUpdateRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + return createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).toBlocking().single().body(); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope), serviceCallback); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable createOrUpdateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + return createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).map(new Func1, RelayServiceConnectionEntityInner>() { + @Override + public RelayServiceConnectionEntityInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable> createOrUpdateRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (entityName == null) { + throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(connectionEnvelope); + return service.createOrUpdateRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = createOrUpdateRelayServiceConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateRelayServiceConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Deletes a relay service connection by its name. + * Deletes a relay service connection by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot) { + deleteRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).toBlocking().single().body(); + } + + /** + * Deletes a relay service connection by its name. + * Deletes a relay service connection by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot), serviceCallback); + } + + /** + * Deletes a relay service connection by its name. + * Deletes a relay service connection by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot) { + return deleteRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a relay service connection by its name. + * Deletes a relay service connection by its name. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete a hybrid connection for the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (entityName == null) { + throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteRelayServiceConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteRelayServiceConnectionSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the RelayServiceConnectionEntityInner object if successful. + */ + public RelayServiceConnectionEntityInner updateRelayServiceConnectionSlot(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + return updateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).toBlocking().single().body(); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope), serviceCallback); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable updateRelayServiceConnectionSlotAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + return updateRelayServiceConnectionSlotWithServiceResponseAsync(resourceGroupName, name, entityName, slot, connectionEnvelope).map(new Func1, RelayServiceConnectionEntityInner>() { + @Override + public RelayServiceConnectionEntityInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * Creates a new hybrid connection configuration (PUT), or updates an existing one (PATCH). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param entityName Name of the hybrid connection configuration. + * @param slot Name of the deployment slot. If a slot is not specified, the API will create or update a hybrid connection for the production slot. + * @param connectionEnvelope Details of the hybrid connection configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the RelayServiceConnectionEntityInner object + */ + public Observable> updateRelayServiceConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String entityName, String slot, RelayServiceConnectionEntityInner connectionEnvelope) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (entityName == null) { + throw new IllegalArgumentException("Parameter entityName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(connectionEnvelope); + return service.updateRelayServiceConnectionSlot(resourceGroupName, name, entityName, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateRelayServiceConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateRelayServiceConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets all scale-out instances of an app. + * Gets all scale-out instances of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SiteInstanceInner> object if successful. + */ + public PagedList listInstanceIdentifiersSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listInstanceIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listInstanceIdentifiersSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets all scale-out instances of an app. + * Gets all scale-out instances of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listInstanceIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listInstanceIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listInstanceIdentifiersSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets all scale-out instances of an app. + * Gets all scale-out instances of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SiteInstanceInner> object + */ + public Observable> listInstanceIdentifiersSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listInstanceIdentifiersSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets all scale-out instances of an app. + * Gets all scale-out instances of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SiteInstanceInner> object + */ + public Observable>> listInstanceIdentifiersSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listInstanceIdentifiersSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listInstanceIdentifiersSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets all scale-out instances of an app. + * Gets all scale-out instances of an app. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API gets the production slot instances. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SiteInstanceInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listInstanceIdentifiersSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listInstanceIdentifiersSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listInstanceIdentifiersSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listInstanceIdentifiersSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the MSDeployStatusInner object if successful. + */ + public MSDeployStatusInner getInstanceMsDeployStatusSlot(String resourceGroupName, String name, String slot, String instanceId) { + return getInstanceMsDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).toBlocking().single().body(); + } + + /** + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getInstanceMsDeployStatusSlotAsync(String resourceGroupName, String name, String slot, String instanceId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getInstanceMsDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId), serviceCallback); + } + + /** + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the MSDeployStatusInner object + */ + public Observable getInstanceMsDeployStatusSlotAsync(String resourceGroupName, String name, String slot, String instanceId) { + return getInstanceMsDeployStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).map(new Func1, MSDeployStatusInner>() { + @Override + public MSDeployStatusInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get the status of the last MSDeploy operation. + * Get the status of the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the MSDeployStatusInner object + */ + public Observable> getInstanceMsDeployStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getInstanceMsDeployStatusSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getInstanceMsDeployStatusSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getInstanceMsDeployStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the MSDeployStatusInner object if successful. + */ + public MSDeployStatusInner createInstanceMSDeployOperationSlot(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + return createInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).toBlocking().last().body(); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy), serviceCallback); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + return createInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).map(new Func1, MSDeployStatusInner>() { + @Override + public MSDeployStatusInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createInstanceMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (mSDeploy == null) { + throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(mSDeploy); + Observable> observable = service.createInstanceMSDeployOperationSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the MSDeployStatusInner object if successful. + */ + public MSDeployStatusInner beginCreateInstanceMSDeployOperationSlot(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + return beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).toBlocking().single().body(); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy), serviceCallback); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the MSDeployStatusInner object + */ + public Observable beginCreateInstanceMSDeployOperationSlotAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + return beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId, mSDeploy).map(new Func1, MSDeployStatusInner>() { + @Override + public MSDeployStatusInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Invoke the MSDeploy web app extension. + * Invoke the MSDeploy web app extension. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param mSDeploy Details of MSDeploy operation + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the MSDeployStatusInner object + */ + public Observable> beginCreateInstanceMSDeployOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId, MSDeploy mSDeploy) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (mSDeploy == null) { + throw new IllegalArgumentException("Parameter mSDeploy is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(mSDeploy); + return service.beginCreateInstanceMSDeployOperationSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), mSDeploy, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateInstanceMSDeployOperationSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateInstanceMSDeployOperationSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) + .register(409, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the MSDeployLogInner object if successful. + */ + public MSDeployLogInner getInstanceMSDeployLogSlot(String resourceGroupName, String name, String slot, String instanceId) { + return getInstanceMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).toBlocking().single().body(); + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getInstanceMSDeployLogSlotAsync(String resourceGroupName, String name, String slot, String instanceId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getInstanceMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId), serviceCallback); + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the MSDeployLogInner object + */ + public Observable getInstanceMSDeployLogSlotAsync(String resourceGroupName, String name, String slot, String instanceId) { + return getInstanceMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).map(new Func1, MSDeployLogInner>() { + @Override + public MSDeployLogInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get the MSDeploy Log for the last MSDeploy operation. + * Get the MSDeploy Log for the last MSDeploy operation. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of web app. + * @param slot Name of web app slot. If not specified then will default to production slot. + * @param instanceId ID of web app instance. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the MSDeployLogInner object + */ + public Observable> getInstanceMSDeployLogSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getInstanceMSDeployLogSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getInstanceMSDeployLogSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getInstanceMSDeployLogSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ProcessInfoInner> object if successful. + */ + public PagedList listInstanceProcessesSlot(final String resourceGroupName, final String name, final String slot, final String instanceId) { + ServiceResponse> response = listInstanceProcessesSlotSinglePageAsync(resourceGroupName, name, slot, instanceId).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listInstanceProcessesSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listInstanceProcessesSlotAsync(final String resourceGroupName, final String name, final String slot, final String instanceId, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listInstanceProcessesSlotSinglePageAsync(resourceGroupName, name, slot, instanceId), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listInstanceProcessesSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ProcessInfoInner> object + */ + public Observable> listInstanceProcessesSlotAsync(final String resourceGroupName, final String name, final String slot, final String instanceId) { + return listInstanceProcessesSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ProcessInfoInner> object + */ + public Observable>> listInstanceProcessesSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot, final String instanceId) { + return listInstanceProcessesSlotSinglePageAsync(resourceGroupName, name, slot, instanceId) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listInstanceProcessesSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + ServiceResponse> * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ProcessInfoInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listInstanceProcessesSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot, final String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listInstanceProcessesSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listInstanceProcessesSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listInstanceProcessesSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ProcessInfoInner object if successful. + */ + public ProcessInfoInner getInstanceProcessSlot(String resourceGroupName, String name, String processId, String slot, String instanceId) { + return getInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single().body(); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId), serviceCallback); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ProcessInfoInner object + */ + public Observable getInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + return getInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).map(new Func1, ProcessInfoInner>() { + @Override + public ProcessInfoInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ProcessInfoInner object + */ + public Observable> getInstanceProcessSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getInstanceProcessSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getInstanceProcessSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getInstanceProcessSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void deleteInstanceProcessSlot(String resourceGroupName, String name, String processId, String slot, String instanceId) { + deleteInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single().body(); + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId), serviceCallback); + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable deleteInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + return deleteInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> deleteInstanceProcessSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.deleteInstanceProcessSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteInstanceProcessSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteInstanceProcessSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(204, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the InputStream object if successful. + */ + public InputStream getInstanceProcessDumpSlot(String resourceGroupName, String name, String processId, String slot, String instanceId) { + return getInstanceProcessDumpSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single().body(); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getInstanceProcessDumpSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId), serviceCallback); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + public Observable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + return getInstanceProcessDumpSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).map(new Func1, InputStream>() { + @Override + public InputStream call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + public Observable> getInstanceProcessDumpSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getInstanceProcessDumpSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getInstanceProcessDumpSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getInstanceProcessDumpSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ProcessModuleInfoInner> object if successful. + */ + public PagedList listInstanceProcessModulesSlot(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + ServiceResponse> response = listInstanceProcessModulesSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listInstanceProcessModulesSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listInstanceProcessModulesSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listInstanceProcessModulesSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listInstanceProcessModulesSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ProcessModuleInfoInner> object + */ + public Observable> listInstanceProcessModulesSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + return listInstanceProcessModulesSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ProcessModuleInfoInner> object + */ + public Observable>> listInstanceProcessModulesSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + return listInstanceProcessModulesSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listInstanceProcessModulesSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * List module information for a process by its ID for a specific scaled-out instance in a web site. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + ServiceResponse> * @param processId PID. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + ServiceResponse> * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ProcessModuleInfoInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listInstanceProcessModulesSlotSinglePageAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listInstanceProcessModulesSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listInstanceProcessModulesSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listInstanceProcessModulesSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ProcessModuleInfoInner object if successful. + */ + public ProcessModuleInfoInner getInstanceProcessModuleSlot(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId) { + return getInstanceProcessModuleSlotWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress, slot, instanceId).toBlocking().single().body(); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getInstanceProcessModuleSlotAsync(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getInstanceProcessModuleSlotWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress, slot, instanceId), serviceCallback); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ProcessModuleInfoInner object + */ + public Observable getInstanceProcessModuleSlotAsync(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId) { + return getInstanceProcessModuleSlotWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress, slot, instanceId).map(new Func1, ProcessModuleInfoInner>() { + @Override + public ProcessModuleInfoInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get process information by its ID for a specific scaled-out instance in a web site. + * Get process information by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param baseAddress Module base address. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ProcessModuleInfoInner object + */ + public Observable> getInstanceProcessModuleSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (baseAddress == null) { + throw new IllegalArgumentException("Parameter baseAddress is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getInstanceProcessModuleSlot(resourceGroupName, name, processId, baseAddress, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getInstanceProcessModuleSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getInstanceProcessModuleSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ProcessThreadInfoInner> object if successful. + */ + public PagedList listInstanceProcessThreadsSlot(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + ServiceResponse> response = listInstanceProcessThreadsSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listInstanceProcessThreadsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listInstanceProcessThreadsSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listInstanceProcessThreadsSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listInstanceProcessThreadsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ProcessThreadInfoInner> object + */ + public Observable> listInstanceProcessThreadsSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + return listInstanceProcessThreadsSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ProcessThreadInfoInner> object + */ + public Observable>> listInstanceProcessThreadsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + return listInstanceProcessThreadsSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listInstanceProcessThreadsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Site name. + ServiceResponse> * @param processId PID. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + ServiceResponse> * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ProcessThreadInfoInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listInstanceProcessThreadsSlotSinglePageAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listInstanceProcessThreadsSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listInstanceProcessThreadsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listInstanceProcessThreadsSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the ProcessThreadInfoInner object if successful. + */ + public ProcessThreadInfoInner getInstanceProcessThreadSlot(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId) { + return getInstanceProcessThreadSlotWithServiceResponseAsync(resourceGroupName, name, processId, threadId, slot, instanceId).toBlocking().single().body(); + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getInstanceMSDeployLogSlotAsync(String resourceGroupName, String name, String slot, String instanceId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getInstanceMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId), serviceCallback); + public ServiceFuture getInstanceProcessThreadSlotAsync(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getInstanceProcessThreadSlotWithServiceResponseAsync(resourceGroupName, name, processId, threadId, slot, instanceId), serviceCallback); + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ProcessThreadInfoInner object + */ + public Observable getInstanceProcessThreadSlotAsync(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId) { + return getInstanceProcessThreadSlotWithServiceResponseAsync(resourceGroupName, name, processId, threadId, slot, instanceId).map(new Func1, ProcessThreadInfoInner>() { + @Override + public ProcessThreadInfoInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Site name. + * @param processId PID. + * @param threadId TID. + * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. + * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the ProcessThreadInfoInner object + */ + public Observable> getInstanceProcessThreadSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (processId == null) { + throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + } + if (threadId == null) { + throw new IllegalArgumentException("Parameter threadId is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (instanceId == null) { + throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getInstanceProcessThreadSlot(resourceGroupName, name, processId, threadId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getInstanceProcessThreadSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getInstanceProcessThreadSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(404, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Shows whether an app can be cloned to another resource group or subscription. + * Shows whether an app can be cloned to another resource group or subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SiteCloneabilityInner object if successful. + */ + public SiteCloneabilityInner isCloneableSlot(String resourceGroupName, String name, String slot) { + return isCloneableSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * Shows whether an app can be cloned to another resource group or subscription. + * Shows whether an app can be cloned to another resource group or subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture isCloneableSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(isCloneableSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * Shows whether an app can be cloned to another resource group or subscription. + * Shows whether an app can be cloned to another resource group or subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SiteCloneabilityInner object + */ + public Observable isCloneableSlotAsync(String resourceGroupName, String name, String slot) { + return isCloneableSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteCloneabilityInner>() { + @Override + public SiteCloneabilityInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Shows whether an app can be cloned to another resource group or subscription. + * Shows whether an app can be cloned to another resource group or subscription. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the SiteCloneabilityInner object + */ + public Observable> isCloneableSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.isCloneableSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = isCloneableSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse isCloneableSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * This is to allow calling via powershell and ARM template. + * This is to allow calling via powershell and ARM template. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the FunctionSecretsInner object if successful. + */ + public FunctionSecretsInner listSyncFunctionTriggersSlot(String resourceGroupName, String name, String slot) { + return listSyncFunctionTriggersSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * This is to allow calling via powershell and ARM template. + * This is to allow calling via powershell and ARM template. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture listSyncFunctionTriggersSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listSyncFunctionTriggersSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * This is to allow calling via powershell and ARM template. + * This is to allow calling via powershell and ARM template. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FunctionSecretsInner object + */ + public Observable listSyncFunctionTriggersSlotAsync(String resourceGroupName, String name, String slot) { + return listSyncFunctionTriggersSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, FunctionSecretsInner>() { + @Override + public FunctionSecretsInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * This is to allow calling via powershell and ARM template. + * This is to allow calling via powershell and ARM template. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the FunctionSecretsInner object + */ + public Observable> listSyncFunctionTriggersSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listSyncFunctionTriggersSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = listSyncFunctionTriggersSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse listSyncFunctionTriggersSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * Gets all metric definitions of an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceMetricDefinitionInner> object if successful. + */ + public PagedList listMetricDefinitionsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listMetricDefinitionsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listMetricDefinitionsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * Gets all metric definitions of an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listMetricDefinitionsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listMetricDefinitionsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listMetricDefinitionsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * Gets all metric definitions of an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceMetricDefinitionInner> object + */ + public Observable> listMetricDefinitionsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listMetricDefinitionsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * Gets all metric definitions of an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceMetricDefinitionInner> object + */ + public Observable>> listMetricDefinitionsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listMetricDefinitionsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listMetricDefinitionsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Gets all metric definitions of an app (or deployment slot, if specified). + * Gets all metric definitions of an app (or deployment slot, if specified). + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<ResourceMetricDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listMetricDefinitionsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listMetricDefinitionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listMetricDefinitionsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listMetricDefinitionsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + + /** + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<ResourceMetricInner> object if successful. + */ + public PagedList listMetricsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listMetricsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listMetricsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listMetricsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listMetricsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<ResourceMetricInner> object + */ + public Observable> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listMetricsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployLogInner object + * @return the observable to the PagedList<ResourceMetricInner> object */ - public Observable getInstanceMSDeployLogSlotAsync(String resourceGroupName, String name, String slot, String instanceId) { - return getInstanceMSDeployLogSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId).map(new Func1, MSDeployLogInner>() { - @Override - public MSDeployLogInner call(ServiceResponse response) { - return response.body(); - } - }); + public Observable>> listMetricsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listMetricsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listMetricsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); } /** - * Get the MSDeploy Log for the last MSDeploy operation. - * Get the MSDeploy Log for the last MSDeploy operation. + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of web app slot. If not specified then will default to production slot. - * @param instanceId ID of web app instance. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MSDeployLogInner object + * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable> getInstanceMSDeployLogSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, String instanceId) { + public Observable>> listMetricsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -26835,22 +30003,21 @@ public Observable> getInstanceMSDeployLogSlotW if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getInstanceMSDeployLogSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + final Boolean details = null; + final String filter = null; + return service.listMetricsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), details, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getInstanceMSDeployLogSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listMetricsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -26858,119 +30025,116 @@ public Observable> call(Response }); } - private ServiceResponse getInstanceMSDeployLogSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) - .build(response); - } - /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param details Specify "true" to include metric details in the response. It is "false" by default. + * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ProcessInfoInner> object if successful. + * @return the PagedList<ResourceMetricInner> object if successful. */ - public PagedList listInstanceProcessesSlot(final String resourceGroupName, final String name, final String slot, final String instanceId) { - ServiceResponse> response = listInstanceProcessesSlotSinglePageAsync(resourceGroupName, name, slot, instanceId).toBlocking().single(); - return new PagedList(response.body()) { + public PagedList listMetricsSlot(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { + ServiceResponse> response = listMetricsSlotSinglePageAsync(resourceGroupName, name, slot, details, filter).toBlocking().single(); + return new PagedList(response.body()) { @Override - public Page nextPage(String nextPageLink) { - return listInstanceProcessesSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + public Page nextPage(String nextPageLink) { + return listMetricsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param details Specify "true" to include metric details in the response. It is "false" by default. + * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listInstanceProcessesSlotAsync(final String resourceGroupName, final String name, final String slot, final String instanceId, final ListOperationCallback serviceCallback) { + public ServiceFuture> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listInstanceProcessesSlotSinglePageAsync(resourceGroupName, name, slot, instanceId), - new Func1>>>() { + listMetricsSlotSinglePageAsync(resourceGroupName, name, slot, details, filter), + new Func1>>>() { @Override - public Observable>> call(String nextPageLink) { - return listInstanceProcessesSlotNextSinglePageAsync(nextPageLink); + public Observable>> call(String nextPageLink) { + return listMetricsSlotNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param details Specify "true" to include metric details in the response. It is "false" by default. + * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessInfoInner> object + * @return the observable to the PagedList<ResourceMetricInner> object */ - public Observable> listInstanceProcessesSlotAsync(final String resourceGroupName, final String name, final String slot, final String instanceId) { - return listInstanceProcessesSlotWithServiceResponseAsync(resourceGroupName, name, slot, instanceId) - .map(new Func1>, Page>() { + public Observable> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { + return listMetricsSlotWithServiceResponseAsync(resourceGroupName, name, slot, details, filter) + .map(new Func1>, Page>() { @Override - public Page call(ServiceResponse> response) { + public Page call(ServiceResponse> response) { return response.body(); } }); } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param details Specify "true" to include metric details in the response. It is "false" by default. + * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessInfoInner> object + * @return the observable to the PagedList<ResourceMetricInner> object */ - public Observable>> listInstanceProcessesSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot, final String instanceId) { - return listInstanceProcessesSlotSinglePageAsync(resourceGroupName, name, slot, instanceId) - .concatMap(new Func1>, Observable>>>() { + public Observable>> listMetricsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { + return listMetricsSlotSinglePageAsync(resourceGroupName, name, slot, details, filter) + .concatMap(new Func1>, Observable>>>() { @Override - public Observable>> call(ServiceResponse> page) { + public Observable>> call(ServiceResponse> page) { String nextPageLink = page.body().nextPageLink(); if (nextPageLink == null) { return Observable.just(page); } - return Observable.just(page).concatWith(listInstanceProcessesSlotNextWithServiceResponseAsync(nextPageLink)); + return Observable.just(page).concatWith(listMetricsSlotNextWithServiceResponseAsync(nextPageLink)); } }); } /** - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. - * Get list of processes for a web site, or a deployment slot, or for a specific scaled-out instance in a web site. + * Gets performance metrics of an app (or deployment slot, if specified). + * Gets performance metrics of an app (or deployment slot, if specified). * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - ServiceResponse> * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Name of the app. + ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + ServiceResponse> * @param details Specify "true" to include metric details in the response. It is "false" by default. + ServiceResponse> * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ProcessInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listInstanceProcessesSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot, final String instanceId) { + public Observable>> listMetricsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -26980,22 +30144,19 @@ public Observable>> listInstanceProcesses if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listInstanceProcessesSlot(resourceGroupName, name, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listMetricsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), details, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listInstanceProcessesSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> result = listMetricsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -27003,110 +30164,95 @@ public Observable>> call(Response> listInstanceProcessesSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> listMetricsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of web app. + * @param slot Name of the deployment slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ProcessInfoInner object if successful. + * @return the MigrateMySqlStatusInner object if successful. */ - public ProcessInfoInner getInstanceProcessSlot(String resourceGroupName, String name, String processId, String slot, String instanceId) { - return getInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single().body(); + public MigrateMySqlStatusInner getMigrateMySqlStatusSlot(String resourceGroupName, String name, String slot) { + return getMigrateMySqlStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of web app. + * @param slot Name of the deployment slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId), serviceCallback); + public ServiceFuture getMigrateMySqlStatusSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getMigrateMySqlStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of web app. + * @param slot Name of the deployment slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessInfoInner object + * @return the observable to the MigrateMySqlStatusInner object */ - public Observable getInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { - return getInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).map(new Func1, ProcessInfoInner>() { + public Observable getMigrateMySqlStatusSlotAsync(String resourceGroupName, String name, String slot) { + return getMigrateMySqlStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, MigrateMySqlStatusInner>() { @Override - public ProcessInfoInner call(ServiceResponse response) { + public MigrateMySqlStatusInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of web app. + * @param slot Name of the deployment slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessInfoInner object + * @return the observable to the MigrateMySqlStatusInner object */ - public Observable> getInstanceProcessSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + public Observable> getMigrateMySqlStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getInstanceProcessSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getMigrateMySqlStatusSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getInstanceProcessSlotDelegate(response); + ServiceResponse clientResponse = getMigrateMySqlStatusSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -27115,109 +30261,95 @@ public Observable> call(Response }); } - private ServiceResponse getInstanceProcessSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getMigrateMySqlStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual Network. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the SwiftVirtualNetworkInner object if successful. */ - public void deleteInstanceProcessSlot(String resourceGroupName, String name, String processId, String slot, String instanceId) { - deleteInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single().body(); + public SwiftVirtualNetworkInner getSwiftVirtualNetworkConnectionSlot(String resourceGroupName, String name, String slot) { + return getSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual Network. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId), serviceCallback); + public ServiceFuture getSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual Network. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable deleteInstanceProcessSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { - return deleteInstanceProcessSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).map(new Func1, Void>() { + public Observable getSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot) { + return getSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SwiftVirtualNetworkInner>() { @Override - public Void call(ServiceResponse response) { + public SwiftVirtualNetworkInner call(ServiceResponse response) { return response.body(); } }); } /** - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. - * Terminate a process by its ID for a web site, or a deployment slot, or specific scaled-out instance in a web site. + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual Network. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable> deleteInstanceProcessSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + public Observable> getSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.deleteInstanceProcessSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getSwiftVirtualNetworkConnectionSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteInstanceProcessSlotDelegate(response); + ServiceResponse clientResponse = getSwiftVirtualNetworkConnectionSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -27226,110 +30358,111 @@ public Observable> call(Response response) { }); } - private ServiceResponse deleteInstanceProcessSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(204, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse getSwiftVirtualNetworkConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the InputStream object if successful. + * @return the SwiftVirtualNetworkInner object if successful. */ - public InputStream getInstanceProcessDumpSlot(String resourceGroupName, String name, String processId, String slot, String instanceId) { - return getInstanceProcessDumpSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single().body(); + public SwiftVirtualNetworkInner createOrUpdateSwiftVirtualNetworkConnectionSlot(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).toBlocking().single().body(); } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getInstanceProcessDumpSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId), serviceCallback); + public ServiceFuture createOrUpdateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope), serviceCallback); } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable getInstanceProcessDumpSlotAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { - return getInstanceProcessDumpSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId).map(new Func1, InputStream>() { + public Observable createOrUpdateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { @Override - public InputStream call(ServiceResponse response) { + public SwiftVirtualNetworkInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. - * Get a memory dump of a process by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable> getInstanceProcessDumpSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String slot, String instanceId) { + public Observable> createOrUpdateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getInstanceProcessDumpSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(connectionEnvelope); + return service.createOrUpdateSwiftVirtualNetworkConnectionSlot(resourceGroupName, name, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getInstanceProcessDumpSlotDelegate(response); + ServiceResponse clientResponse = createOrUpdateSwiftVirtualNetworkConnectionSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -27338,152 +30471,95 @@ public Observable> call(Response resp }); } - private ServiceResponse getInstanceProcessDumpSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse createOrUpdateSwiftVirtualNetworkConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ProcessModuleInfoInner> object if successful. */ - public PagedList listInstanceProcessModulesSlot(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { - ServiceResponse> response = listInstanceProcessModulesSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listInstanceProcessModulesSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public void deleteSwiftVirtualNetworkSlot(String resourceGroupName, String name, String slot) { + deleteSwiftVirtualNetworkSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listInstanceProcessModulesSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listInstanceProcessModulesSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listInstanceProcessModulesSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture deleteSwiftVirtualNetworkSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSwiftVirtualNetworkSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessModuleInfoInner> object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listInstanceProcessModulesSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { - return listInstanceProcessModulesSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable deleteSwiftVirtualNetworkSlotAsync(String resourceGroupName, String name, String slot) { + return deleteSwiftVirtualNetworkSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); } /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. + * Deletes a Swift Virtual Network connection from an app (or deployment slot). + * Deletes a Swift Virtual Network connection from an app (or deployment slot). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessModuleInfoInner> object - */ - public Observable>> listInstanceProcessModulesSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { - return listInstanceProcessModulesSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listInstanceProcessModulesSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * List module information for a process by its ID for a specific scaled-out instance in a web site. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. - ServiceResponse> * @param processId PID. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - ServiceResponse> * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the connection for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ProcessModuleInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the {@link ServiceResponse} object if successful. */ - public Observable>> listInstanceProcessModulesSlotSinglePageAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + public Observable> deleteSwiftVirtualNetworkSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - return service.listInstanceProcessModulesSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + } + return service.deleteSwiftVirtualNetworkSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listInstanceProcessModulesSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = deleteSwiftVirtualNetworkSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -27491,117 +30567,112 @@ public Observable>> call(Response> listInstanceProcessModulesSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse deleteSwiftVirtualNetworkSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ProcessModuleInfoInner object if successful. + * @return the SwiftVirtualNetworkInner object if successful. */ - public ProcessModuleInfoInner getInstanceProcessModuleSlot(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId) { - return getInstanceProcessModuleSlotWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress, slot, instanceId).toBlocking().single().body(); + public SwiftVirtualNetworkInner updateSwiftVirtualNetworkConnectionSlot(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).toBlocking().single().body(); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getInstanceProcessModuleSlotAsync(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getInstanceProcessModuleSlotWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress, slot, instanceId), serviceCallback); + public ServiceFuture updateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope), serviceCallback); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessModuleInfoInner object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable getInstanceProcessModuleSlotAsync(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId) { - return getInstanceProcessModuleSlotWithServiceResponseAsync(resourceGroupName, name, processId, baseAddress, slot, instanceId).map(new Func1, ProcessModuleInfoInner>() { + public Observable updateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { @Override - public ProcessModuleInfoInner call(ServiceResponse response) { + public SwiftVirtualNetworkInner call(ServiceResponse response) { return response.body(); } }); } /** - * Get process information by its ID for a specific scaled-out instance in a web site. - * Get process information by its ID for a specific scaled-out instance in a web site. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. + * Integrates this Web App with a Virtual Network. This requires that 1) "swiftSupported" is true when doing a GET against this resource, and 2) that the target Subnet has already been delegated, and is not + in use by another App Service Plan other than the one this App is in. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param baseAddress Module base address. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will add or update connections for the production slot. + * @param connectionEnvelope Properties of the Virtual Network connection. See example. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessModuleInfoInner object + * @return the observable to the SwiftVirtualNetworkInner object */ - public Observable> getInstanceProcessModuleSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String baseAddress, String slot, String instanceId) { + public Observable> updateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } - if (baseAddress == null) { - throw new IllegalArgumentException("Parameter baseAddress is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } + if (connectionEnvelope == null) { + throw new IllegalArgumentException("Parameter connectionEnvelope is required and cannot be null."); + } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getInstanceProcessModuleSlot(resourceGroupName, name, processId, baseAddress, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + Validator.validate(connectionEnvelope); + return service.updateSwiftVirtualNetworkConnectionSlot(resourceGroupName, name, slot, this.client.subscriptionId(), connectionEnvelope, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getInstanceProcessModuleSlotDelegate(response); + ServiceResponse clientResponse = updateSwiftVirtualNetworkConnectionSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -27610,152 +30681,103 @@ public Observable> call(Response getInstanceProcessModuleSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse updateSwiftVirtualNetworkConnectionSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ProcessThreadInfoInner> object if successful. + * @return the NetworkFeaturesInner object if successful. */ - public PagedList listInstanceProcessThreadsSlot(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { - ServiceResponse> response = listInstanceProcessThreadsSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listInstanceProcessThreadsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public NetworkFeaturesInner listNetworkFeaturesSlot(String resourceGroupName, String name, String view, String slot) { + return listNetworkFeaturesSlotWithServiceResponseAsync(resourceGroupName, name, view, slot).toBlocking().single().body(); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listInstanceProcessThreadsSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listInstanceProcessThreadsSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listInstanceProcessThreadsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture listNetworkFeaturesSlotAsync(String resourceGroupName, String name, String view, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listNetworkFeaturesSlotWithServiceResponseAsync(resourceGroupName, name, view, slot), serviceCallback); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessThreadInfoInner> object + * @return the observable to the NetworkFeaturesInner object */ - public Observable> listInstanceProcessThreadsSlotAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { - return listInstanceProcessThreadsSlotWithServiceResponseAsync(resourceGroupName, name, processId, slot, instanceId) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable listNetworkFeaturesSlotAsync(String resourceGroupName, String name, String view, String slot) { + return listNetworkFeaturesSlotWithServiceResponseAsync(resourceGroupName, name, view, slot).map(new Func1, NetworkFeaturesInner>() { + @Override + public NetworkFeaturesInner call(ServiceResponse response) { + return response.body(); + } + }); } /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. + * Gets all network features used by the app (or deployment slot, if specified). + * Gets all network features used by the app (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ProcessThreadInfoInner> object - */ - public Observable>> listInstanceProcessThreadsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { - return listInstanceProcessThreadsSlotSinglePageAsync(resourceGroupName, name, processId, slot, instanceId) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listInstanceProcessThreadsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * List the threads in a process by its ID for a specific scaled-out instance in a web site. - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Site name. - ServiceResponse> * @param processId PID. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - ServiceResponse> * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param view The type of view. This can either be "summary" or "detailed". + * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ProcessThreadInfoInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the NetworkFeaturesInner object */ - public Observable>> listInstanceProcessThreadsSlotSinglePageAsync(final String resourceGroupName, final String name, final String processId, final String slot, final String instanceId) { + public Observable> listNetworkFeaturesSlotWithServiceResponseAsync(String resourceGroupName, String name, String view, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); + if (view == null) { + throw new IllegalArgumentException("Parameter view is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listInstanceProcessThreadsSlot(resourceGroupName, name, processId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + return service.listNetworkFeaturesSlot(resourceGroupName, name, view, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable>> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse> result = listInstanceProcessThreadsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse clientResponse = listNetworkFeaturesSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -27763,117 +30785,103 @@ public Observable>> call(Response> listInstanceProcessThreadsSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse listNetworkFeaturesSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the ProcessThreadInfoInner object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public ProcessThreadInfoInner getInstanceProcessThreadSlot(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId) { - return getInstanceProcessThreadSlotWithServiceResponseAsync(resourceGroupName, name, processId, threadId, slot, instanceId).toBlocking().single().body(); + public List getNetworkTraceOperationSlot(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, operationId, slot).toBlocking().single().body(); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getInstanceProcessThreadSlotAsync(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getInstanceProcessThreadSlotWithServiceResponseAsync(resourceGroupName, name, processId, threadId, slot, instanceId), serviceCallback); + public ServiceFuture> getNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String operationId, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, operationId, slot), serviceCallback); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessThreadInfoInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable getInstanceProcessThreadSlotAsync(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId) { - return getInstanceProcessThreadSlotWithServiceResponseAsync(resourceGroupName, name, processId, threadId, slot, instanceId).map(new Func1, ProcessThreadInfoInner>() { + public Observable> getNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, operationId, slot).map(new Func1>, List>() { @Override - public ProcessThreadInfoInner call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. - * Get thread information by Thread ID for a specific process, in a specific scaled-out instance in a web site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Site name. - * @param processId PID. - * @param threadId TID. - * @param slot Name of the deployment slot. If a slot is not specified, the API returns deployments for the production slot. - * @param instanceId ID of a specific scaled-out instance. This is the value of the name property in the JSON response from "GET api/sites/{siteName}/instances". + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the ProcessThreadInfoInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> getInstanceProcessThreadSlotWithServiceResponseAsync(String resourceGroupName, String name, String processId, String threadId, String slot, String instanceId) { + public Observable>> getNetworkTraceOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String operationId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (processId == null) { - throw new IllegalArgumentException("Parameter processId is required and cannot be null."); - } - if (threadId == null) { - throw new IllegalArgumentException("Parameter threadId is required and cannot be null."); + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } - if (instanceId == null) { - throw new IllegalArgumentException("Parameter instanceId is required and cannot be null."); - } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getInstanceProcessThreadSlot(resourceGroupName, name, processId, threadId, slot, instanceId, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getNetworkTraceOperationSlot(resourceGroupName, name, operationId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getInstanceProcessThreadSlotDelegate(response); + ServiceResponse> clientResponse = getNetworkTraceOperationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -27882,75 +30890,75 @@ public Observable> call(Response getInstanceProcessThreadSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> getNetworkTraceOperationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Shows whether an app can be cloned to another resource group or subscription. - * Shows whether an app can be cloned to another resource group or subscription. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the SiteCloneabilityInner object if successful. + * @return the String object if successful. */ - public SiteCloneabilityInner isCloneableSlot(String resourceGroupName, String name, String slot) { - return isCloneableSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public String startWebSiteNetworkTraceSlot(String resourceGroupName, String name, String slot) { + return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Shows whether an app can be cloned to another resource group or subscription. - * Shows whether an app can be cloned to another resource group or subscription. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture isCloneableSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(isCloneableSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Shows whether an app can be cloned to another resource group or subscription. - * Shows whether an app can be cloned to another resource group or subscription. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteCloneabilityInner object + * @return the observable to the String object */ - public Observable isCloneableSlotAsync(String resourceGroupName, String name, String slot) { - return isCloneableSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SiteCloneabilityInner>() { + public Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, String>() { @Override - public SiteCloneabilityInner call(ServiceResponse response) { + public String call(ServiceResponse response) { return response.body(); } }); } /** - * Shows whether an app can be cloned to another resource group or subscription. - * Shows whether an app can be cloned to another resource group or subscription. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. By default, this API returns information on the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the SiteCloneabilityInner object + * @return the observable to the String object */ - public Observable> isCloneableSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> startWebSiteNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -27966,12 +30974,15 @@ public Observable> isCloneableSlotWithSer if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.isCloneableSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + return service.startWebSiteNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = isCloneableSlotDelegate(response); + ServiceResponse clientResponse = startWebSiteNetworkTraceSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -27980,74 +30991,79 @@ public Observable> call(Response isCloneableSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** - * This is to allow calling via powershell and ARM template. - * This is to allow calling via powershell and ARM template. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the FunctionSecretsInner object if successful. + * @return the String object if successful. */ - public FunctionSecretsInner listSyncFunctionTriggersSlot(String resourceGroupName, String name, String slot) { - return listSyncFunctionTriggersSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public String startWebSiteNetworkTraceSlot(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); } /** - * This is to allow calling via powershell and ARM template. - * This is to allow calling via powershell and ARM template. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listSyncFunctionTriggersSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listSyncFunctionTriggersSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); } /** - * This is to allow calling via powershell and ARM template. - * This is to allow calling via powershell and ARM template. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionSecretsInner object + * @return the observable to the String object */ - public Observable listSyncFunctionTriggersSlotAsync(String resourceGroupName, String name, String slot) { - return listSyncFunctionTriggersSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, FunctionSecretsInner>() { + public Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).map(new Func1, String>() { @Override - public FunctionSecretsInner call(ServiceResponse response) { + public String call(ServiceResponse response) { return response.body(); } }); } /** - * This is to allow calling via powershell and ARM template. - * This is to allow calling via powershell and ARM template. + * Start capturing network packets for the site (To be deprecated). + * Start capturing network packets for the site (To be deprecated). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will restore a backup of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the FunctionSecretsInner object + * @return the observable to the String object */ - public Observable> listSyncFunctionTriggersSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> startWebSiteNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -28063,12 +31079,12 @@ public Observable> listSyncFunctionTrigger if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSyncFunctionTriggersSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.startWebSiteNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listSyncFunctionTriggersSlotDelegate(response); + ServiceResponse clientResponse = startWebSiteNetworkTraceSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -28077,113 +31093,74 @@ public Observable> call(Response listSyncFunctionTriggersSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse startWebSiteNetworkTraceSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets all metric definitions of an app (or deployment slot, if specified). - * Gets all metric definitions of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ResourceMetricDefinitionInner> object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PagedList listMetricDefinitionsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listMetricDefinitionsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listMetricDefinitionsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public List startWebSiteNetworkTraceOperationSlot(String resourceGroupName, String name, String slot) { + return startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().last().body(); } /** - * Gets all metric definitions of an app (or deployment slot, if specified). - * Gets all metric definitions of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listMetricDefinitionsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listMetricDefinitionsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listMetricDefinitionsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture> startWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets all metric definitions of an app (or deployment slot, if specified). - * Gets all metric definitions of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ResourceMetricDefinitionInner> object + * @return the observable for the request */ - public Observable> listMetricDefinitionsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listMetricDefinitionsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable> startWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot) { + return startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Gets all metric definitions of an app (or deployment slot, if specified). - * Gets all metric definitions of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ResourceMetricDefinitionInner> object - */ - public Observable>> listMetricDefinitionsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listMetricDefinitionsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listMetricDefinitionsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets all metric definitions of an app (or deployment slot, if specified). - * Gets all metric definitions of an app (or deployment slot, if specified). - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will get metric definitions of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ResourceMetricDefinitionInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable for the request */ - public Observable>> listMetricDefinitionsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable>> startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -28199,127 +31176,85 @@ public Observable>> listMetr if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listMetricDefinitionsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listMetricDefinitionsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse> listMetricDefinitionsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + Observable> observable = service.startWebSiteNetworkTraceOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); } - /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ResourceMetricInner> object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PagedList listMetricsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listMetricsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listMetricsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public List startWebSiteNetworkTraceOperationSlot(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).toBlocking().last().body(); } /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listMetricsSlotSinglePageAsync(resourceGroupName, name, slot), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listMetricsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); - } - - /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ResourceMetricInner> object - */ - public Observable> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listMetricsSlotWithServiceResponseAsync(resourceGroupName, name, slot) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public ServiceFuture> startWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); } /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ResourceMetricInner> object + * @return the observable for the request */ - public Observable>> listMetricsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listMetricsSlotSinglePageAsync(resourceGroupName, name, slot) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listMetricsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); + public Observable> startWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable for the request */ - public Observable>> listMetricsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable>> startWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -28335,132 +31270,71 @@ public Observable>> listMetricsSlotSin if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final Boolean details = null; - final String filter = null; - return service.listMetricsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), details, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { - @Override - public Observable>> call(Response response) { - try { - ServiceResponse> result = listMetricsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); + Observable> observable = service.startWebSiteNetworkTraceOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); } /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. - * @param details Specify "true" to include metric details in the response. It is "false" by default. - * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the PagedList<ResourceMetricInner> object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public PagedList listMetricsSlot(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { - ServiceResponse> response = listMetricsSlotSinglePageAsync(resourceGroupName, name, slot, details, filter).toBlocking().single(); - return new PagedList(response.body()) { - @Override - public Page nextPage(String nextPageLink) { - return listMetricsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); - } - }; + public List beginStartWebSiteNetworkTraceOperationSlot(String resourceGroupName, String name, String slot) { + return beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. - * @param details Specify "true" to include metric details in the response. It is "false" by default. - * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter, final ListOperationCallback serviceCallback) { - return AzureServiceFuture.fromPageResponse( - listMetricsSlotSinglePageAsync(resourceGroupName, name, slot, details, filter), - new Func1>>>() { - @Override - public Observable>> call(String nextPageLink) { - return listMetricsSlotNextSinglePageAsync(nextPageLink); - } - }, - serviceCallback); + public ServiceFuture> beginStartWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. - * @param details Specify "true" to include metric details in the response. It is "false" by default. - * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ResourceMetricInner> object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> listMetricsSlotAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { - return listMetricsSlotWithServiceResponseAsync(resourceGroupName, name, slot, details, filter) - .map(new Func1>, Page>() { - @Override - public Page call(ServiceResponse> response) { - return response.body(); - } - }); + public Observable> beginStartWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot) { + return beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); } /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. - * @param details Specify "true" to include metric details in the response. It is "false" by default. - * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the PagedList<ResourceMetricInner> object - */ - public Observable>> listMetricsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { - return listMetricsSlotSinglePageAsync(resourceGroupName, name, slot, details, filter) - .concatMap(new Func1>, Observable>>>() { - @Override - public Observable>> call(ServiceResponse> page) { - String nextPageLink = page.body().nextPageLink(); - if (nextPageLink == null) { - return Observable.just(page); - } - return Observable.just(page).concatWith(listMetricsSlotNextWithServiceResponseAsync(nextPageLink)); - } - }); - } - - /** - * Gets performance metrics of an app (or deployment slot, if specified). - * Gets performance metrics of an app (or deployment slot, if specified). - * - ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. - ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will get metrics of the production slot. - ServiceResponse> * @param details Specify "true" to include metric details in the response. It is "false" by default. - ServiceResponse> * @param filter Return only metrics specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the PagedList<ResourceMetricInner> object wrapped in {@link ServiceResponse} if successful. + * @return the observable to the List<NetworkTraceInner> object */ - public Observable>> listMetricsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot, final Boolean details, final String filter) { + public Observable>> beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -28476,13 +31350,16 @@ public Observable>> listMetricsSlotSin if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listMetricsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), details, filter, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + return service.beginStartWebSiteNetworkTraceOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> result = listMetricsSlotDelegate(response); - return Observable.just(new ServiceResponse>(result.body(), result.response())); + ServiceResponse> clientResponse = beginStartWebSiteNetworkTraceOperationSlotDelegate(response); + return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } @@ -28490,74 +31367,79 @@ public Observable>> call(Response> listMetricsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) - .registerError(DefaultErrorResponseException.class) - .build(response); - } - /** - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of the deployment slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the MigrateMySqlStatusInner object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public MigrateMySqlStatusInner getMigrateMySqlStatusSlot(String resourceGroupName, String name, String slot) { - return getMigrateMySqlStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public List beginStartWebSiteNetworkTraceOperationSlot(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); } /** - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of the deployment slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getMigrateMySqlStatusSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(getMigrateMySqlStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture> beginStartWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); } /** - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of the deployment slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MigrateMySqlStatusInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable getMigrateMySqlStatusSlotAsync(String resourceGroupName, String name, String slot) { - return getMigrateMySqlStatusSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, MigrateMySqlStatusInner>() { + public Observable> beginStartWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { @Override - public MigrateMySqlStatusInner call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. - * Returns the status of MySql in app migration, if one is active, and whether or not MySql in app is enabled. + * Start capturing network packets for the site. + * Start capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of web app. - * @param slot Name of the deployment slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the MigrateMySqlStatusInner object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> getMigrateMySqlStatusSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable>> beginStartWebSiteNetworkTraceOperationSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -28573,12 +31455,12 @@ public Observable> getMigrateMySqlStatu if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.getMigrateMySqlStatusSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.beginStartWebSiteNetworkTraceOperationSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = getMigrateMySqlStatusSlotDelegate(response); + ServiceResponse> clientResponse = beginStartWebSiteNetworkTraceOperationSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -28587,87 +31469,80 @@ public Observable> call(Response getMigrateMySqlStatusSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> beginStartWebSiteNetworkTraceOperationSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". - * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the NetworkFeaturesInner object if successful. */ - public NetworkFeaturesInner listNetworkFeaturesSlot(String resourceGroupName, String name, String view, String slot) { - return listNetworkFeaturesSlotWithServiceResponseAsync(resourceGroupName, name, view, slot).toBlocking().single().body(); + public void stopWebSiteNetworkTraceSlot(String resourceGroupName, String name, String slot) { + stopWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". - * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture listNetworkFeaturesSlotAsync(String resourceGroupName, String name, String view, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listNetworkFeaturesSlotWithServiceResponseAsync(resourceGroupName, name, view, slot), serviceCallback); + public ServiceFuture stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". - * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the NetworkFeaturesInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable listNetworkFeaturesSlotAsync(String resourceGroupName, String name, String view, String slot) { - return listNetworkFeaturesSlotWithServiceResponseAsync(resourceGroupName, name, view, slot).map(new Func1, NetworkFeaturesInner>() { + public Observable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + return stopWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { @Override - public NetworkFeaturesInner call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); } /** - * Gets all network features used by the app (or deployment slot, if specified). - * Gets all network features used by the app (or deployment slot, if specified). + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param view The type of view. This can either be "summary" or "detailed". - * @param slot Name of the deployment slot. If a slot is not specified, the API will get network features for the production slot. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the NetworkFeaturesInner object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> listNetworkFeaturesSlotWithServiceResponseAsync(String resourceGroupName, String name, String view, String slot) { + public Observable> stopWebSiteNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } - if (view == null) { - throw new IllegalArgumentException("Parameter view is required and cannot be null."); - } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -28677,12 +31552,12 @@ public Observable> listNetworkFeaturesSlot if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listNetworkFeaturesSlot(resourceGroupName, name, view, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.stopWebSiteNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = listNetworkFeaturesSlotDelegate(response); + ServiceResponse clientResponse = stopWebSiteNetworkTraceSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -28691,81 +31566,88 @@ public Observable> call(Response listNetworkFeaturesSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(404, new TypeToken() { }.getType()) + private ServiceResponse stopWebSiteNetworkTraceSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the String object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public String startWebSiteNetworkTraceSlot(String resourceGroupName, String name, String slot) { - return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public List getNetworkTracesSlot(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTracesSlotWithServiceResponseAsync(resourceGroupName, name, operationId, slot).toBlocking().single().body(); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture> getNetworkTracesSlotAsync(String resourceGroupName, String name, String operationId, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTracesSlotWithServiceResponseAsync(resourceGroupName, name, operationId, slot), serviceCallback); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { - return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, String>() { + public Observable> getNetworkTracesSlotAsync(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTracesSlotWithServiceResponseAsync(resourceGroupName, name, operationId, slot).map(new Func1>, List>() { @Override - public String call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> startWebSiteNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable>> getNetworkTracesSlotWithServiceResponseAsync(String resourceGroupName, String name, String operationId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -28775,15 +31657,12 @@ public Observable> startWebSiteNetworkTraceSlotWithServi if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final Integer durationInSeconds = null; - final Integer maxFrameLength = null; - final String sasUrl = null; - return service.startWebSiteNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getNetworkTracesSlot(resourceGroupName, name, operationId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = startWebSiteNetworkTraceSlotDelegate(response); + ServiceResponse> clientResponse = getNetworkTracesSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -28792,85 +31671,87 @@ public Observable> call(Response response) }); } + private ServiceResponse> getNetworkTracesSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the String object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public String startWebSiteNetworkTraceSlot(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { - return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); + public List getNetworkTraceOperationSlotV2(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTraceOperationSlotV2WithServiceResponseAsync(resourceGroupName, name, operationId, slot).toBlocking().single().body(); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); + public ServiceFuture> getNetworkTraceOperationSlotV2Async(String resourceGroupName, String name, String operationId, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTraceOperationSlotV2WithServiceResponseAsync(resourceGroupName, name, operationId, slot), serviceCallback); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { - return startWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).map(new Func1, String>() { + public Observable> getNetworkTraceOperationSlotV2Async(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTraceOperationSlotV2WithServiceResponseAsync(resourceGroupName, name, operationId, slot).map(new Func1>, List>() { @Override - public String call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Start capturing network packets for the site. - * Start capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. - * @param durationInSeconds The duration to keep capturing in seconds. - * @param maxFrameLength The maximum frame length in bytes (Optional). - * @param sasUrl The Blob URL to store capture file. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> startWebSiteNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + public Observable>> getNetworkTraceOperationSlotV2WithServiceResponseAsync(String resourceGroupName, String name, String operationId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -28880,12 +31761,12 @@ public Observable> startWebSiteNetworkTraceSlotWithServi if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.startWebSiteNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getNetworkTraceOperationSlotV2(resourceGroupName, name, operationId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = startWebSiteNetworkTraceSlotDelegate(response); + ServiceResponse> clientResponse = getNetworkTraceOperationSlotV2Delegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -28894,80 +31775,88 @@ public Observable> call(Response response) }); } - private ServiceResponse startWebSiteNetworkTraceSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> getNetworkTraceOperationSlotV2Delegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws DefaultErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the String object if successful. + * @return the List<NetworkTraceInner> object if successful. */ - public String stopWebSiteNetworkTraceSlot(String resourceGroupName, String name, String slot) { - return stopWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public List getNetworkTracesSlotV2(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTracesSlotV2WithServiceResponseAsync(resourceGroupName, name, operationId, slot).toBlocking().single().body(); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(stopWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture> getNetworkTracesSlotV2Async(String resourceGroupName, String name, String operationId, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getNetworkTracesSlotV2WithServiceResponseAsync(resourceGroupName, name, operationId, slot), serviceCallback); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { - return stopWebSiteNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, String>() { + public Observable> getNetworkTracesSlotV2Async(String resourceGroupName, String name, String operationId, String slot) { + return getNetworkTracesSlotV2WithServiceResponseAsync(resourceGroupName, name, operationId, slot).map(new Func1>, List>() { @Override - public String call(ServiceResponse response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Stop ongoing capturing network packets for the site. - * Stop ongoing capturing network packets for the site. + * Gets a named operation for a network trace capturing (or deployment slot, if specified). + * Gets a named operation for a network trace capturing (or deployment slot, if specified). * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name The name of the web app. - * @param slot The name of the slot for this web app. + * @param name Name of the app. + * @param operationId GUID of the operation. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the String object + * @return the observable to the List<NetworkTraceInner> object */ - public Observable> stopWebSiteNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable>> getNetworkTracesSlotV2WithServiceResponseAsync(String resourceGroupName, String name, String operationId, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } + if (operationId == null) { + throw new IllegalArgumentException("Parameter operationId is required and cannot be null."); + } if (slot == null) { throw new IllegalArgumentException("Parameter slot is required and cannot be null."); } @@ -28977,12 +31866,12 @@ public Observable> stopWebSiteNetworkTraceSlotWithServic if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.stopWebSiteNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.getNetworkTracesSlotV2(resourceGroupName, name, operationId, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = stopWebSiteNetworkTraceSlotDelegate(response); + ServiceResponse> clientResponse = getNetworkTracesSlotV2Delegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -28991,9 +31880,9 @@ public Observable> call(Response response) }); } - private ServiceResponse stopWebSiteNetworkTraceSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse> getNetworkTracesSlotV2Delegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } @@ -29232,7 +32121,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of web app. * @param slot Name of web app slot. If not specified then will default to production slot. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -29279,7 +32168,7 @@ public Observable>> call(String nextP * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of web app. * @param slot Name of web app slot. If not specified then will default to production slot. - * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<PerfMonResponseInner> object */ @@ -29300,7 +32189,7 @@ public Page call(ServiceResponse>> call(ServiceRespo ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of web app. ServiceResponse> * @param slot Name of web app slot. If not specified then will default to production slot. - ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<PerfMonResponseInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -29879,6 +32768,118 @@ private ServiceResponse deletePremierAddOnSlotDelegate(Response updatePremierAddOnSlotAsync(String resourceGroupName, String name, String premierAddOnName, String slot, PremierAddOnPatchResource premierAddOn, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updatePremierAddOnSlotWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, slot, premierAddOn), serviceCallback); + } + + /** + * Updates a named add-on of an app. + * Updates a named add-on of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the named add-on for the production slot. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PremierAddOnInner object + */ + public Observable updatePremierAddOnSlotAsync(String resourceGroupName, String name, String premierAddOnName, String slot, PremierAddOnPatchResource premierAddOn) { + return updatePremierAddOnSlotWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, slot, premierAddOn).map(new Func1, PremierAddOnInner>() { + @Override + public PremierAddOnInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a named add-on of an app. + * Updates a named add-on of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param premierAddOnName Add-on name. + * @param slot Name of the deployment slot. If a slot is not specified, the API will update the named add-on for the production slot. + * @param premierAddOn A JSON representation of the edited premier add-on. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PremierAddOnInner object + */ + public Observable> updatePremierAddOnSlotWithServiceResponseAsync(String resourceGroupName, String name, String premierAddOnName, String slot, PremierAddOnPatchResource premierAddOn) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (premierAddOnName == null) { + throw new IllegalArgumentException("Parameter premierAddOnName is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (premierAddOn == null) { + throw new IllegalArgumentException("Parameter premierAddOn is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(premierAddOn); + return service.updatePremierAddOnSlot(resourceGroupName, name, premierAddOnName, slot, this.client.subscriptionId(), premierAddOn, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updatePremierAddOnSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updatePremierAddOnSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Gets data around private site access enablement and authorized Virtual Networks that can access the site. * Gets data around private site access enablement and authorized Virtual Networks that can access the site. @@ -31509,13 +34510,14 @@ private ServiceResponse deletePublicCertificateSlotDelegate(Response listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + public ServiceFuture listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, CsmPublishingProfileOptions publishingProfileOptions, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(resourceGroupName, name, slot, publishingProfileOptions), serviceCallback); } /** @@ -31540,11 +34543,12 @@ public ServiceFuture listPublishingProfileXmlWithSecretsSlotAsync(S * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the InputStream object */ - public Observable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot) { - return listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, InputStream>() { + public Observable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, CsmPublishingProfileOptions publishingProfileOptions) { + return listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(resourceGroupName, name, slot, publishingProfileOptions).map(new Func1, InputStream>() { @Override public InputStream call(ServiceResponse response) { return response.body(); @@ -31559,10 +34563,11 @@ public InputStream call(ServiceResponse response) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot. + * @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the InputStream object */ - public Observable> listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, CsmPublishingProfileOptions publishingProfileOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -31575,121 +34580,14 @@ public Observable> listPublishingProfileXmlWithSecr if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - final PublishingProfileFormat format = null; - CsmPublishingProfileOptions publishingProfileOptions = new CsmPublishingProfileOptions(); - publishingProfileOptions.withFormat(null); - return service.listPublishingProfileXmlWithSecretsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), publishingProfileOptions, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = listPublishingProfileXmlWithSecretsSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws DefaultErrorResponseException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the InputStream object if successful. - */ - public InputStream listPublishingProfileXmlWithSecretsSlot(String resourceGroupName, String name, String slot, PublishingProfileFormat format) { - return listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(resourceGroupName, name, slot, format).toBlocking().single().body(); - } - - /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, PublishingProfileFormat format, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(resourceGroupName, name, slot, format), serviceCallback); - } - - /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object - */ - public Observable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, PublishingProfileFormat format) { - return listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(resourceGroupName, name, slot, format).map(new Func1, InputStream>() { - @Override - public InputStream call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Gets the publishing profile for an app (or deployment slot, if specified). - * Gets the publishing profile for an app (or deployment slot, if specified). - * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot. - * @param format Name of the format. Valid values are: - FileZilla3 - WebDeploy -- default - Ftp. Possible values include: 'FileZilla3', 'WebDeploy', 'Ftp' - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the InputStream object - */ - public Observable> listPublishingProfileXmlWithSecretsSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, PublishingProfileFormat format) { - if (resourceGroupName == null) { - throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); - } - if (name == null) { - throw new IllegalArgumentException("Parameter name is required and cannot be null."); - } - if (slot == null) { - throw new IllegalArgumentException("Parameter slot is required and cannot be null."); - } - if (this.client.subscriptionId() == null) { - throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + if (publishingProfileOptions == null) { + throw new IllegalArgumentException("Parameter publishingProfileOptions is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - CsmPublishingProfileOptions publishingProfileOptions = new CsmPublishingProfileOptions(); - publishingProfileOptions.withFormat(format); - return service.listPublishingProfileXmlWithSecretsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), publishingProfileOptions, this.client.userAgent()) + Validator.validate(publishingProfileOptions); + return service.listPublishingProfileXmlWithSecretsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), publishingProfileOptions, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -33381,37 +36279,178 @@ public ServiceFuture beginSwapSlotSlotAsync(String resourceGroupName, Stri } /** - * Swaps two deployment slots of an app. - * Swaps two deployment slots of an app. + * Swaps two deployment slots of an app. + * Swaps two deployment slots of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginSwapSlotSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { + return beginSwapSlotSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Swaps two deployment slots of an app. + * Swaps two deployment slots of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. + * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginSwapSlotSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (slotSwapEntity == null) { + throw new IllegalArgumentException("Parameter slotSwapEntity is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(slotSwapEntity); + return service.beginSwapSlotSlot(resourceGroupName, name, slot, this.client.subscriptionId(), slotSwapEntity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginSwapSlotSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginSwapSlotSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * Returns all Snapshots to the user. + * Returns all Snapshots to the user. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsSlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listSnapshotsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user. + * Returns all Snapshots to the user. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsSlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsSlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user. + * Returns all Snapshots to the user. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsSlotAsync(final String resourceGroupName, final String name, final String slot) { + return listSnapshotsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user. + * Returns all Snapshots to the user. * * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. - * @param slotSwapEntity JSON object that contains the target slot name. See example. + * @param name Website Name. + * @param slot Website Slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the observable to the PagedList<SnapshotInner> object */ - public Observable beginSwapSlotSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { - return beginSwapSlotSlotWithServiceResponseAsync(resourceGroupName, name, slot, slotSwapEntity).map(new Func1, Void>() { - @Override - public Void call(ServiceResponse response) { - return response.body(); - } - }); + public Observable>> listSnapshotsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listSnapshotsSlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsSlotNextWithServiceResponseAsync(nextPageLink)); + } + }); } /** - * Swaps two deployment slots of an app. - * Swaps two deployment slots of an app. + * Returns all Snapshots to the user. + * Returns all Snapshots to the user. * - * @param resourceGroupName Name of the resource group to which the resource belongs. - * @param name Name of the app. - * @param slot Name of the source slot. If a slot is not specified, the production slot is used as the source slot. - * @param slotSwapEntity JSON object that contains the target slot name. See example. + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Website Name. + ServiceResponse> * @param slot Website Slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceResponse} object if successful. + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable> beginSwapSlotSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity) { + public Observable>> listSnapshotsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -33424,20 +36463,16 @@ public Observable> beginSwapSlotSlotWithServiceResponseAsy if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (slotSwapEntity == null) { - throw new IllegalArgumentException("Parameter slotSwapEntity is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Validator.validate(slotSwapEntity); - return service.beginSwapSlotSlot(resourceGroupName, name, slot, this.client.subscriptionId(), slotSwapEntity, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + return service.listSnapshotsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { @Override - public Observable> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse clientResponse = beginSwapSlotSlotDelegate(response); - return Observable.just(clientResponse); + ServiceResponse> result = listSnapshotsSlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } @@ -33445,17 +36480,16 @@ public Observable> call(Response response) { }); } - private ServiceResponse beginSwapSlotSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) - .registerError(CloudException.class) + private ServiceResponse> listSnapshotsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) .build(response); } /** - * Returns all Snapshots to the user. - * Returns all Snapshots to the user. + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Website Name. @@ -33465,19 +36499,19 @@ private ServiceResponse beginSwapSlotSlotDelegate(Response r * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<SnapshotInner> object if successful. */ - public PagedList listSnapshotsSlot(final String resourceGroupName, final String name, final String slot) { - ServiceResponse> response = listSnapshotsSlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + public PagedList listSnapshotsFromDRSecondarySlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listSnapshotsFromDRSecondarySlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { - return listSnapshotsSlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; } /** - * Returns all Snapshots to the user. - * Returns all Snapshots to the user. + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Website Name. @@ -33486,21 +36520,21 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listSnapshotsSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + public ServiceFuture> listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listSnapshotsSlotSinglePageAsync(resourceGroupName, name, slot), + listSnapshotsFromDRSecondarySlotSinglePageAsync(resourceGroupName, name, slot), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { - return listSnapshotsSlotNextSinglePageAsync(nextPageLink); + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink); } }, serviceCallback); } /** - * Returns all Snapshots to the user. - * Returns all Snapshots to the user. + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Website Name. @@ -33508,8 +36542,8 @@ public Observable>> call(String nextPageLink * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<SnapshotInner> object */ - public Observable> listSnapshotsSlotAsync(final String resourceGroupName, final String name, final String slot) { - return listSnapshotsSlotWithServiceResponseAsync(resourceGroupName, name, slot) + public Observable> listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot) { + return listSnapshotsFromDRSecondarySlotWithServiceResponseAsync(resourceGroupName, name, slot) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -33519,8 +36553,8 @@ public Page call(ServiceResponse> response) { } /** - * Returns all Snapshots to the user. - * Returns all Snapshots to the user. + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Website Name. @@ -33528,8 +36562,8 @@ public Page call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<SnapshotInner> object */ - public Observable>> listSnapshotsSlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { - return listSnapshotsSlotSinglePageAsync(resourceGroupName, name, slot) + public Observable>> listSnapshotsFromDRSecondarySlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listSnapshotsFromDRSecondarySlotSinglePageAsync(resourceGroupName, name, slot) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -33537,14 +36571,14 @@ public Observable>> call(ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Website Name. @@ -33552,7 +36586,7 @@ public Observable>> call(ServiceResponse>> listSnapshotsSlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + public Observable>> listSnapshotsFromDRSecondarySlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -33568,12 +36602,12 @@ public Observable>> listSnapshotsSlotSingleP if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.listSnapshotsSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.listSnapshotsFromDRSecondarySlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> result = listSnapshotsSlotDelegate(response); + ServiceResponse> result = listSnapshotsFromDRSecondarySlotDelegate(response); return Observable.just(new ServiceResponse>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); @@ -33582,7 +36616,7 @@ public Observable>> call(Response> listSnapshotsSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listSnapshotsFromDRSecondarySlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) @@ -33893,10 +36927,9 @@ private ServiceResponse beginCreateOrUpdateSourceControl * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the Object object if successful. */ - public Object deleteSourceControlSlot(String resourceGroupName, String name, String slot) { - return deleteSourceControlSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + public void deleteSourceControlSlot(String resourceGroupName, String name, String slot) { + deleteSourceControlSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); } /** @@ -33910,7 +36943,7 @@ public Object deleteSourceControlSlot(String resourceGroupName, String name, Str * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteSourceControlSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + public ServiceFuture deleteSourceControlSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(deleteSourceControlSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); } @@ -33922,12 +36955,12 @@ public ServiceFuture deleteSourceControlSlotAsync(String resourceGroupNa * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the source control configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Object object + * @return the {@link ServiceResponse} object if successful. */ - public Observable deleteSourceControlSlotAsync(String resourceGroupName, String name, String slot) { - return deleteSourceControlSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Object>() { + public Observable deleteSourceControlSlotAsync(String resourceGroupName, String name, String slot) { + return deleteSourceControlSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { @Override - public Object call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); @@ -33941,9 +36974,9 @@ public Object call(ServiceResponse response) { * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will delete the source control configuration for the production slot. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Object object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> deleteSourceControlSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + public Observable> deleteSourceControlSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -33960,11 +36993,11 @@ public Observable> deleteSourceControlSlotWithServiceRes throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.deleteSourceControlSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteSourceControlSlotDelegate(response); + ServiceResponse clientResponse = deleteSourceControlSlotDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -33973,10 +37006,10 @@ public Observable> call(Response response) }); } - private ServiceResponse deleteSourceControlSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) + private ServiceResponse deleteSourceControlSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); @@ -34084,6 +37117,7 @@ private ServiceResponse updateSourceControlSlotDelegate( return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .register(201, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } @@ -34184,6 +37218,383 @@ private ServiceResponse startSlotDelegate(Response response) .build(response); } + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List startNetworkTraceSlot(String resourceGroupName, String name, String slot) { + return startNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().last().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> startNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> startNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + return startNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable>> startNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + Observable> observable = service.startNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); + } + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List startNetworkTraceSlot(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).toBlocking().last().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> startNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> startNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable>> startNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.startNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List beginStartNetworkTraceSlot(String resourceGroupName, String name, String slot) { + return beginStartNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> beginStartNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable> beginStartNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + return beginStartNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable>> beginStartNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + return service.beginStartNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = beginStartNetworkTraceSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List beginStartNetworkTraceSlot(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> beginStartNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable> beginStartNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable>> beginStartNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStartNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = beginStartNetworkTraceSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> beginStartNetworkTraceSlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Stops an app (or deployment slot, if specified). * Stops an app (or deployment slot, if specified). @@ -34280,6 +37691,103 @@ private ServiceResponse stopSlotDelegate(Response response) .build(response); } + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void stopNetworkTraceSlot(String resourceGroupName, String name, String slot) { + stopNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture stopNetworkTraceSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable stopNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { + return stopNetworkTraceSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param slot The name of the slot for this web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> stopNetworkTraceSlotWithServiceResponseAsync(String resourceGroupName, String name, String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (slot == null) { + throw new IllegalArgumentException("Parameter slot is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.stopNetworkTraceSlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = stopNetworkTraceSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse stopNetworkTraceSlotDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Sync web app repository. * Sync web app repository. @@ -35315,7 +38823,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will get quota information of the production slot. - * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -35362,7 +38870,7 @@ public Observable>> call(String nextPag * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will get quota information of the production slot. - * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<CsmUsageQuotaInner> object */ @@ -35383,7 +38891,7 @@ public Page call(ServiceResponse> r * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @param slot Name of the deployment slot. If a slot is not specified, the API will get quota information of the production slot. - * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<CsmUsageQuotaInner> object */ @@ -35408,7 +38916,7 @@ public Observable>> call(ServiceRespons ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of the app. ServiceResponse> * @param slot Name of the deployment slot. If a slot is not specified, the API will get quota information of the production slot. - ServiceResponse> * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<CsmUsageQuotaInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -37011,6 +40519,134 @@ private ServiceResponse> listSnapshotsDelegate(Response< .build(response); } + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsFromDRSecondary(final String resourceGroupName, final String name) { + ServiceResponse> response = listSnapshotsFromDRSecondarySinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsFromDRSecondarySinglePageAsync(resourceGroupName, name), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name) { + return listSnapshotsFromDRSecondaryWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable>> listSnapshotsFromDRSecondaryWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listSnapshotsFromDRSecondarySinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSnapshotsFromDRSecondarySinglePageAsync(final String resourceGroupName, final String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listSnapshotsFromDRSecondary(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSnapshotsFromDRSecondaryDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSnapshotsFromDRSecondaryDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Gets the source control configuration of an app. * Gets the source control configuration of an app. @@ -37293,10 +40929,9 @@ private ServiceResponse beginCreateOrUpdateSourceControl * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the Object object if successful. */ - public Object deleteSourceControl(String resourceGroupName, String name) { - return deleteSourceControlWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + public void deleteSourceControl(String resourceGroupName, String name) { + deleteSourceControlWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); } /** @@ -37309,7 +40944,7 @@ public Object deleteSourceControl(String resourceGroupName, String name) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteSourceControlAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + public ServiceFuture deleteSourceControlAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(deleteSourceControlWithServiceResponseAsync(resourceGroupName, name), serviceCallback); } @@ -37320,12 +40955,12 @@ public ServiceFuture deleteSourceControlAsync(String resourceGroupName, * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Object object + * @return the {@link ServiceResponse} object if successful. */ - public Observable deleteSourceControlAsync(String resourceGroupName, String name) { - return deleteSourceControlWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Object>() { + public Observable deleteSourceControlAsync(String resourceGroupName, String name) { + return deleteSourceControlWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { @Override - public Object call(ServiceResponse response) { + public Void call(ServiceResponse response) { return response.body(); } }); @@ -37338,9 +40973,9 @@ public Object call(ServiceResponse response) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Object object + * @return the {@link ServiceResponse} object if successful. */ - public Observable> deleteSourceControlWithServiceResponseAsync(String resourceGroupName, String name) { + public Observable> deleteSourceControlWithServiceResponseAsync(String resourceGroupName, String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -37354,11 +40989,11 @@ public Observable> deleteSourceControlWithServiceRespons throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.deleteSourceControl(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteSourceControlDelegate(response); + ServiceResponse clientResponse = deleteSourceControlDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -37367,10 +41002,10 @@ public Observable> call(Response response) }); } - private ServiceResponse deleteSourceControlDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .register(202, new TypeToken() { }.getType()) + private ServiceResponse deleteSourceControlDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .register(404, new TypeToken() { }.getType()) .registerError(CloudException.class) .build(response); @@ -37471,6 +41106,7 @@ private ServiceResponse updateSourceControlDelegate(Resp return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .register(201, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) .registerError(DefaultErrorResponseException.class) .build(response); } @@ -37564,6 +41200,355 @@ private ServiceResponse startDelegate(Response response) thr .build(response); } + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List startNetworkTrace(String resourceGroupName, String name) { + return startNetworkTraceWithServiceResponseAsync(resourceGroupName, name).toBlocking().last().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> startNetworkTraceAsync(String resourceGroupName, String name, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startNetworkTraceWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> startNetworkTraceAsync(String resourceGroupName, String name) { + return startNetworkTraceWithServiceResponseAsync(resourceGroupName, name).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable>> startNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + Observable> observable = service.startNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); + } + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List startNetworkTrace(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).toBlocking().last().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> startNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(startNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> startNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return startNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable>> startNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.startNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken>() { }.getType()); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List beginStartNetworkTrace(String resourceGroupName, String name) { + return beginStartNetworkTraceWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> beginStartNetworkTraceAsync(String resourceGroupName, String name, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartNetworkTraceWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable> beginStartNetworkTraceAsync(String resourceGroupName, String name) { + return beginStartNetworkTraceWithServiceResponseAsync(resourceGroupName, name).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable>> beginStartNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Integer durationInSeconds = null; + final Integer maxFrameLength = null; + final String sasUrl = null; + return service.beginStartNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = beginStartNetworkTraceDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<NetworkTraceInner> object if successful. + */ + public List beginStartNetworkTrace(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).toBlocking().single().body(); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> beginStartNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(beginStartNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl), serviceCallback); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable> beginStartNetworkTraceAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + return beginStartNetworkTraceWithServiceResponseAsync(resourceGroupName, name, durationInSeconds, maxFrameLength, sasUrl).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Start capturing network packets for the site. + * Start capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param durationInSeconds The duration to keep capturing in seconds. + * @param maxFrameLength The maximum frame length in bytes (Optional). + * @param sasUrl The Blob URL to store capture file. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<NetworkTraceInner> object + */ + public Observable>> beginStartNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name, Integer durationInSeconds, Integer maxFrameLength, String sasUrl) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStartNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), durationInSeconds, maxFrameLength, sasUrl, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = beginStartNetworkTraceDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> beginStartNetworkTraceDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .register(202, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Stops an app (or deployment slot, if specified). * Stops an app (or deployment slot, if specified). @@ -37653,6 +41638,96 @@ private ServiceResponse stopDelegate(Response response) thro .build(response); } + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void stopNetworkTrace(String resourceGroupName, String name) { + stopNetworkTraceWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture stopNetworkTraceAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(stopNetworkTraceWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable stopNetworkTraceAsync(String resourceGroupName, String name) { + return stopNetworkTraceWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Stop ongoing capturing network packets for the site. + * Stop ongoing capturing network packets for the site. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name The name of the web app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> stopNetworkTraceWithServiceResponseAsync(String resourceGroupName, String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.stopNetworkTrace(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = stopNetworkTraceDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse stopNetworkTraceDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Sync web app repository. * Sync web app repository. @@ -38621,7 +42696,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -38666,7 +42741,7 @@ public Observable>> call(String nextPag * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<CsmUsageQuotaInner> object */ @@ -38686,7 +42761,7 @@ public Page call(ServiceResponse> r * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the app. - * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<CsmUsageQuotaInner> object */ @@ -38710,7 +42785,7 @@ public Observable>> call(ServiceRespons * ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. ServiceResponse> * @param name Name of the app. - ServiceResponse> * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'. + ServiceResponse> * @param filter Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<CsmUsageQuotaInner> object wrapped in {@link ServiceResponse} if successful. */ @@ -45032,6 +49107,122 @@ private ServiceResponse> listSnapshotsSlotNextDelegate(R .build(response); } + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsFromDRSecondarySlotNext(final String nextPageLink) { + ServiceResponse> response = listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsFromDRSecondarySlotNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsFromDRSecondarySlotNextAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable>> listSnapshotsFromDRSecondarySlotNextWithServiceResponseAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsFromDRSecondarySlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSnapshotsFromDRSecondarySlotNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listSnapshotsFromDRSecondarySlotNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSnapshotsFromDRSecondarySlotNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSnapshotsFromDRSecondarySlotNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * List triggered web jobs for an app, or a deployment slot. * List triggered web jobs for an app, or a deployment slot. @@ -45729,6 +49920,122 @@ private ServiceResponse> listSnapshotsNextDelegate(Respo .build(response); } + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsFromDRSecondaryNext(final String nextPageLink) { + ServiceResponse> response = listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsFromDRSecondaryNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsFromDRSecondaryNextAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable>> listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSnapshotsFromDRSecondaryNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listSnapshotsFromDRSecondaryNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSnapshotsFromDRSecondaryNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSnapshotsFromDRSecondaryNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * List triggered web jobs for an app, or a deployment slot. * List triggered web jobs for an app, or a deployment slot. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebJobImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebJobImpl.java index 39756c0dd2d6f..c6bfb2ba296a5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebJobImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebJobImpl.java @@ -15,15 +15,16 @@ import com.microsoft.azure.management.appservice.v2018_02_01.WebJobType; class WebJobImpl extends IndexableRefreshableWrapperImpl implements WebJob { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String webJobName; private String slot; - WebJobImpl(WebJobInner inner, AppServiceManager manager) { + WebJobImpl(WebJobInner inner, CertificateRegistrationManager manager) { super(null, inner); this.manager = manager; + // set resource ancestor and positional variables this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups"); this.name = IdParsingUtils.getValueFromIdByName(inner.id(), "sites"); this.webJobName = IdParsingUtils.getValueFromIdByName(inner.id(), "webjobs"); @@ -31,7 +32,7 @@ class WebJobImpl extends IndexableRefreshableWrapperImpl im } @Override - public AppServiceManager manager() { + public CertificateRegistrationManager manager() { return this.manager; } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebSiteManagementClientImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebSiteManagementClientImpl.java index 6042207d62d89..fe9d1b0820d38 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebSiteManagementClientImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebSiteManagementClientImpl.java @@ -19,6 +19,7 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DefaultErrorResponseException; import com.microsoft.azure.management.appservice.v2018_02_01.ResourceNameAvailabilityRequest; import com.microsoft.azure.management.appservice.v2018_02_01.SkuName; +import com.microsoft.azure.management.appservice.v2018_02_01.ValidateContainerSettingsRequest; import com.microsoft.azure.management.appservice.v2018_02_01.ValidateRequest; import com.microsoft.azure.management.appservice.v2018_02_01.VnetParameters; import com.microsoft.azure.Page; @@ -97,11 +98,11 @@ public String apiVersion() { return this.apiVersion; } - /** Gets or sets the preferred language for the response. */ + /** The preferred language for the response. */ private String acceptLanguage; /** - * Gets Gets or sets the preferred language for the response. + * Gets The preferred language for the response. * * @return the acceptLanguage value. */ @@ -110,7 +111,7 @@ public String acceptLanguage() { } /** - * Sets Gets or sets the preferred language for the response. + * Sets The preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself @@ -120,11 +121,11 @@ public WebSiteManagementClientImpl withAcceptLanguage(String acceptLanguage) { return this; } - /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ private int longRunningOperationRetryTimeout; /** - * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */ @@ -133,7 +134,7 @@ public int longRunningOperationRetryTimeout() { } /** - * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself @@ -143,11 +144,11 @@ public WebSiteManagementClientImpl withLongRunningOperationRetryTimeout(int long return this; } - /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ private boolean generateClientRequestId; /** - * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @return the generateClientRequestId value. */ @@ -156,7 +157,7 @@ public boolean generateClientRequestId() { } /** - * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself @@ -335,6 +336,19 @@ public AppServicePlansInner appServicePlans() { return this.appServicePlans; } + /** + * The ResourceHealthMetadatasInner object to access its operations. + */ + private ResourceHealthMetadatasInner resourceHealthMetadatas; + + /** + * Gets the ResourceHealthMetadatasInner object to access its operations. + * @return the ResourceHealthMetadatasInner object. + */ + public ResourceHealthMetadatasInner resourceHealthMetadatas() { + return this.resourceHealthMetadatas; + } + /** * Initializes an instance of WebSiteManagementClient client. * @@ -383,6 +397,7 @@ protected void initialize() { this.webApps = new WebAppsInner(restClient().retrofit(), this); this.appServiceEnvironments = new AppServiceEnvironmentsInner(restClient().retrofit(), this); this.appServicePlans = new AppServicePlansInner(restClient().retrofit(), this); + this.resourceHealthMetadatas = new ResourceHealthMetadatasInner(restClient().retrofit(), this); this.azureClient = new AzureClient(this); initializeService(); } @@ -394,7 +409,7 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "WebSiteManagementClient", "2018-02-01"); + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "WebSiteManagementClient", "2018-02-01"); } private void initializeService() { @@ -428,7 +443,7 @@ interface WebSiteManagementClientService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebSiteManagementClient listBillingMeters" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Web/billingMeters") - Observable> listBillingMeters(@Path("subscriptionId") String subscriptionId, @Query("billingLocation") String billingLocation, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> listBillingMeters(@Path("subscriptionId") String subscriptionId, @Query("billingLocation") String billingLocation, @Query("osType") String osType, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebSiteManagementClient checkNameAvailability" }) @POST("subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability") @@ -440,7 +455,7 @@ interface WebSiteManagementClientService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebSiteManagementClient listGeoRegions" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions") - Observable> listGeoRegions(@Path("subscriptionId") String subscriptionId, @Query("sku") SkuName sku, @Query("linuxWorkersEnabled") Boolean linuxWorkersEnabled, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> listGeoRegions(@Path("subscriptionId") String subscriptionId, @Query("sku") SkuName sku, @Query("linuxWorkersEnabled") Boolean linuxWorkersEnabled, @Query("xenonWorkersEnabled") Boolean xenonWorkersEnabled, @Query("linuxDynamicWorkersEnabled") Boolean linuxDynamicWorkersEnabled, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebSiteManagementClient listSiteIdentifiersAssignedToHostName" }) @POST("subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName") @@ -466,6 +481,10 @@ interface WebSiteManagementClientService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate") Observable> validate(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Body ValidateRequest validateRequest, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebSiteManagementClient validateContainerSettings" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validateContainerSettings") + Observable> validateContainerSettings(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Body ValidateContainerSettingsRequest validateContainerSettingsRequest, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebSiteManagementClient validateMove" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/validateMoveResources") Observable> validateMove(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Body CsmMoveResourceEnvelope moveResourceEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1015,7 +1034,8 @@ public Observable>> listBillingMetersSin throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); } final String billingLocation = null; - return service.listBillingMeters(this.subscriptionId(), billingLocation, this.apiVersion(), this.acceptLanguage(), this.userAgent()) + final String osType = null; + return service.listBillingMeters(this.subscriptionId(), billingLocation, osType, this.apiVersion(), this.acceptLanguage(), this.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1034,13 +1054,14 @@ public Observable>> call(Response listBillingMeters(final String billingLocation) { - ServiceResponse> response = listBillingMetersSinglePageAsync(billingLocation).toBlocking().single(); + public PagedList listBillingMeters(final String billingLocation, final String osType) { + ServiceResponse> response = listBillingMetersSinglePageAsync(billingLocation, osType).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { @@ -1054,13 +1075,14 @@ public Page nextPage(String nextPageLink) { * Gets a list of meters for a given location. * * @param billingLocation Azure Location of billable resource + * @param osType App Service OS type meters used for * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listBillingMetersAsync(final String billingLocation, final ListOperationCallback serviceCallback) { + public ServiceFuture> listBillingMetersAsync(final String billingLocation, final String osType, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listBillingMetersSinglePageAsync(billingLocation), + listBillingMetersSinglePageAsync(billingLocation, osType), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { @@ -1075,11 +1097,12 @@ public Observable>> call(String nextPage * Gets a list of meters for a given location. * * @param billingLocation Azure Location of billable resource + * @param osType App Service OS type meters used for * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<BillingMeterInner> object */ - public Observable> listBillingMetersAsync(final String billingLocation) { - return listBillingMetersWithServiceResponseAsync(billingLocation) + public Observable> listBillingMetersAsync(final String billingLocation, final String osType) { + return listBillingMetersWithServiceResponseAsync(billingLocation, osType) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -1093,11 +1116,12 @@ public Page call(ServiceResponse> res * Gets a list of meters for a given location. * * @param billingLocation Azure Location of billable resource + * @param osType App Service OS type meters used for * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<BillingMeterInner> object */ - public Observable>> listBillingMetersWithServiceResponseAsync(final String billingLocation) { - return listBillingMetersSinglePageAsync(billingLocation) + public Observable>> listBillingMetersWithServiceResponseAsync(final String billingLocation, final String osType) { + return listBillingMetersSinglePageAsync(billingLocation, osType) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -1115,17 +1139,18 @@ public Observable>> call(ServiceResponse * Gets a list of meters for a given location. * ServiceResponse> * @param billingLocation Azure Location of billable resource + ServiceResponse> * @param osType App Service OS type meters used for * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<BillingMeterInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listBillingMetersSinglePageAsync(final String billingLocation) { + public Observable>> listBillingMetersSinglePageAsync(final String billingLocation, final String osType) { if (this.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.subscriptionId() is required and cannot be null."); } if (this.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); } - return service.listBillingMeters(this.subscriptionId(), billingLocation, this.apiVersion(), this.acceptLanguage(), this.userAgent()) + return service.listBillingMeters(this.subscriptionId(), billingLocation, osType, this.apiVersion(), this.acceptLanguage(), this.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1501,7 +1526,9 @@ public Observable>> listGeoRegionsSinglePag } final SkuName sku = null; final Boolean linuxWorkersEnabled = null; - return service.listGeoRegions(this.subscriptionId(), sku, linuxWorkersEnabled, this.apiVersion(), this.acceptLanguage(), this.userAgent()) + final Boolean xenonWorkersEnabled = null; + final Boolean linuxDynamicWorkersEnabled = null; + return service.listGeoRegions(this.subscriptionId(), sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, this.apiVersion(), this.acceptLanguage(), this.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1519,15 +1546,17 @@ public Observable>> call(Response listGeoRegions(final SkuName sku, final Boolean linuxWorkersEnabled) { - ServiceResponse> response = listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled).toBlocking().single(); + public PagedList listGeoRegions(final SkuName sku, final Boolean linuxWorkersEnabled, final Boolean xenonWorkersEnabled, final Boolean linuxDynamicWorkersEnabled) { + ServiceResponse> response = listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { @@ -1540,15 +1569,17 @@ public Page nextPage(String nextPageLink) { * Get a list of available geographical regions. * Get a list of available geographical regions. * - * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2' + * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' * @param linuxWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux workers. + * @param xenonWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Xenon workers. + * @param linuxDynamicWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listGeoRegionsAsync(final SkuName sku, final Boolean linuxWorkersEnabled, final ListOperationCallback serviceCallback) { + public ServiceFuture> listGeoRegionsAsync(final SkuName sku, final Boolean linuxWorkersEnabled, final Boolean xenonWorkersEnabled, final Boolean linuxDynamicWorkersEnabled, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled), + listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { @@ -1562,13 +1593,15 @@ public Observable>> call(String nextPageLin * Get a list of available geographical regions. * Get a list of available geographical regions. * - * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2' + * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' * @param linuxWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux workers. + * @param xenonWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Xenon workers. + * @param linuxDynamicWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<GeoRegionInner> object */ - public Observable> listGeoRegionsAsync(final SkuName sku, final Boolean linuxWorkersEnabled) { - return listGeoRegionsWithServiceResponseAsync(sku, linuxWorkersEnabled) + public Observable> listGeoRegionsAsync(final SkuName sku, final Boolean linuxWorkersEnabled, final Boolean xenonWorkersEnabled, final Boolean linuxDynamicWorkersEnabled) { + return listGeoRegionsWithServiceResponseAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -1581,13 +1614,15 @@ public Page call(ServiceResponse> response) * Get a list of available geographical regions. * Get a list of available geographical regions. * - * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2' + * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' * @param linuxWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux workers. + * @param xenonWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Xenon workers. + * @param linuxDynamicWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<GeoRegionInner> object */ - public Observable>> listGeoRegionsWithServiceResponseAsync(final SkuName sku, final Boolean linuxWorkersEnabled) { - return listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled) + public Observable>> listGeoRegionsWithServiceResponseAsync(final SkuName sku, final Boolean linuxWorkersEnabled, final Boolean xenonWorkersEnabled, final Boolean linuxDynamicWorkersEnabled) { + return listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -1604,19 +1639,21 @@ public Observable>> call(ServiceResponse> * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2' + ServiceResponse> * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2', 'ElasticPremium', 'ElasticIsolated' ServiceResponse> * @param linuxWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux workers. + ServiceResponse> * @param xenonWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Xenon workers. + ServiceResponse> * @param linuxDynamicWorkersEnabled Specify <code>true</code> if you want to filter to only regions that support Linux Consumption Workers. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<GeoRegionInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listGeoRegionsSinglePageAsync(final SkuName sku, final Boolean linuxWorkersEnabled) { + public Observable>> listGeoRegionsSinglePageAsync(final SkuName sku, final Boolean linuxWorkersEnabled, final Boolean xenonWorkersEnabled, final Boolean linuxDynamicWorkersEnabled) { if (this.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.subscriptionId() is required and cannot be null."); } if (this.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); } - return service.listGeoRegions(this.subscriptionId(), sku, linuxWorkersEnabled, this.apiVersion(), this.acceptLanguage(), this.userAgent()) + return service.listGeoRegions(this.subscriptionId(), sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, this.apiVersion(), this.acceptLanguage(), this.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -2317,6 +2354,97 @@ private ServiceResponse validateDelegate(Response validateContainerSettingsAsync(String resourceGroupName, ValidateContainerSettingsRequest validateContainerSettingsRequest, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(validateContainerSettingsWithServiceResponseAsync(resourceGroupName, validateContainerSettingsRequest), serviceCallback); + } + + /** + * Validate if the container settings are correct. + * Validate if the container settings are correct. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param validateContainerSettingsRequest the ValidateContainerSettingsRequest value + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Object object + */ + public Observable validateContainerSettingsAsync(String resourceGroupName, ValidateContainerSettingsRequest validateContainerSettingsRequest) { + return validateContainerSettingsWithServiceResponseAsync(resourceGroupName, validateContainerSettingsRequest).map(new Func1, Object>() { + @Override + public Object call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Validate if the container settings are correct. + * Validate if the container settings are correct. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param validateContainerSettingsRequest the ValidateContainerSettingsRequest value + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the Object object + */ + public Observable> validateContainerSettingsWithServiceResponseAsync(String resourceGroupName, ValidateContainerSettingsRequest validateContainerSettingsRequest) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (this.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.subscriptionId() is required and cannot be null."); + } + if (validateContainerSettingsRequest == null) { + throw new IllegalArgumentException("Parameter validateContainerSettingsRequest is required and cannot be null."); + } + if (this.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); + } + Validator.validate(validateContainerSettingsRequest); + return service.validateContainerSettings(resourceGroupName, this.subscriptionId(), validateContainerSettingsRequest, this.apiVersion(), this.acceptLanguage(), this.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = validateContainerSettingsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse validateContainerSettingsDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.restClient().responseBuilderFactory().newInstance(this.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Validate whether a resource can be moved. * Validate whether a resource can be moved. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WorkerPoolsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WorkerPoolsImpl.java index 042f321a0dbb8..200f51d31fbd8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WorkerPoolsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WorkerPoolsImpl.java @@ -16,12 +16,12 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SkuDescription; class WorkerPoolsImpl extends CreatableUpdatableImpl implements WorkerPools, WorkerPools.Definition, WorkerPools.Update { - private final AppServiceManager manager; + private final CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String workerPoolName; - WorkerPoolsImpl(String name, AppServiceManager manager) { + WorkerPoolsImpl(String name, CertificateRegistrationManager manager) { super(name, new WorkerPoolResourceInner()); this.manager = manager; // Set resource name @@ -29,12 +29,12 @@ class WorkerPoolsImpl extends CreatableUpdatableImpl