From 6bd338323fbd1176f62b7770e3b78ba1e2ed98d7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 13 Jul 2018 21:37:54 +0000 Subject: [PATCH] Generated from 0ba75505cddaddce442eb2172170ccd408e6cfd5 Update default package version for WebSiteManagementClient --- .../AppServiceEnvironmentPatchResource.java | 53 + .../AppServiceEnvironmentResource.java | 54 +- .../v2018_02_01/AppServiceEnvironments.java | 11 - .../v2018_02_01/AppServicePlan.java | 29 +- .../AppServicePlanPatchResource.java | 26 + .../v2018_02_01/DataTableResponseColumn.java | 95 + .../v2018_02_01/DataTableResponseObject.java | 96 + .../v2018_02_01/DetectorDefinition.java | 2 +- .../appservice/v2018_02_01/DetectorInfo.java | 77 + .../v2018_02_01/DetectorResponse.java | 53 + .../v2018_02_01/DiagnosticData.java | 69 + .../appservice/v2018_02_01/Diagnostics.java | 159 +- .../HostingEnvironmentAppServicePlan.java | 5 + .../v2018_02_01/HostingEnvironmentSite.java | 5 - .../appservice/v2018_02_01/IpFilterTag.java | 53 + .../v2018_02_01/IpSecurityRestriction.java | 140 + .../v2018_02_01/LogSpecification.java | 95 + .../appservice/v2018_02_01/PremierAddOn.java | 12 +- .../PremierAddOnPatchResource.java | 149 ++ .../appservice/v2018_02_01/Rendering.java | 96 + .../appservice/v2018_02_01/RenderingType.java | 59 + .../v2018_02_01/ServerfarmSite.java | 5 - .../v2018_02_01/ServiceSpecification.java | 26 + .../appservice/v2018_02_01/SiteConfig.java | 45 +- .../v2018_02_01/SiteConfigResource.java | 9 +- .../v2018_02_01/SitePatchResource.java | 27 - .../appservice/v2018_02_01/Sites.java | 29 +- .../appservice/v2018_02_01/Slots.java | 29 +- .../v2018_02_01/SwiftVirtualNetwork.java | 50 + .../v2018_02_01/ValidateRequest.java | 27 + .../appservice/v2018_02_01/WebApps.java | 171 +- .../AppServiceEnvironmentInner.java | 53 + .../AppServiceEnvironmentResourceImpl.java | 30 + .../AppServiceEnvironmentResourceInner.java | 53 + .../AppServiceEnvironmentsImpl.java | 6 - .../AppServiceEnvironmentsInner.java | 94 - .../implementation/AppServicePlanImpl.java | 15 + .../implementation/AppServicePlanInner.java | 26 + .../implementation/BillingMeterInner.java | 26 + .../implementation/DeletedSiteInner.java | 13 +- .../DetectorDefinitionImpl.java | 6 +- .../implementation/DetectorResponseImpl.java | 75 + .../implementation/DetectorResponseInner.java | 75 + .../implementation/DiagnosticsImpl.java | 217 +- .../implementation/DiagnosticsInner.java | 2316 +++++++++++++---- .../HostingEnvironmentAppServicePlanImpl.java | 7 +- .../HostingEnvironmentSiteImpl.java | 6 - .../implementation/PremierAddOnImpl.java | 72 +- .../implementation/ServerfarmSiteImpl.java | 6 - .../SiteConfigResourceImpl.java | 9 +- .../SiteConfigResourceInner.java | 45 +- .../v2018_02_01/implementation/SiteInner.java | 28 - .../v2018_02_01/implementation/SitesImpl.java | 16 - .../v2018_02_01/implementation/SlotsImpl.java | 16 - .../SwiftVirtualNetworkImpl.java | 56 + .../SwiftVirtualNetworkInner.java | 76 + .../implementation/WebAppsImpl.java | 148 +- .../implementation/WebAppsInner.java | 1560 +++++++++-- .../WebSiteManagementClientImpl.java | 60 +- 59 files changed, 5642 insertions(+), 1224 deletions(-) create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseColumn.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DataTableResponseObject.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorInfo.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorResponse.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DiagnosticData.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/IpFilterTag.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/LogSpecification.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOnPatchResource.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Rendering.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/RenderingType.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SwiftVirtualNetwork.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseImpl.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorResponseInner.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkImpl.java create mode 100644 appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SwiftVirtualNetworkInner.java 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 85e4aa56be02..dbe081648030 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 @@ -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 a3fd518cff58..d3ef83016dbe 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 @@ -161,6 +161,16 @@ public interface AppServiceEnvironmentResource extends HasInner networkAccessControlList); } + /** + * The stage of the appserviceenvironmentresource update allowing to specify SslCertKeyVaultId. + */ + interface WithSslCertKeyVaultId { + /** + * Specifies sslCertKeyVaultId. + */ + WithCreate withSslCertKeyVaultId(String sslCertKeyVaultId); + } + + /** + * The stage of the appserviceenvironmentresource update allowing to specify SslCertKeyVaultSecretName. + */ + interface WithSslCertKeyVaultSecretName { + /** + * Specifies sslCertKeyVaultSecretName. + */ + WithCreate withSslCertKeyVaultSecretName(String sslCertKeyVaultSecretName); + } + /** * The stage of the appserviceenvironmentresource update allowing to specify Suspended. */ @@ -453,13 +483,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 { } /** @@ -586,6 +616,26 @@ interface WithNetworkAccessControlList { Update withNetworkAccessControlList(List networkAccessControlList); } + /** + * The stage of the appserviceenvironmentresource {0} allowing to specify SslCertKeyVaultId. + */ + interface WithSslCertKeyVaultId { + /** + * Specifies sslCertKeyVaultId. + */ + Update withSslCertKeyVaultId(String sslCertKeyVaultId); + } + + /** + * The stage of the appserviceenvironmentresource {0} allowing to specify SslCertKeyVaultSecretName. + */ + interface WithSslCertKeyVaultSecretName { + /** + * Specifies sslCertKeyVaultSecretName. + */ + Update withSslCertKeyVaultSecretName(String sslCertKeyVaultSecretName); + } + /** * The stage of the appserviceenvironmentresource {0} allowing to specify Suspended. */ 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 6ae9355a3a02..9f127c86dbdf 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 @@ -124,17 +124,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. 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 99e5fbd19c5f..ef08453261f7 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 @@ -30,6 +30,11 @@ public interface AppServicePlan extends HasInner, Resource, */ String adminSiteName(); + /** + * @return the freeOfferExpirationTime value. + */ + DateTime freeOfferExpirationTime(); + /** * @return the geoRegion value. */ @@ -152,6 +157,16 @@ interface WithAdminSiteName { WithCreate withAdminSiteName(String adminSiteName); } + /** + * The stage of the appserviceplan update allowing to specify FreeOfferExpirationTime. + */ + interface WithFreeOfferExpirationTime { + /** + * Specifies freeOfferExpirationTime. + */ + WithCreate withFreeOfferExpirationTime(DateTime freeOfferExpirationTime); + } + /** * The stage of the appserviceplan update allowing to specify HostingEnvironmentProfile. */ @@ -267,13 +282,13 @@ interface WithWorkerTierName { * 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.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.WithAdminSiteName, DefinitionStages.WithFreeOfferExpirationTime, DefinitionStages.WithHostingEnvironmentProfile, DefinitionStages.WithIsSpot, DefinitionStages.WithIsXenon, DefinitionStages.WithKind, 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.WithAdminSiteName, UpdateStages.WithFreeOfferExpirationTime, UpdateStages.WithHostingEnvironmentProfile, UpdateStages.WithIsSpot, UpdateStages.WithIsXenon, UpdateStages.WithKind, UpdateStages.WithPerSiteScaling, UpdateStages.WithReserved, UpdateStages.WithSpotExpirationTime, UpdateStages.WithTargetWorkerCount, UpdateStages.WithTargetWorkerSizeId, UpdateStages.WithWorkerTierName { } /** @@ -290,6 +305,16 @@ interface WithAdminSiteName { Update withAdminSiteName(String adminSiteName); } + /** + * The stage of the appserviceplan {0} allowing to specify FreeOfferExpirationTime. + */ + interface WithFreeOfferExpirationTime { + /** + * Specifies freeOfferExpirationTime. + */ + Update withFreeOfferExpirationTime(DateTime freeOfferExpirationTime); + } + /** * The stage of the appserviceplan {0} allowing to specify HostingEnvironmentProfile. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlanPatchResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlanPatchResource.java index f9430a4534d1..97039405a803 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlanPatchResource.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/AppServicePlanPatchResource.java @@ -91,6 +91,12 @@ public class AppServicePlanPatchResource extends ProxyOnlyResource { @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. */ @@ -297,6 +303,26 @@ public AppServicePlanPatchResource withSpotExpirationTime(DateTime spotExpiratio 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 AppServicePlanPatchResource object itself. + */ + public AppServicePlanPatchResource withFreeOfferExpirationTime(DateTime freeOfferExpirationTime) { + this.freeOfferExpirationTime = freeOfferExpirationTime; + return this; + } + /** * Get resource group 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/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 000000000000..cc15a423f05d --- /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 000000000000..238fa91161cc --- /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/DetectorDefinition.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DetectorDefinition.java index 380add9be917..a2f9a8ef0804 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,9 +9,9 @@ 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.CertificateRegistrationManager; +import com.microsoft.azure.management.appservice.v2018_02_01.implementation.DetectorDefinitionInner; /** * Type representing DetectorDefinition. 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 000000000000..19a96f45a8c4 --- /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 000000000000..ed159c18dac9 --- /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/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 000000000000..d91eb183e5af --- /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/Diagnostics.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Diagnostics.java index c4de12c4c06d..ddd647770c97 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/HostingEnvironmentAppServicePlan.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/HostingEnvironmentAppServicePlan.java index cd6999e81ba6..59409177b427 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 @@ -24,6 +24,11 @@ public interface HostingEnvironmentAppServicePlan 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/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 000000000000..ff8d8c66cdd1 --- /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 6e6a2979f2e8..cc97f0e966d6 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,6 +16,9 @@ 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) private String ipAddress; @@ -26,8 +29,42 @@ public class IpSecurityRestriction { @JsonProperty(value = "subnetMask") private String subnetMask; + /** + * 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 +74,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 +106,104 @@ public IpSecurityRestriction withSubnetMask(String subnetMask) { 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 000000000000..fd0a2961ccf0 --- /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/PremierAddOn.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/PremierAddOn.java index 1939d904ff7d..97ec19187061 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 @@ -195,7 +195,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 { } /** @@ -252,16 +252,6 @@ interface WithSku { 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. */ 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 000000000000..bfedd7eda264 --- /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/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 000000000000..d4ec7d15d2ba --- /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 000000000000..d52efbc0eafc --- /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/ServerfarmSite.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmSite.java index 3523b8a0ee46..87012e8cb228 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 @@ -180,11 +180,6 @@ public interface ServerfarmSite extends HasInner, HasManager 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/SiteConfig.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfig.java index 31b877c49d29..a0501c8e645e 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 @@ -62,8 +62,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, @@ -327,6 +327,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 +477,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; } @@ -1296,4 +1303,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 5c64a55f2643..3f74dd3ca954 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 @@ -240,6 +240,11 @@ public interface SiteConfigResource extends HasInner, H */ DateTime requestTracingExpirationTime(); + /** + * @return the reservedInstanceCount value. + */ + Integer reservedInstanceCount(); + /** * @return the scmType value. */ @@ -276,9 +281,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/SitePatchResource.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SitePatchResource.java index f6ee73a3d0f8..c860b3086a6a 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 @@ -205,13 +205,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. */ @@ -646,26 +639,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. * 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 f0cbc9b2e7a7..86692f32873f 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 @@ -171,11 +171,6 @@ public interface Sites extends HasInner, Resource, GroupableResourceC */ SlotSwapStatus slotSwapStatus(); - /** - * @return the snapshotInfo value. - */ - SnapshotRecoveryRequest snapshotInfo(); - /** * @return the state value. */ @@ -393,28 +388,18 @@ interface WithSiteConfig { 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.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 { } } /** * 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.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 { } /** @@ -581,15 +566,5 @@ interface WithSiteConfig { 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/Slots.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/Slots.java index 8f60080eb637..c5a7505463e6 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 @@ -185,11 +185,6 @@ public interface Slots extends HasInner, Indexable, Refreshable, 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.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.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.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 { } /** @@ -629,15 +614,5 @@ interface WithSiteConfig { 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/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 000000000000..3ac349ae2197 --- /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/ValidateRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ValidateRequest.java index 518a02f5abb6..723652a3d303 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 @@ -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. * @@ -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/WebApps.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebApps.java index e72aafc16f82..7038632bc9e7 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 @@ -13,9 +13,10 @@ import rx.Completable; 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.SwiftVirtualNetworkInner; 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.BackupItem; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteAuthSettingsInner; import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ConnectionStringDictionaryInner; @@ -286,6 +287,56 @@ public interface WebApps { */ Observable listMetadataAsync(String resourceGroupName, String name); + /** + * 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); + /** * 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. @@ -332,6 +383,18 @@ public interface WebApps { */ Completable 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. * Fetch a short lived token that can be exchanged for a master key. @@ -679,18 +742,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 +780,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. @@ -2640,6 +2678,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. @@ -3008,6 +3060,60 @@ public interface WebApps { */ Observable listMetadataSlotAsync(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); + /** * 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. @@ -3058,6 +3164,19 @@ public interface WebApps { */ Completable 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. * Fetch a short lived token that can be exchanged for a master key. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentInner.java index 3e9a26fdae1a..13dc87bf5da1 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentInner.java @@ -264,6 +264,19 @@ public class AppServiceEnvironmentInner { @JsonProperty(value = "hasLinuxWorkers") private Boolean hasLinuxWorkers; + /** + * Key Vault ID for ILB App Service Environment default SSL certificate. + */ + @JsonProperty(value = "sslCertKeyVaultId") + private String sslCertKeyVaultId; + + /** + * Key Vault Secret Name for ILB App Service Environment default SSL + * certificate. + */ + @JsonProperty(value = "sslCertKeyVaultSecretName") + private String sslCertKeyVaultSecretName; + /** * Get name of the App Service Environment. * @@ -821,4 +834,44 @@ public AppServiceEnvironmentInner withHasLinuxWorkers(Boolean hasLinuxWorkers) { 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 AppServiceEnvironmentInner object itself. + */ + public AppServiceEnvironmentInner 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 AppServiceEnvironmentInner object itself. + */ + public AppServiceEnvironmentInner 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/implementation/AppServiceEnvironmentResourceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentResourceImpl.java index 7ae50be3e463..6a0ee90d1899 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentResourceImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServiceEnvironmentResourceImpl.java @@ -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 listCapacitiesAsync(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 327c4c75a184..29201d1083fe 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 @@ -209,10 +209,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); @@ -4992,96 +4988,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. 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 5a7a77bfa7bf..09e3935b7357 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 @@ -74,6 +74,11 @@ public String adminSiteName() { return this.inner().adminSiteName(); } + @Override + public DateTime freeOfferExpirationTime() { + return this.inner().freeOfferExpirationTime(); + } + @Override public String geoRegion() { return this.inner().geoRegion(); @@ -180,6 +185,16 @@ public AppServicePlanImpl withAdminSiteName(String adminSiteName) { return this; } + @Override + public AppServicePlanImpl withFreeOfferExpirationTime(DateTime freeOfferExpirationTime) { + if (isInCreateMode()) { + this.inner().withFreeOfferExpirationTime(freeOfferExpirationTime); + } else { + this.updateParameter.withFreeOfferExpirationTime(freeOfferExpirationTime); + } + return this; + } + @Override public AppServicePlanImpl withHostingEnvironmentProfile(HostingEnvironmentProfile hostingEnvironmentProfile) { 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 8c81eaa04edd..590b461b4933 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 @@ -96,6 +96,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. */ @@ -314,6 +320,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. * 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 8cee7b82e345..4c0defbf3dc2 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/DeletedSiteInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DeletedSiteInner.java index 8a6bda15e34d..bf1256269db4 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 @@ -17,7 +17,7 @@ public class DeletedSiteInner { /** * Numeric id for the deleted site. */ - @JsonProperty(value = "deletedSiteId") + @JsonProperty(value = "deletedSiteId", access = JsonProperty.Access.WRITE_ONLY) private Integer deletedSiteId; /** @@ -59,17 +59,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. * diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorDefinitionImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorDefinitionImpl.java index ff453f74c19d..126cde246768 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorDefinitionImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DetectorDefinitionImpl.java @@ -10,12 +10,10 @@ import com.microsoft.azure.management.appservice.v2018_02_01.DetectorDefinition; import com.microsoft.azure.arm.model.implementation.WrapperImpl; -import rx.Observable; class DetectorDefinitionImpl extends WrapperImpl implements DetectorDefinition { private final CertificateRegistrationManager manager; - - DetectorDefinitionImpl(DetectorDefinitionInner inner, CertificateRegistrationManager manager) { + DetectorDefinitionImpl(DetectorDefinitionInner inner, CertificateRegistrationManager manager) { super(inner); this.manager = manager; } @@ -25,8 +23,6 @@ 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 000000000000..3fdea30206f8 --- /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,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.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; + 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 000000000000..1cf23fd1c030 --- /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/DiagnosticsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/DiagnosticsImpl.java index 013e953fba6b..7cd1a29b89e2 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,10 +15,11 @@ 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 CertificateRegistrationManager 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 2a724b3655d0..04c9bd660281 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/HostingEnvironmentAppServicePlanImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentAppServicePlanImpl.java index 93ec7c3cd5d3..99e997962bca 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentAppServicePlanImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/HostingEnvironmentAppServicePlanImpl.java @@ -11,10 +11,10 @@ import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentAppServicePlan; import com.microsoft.azure.arm.model.implementation.WrapperImpl; import rx.Observable; +import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2018_02_01.HostingEnvironmentProfile; import com.microsoft.azure.management.appservice.v2018_02_01.ProvisioningState; import com.microsoft.azure.management.appservice.v2018_02_01.SkuDescription; -import org.joda.time.DateTime; import com.microsoft.azure.management.appservice.v2018_02_01.StatusOptions; import java.util.Map; @@ -38,6 +38,11 @@ public String adminSiteName() { return this.inner().adminSiteName(); } + @Override + public DateTime freeOfferExpirationTime() { + return this.inner().freeOfferExpirationTime(); + } + @Override public String geoRegion() { return this.inner().geoRegion(); 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 e74e462b1d4c..ce7f0055fe7a 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 @@ -20,7 +20,6 @@ import org.joda.time.DateTime; 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; @@ -199,11 +198,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/PremierAddOnImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/PremierAddOnImpl.java index 9d6ff7a8bda0..08225f2befa0 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,13 +11,16 @@ 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 CertificateRegistrationManager manager; private String resourceGroupName; private String name; private String premierAddOnName; + private PremierAddOnPatchResource updateParameter; PremierAddOnImpl(String name, CertificateRegistrationManager manager) { super(name, new PremierAddOnInner()); @@ -25,6 +28,7 @@ class PremierAddOnImpl extends CreatableUpdatableImpl 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/ServerfarmSiteImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmSiteImpl.java index 1f010b721f6d..2194cbe0e031 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 @@ -20,7 +20,6 @@ import org.joda.time.DateTime; 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; @@ -199,11 +198,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/SiteConfigResourceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceImpl.java index e0ac74cc20a5..7077b3ece345 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 @@ -261,6 +261,11 @@ public DateTime requestTracingExpirationTime() { return this.inner().requestTracingExpirationTime(); } + @Override + public Integer reservedInstanceCount() { + return this.inner().reservedInstanceCount(); + } + @Override public ScmType scmType() { return this.inner().scmType(); @@ -297,8 +302,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 d1a8d041b84f..85ede7cd7286 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 @@ -80,8 +80,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, @@ -345,6 +345,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 +495,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; } @@ -1314,4 +1321,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/SiteInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteInner.java index b0ca24374bc9..a97451054eb7 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteInner.java @@ -16,7 +16,6 @@ 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.ManagedServiceIdentity; import com.fasterxml.jackson.annotation.JsonProperty; @@ -215,13 +214,6 @@ public class SiteInner extends Resource { @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. */ @@ -668,26 +660,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. * diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitesImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitesImpl.java index 80ee92626ccd..f7f27b1c485b 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitesImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SitesImpl.java @@ -20,7 +20,6 @@ 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.ManagedServiceIdentity; import rx.functions.Func1; @@ -220,11 +219,6 @@ public SlotSwapStatus slotSwapStatus() { return this.inner().slotSwapStatus(); } - @Override - public SnapshotRecoveryRequest snapshotInfo() { - return this.inner().snapshotInfo(); - } - @Override public String state() { return this.inner().state(); @@ -416,14 +410,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/SlotsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SlotsImpl.java index 94e07e72a23d..6eed2c07e137 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 @@ -21,7 +21,6 @@ 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.ManagedServiceIdentity; import rx.functions.Func1; @@ -263,11 +262,6 @@ public SlotSwapStatus slotSwapStatus() { return this.inner().slotSwapStatus(); } - @Override - public SnapshotRecoveryRequest snapshotInfo() { - return this.inner().snapshotInfo(); - } - @Override public String state() { return this.inner().state(); @@ -488,14 +482,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/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 000000000000..5887093fec08 --- /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 000000000000..4d57e0503064 --- /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/WebAppsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsImpl.java index 6c8d5284410a..ae9c7c9f449a 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsImpl.java @@ -21,6 +21,8 @@ import com.microsoft.azure.management.appservice.v2018_02_01.SiteConfigResource; import com.microsoft.azure.management.appservice.v2018_02_01.BackupRequest; import com.microsoft.azure.management.appservice.v2018_02_01.StringDictionary; +import com.microsoft.azure.management.appservice.v2018_02_01.SwiftVirtualNetwork; +import com.microsoft.azure.management.appservice.v2018_02_01.RestoreRequest; import com.microsoft.azure.management.appservice.v2018_02_01.RelayServiceConnectionEntity; import com.microsoft.azure.management.appservice.v2018_02_01.SiteCloneability; import com.microsoft.azure.management.appservice.v2018_02_01.FunctionSecrets; @@ -33,7 +35,6 @@ import com.microsoft.azure.management.appservice.v2018_02_01.MigrateMySqlRequest; import com.microsoft.azure.management.appservice.v2018_02_01.DeletedAppRestoreRequest; import com.microsoft.azure.management.appservice.v2018_02_01.SnapshotRestoreRequest; -import com.microsoft.azure.management.appservice.v2018_02_01.RestoreRequest; import com.microsoft.azure.management.appservice.v2018_02_01.SiteAuthSettings; import com.microsoft.azure.management.appservice.v2018_02_01.ConnectionStringDictionary; import com.microsoft.azure.management.appservice.v2018_02_01.SiteLogsConfig; @@ -62,6 +63,7 @@ import com.microsoft.azure.management.appservice.v2018_02_01.NetworkFeatures; import com.microsoft.azure.management.appservice.v2018_02_01.PerfMonResponse; import com.microsoft.azure.management.appservice.v2018_02_01.PremierAddOn; +import com.microsoft.azure.management.appservice.v2018_02_01.PremierAddOnPatchResource; import com.microsoft.azure.management.appservice.v2018_02_01.PrivateAccess; import com.microsoft.azure.management.appservice.v2018_02_01.PublicCertificate; import com.microsoft.azure.management.appservice.v2018_02_01.SiteExtensionInfo; @@ -620,6 +622,48 @@ public StringDictionary call(StringDictionaryInner inner) { }); } + @Override + 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 getConfigurationAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -662,6 +706,18 @@ public Completable getWebSiteContainerLogsAsync(String resourceGroupName, String return client.getWebSiteContainerLogsAsync(resourceGroupName, name).toCompletable(); } + @Override + public Observable discoverBackupAsync(String resourceGroupName, String name, RestoreRequestInner request) { + WebAppsInner client = this.inner(); + return client.discoverBackupAsync(resourceGroupName, name, request) + .map(new Func1() { + @Override + public RestoreRequest call(RestoreRequestInner inner) { + return new RestoreRequestImpl(inner, manager()); + } + }); + } + @Override public Completable getFunctionsAdminTokenAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -926,18 +982,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 +1018,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(); @@ -2834,6 +2866,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(); @@ -3188,6 +3232,48 @@ public StringDictionary call(StringDictionaryInner inner) { }); } + @Override + 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.updateSwiftVirtualNetworkConnectionSlotAsync(resourceGroupName, name, slot, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + @Override public Observable getConfigurationSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); @@ -3230,6 +3316,18 @@ public Completable getWebSiteContainerLogsSlotAsync(String resourceGroupName, St return client.getWebSiteContainerLogsSlotAsync(resourceGroupName, name, slot).toCompletable(); } + @Override + public Observable discoverBackupSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { + WebAppsInner client = this.inner(); + return client.discoverBackupSlotAsync(resourceGroupName, name, slot, request) + .map(new Func1() { + @Override + public RestoreRequest call(RestoreRequestInner inner) { + return new RestoreRequestImpl(inner, manager()); + } + }); + } + @Override public Completable getFunctionsAdminTokenSlotAsync(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 a81903070ed5..69ac1f507c2d 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,6 +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.PremierAddOnPatchResource; import com.microsoft.azure.management.appservice.v2018_02_01.PublishingProfileFormat; import com.microsoft.azure.management.appservice.v2018_02_01.SitePatchResource; import com.microsoft.azure.management.appservice.v2018_02_01.SnapshotRestoreRequest; @@ -122,10 +123,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); @@ -226,6 +223,22 @@ interface WebAppsService { @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames") Observable> updateSlotConfigurationNames(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body SlotConfigNamesResourceInner slotConfigNames, @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}/config/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}/config/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}/config/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}/config/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 getConfiguration" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web") Observable> getConfiguration(@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); @@ -300,6 +313,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); @@ -553,6 +570,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); @@ -707,10 +728,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); @@ -803,6 +820,22 @@ interface WebAppsService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/pushsettings/list") Observable> listSitePushSettingsSlot(@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}/config/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}/config/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}/config/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}/config/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 getConfigurationSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web") Observable> getConfigurationSlot(@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); @@ -877,6 +910,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); @@ -1114,6 +1151,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); @@ -3095,104 +3136,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. @@ -5568,6 +5511,398 @@ private ServiceResponse updateSlotConfigurationNam .build(response); } + /** + * 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 + * @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 SwiftVirtualNetworkInner getSwiftVirtualNetworkConnection(String resourceGroupName, String name) { + return getSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * 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 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 getSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable getSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name) { + return getSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name).map(new Func1, SwiftVirtualNetworkInner>() { + @Override + public SwiftVirtualNetworkInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + 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 (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.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) { + try { + ServiceResponse clientResponse = getSwiftVirtualNetworkConnectionDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + + /** + * 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 + * @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 SwiftVirtualNetworkInner createOrUpdateSwiftVirtualNetworkConnection(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).toBlocking().single().body(); + } + + /** + * 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. + * @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 createOrUpdateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope), serviceCallback); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable createOrUpdateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { + @Override + public SwiftVirtualNetworkInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable> createOrUpdateSwiftVirtualNetworkConnectionWithServiceResponseAsync(String resourceGroupName, String name, 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 (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.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) { + try { + ServiceResponse clientResponse = createOrUpdateSwiftVirtualNetworkConnectionDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + + /** + * 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 + * @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 deleteSwiftVirtualNetwork(String resourceGroupName, String name) { + deleteSwiftVirtualNetworkWithServiceResponseAsync(resourceGroupName, name).toBlocking().single().body(); + } + + /** + * 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 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 deleteSwiftVirtualNetworkAsync(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSwiftVirtualNetworkWithServiceResponseAsync(resourceGroupName, name), serviceCallback); + } + + /** + * 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 {@link ServiceResponse} object if successful. + */ + public Observable deleteSwiftVirtualNetworkAsync(String resourceGroupName, String name) { + return deleteSwiftVirtualNetworkWithServiceResponseAsync(resourceGroupName, name).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 {@link ServiceResponse} object if successful. + */ + public Observable> deleteSwiftVirtualNetworkWithServiceResponseAsync(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.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) { + try { + ServiceResponse clientResponse = deleteSwiftVirtualNetworkDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + + /** + * 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 + * @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 SwiftVirtualNetworkInner updateSwiftVirtualNetworkConnection(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).toBlocking().single().body(); + } + + /** + * 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. + * @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 updateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope), serviceCallback); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable updateSwiftVirtualNetworkConnectionAsync(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(resourceGroupName, name, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { + @Override + public SwiftVirtualNetworkInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable> updateSwiftVirtualNetworkConnectionWithServiceResponseAsync(String resourceGroupName, String name, 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 (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.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) { + try { + ServiceResponse clientResponse = updateSwiftVirtualNetworkConnectionDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + /** * 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. @@ -7398,6 +7733,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. @@ -14254,6 +14687,111 @@ private ServiceResponse deletePremierAddOnDelegate(Response .build(response); } + /** + * 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 PremierAddOnInner object if successful. + */ + public PremierAddOnInner updatePremierAddOn(String resourceGroupName, String name, String premierAddOnName, PremierAddOnPatchResource premierAddOn) { + return updatePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, premierAddOn).toBlocking().single().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 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 updatePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnPatchResource premierAddOn, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updatePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, 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 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 updatePremierAddOnAsync(String resourceGroupName, String name, String premierAddOnName, PremierAddOnPatchResource premierAddOn) { + return updatePremierAddOnWithServiceResponseAsync(resourceGroupName, name, premierAddOnName, 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 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> 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 (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.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) { + try { + ServiceResponse clientResponse = updatePremierAddOnDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + /** * 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. @@ -18536,111 +19074,6 @@ private ServiceResponse> listBackupsSlotDelegate(Respo .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 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 RestoreRequestInner object if successful. - */ - public RestoreRequestInner discoverRestoreSlot(String resourceGroupName, String name, String slot, RestoreRequestInner request) { - return discoverRestoreSlotWithServiceResponseAsync(resourceGroupName, name, slot, 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 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 discoverRestoreSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(discoverRestoreSlotWithServiceResponseAsync(resourceGroupName, name, slot, 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 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 to the RestoreRequestInner object - */ - public Observable discoverRestoreSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { - return discoverRestoreSlotWithServiceResponseAsync(resourceGroupName, name, slot, 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 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 to the RestoreRequestInner object - */ - public Observable> discoverRestoreSlotWithServiceResponseAsync(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 (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.discoverRestoreSlot(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 = discoverRestoreSlotDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse discoverRestoreSlotDelegate(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. @@ -20990,6 +21423,426 @@ private ServiceResponse listSitePushSettingsSlotDelegate(Resp .build(response); } + /** + * 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 + * @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 SwiftVirtualNetworkInner getSwiftVirtualNetworkConnectionSlot(String resourceGroupName, String name, String slot) { + return getSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * 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. + * @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 getSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable getSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot) { + return getSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot).map(new Func1, SwiftVirtualNetworkInner>() { + @Override + public SwiftVirtualNetworkInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + 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 (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.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) { + try { + ServiceResponse clientResponse = getSwiftVirtualNetworkConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + + /** + * 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 + * @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 SwiftVirtualNetworkInner createOrUpdateSwiftVirtualNetworkConnectionSlot(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).toBlocking().single().body(); + } + + /** + * 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. + * @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 createOrUpdateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope), serviceCallback); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable createOrUpdateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { + @Override + public SwiftVirtualNetworkInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + 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 (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.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) { + try { + ServiceResponse clientResponse = createOrUpdateSwiftVirtualNetworkConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + + /** + * 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 + * @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 deleteSwiftVirtualNetworkSlot(String resourceGroupName, String name, String slot) { + deleteSwiftVirtualNetworkSlotWithServiceResponseAsync(resourceGroupName, name, slot).toBlocking().single().body(); + } + + /** + * 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. + * @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 deleteSwiftVirtualNetworkSlotAsync(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSwiftVirtualNetworkSlotWithServiceResponseAsync(resourceGroupName, name, slot), serviceCallback); + } + + /** + * 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 {@link ServiceResponse} object if successful. + */ + 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(); + } + }); + } + + /** + * 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 {@link ServiceResponse} object if successful. + */ + 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 (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.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) { + try { + ServiceResponse clientResponse = deleteSwiftVirtualNetworkSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + + /** + * 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 + * @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 SwiftVirtualNetworkInner updateSwiftVirtualNetworkConnectionSlot(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).toBlocking().single().body(); + } + + /** + * 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. + * @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 updateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope), serviceCallback); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + public Observable updateSwiftVirtualNetworkConnectionSlotAsync(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionSlotWithServiceResponseAsync(resourceGroupName, name, slot, connectionEnvelope).map(new Func1, SwiftVirtualNetworkInner>() { + @Override + public SwiftVirtualNetworkInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * 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 to the SwiftVirtualNetworkInner object + */ + 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 (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.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) { + try { + ServiceResponse clientResponse = updateSwiftVirtualNetworkConnectionSlotDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + 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); + } + /** * 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. @@ -22949,6 +23802,111 @@ private ServiceResponse listDeploymentLogSlotDelegate(Response< .build(response); } + /** + * 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 + * @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 discoverBackupSlot(String resourceGroupName, String name, String slot, RestoreRequestInner request) { + return discoverBackupSlotWithServiceResponseAsync(resourceGroupName, name, slot, request).toBlocking().single().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 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 discoverBackupSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(discoverBackupSlotWithServiceResponseAsync(resourceGroupName, name, slot, 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 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 to the RestoreRequestInner object + */ + public Observable discoverBackupSlotAsync(String resourceGroupName, String name, String slot, RestoreRequestInner request) { + return discoverBackupSlotWithServiceResponseAsync(resourceGroupName, name, slot, 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 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 to the RestoreRequestInner object + */ + 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 (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.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); + } + /** * Lists ownership identifiers for domain associated with web app. * Lists ownership identifiers for domain associated with web app. @@ -29879,6 +30837,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. @@ -33893,10 +34963,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 +34979,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 +34991,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 +35010,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 +35029,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 +35042,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 +35153,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); } @@ -37293,10 +38363,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 +38378,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 +38389,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 +38407,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 +38423,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 +38436,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 +38540,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); } 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 6042207d62d8..1e547564e71d 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 @@ -428,7 +428,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 +440,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("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") @@ -1015,7 +1015,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 +1035,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 +1056,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 +1078,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 +1097,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 +1120,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 +1507,8 @@ 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; + return service.listGeoRegions(this.subscriptionId(), sku, linuxWorkersEnabled, xenonWorkersEnabled, this.apiVersion(), this.acceptLanguage(), this.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1521,13 +1528,14 @@ 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) { + ServiceResponse> response = listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { @@ -1542,13 +1550,14 @@ public Page nextPage(String nextPageLink) { * * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2' * @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 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 ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled), + listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { @@ -1564,11 +1573,12 @@ public Observable>> call(String nextPageLin * * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2' * @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. * @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) { + return listGeoRegionsWithServiceResponseAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -1583,11 +1593,12 @@ public Page call(ServiceResponse> response) * * @param sku Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated', 'PremiumV2' * @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. * @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) { + return listGeoRegionsSinglePageAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -1606,17 +1617,18 @@ 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 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. * @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) { 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, this.apiVersion(), this.acceptLanguage(), this.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) {