diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java index fa7d031a3c4e..da8bc91cb228 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/CorsSettings.java @@ -23,6 +23,14 @@ public class CorsSettings { @JsonProperty(value = "allowedOrigins") private List allowedOrigins; + /** + * Gets or sets whether CORS requests with credentials are allowed. See + * https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials + * for more details. + */ + @JsonProperty(value = "supportCredentials") + private Boolean supportCredentials; + /** * Get gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. @@ -45,4 +53,28 @@ public CorsSettings withAllowedOrigins(List allowedOrigins) { return this; } + /** + * Get gets or sets whether CORS requests with credentials are allowed. See + https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials + for more details. + * + * @return the supportCredentials value + */ + public Boolean supportCredentials() { + return this.supportCredentials; + } + + /** + * Set gets or sets whether CORS requests with credentials are allowed. See + https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials + for more details. + * + * @param supportCredentials the supportCredentials value to set + * @return the CorsSettings object itself. + */ + public CorsSettings withSupportCredentials(Boolean supportCredentials) { + this.supportCredentials = supportCredentials; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java index 5907be148642..f64f8735eab5 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/DeletedAppRestoreRequest.java @@ -38,6 +38,12 @@ public class DeletedAppRestoreRequest extends ProxyOnlyResource { @JsonProperty(value = "properties.snapshotTime") private String snapshotTime; + /** + * If true, the snapshot is retrieved from DRSecondary endpoint. + */ + @JsonProperty(value = "properties.useDRSecondary") + private Boolean useDRSecondary; + /** * Get aRM resource ID of the deleted app. Example: /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}. @@ -102,4 +108,24 @@ public DeletedAppRestoreRequest withSnapshotTime(String snapshotTime) { return this; } + /** + * Get if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @return the useDRSecondary value + */ + public Boolean useDRSecondary() { + return this.useDRSecondary; + } + + /** + * Set if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @param useDRSecondary the useDRSecondary value to set + * @return the DeletedAppRestoreRequest object itself. + */ + public DeletedAppRestoreRequest withUseDRSecondary(Boolean useDRSecondary) { + this.useDRSecondary = useDRSecondary; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java index 675e1c498855..2cdea9007e60 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/ServerfarmVnetInfo.java @@ -40,6 +40,11 @@ public interface ServerfarmVnetInfo extends HasInner, Indexable, */ String id(); + /** + * @return the isSwift value. + */ + Boolean isSwift(); + /** * @return the kind value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java index 66d42e5456c2..1a0f191aa5fa 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteAuthSettings.java @@ -43,6 +43,11 @@ public interface SiteAuthSettings extends HasInner, HasMa */ String clientSecret(); + /** + * @return the clientSecretCertificateThumbprint value. + */ + String clientSecretCertificateThumbprint(); + /** * @return the defaultProvider value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfig.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteConfig.java index c36b338ac147..de73bb82e996 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 @@ -308,11 +308,23 @@ public class SiteConfig { private Integer xManagedServiceIdentityId; /** - * IP security restrictions. + * IP security restrictions for main. */ @JsonProperty(value = "ipSecurityRestrictions") private List ipSecurityRestrictions; + /** + * IP security restrictions for scm. + */ + @JsonProperty(value = "scmIpSecurityRestrictions") + private List scmIpSecurityRestrictions; + + /** + * IP security restrictions for scm to use main. + */ + @JsonProperty(value = "scmIpSecurityRestrictionsUseMain") + private Boolean scmIpSecurityRestrictionsUseMain; + /** * Http20Enabled: configures a web site to allow clients to connect over * http2.0. @@ -1251,7 +1263,7 @@ public SiteConfig withXManagedServiceIdentityId(Integer xManagedServiceIdentityI } /** - * Get iP security restrictions. + * Get iP security restrictions for main. * * @return the ipSecurityRestrictions value */ @@ -1260,7 +1272,7 @@ public List ipSecurityRestrictions() { } /** - * Set iP security restrictions. + * Set iP security restrictions for main. * * @param ipSecurityRestrictions the ipSecurityRestrictions value to set * @return the SiteConfig object itself. @@ -1270,6 +1282,46 @@ public SiteConfig withIpSecurityRestrictions(List ipSecur return this; } + /** + * Get iP security restrictions for scm. + * + * @return the scmIpSecurityRestrictions value + */ + public List scmIpSecurityRestrictions() { + return this.scmIpSecurityRestrictions; + } + + /** + * Set iP security restrictions for scm. + * + * @param scmIpSecurityRestrictions the scmIpSecurityRestrictions value to set + * @return the SiteConfig object itself. + */ + public SiteConfig withScmIpSecurityRestrictions(List scmIpSecurityRestrictions) { + this.scmIpSecurityRestrictions = scmIpSecurityRestrictions; + return this; + } + + /** + * Get iP security restrictions for scm to use main. + * + * @return the scmIpSecurityRestrictionsUseMain value + */ + public Boolean scmIpSecurityRestrictionsUseMain() { + return this.scmIpSecurityRestrictionsUseMain; + } + + /** + * Set iP security restrictions for scm to use main. + * + * @param scmIpSecurityRestrictionsUseMain the scmIpSecurityRestrictionsUseMain value to set + * @return the SiteConfig object itself. + */ + public SiteConfig withScmIpSecurityRestrictionsUseMain(Boolean scmIpSecurityRestrictionsUseMain) { + this.scmIpSecurityRestrictionsUseMain = scmIpSecurityRestrictionsUseMain; + return this; + } + /** * Get http20Enabled: configures a web site to allow clients to connect over http2.0. * 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 aa5dd7d05142..292c423f3844 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 @@ -251,6 +251,16 @@ public interface SiteConfigResource extends HasInner, H */ Integer reservedInstanceCount(); + /** + * @return the scmIpSecurityRestrictions value. + */ + List scmIpSecurityRestrictions(); + + /** + * @return the scmIpSecurityRestrictionsUseMain value. + */ + Boolean scmIpSecurityRestrictionsUseMain(); + /** * @return the scmType value. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java index 9269d719e18c..306c8ab51455 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SiteVnetInfo.java @@ -43,6 +43,11 @@ public interface SiteVnetInfo extends HasInner, Indexable, Refres */ String id(); + /** + * @return the isSwift value. + */ + Boolean isSwift(); + /** * @return the kind value. */ @@ -119,6 +124,16 @@ interface WithDnsServers { WithCreate withDnsServers(String dnsServers); } + /** + * The stage of the sitevnetinfo definition allowing to specify IsSwift. + */ + interface WithIsSwift { + /** + * Specifies isSwift. + */ + WithCreate withIsSwift(Boolean isSwift); + } + /** * The stage of the sitevnetinfo definition allowing to specify Kind. */ @@ -144,13 +159,13 @@ interface WithVnetResourceId { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithCertBlob, DefinitionStages.WithDnsServers, DefinitionStages.WithKind, DefinitionStages.WithVnetResourceId { + interface WithCreate extends Creatable, DefinitionStages.WithCertBlob, DefinitionStages.WithDnsServers, DefinitionStages.WithIsSwift, DefinitionStages.WithKind, DefinitionStages.WithVnetResourceId { } } /** * The template for a SiteVnetInfo update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithCertBlob, UpdateStages.WithDnsServers, UpdateStages.WithKind, UpdateStages.WithVnetResourceId { + interface Update extends Appliable, UpdateStages.WithCertBlob, UpdateStages.WithDnsServers, UpdateStages.WithIsSwift, UpdateStages.WithKind, UpdateStages.WithVnetResourceId { } /** @@ -177,6 +192,16 @@ interface WithDnsServers { Update withDnsServers(String dnsServers); } + /** + * The stage of the sitevnetinfo update allowing to specify IsSwift. + */ + interface WithIsSwift { + /** + * Specifies isSwift. + */ + Update withIsSwift(Boolean isSwift); + } + /** * The stage of the sitevnetinfo update allowing to specify Kind. */ diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java index a6bdda909ef2..f8a00cf4f4a6 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/SnapshotRestoreRequest.java @@ -52,6 +52,12 @@ public class SnapshotRestoreRequest extends ProxyOnlyResource { @JsonProperty(value = "properties.ignoreConflictingHostNames") private Boolean ignoreConflictingHostNames; + /** + * If true, the snapshot is retrieved from DRSecondary endpoint. + */ + @JsonProperty(value = "properties.useDRSecondary") + private Boolean useDRSecondary; + /** * Get point in time in which the app restore should be done, formatted as a DateTime string. * @@ -156,4 +162,24 @@ public SnapshotRestoreRequest withIgnoreConflictingHostNames(Boolean ignoreConfl return this; } + /** + * Get if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @return the useDRSecondary value + */ + public Boolean useDRSecondary() { + return this.useDRSecondary; + } + + /** + * Set if true, the snapshot is retrieved from DRSecondary endpoint. + * + * @param useDRSecondary the useDRSecondary value to set + * @return the SnapshotRestoreRequest object itself. + */ + public SnapshotRestoreRequest withUseDRSecondary(Boolean useDRSecondary) { + this.useDRSecondary = useDRSecondary; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java index e49ec1834661..cb97f3def320 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/StackMajorVersion.java @@ -40,6 +40,13 @@ public class StackMajorVersion { @JsonProperty(value = "minorVersions") private List minorVersions; + /** + * <code>true</code> if this supports Application Insights; + * otherwise, <code>false</code>. + */ + @JsonProperty(value = "applicationInsights") + private Boolean applicationInsights; + /** * Get application stack major version (display only). * @@ -120,4 +127,24 @@ public StackMajorVersion withMinorVersions(List minorVersions return this; } + /** + * Get <code>true</code> if this supports Application Insights; otherwise, <code>false</code>. + * + * @return the applicationInsights value + */ + public Boolean applicationInsights() { + return this.applicationInsights; + } + + /** + * Set <code>true</code> if this supports Application Insights; otherwise, <code>false</code>. + * + * @param applicationInsights the applicationInsights value to set + * @return the StackMajorVersion object itself. + */ + public StackMajorVersion withApplicationInsights(Boolean applicationInsights) { + this.applicationInsights = applicationInsights; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebApps.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/WebApps.java index 527b0a5a7de3..823179aa9683 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 @@ -515,6 +515,56 @@ public interface WebApps { */ Observable migrateMySqlAsync(String resourceGroupName, String name, MigrateMySqlRequest migrationRequestEnvelope); + /** + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getSwiftVirtualNetworkConnection1Async(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 createOrUpdateSwiftVirtualNetworkConnection1Async(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 deleteSwiftVirtualNetwork1Async(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 updateSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope); + /** * Start capturing network packets for the site (To be deprecated). * Start capturing network packets for the site (To be deprecated). @@ -688,6 +738,17 @@ public interface WebApps { */ Completable swapSlotWithProductionAsync(String resourceGroupName, String name, CsmSlotEntity slotSwapEntity); + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name); + /** * Starts an app (or deployment slot, if specified). * Starts an app (or deployment slot, if specified). @@ -3449,6 +3510,60 @@ public interface WebApps { */ Observable listSyncFunctionTriggersSlotAsync(String resourceGroupName, String name, String slot); + /** + * Gets a Swift Virtual Network connection. + * Gets a Swift Virtual Network connection. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param slot Name of the deployment slot. If a slot is not specified, the API will get a gateway for the production slot's Virtual Network. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable getSwiftVirtualNetworkConnectionSlot1Async(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 createOrUpdateSwiftVirtualNetworkConnectionSlot1Async(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 deleteSwiftVirtualNetworkSlot1Async(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 updateSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope); + /** * Start capturing network packets for the site (To be deprecated). * Start capturing network packets for the site (To be deprecated). @@ -3637,6 +3752,18 @@ public interface WebApps { */ Completable swapSlotSlotAsync(String resourceGroupName, String name, String slot, CsmSlotEntity slotSwapEntity); + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + Observable listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot); + /** * Starts an app (or deployment slot, if specified). * Starts an app (or deployment slot, if specified). diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetInfoImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetInfoImpl.java index 85b9462df550..22ae602d70a8 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetInfoImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/ServerfarmVnetInfoImpl.java @@ -62,6 +62,11 @@ public String id() { return this.inner().id(); } + @Override + public Boolean isSwift() { + return this.inner().isSwift(); + } + @Override public String kind() { return this.inner().kind(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java index 2f3c3673fe88..e57dce34d6d0 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsImpl.java @@ -51,6 +51,11 @@ public String clientSecret() { return this.inner().clientSecret(); } + @Override + public String clientSecretCertificateThumbprint() { + return this.inner().clientSecretCertificateThumbprint(); + } + @Override public BuiltInAuthenticationProvider defaultProvider() { return this.inner().defaultProvider(); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java index f0d378ed3897..b13f42a2cb37 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteAuthSettingsInner.java @@ -108,6 +108,14 @@ public class SiteAuthSettingsInner extends ProxyOnlyResource { @JsonProperty(value = "properties.clientSecret") private String clientSecret; + /** + * An alternative to the client secret, that is the thumbprint of a + * certifite used for signing purposes. This property acts as + * a replacement for the Client Secret. It is also optional. + */ + @JsonProperty(value = "properties.clientSecretCertificateThumbprint") + private String clientSecretCertificateThumbprint; + /** * The OpenID Connect Issuer URI that represents the entity which issues * access tokens for this application. @@ -455,6 +463,28 @@ public SiteAuthSettingsInner withClientSecret(String clientSecret) { return this; } + /** + * Get an alternative to the client secret, that is the thumbprint of a certifite used for signing purposes. This property acts as + a replacement for the Client Secret. It is also optional. + * + * @return the clientSecretCertificateThumbprint value + */ + public String clientSecretCertificateThumbprint() { + return this.clientSecretCertificateThumbprint; + } + + /** + * Set an alternative to the client secret, that is the thumbprint of a certifite used for signing purposes. This property acts as + a replacement for the Client Secret. It is also optional. + * + * @param clientSecretCertificateThumbprint the clientSecretCertificateThumbprint value to set + * @return the SiteAuthSettingsInner object itself. + */ + public SiteAuthSettingsInner withClientSecretCertificateThumbprint(String clientSecretCertificateThumbprint) { + this.clientSecretCertificateThumbprint = clientSecretCertificateThumbprint; + return this; + } + /** * Get the OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/. diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteConfigResourceImpl.java index 65f6282a6090..b2e59dc919ac 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 @@ -273,6 +273,16 @@ public Integer reservedInstanceCount() { return this.inner().reservedInstanceCount(); } + @Override + public List scmIpSecurityRestrictions() { + return this.inner().scmIpSecurityRestrictions(); + } + + @Override + public Boolean scmIpSecurityRestrictionsUseMain() { + return this.inner().scmIpSecurityRestrictionsUseMain(); + } + @Override public ScmType scmType() { return this.inner().scmType(); 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 647109a1712d..a0980b58e7bb 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 @@ -327,11 +327,23 @@ public class SiteConfigResourceInner extends ProxyOnlyResource { private Integer xManagedServiceIdentityId; /** - * IP security restrictions. + * IP security restrictions for main. */ @JsonProperty(value = "properties.ipSecurityRestrictions") private List ipSecurityRestrictions; + /** + * IP security restrictions for scm. + */ + @JsonProperty(value = "properties.scmIpSecurityRestrictions") + private List scmIpSecurityRestrictions; + + /** + * IP security restrictions for scm to use main. + */ + @JsonProperty(value = "properties.scmIpSecurityRestrictionsUseMain") + private Boolean scmIpSecurityRestrictionsUseMain; + /** * Http20Enabled: configures a web site to allow clients to connect over * http2.0. @@ -1270,7 +1282,7 @@ public SiteConfigResourceInner withXManagedServiceIdentityId(Integer xManagedSer } /** - * Get iP security restrictions. + * Get iP security restrictions for main. * * @return the ipSecurityRestrictions value */ @@ -1279,7 +1291,7 @@ public List ipSecurityRestrictions() { } /** - * Set iP security restrictions. + * Set iP security restrictions for main. * * @param ipSecurityRestrictions the ipSecurityRestrictions value to set * @return the SiteConfigResourceInner object itself. @@ -1289,6 +1301,46 @@ public SiteConfigResourceInner withIpSecurityRestrictions(List scmIpSecurityRestrictions() { + return this.scmIpSecurityRestrictions; + } + + /** + * Set iP security restrictions for scm. + * + * @param scmIpSecurityRestrictions the scmIpSecurityRestrictions value to set + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withScmIpSecurityRestrictions(List scmIpSecurityRestrictions) { + this.scmIpSecurityRestrictions = scmIpSecurityRestrictions; + return this; + } + + /** + * Get iP security restrictions for scm to use main. + * + * @return the scmIpSecurityRestrictionsUseMain value + */ + public Boolean scmIpSecurityRestrictionsUseMain() { + return this.scmIpSecurityRestrictionsUseMain; + } + + /** + * Set iP security restrictions for scm to use main. + * + * @param scmIpSecurityRestrictionsUseMain the scmIpSecurityRestrictionsUseMain value to set + * @return the SiteConfigResourceInner object itself. + */ + public SiteConfigResourceInner withScmIpSecurityRestrictionsUseMain(Boolean scmIpSecurityRestrictionsUseMain) { + this.scmIpSecurityRestrictionsUseMain = scmIpSecurityRestrictionsUseMain; + return this; + } + /** * Get http20Enabled: configures a web site to allow clients to connect over http2.0. * diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetInfoImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetInfoImpl.java index 6b5dadca1cf4..65a6b705df1d 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetInfoImpl.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/SiteVnetInfoImpl.java @@ -94,6 +94,11 @@ public String id() { return this.inner().id(); } + @Override + public Boolean isSwift() { + return this.inner().isSwift(); + } + @Override public String kind() { return this.inner().kind(); @@ -150,6 +155,12 @@ public SiteVnetInfoImpl withDnsServers(String dnsServers) { return this; } + @Override + public SiteVnetInfoImpl withIsSwift(Boolean isSwift) { + this.inner().withIsSwift(isSwift); + return this; + } + @Override public SiteVnetInfoImpl withKind(String kind) { this.inner().withKind(kind); diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java index fb5c52f0698b..76573b732a59 100644 --- a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java +++ b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/VnetInfoInner.java @@ -58,6 +58,12 @@ public class VnetInfoInner extends ProxyOnlyResource { @JsonProperty(value = "properties.dnsServers") private String dnsServers; + /** + * Flag that is used to denote if this is VNET injection. + */ + @JsonProperty(value = "properties.isSwift") + private Boolean isSwift; + /** * Get the Virtual Network's resource ID. * @@ -147,4 +153,24 @@ public VnetInfoInner withDnsServers(String dnsServers) { return this; } + /** + * Get flag that is used to denote if this is VNET injection. + * + * @return the isSwift value + */ + public Boolean isSwift() { + return this.isSwift; + } + + /** + * Set flag that is used to denote if this is VNET injection. + * + * @param isSwift the isSwift value to set + * @return the VnetInfoInner object itself. + */ + public VnetInfoInner withIsSwift(Boolean isSwift) { + this.isSwift = isSwift; + return this; + } + } diff --git a/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsImpl.java b/appservice/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/WebAppsImpl.java index cdbd26aadcd5..d49fa89892e0 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 @@ -32,6 +32,7 @@ import com.microsoft.azure.management.appservice.v2018_02_01.NetworkTrace; import com.microsoft.azure.management.appservice.v2018_02_01.SitePhpErrorLogFlag; import com.microsoft.azure.management.appservice.v2018_02_01.SlotDifference; +import com.microsoft.azure.management.appservice.v2018_02_01.Snapshot; import com.microsoft.azure.management.appservice.v2018_02_01.CsmSlotEntity; import com.microsoft.azure.management.appservice.v2018_02_01.StorageMigrationOptions; import com.microsoft.azure.management.appservice.v2018_02_01.MigrateMySqlRequest; @@ -45,7 +46,6 @@ import com.microsoft.azure.management.appservice.v2018_02_01.User; import com.microsoft.azure.management.appservice.v2018_02_01.PushSettings; import com.microsoft.azure.management.appservice.v2018_02_01.SlotConfigNamesResource; -import com.microsoft.azure.management.appservice.v2018_02_01.Snapshot; import com.microsoft.azure.management.appservice.v2018_02_01.SiteConfigurationSnapshotInfo; import com.microsoft.azure.management.appservice.v2018_02_01.ContinuousWebJob; import com.microsoft.azure.management.appservice.v2018_02_01.Deployment; @@ -829,6 +829,48 @@ public Operation call(OperationInner inner) { }); } + @Override + public Observable getSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.getSwiftVirtualNetworkConnection1Async(resourceGroupName, name) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Observable createOrUpdateSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + WebAppsInner client = this.inner(); + return client.createOrUpdateSwiftVirtualNetworkConnection1Async(resourceGroupName, name, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Completable deleteSwiftVirtualNetwork1Async(String resourceGroupName, String name) { + WebAppsInner client = this.inner(); + return client.deleteSwiftVirtualNetwork1Async(resourceGroupName, name).toCompletable(); + } + + @Override + public Observable updateSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + WebAppsInner client = this.inner(); + return client.updateSwiftVirtualNetworkConnection1Async(resourceGroupName, name, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + @Override public Completable startWebSiteNetworkTraceAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -961,6 +1003,24 @@ public Completable swapSlotWithProductionAsync(String resourceGroupName, String return client.swapSlotWithProductionAsync(resourceGroupName, name, slotSwapEntity).toCompletable(); } + @Override + public Observable listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name) { + WebAppsInner client = this.inner(); + return client.listSnapshotsFromDRSecondaryAsync(resourceGroupName, name) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Snapshot call(SnapshotInner inner) { + return new SnapshotImpl(inner, manager()); + } + }); + } + @Override public Completable startAsync(String resourceGroupName, String name) { WebAppsInner client = this.inner(); @@ -3631,6 +3691,48 @@ public FunctionSecrets call(FunctionSecretsInner inner) { }); } + @Override + public Observable getSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.getSwiftVirtualNetworkConnectionSlot1Async(resourceGroupName, name, slot) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Observable createOrUpdateSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + WebAppsInner client = this.inner(); + return client.createOrUpdateSwiftVirtualNetworkConnectionSlot1Async(resourceGroupName, name, slot, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + + @Override + public Completable deleteSwiftVirtualNetworkSlot1Async(String resourceGroupName, String name, String slot) { + WebAppsInner client = this.inner(); + return client.deleteSwiftVirtualNetworkSlot1Async(resourceGroupName, name, slot).toCompletable(); + } + + @Override + public Observable updateSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + WebAppsInner client = this.inner(); + return client.updateSwiftVirtualNetworkConnectionSlot1Async(resourceGroupName, name, slot, connectionEnvelope) + .map(new Func1() { + @Override + public SwiftVirtualNetwork call(SwiftVirtualNetworkInner inner) { + return new SwiftVirtualNetworkImpl(inner, manager()); + } + }); + } + @Override public Completable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); @@ -3763,6 +3865,24 @@ public Completable swapSlotSlotAsync(String resourceGroupName, String name, Stri return client.swapSlotSlotAsync(resourceGroupName, name, slot, slotSwapEntity).toCompletable(); } + @Override + public Observable listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot) { + WebAppsInner client = this.inner(); + return client.listSnapshotsFromDRSecondarySlotAsync(resourceGroupName, name, slot) + .flatMapIterable(new Func1, Iterable>() { + @Override + public Iterable call(Page page) { + return page.items(); + } + }) + .map(new Func1() { + @Override + public Snapshot call(SnapshotInner inner) { + return new SnapshotImpl(inner, manager()); + } + }); + } + @Override public Completable startSlotAsync(String resourceGroupName, String name, String slot) { WebAppsInner client = this.inner(); 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 bfe4168935c2..eb2f5e69f68f 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 @@ -537,6 +537,22 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql/status") Observable> getMigrateMySqlStatus(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSwiftVirtualNetworkConnection1" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork") + Observable> getSwiftVirtualNetworkConnection1(@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 createOrUpdateSwiftVirtualNetworkConnection1" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork") + Observable> createOrUpdateSwiftVirtualNetworkConnection1(@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 deleteSwiftVirtualNetwork1" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork", method = "DELETE", hasBody = true) + Observable> deleteSwiftVirtualNetwork1(@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 updateSwiftVirtualNetworkConnection1" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork") + Observable> updateSwiftVirtualNetworkConnection1(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body SwiftVirtualNetworkInner connectionEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listNetworkFeatures" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkFeatures/{view}") Observable> listNetworkFeatures(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("view") String view, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1150,6 +1166,22 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/migratemysql/status") Observable> getMigrateMySqlStatusSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSwiftVirtualNetworkConnectionSlot1" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork") + Observable> getSwiftVirtualNetworkConnectionSlot1(@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 createOrUpdateSwiftVirtualNetworkConnectionSlot1" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork") + Observable> createOrUpdateSwiftVirtualNetworkConnectionSlot1(@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 deleteSwiftVirtualNetworkSlot1" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork", method = "DELETE", hasBody = true) + Observable> deleteSwiftVirtualNetworkSlot1(@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 updateSwiftVirtualNetworkConnectionSlot1" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork") + Observable> updateSwiftVirtualNetworkConnectionSlot1(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Body SwiftVirtualNetworkInner connectionEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listNetworkFeaturesSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkFeatures/{view}") Observable> listNetworkFeaturesSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("view") String view, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1348,6 +1380,10 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshots") Observable> listSnapshotsSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondarySlot" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/snapshotsdr") + Observable> listSnapshotsFromDRSecondarySlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSourceControlSlot" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web") Observable> getSourceControlSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1480,6 +1516,10 @@ interface WebAppsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshots") Observable> listSnapshots(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondary" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/snapshotsdr") + Observable> listSnapshotsFromDRSecondary(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps getSourceControl" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web") Observable> getSourceControl(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1776,6 +1816,10 @@ interface WebAppsService { @GET Observable> listSnapshotsSlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondarySlotNext" }) + @GET + Observable> listSnapshotsFromDRSecondarySlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listTriggeredWebJobsSlotNext" }) @GET Observable> listTriggeredWebJobsSlotNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -1800,6 +1844,10 @@ interface WebAppsService { @GET Observable> listSnapshotsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listSnapshotsFromDRSecondaryNext" }) + @GET + Observable> listSnapshotsFromDRSecondaryNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.v2018_02_01.WebApps listTriggeredWebJobsNext" }) @GET Observable> listTriggeredWebJobsNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -13763,6 +13811,398 @@ private ServiceResponse getMigrateMySqlStatusDelegate(R .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 getSwiftVirtualNetworkConnection1(String resourceGroupName, String name) { + return getSwiftVirtualNetworkConnection1WithServiceResponseAsync(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 getSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSwiftVirtualNetworkConnection1WithServiceResponseAsync(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 getSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name) { + return getSwiftVirtualNetworkConnection1WithServiceResponseAsync(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> getSwiftVirtualNetworkConnection1WithServiceResponseAsync(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.getSwiftVirtualNetworkConnection1(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 = getSwiftVirtualNetworkConnection1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getSwiftVirtualNetworkConnection1Delegate(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 createOrUpdateSwiftVirtualNetworkConnection1(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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 createOrUpdateSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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 createOrUpdateSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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> createOrUpdateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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.createOrUpdateSwiftVirtualNetworkConnection1(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 = createOrUpdateSwiftVirtualNetworkConnection1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateSwiftVirtualNetworkConnection1Delegate(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 deleteSwiftVirtualNetwork1(String resourceGroupName, String name) { + deleteSwiftVirtualNetwork1WithServiceResponseAsync(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 deleteSwiftVirtualNetwork1Async(String resourceGroupName, String name, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSwiftVirtualNetwork1WithServiceResponseAsync(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 deleteSwiftVirtualNetwork1Async(String resourceGroupName, String name) { + return deleteSwiftVirtualNetwork1WithServiceResponseAsync(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> deleteSwiftVirtualNetwork1WithServiceResponseAsync(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.deleteSwiftVirtualNetwork1(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 = deleteSwiftVirtualNetwork1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteSwiftVirtualNetwork1Delegate(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 updateSwiftVirtualNetworkConnection1(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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 updateSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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 updateSwiftVirtualNetworkConnection1Async(String resourceGroupName, String name, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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> updateSwiftVirtualNetworkConnection1WithServiceResponseAsync(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.updateSwiftVirtualNetworkConnection1(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 = updateSwiftVirtualNetworkConnection1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateSwiftVirtualNetworkConnection1Delegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Gets all network features used by the app (or deployment slot, if specified). * Gets all network features used by the app (or deployment slot, if specified). @@ -30672,6 +31112,426 @@ private ServiceResponse getMigrateMySqlStatusSlotDelega .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 getSwiftVirtualNetworkConnectionSlot1(String resourceGroupName, String name, String slot) { + return getSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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 getSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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 getSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot) { + return getSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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> getSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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.getSwiftVirtualNetworkConnectionSlot1(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 = getSwiftVirtualNetworkConnectionSlot1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getSwiftVirtualNetworkConnectionSlot1Delegate(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 createOrUpdateSwiftVirtualNetworkConnectionSlot1(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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 createOrUpdateSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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 createOrUpdateSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return createOrUpdateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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> createOrUpdateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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.createOrUpdateSwiftVirtualNetworkConnectionSlot1(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 = createOrUpdateSwiftVirtualNetworkConnectionSlot1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse createOrUpdateSwiftVirtualNetworkConnectionSlot1Delegate(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 deleteSwiftVirtualNetworkSlot1(String resourceGroupName, String name, String slot) { + deleteSwiftVirtualNetworkSlot1WithServiceResponseAsync(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 deleteSwiftVirtualNetworkSlot1Async(String resourceGroupName, String name, String slot, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteSwiftVirtualNetworkSlot1WithServiceResponseAsync(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 deleteSwiftVirtualNetworkSlot1Async(String resourceGroupName, String name, String slot) { + return deleteSwiftVirtualNetworkSlot1WithServiceResponseAsync(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> deleteSwiftVirtualNetworkSlot1WithServiceResponseAsync(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.deleteSwiftVirtualNetworkSlot1(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 = deleteSwiftVirtualNetworkSlot1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteSwiftVirtualNetworkSlot1Delegate(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 updateSwiftVirtualNetworkConnectionSlot1(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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 updateSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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 updateSwiftVirtualNetworkConnectionSlot1Async(String resourceGroupName, String name, String slot, SwiftVirtualNetworkInner connectionEnvelope) { + return updateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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> updateSwiftVirtualNetworkConnectionSlot1WithServiceResponseAsync(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.updateSwiftVirtualNetworkConnectionSlot1(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 = updateSwiftVirtualNetworkConnectionSlot1Delegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateSwiftVirtualNetworkConnectionSlot1Delegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Gets all network features used by the app (or deployment slot, if specified). * Gets all network features used by the app (or deployment slot, if specified). @@ -36471,6 +37331,142 @@ private ServiceResponse> listSnapshotsSlotDelegate(Respo .build(response); } + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsFromDRSecondarySlot(final String resourceGroupName, final String name, final String slot) { + ServiceResponse> response = listSnapshotsFromDRSecondarySlotSinglePageAsync(resourceGroupName, name, slot).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsFromDRSecondarySlotSinglePageAsync(resourceGroupName, name, slot), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsFromDRSecondarySlotAsync(final String resourceGroupName, final String name, final String slot) { + return listSnapshotsFromDRSecondarySlotWithServiceResponseAsync(resourceGroupName, name, slot) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable>> listSnapshotsFromDRSecondarySlotWithServiceResponseAsync(final String resourceGroupName, final String name, final String slot) { + return listSnapshotsFromDRSecondarySlotSinglePageAsync(resourceGroupName, name, slot) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsFromDRSecondarySlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Website Name. + ServiceResponse> * @param slot Website Slot. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSnapshotsFromDRSecondarySlotSinglePageAsync(final String resourceGroupName, final String name, final String slot) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + 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.listSnapshotsFromDRSecondarySlot(resourceGroupName, name, slot, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSnapshotsFromDRSecondarySlotDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSnapshotsFromDRSecondarySlotDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Gets the source control configuration of an app. * Gets the source control configuration of an app. @@ -40367,6 +41363,134 @@ private ServiceResponse> listSnapshotsDelegate(Response< .build(response); } + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsFromDRSecondary(final String resourceGroupName, final String name) { + ServiceResponse> response = listSnapshotsFromDRSecondarySinglePageAsync(resourceGroupName, name).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsFromDRSecondarySinglePageAsync(resourceGroupName, name), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsFromDRSecondaryAsync(final String resourceGroupName, final String name) { + return listSnapshotsFromDRSecondaryWithServiceResponseAsync(resourceGroupName, name) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable>> listSnapshotsFromDRSecondaryWithServiceResponseAsync(final String resourceGroupName, final String name) { + return listSnapshotsFromDRSecondarySinglePageAsync(resourceGroupName, name) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + ServiceResponse> * @param resourceGroupName Name of the resource group to which the resource belongs. + ServiceResponse> * @param name Website Name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSnapshotsFromDRSecondarySinglePageAsync(final String resourceGroupName, final String name) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (name == null) { + throw new IllegalArgumentException("Parameter name is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listSnapshotsFromDRSecondary(resourceGroupName, name, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSnapshotsFromDRSecondaryDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSnapshotsFromDRSecondaryDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * Gets the source control configuration of an app. * Gets the source control configuration of an app. @@ -48827,6 +49951,122 @@ private ServiceResponse> listSnapshotsSlotNextDelegate(R .build(response); } + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsFromDRSecondarySlotNext(final String nextPageLink) { + ServiceResponse> response = listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsFromDRSecondarySlotNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsFromDRSecondarySlotNextAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable>> listSnapshotsFromDRSecondarySlotNextWithServiceResponseAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondarySlotNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsFromDRSecondarySlotNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSnapshotsFromDRSecondarySlotNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listSnapshotsFromDRSecondarySlotNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSnapshotsFromDRSecondarySlotNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSnapshotsFromDRSecondarySlotNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * List triggered web jobs for an app, or a deployment slot. * List triggered web jobs for an app, or a deployment slot. @@ -49524,6 +50764,122 @@ private ServiceResponse> listSnapshotsNextDelegate(Respo .build(response); } + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws DefaultErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<SnapshotInner> object if successful. + */ + public PagedList listSnapshotsFromDRSecondaryNext(final String nextPageLink) { + ServiceResponse> response = listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listSnapshotsFromDRSecondaryNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable> listSnapshotsFromDRSecondaryNextAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<SnapshotInner> object + */ + public Observable>> listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(final String nextPageLink) { + return listSnapshotsFromDRSecondaryNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listSnapshotsFromDRSecondaryNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Returns all Snapshots to the user from DRSecondary endpoint. + * Returns all Snapshots to the user from DRSecondary endpoint. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<SnapshotInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSnapshotsFromDRSecondaryNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listSnapshotsFromDRSecondaryNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listSnapshotsFromDRSecondaryNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listSnapshotsFromDRSecondaryNextDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(DefaultErrorResponseException.class) + .build(response); + } + /** * List triggered web jobs for an app, or a deployment slot. * List triggered web jobs for an app, or a deployment slot.