diff --git a/sdk/network/mgmt-v2020_05_01/pom.xml b/sdk/network/mgmt-v2020_05_01/pom.xml
index a6649281fb0a6..cfd3b187338da 100644
--- a/sdk/network/mgmt-v2020_05_01/pom.xml
+++ b/sdk/network/mgmt-v2020_05_01/pom.xml
@@ -11,11 +11,11 @@
com.microsoft.azure
azure-arm-parent
- 1.3.0
- ../../parents/azure-arm-parent/pom.xml
+ 1.1.0
+ ../../../pom.management.xml
azure-mgmt-network
- 1.0.0-beta-1
+ 1.0.0-beta
jar
Microsoft Azure SDK for Network Management
This package contains Microsoft Network Management SDK.
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/ApplicationRule.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/ApplicationRule.java
index f905a202e7b3a..a2bbc0b5f4a2d 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/ApplicationRule.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/ApplicationRule.java
@@ -37,12 +37,6 @@ public class ApplicationRule extends FirewallPolicyRule {
@JsonProperty(value = "protocols")
private List protocols;
- /**
- * List of Urls for this rule condition.
- */
- @JsonProperty(value = "targetUrls")
- private List targetUrls;
-
/**
* List of FQDNs for this rule.
*/
@@ -61,12 +55,6 @@ public class ApplicationRule extends FirewallPolicyRule {
@JsonProperty(value = "sourceIpGroups")
private List sourceIpGroups;
- /**
- * Terminate TLS connections for this rule.
- */
- @JsonProperty(value = "terminateTLS")
- private Boolean terminateTLS;
-
/**
* Get list of source IP addresses for this rule.
*
@@ -127,26 +115,6 @@ public ApplicationRule withProtocols(List
return this;
}
- /**
- * Get list of Urls for this rule condition.
- *
- * @return the targetUrls value
- */
- public List targetUrls() {
- return this.targetUrls;
- }
-
- /**
- * Set list of Urls for this rule condition.
- *
- * @param targetUrls the targetUrls value to set
- * @return the ApplicationRule object itself.
- */
- public ApplicationRule withTargetUrls(List targetUrls) {
- this.targetUrls = targetUrls;
- return this;
- }
-
/**
* Get list of FQDNs for this rule.
*
@@ -207,24 +175,4 @@ public ApplicationRule withSourceIpGroups(List sourceIpGroups) {
return this;
}
- /**
- * Get terminate TLS connections for this rule.
- *
- * @return the terminateTLS value
- */
- public Boolean terminateTLS() {
- return this.terminateTLS;
- }
-
- /**
- * Set terminate TLS connections for this rule.
- *
- * @param terminateTLS the terminateTLS value to set
- * @return the ApplicationRule object itself.
- */
- public ApplicationRule withTerminateTLS(Boolean terminateTLS) {
- this.terminateTLS = terminateTLS;
- return this;
- }
-
}
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/FirewallPolicy.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/FirewallPolicy.java
index f76281851d0a7..09e42d7c3b616 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/FirewallPolicy.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/FirewallPolicy.java
@@ -51,16 +51,6 @@ public interface FirewallPolicy extends HasInner, Resource,
*/
List firewalls();
- /**
- * @return the identity value.
- */
- ManagedServiceIdentity identity();
-
- /**
- * @return the intrusionSystemMode value.
- */
- FirewallPolicyIntrusionSystemMode intrusionSystemMode();
-
/**
* @return the provisioningState value.
*/
@@ -81,11 +71,6 @@ public interface FirewallPolicy extends HasInner, Resource,
*/
FirewallPolicyThreatIntelWhitelist threatIntelWhitelist();
- /**
- * @return the transportSecurity value.
- */
- FirewallPolicyTransportSecurity transportSecurity();
-
/**
* The entirety of the FirewallPolicy definition.
*/
@@ -132,30 +117,6 @@ interface WithDnsSettings {
WithCreate withDnsSettings(DnsSettings dnsSettings);
}
- /**
- * The stage of the firewallpolicy definition allowing to specify Identity.
- */
- interface WithIdentity {
- /**
- * Specifies identity.
- * @param identity The identity of the firewall policy
- * @return the next definition stage
- */
- WithCreate withIdentity(ManagedServiceIdentity identity);
- }
-
- /**
- * The stage of the firewallpolicy definition allowing to specify IntrusionSystemMode.
- */
- interface WithIntrusionSystemMode {
- /**
- * Specifies intrusionSystemMode.
- * @param intrusionSystemMode The operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'
- * @return the next definition stage
- */
- WithCreate withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode);
- }
-
/**
* The stage of the firewallpolicy definition allowing to specify ThreatIntelMode.
*/
@@ -180,30 +141,18 @@ interface WithThreatIntelWhitelist {
WithCreate withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist);
}
- /**
- * The stage of the firewallpolicy definition allowing to specify TransportSecurity.
- */
- interface WithTransportSecurity {
- /**
- * Specifies transportSecurity.
- * @param transportSecurity TLS Configuration definition
- * @return the next definition stage
- */
- WithCreate withTransportSecurity(FirewallPolicyTransportSecurity transportSecurity);
- }
-
/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
- interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithBasePolicy, DefinitionStages.WithDnsSettings, DefinitionStages.WithIdentity, DefinitionStages.WithIntrusionSystemMode, DefinitionStages.WithThreatIntelMode, DefinitionStages.WithThreatIntelWhitelist, DefinitionStages.WithTransportSecurity {
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithBasePolicy, DefinitionStages.WithDnsSettings, DefinitionStages.WithThreatIntelMode, DefinitionStages.WithThreatIntelWhitelist {
}
}
/**
* The template for a FirewallPolicy update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithBasePolicy, UpdateStages.WithDnsSettings, UpdateStages.WithIdentity, UpdateStages.WithIntrusionSystemMode, UpdateStages.WithThreatIntelMode, UpdateStages.WithThreatIntelWhitelist, UpdateStages.WithTransportSecurity {
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithBasePolicy, UpdateStages.WithDnsSettings, UpdateStages.WithThreatIntelMode, UpdateStages.WithThreatIntelWhitelist {
}
/**
@@ -234,30 +183,6 @@ interface WithDnsSettings {
Update withDnsSettings(DnsSettings dnsSettings);
}
- /**
- * The stage of the firewallpolicy update allowing to specify Identity.
- */
- interface WithIdentity {
- /**
- * Specifies identity.
- * @param identity The identity of the firewall policy
- * @return the next update stage
- */
- Update withIdentity(ManagedServiceIdentity identity);
- }
-
- /**
- * The stage of the firewallpolicy update allowing to specify IntrusionSystemMode.
- */
- interface WithIntrusionSystemMode {
- /**
- * Specifies intrusionSystemMode.
- * @param intrusionSystemMode The operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'
- * @return the next update stage
- */
- Update withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode);
- }
-
/**
* The stage of the firewallpolicy update allowing to specify ThreatIntelMode.
*/
@@ -282,17 +207,5 @@ interface WithThreatIntelWhitelist {
Update withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist);
}
- /**
- * The stage of the firewallpolicy update allowing to specify TransportSecurity.
- */
- interface WithTransportSecurity {
- /**
- * Specifies transportSecurity.
- * @param transportSecurity TLS Configuration definition
- * @return the next update stage
- */
- Update withTransportSecurity(FirewallPolicyTransportSecurity transportSecurity);
- }
-
}
}
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/Subnet.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/Subnet.java
index fc607b75de21b..fbd4543d57ca3 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/Subnet.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/Subnet.java
@@ -9,8 +9,6 @@
package com.microsoft.azure.management.network.v2020_05_01;
import com.microsoft.azure.arm.model.HasInner;
-import com.microsoft.azure.management.network.v2020_05_01.implementation.ResourceNavigationLinkInner;
-import com.microsoft.azure.management.network.v2020_05_01.implementation.ServiceAssociationLinkInner;
import com.microsoft.azure.management.network.v2020_05_01.implementation.SubnetInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/BackendAddressPoolInner.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/BackendAddressPoolInner.java
index aaa91d9695799..e50a1af365bc8 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/BackendAddressPoolInner.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/BackendAddressPoolInner.java
@@ -20,18 +20,18 @@
*/
@JsonFlatten
public class BackendAddressPoolInner extends SubResource {
- /**
- * An array of references to IP addresses defined in network interfaces.
- */
- @JsonProperty(value = "properties.backendIPConfigurations", access = JsonProperty.Access.WRITE_ONLY)
- private List backendIPConfigurations;
-
/**
* An array of backend addresses.
*/
@JsonProperty(value = "properties.loadBalancerBackendAddresses")
private List loadBalancerBackendAddresses;
+ /**
+ * An array of references to IP addresses defined in network interfaces.
+ */
+ @JsonProperty(value = "properties.backendIPConfigurations", access = JsonProperty.Access.WRITE_ONLY)
+ private List backendIPConfigurations;
+
/**
* An array of references to load balancing rules that use this backend
* address pool.
@@ -79,15 +79,6 @@ public class BackendAddressPoolInner extends SubResource {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;
- /**
- * Get an array of references to IP addresses defined in network interfaces.
- *
- * @return the backendIPConfigurations value
- */
- public List backendIPConfigurations() {
- return this.backendIPConfigurations;
- }
-
/**
* Get an array of backend addresses.
*
@@ -108,6 +99,15 @@ public BackendAddressPoolInner withLoadBalancerBackendAddresses(List backendIPConfigurations() {
+ return this.backendIPConfigurations;
+ }
+
/**
* Get an array of references to load balancing rules that use this backend address pool.
*
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyImpl.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyImpl.java
index c19423bb6c96a..561a761561da8 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyImpl.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyImpl.java
@@ -16,10 +16,7 @@
import com.microsoft.azure.management.network.v2020_05_01.ProvisioningState;
import com.microsoft.azure.management.network.v2020_05_01.AzureFirewallThreatIntelMode;
import com.microsoft.azure.management.network.v2020_05_01.FirewallPolicyThreatIntelWhitelist;
-import com.microsoft.azure.management.network.v2020_05_01.FirewallPolicyIntrusionSystemMode;
-import com.microsoft.azure.management.network.v2020_05_01.FirewallPolicyTransportSecurity;
import com.microsoft.azure.management.network.v2020_05_01.DnsSettings;
-import com.microsoft.azure.management.network.v2020_05_01.ManagedServiceIdentity;
class FirewallPolicyImpl extends GroupableResourceCoreImpl implements FirewallPolicy, FirewallPolicy.Definition, FirewallPolicy.Update {
FirewallPolicyImpl(String name, FirewallPolicyInner inner, NetworkManager manager) {
@@ -77,16 +74,6 @@ public List firewalls() {
return this.inner().firewalls();
}
- @Override
- public ManagedServiceIdentity identity() {
- return this.inner().identity();
- }
-
- @Override
- public FirewallPolicyIntrusionSystemMode intrusionSystemMode() {
- return this.inner().intrusionSystemMode();
- }
-
@Override
public ProvisioningState provisioningState() {
return this.inner().provisioningState();
@@ -107,11 +94,6 @@ public FirewallPolicyThreatIntelWhitelist threatIntelWhitelist() {
return this.inner().threatIntelWhitelist();
}
- @Override
- public FirewallPolicyTransportSecurity transportSecurity() {
- return this.inner().transportSecurity();
- }
-
@Override
public FirewallPolicyImpl withBasePolicy(SubResource basePolicy) {
this.inner().withBasePolicy(basePolicy);
@@ -124,18 +106,6 @@ public FirewallPolicyImpl withDnsSettings(DnsSettings dnsSettings) {
return this;
}
- @Override
- public FirewallPolicyImpl withIdentity(ManagedServiceIdentity identity) {
- this.inner().withIdentity(identity);
- return this;
- }
-
- @Override
- public FirewallPolicyImpl withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode) {
- this.inner().withIntrusionSystemMode(intrusionSystemMode);
- return this;
- }
-
@Override
public FirewallPolicyImpl withThreatIntelMode(AzureFirewallThreatIntelMode threatIntelMode) {
this.inner().withThreatIntelMode(threatIntelMode);
@@ -148,10 +118,4 @@ public FirewallPolicyImpl withThreatIntelWhitelist(FirewallPolicyThreatIntelWhit
return this;
}
- @Override
- public FirewallPolicyImpl withTransportSecurity(FirewallPolicyTransportSecurity transportSecurity) {
- this.inner().withTransportSecurity(transportSecurity);
- return this;
- }
-
}
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyInner.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyInner.java
index 849bb7af53986..5c784a709fc99 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyInner.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/FirewallPolicyInner.java
@@ -13,10 +13,7 @@
import com.microsoft.azure.management.network.v2020_05_01.ProvisioningState;
import com.microsoft.azure.management.network.v2020_05_01.AzureFirewallThreatIntelMode;
import com.microsoft.azure.management.network.v2020_05_01.FirewallPolicyThreatIntelWhitelist;
-import com.microsoft.azure.management.network.v2020_05_01.FirewallPolicyIntrusionSystemMode;
-import com.microsoft.azure.management.network.v2020_05_01.FirewallPolicyTransportSecurity;
import com.microsoft.azure.management.network.v2020_05_01.DnsSettings;
-import com.microsoft.azure.management.network.v2020_05_01.ManagedServiceIdentity;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.rest.SkipParentValidation;
@@ -73,19 +70,6 @@ public class FirewallPolicyInner extends Resource {
@JsonProperty(value = "properties.threatIntelWhitelist")
private FirewallPolicyThreatIntelWhitelist threatIntelWhitelist;
- /**
- * The operation mode for Intrusion system. Possible values include:
- * 'Enabled', 'Disabled'.
- */
- @JsonProperty(value = "properties.intrusionSystemMode")
- private FirewallPolicyIntrusionSystemMode intrusionSystemMode;
-
- /**
- * TLS Configuration definition.
- */
- @JsonProperty(value = "properties.transportSecurity")
- private FirewallPolicyTransportSecurity transportSecurity;
-
/**
* DNS Proxy Settings definition.
*/
@@ -98,12 +82,6 @@ public class FirewallPolicyInner extends Resource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
- /**
- * The identity of the firewall policy.
- */
- @JsonProperty(value = "identity")
- private ManagedServiceIdentity identity;
-
/**
* Resource ID.
*/
@@ -206,46 +184,6 @@ public FirewallPolicyInner withThreatIntelWhitelist(FirewallPolicyThreatIntelWhi
return this;
}
- /**
- * Get the operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'.
- *
- * @return the intrusionSystemMode value
- */
- public FirewallPolicyIntrusionSystemMode intrusionSystemMode() {
- return this.intrusionSystemMode;
- }
-
- /**
- * Set the operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'.
- *
- * @param intrusionSystemMode the intrusionSystemMode value to set
- * @return the FirewallPolicyInner object itself.
- */
- public FirewallPolicyInner withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode) {
- this.intrusionSystemMode = intrusionSystemMode;
- return this;
- }
-
- /**
- * Get tLS Configuration definition.
- *
- * @return the transportSecurity value
- */
- public FirewallPolicyTransportSecurity transportSecurity() {
- return this.transportSecurity;
- }
-
- /**
- * Set tLS Configuration definition.
- *
- * @param transportSecurity the transportSecurity value to set
- * @return the FirewallPolicyInner object itself.
- */
- public FirewallPolicyInner withTransportSecurity(FirewallPolicyTransportSecurity transportSecurity) {
- this.transportSecurity = transportSecurity;
- return this;
- }
-
/**
* Get dNS Proxy Settings definition.
*
@@ -275,26 +213,6 @@ public String etag() {
return this.etag;
}
- /**
- * Get the identity of the firewall policy.
- *
- * @return the identity value
- */
- public ManagedServiceIdentity identity() {
- return this.identity;
- }
-
- /**
- * Set the identity of the firewall policy.
- *
- * @param identity the identity value to set
- * @return the FirewallPolicyInner object itself.
- */
- public FirewallPolicyInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
- return this;
- }
-
/**
* Get resource ID.
*
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManagementClientImpl.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManagementClientImpl.java
index f8080289eac35..997d703e82cfb 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManagementClientImpl.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManagementClientImpl.java
@@ -1450,19 +1450,6 @@ public HubRouteTablesInner hubRouteTables() {
return this.hubRouteTables;
}
- /**
- * The WebApplicationFirewallPoliciesInner object to access its operations.
- */
- private WebApplicationFirewallPoliciesInner webApplicationFirewallPolicies;
-
- /**
- * Gets the WebApplicationFirewallPoliciesInner object to access its operations.
- * @return the WebApplicationFirewallPoliciesInner object.
- */
- public WebApplicationFirewallPoliciesInner webApplicationFirewallPolicies() {
- return this.webApplicationFirewallPolicies;
- }
-
/**
* Initializes an instance of NetworkManagementClient client.
*
@@ -1597,7 +1584,6 @@ protected void initialize() {
this.virtualHubBgpConnections = new VirtualHubBgpConnectionsInner(restClient().retrofit(), this);
this.virtualHubIpConfigurations = new VirtualHubIpConfigurationsInner(restClient().retrofit(), this);
this.hubRouteTables = new HubRouteTablesInner(restClient().retrofit(), this);
- this.webApplicationFirewallPolicies = new WebApplicationFirewallPoliciesInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
initializeService();
}
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManager.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManager.java
index 0da5d79bba88a..a747d7fb7312c 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManager.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/NetworkManager.java
@@ -115,7 +115,6 @@
import com.microsoft.azure.management.network.v2020_05_01.VirtualHubBgpConnections;
import com.microsoft.azure.management.network.v2020_05_01.VirtualHubIpConfigurations;
import com.microsoft.azure.management.network.v2020_05_01.HubRouteTables;
-import com.microsoft.azure.management.network.v2020_05_01.WebApplicationFirewallPolicies;
import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
import com.microsoft.azure.arm.resources.implementation.ManagerCore;
@@ -222,7 +221,6 @@ public final class NetworkManager extends ManagerCore> checkPrivateLinkServiceVisibility(@Path("location") String location, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body CheckPrivateLinkServiceVisibilityRequest parameters, @Header("User-Agent") String userAgent);
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_05_01.PrivateLinkServices beginCheckPrivateLinkServiceVisibility" })
+ @POST("subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility")
+ Observable> beginCheckPrivateLinkServiceVisibility(@Path("location") String location, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body CheckPrivateLinkServiceVisibilityRequest parameters, @Header("User-Agent") String userAgent);
+
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_05_01.PrivateLinkServices checkPrivateLinkServiceVisibilityByResourceGroup" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility")
Observable> checkPrivateLinkServiceVisibilityByResourceGroup(@Path("location") String location, @Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body CheckPrivateLinkServiceVisibilityRequest parameters, @Header("User-Agent") String userAgent);
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_05_01.PrivateLinkServices beginCheckPrivateLinkServiceVisibilityByResourceGroup" })
+ @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/checkPrivateLinkServiceVisibility")
+ Observable> beginCheckPrivateLinkServiceVisibilityByResourceGroup(@Path("location") String location, @Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body CheckPrivateLinkServiceVisibilityRequest parameters, @Header("User-Agent") String userAgent);
+
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2020_05_01.PrivateLinkServices listAutoApprovedPrivateLinkServices" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/autoApprovedPrivateLinkServices")
Observable> listAutoApprovedPrivateLinkServices(@Path("location") String location, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@@ -1431,7 +1441,7 @@ private ServiceResponse> listPrivateEnd
* @return the PrivateLinkServiceVisibilityInner object if successful.
*/
public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String location) {
- return checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location).toBlocking().single().body();
+ return checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location).toBlocking().last().body();
}
/**
@@ -1451,7 +1461,7 @@ public ServiceFuture checkPrivateLinkServiceV
*
* @param location The location of the domain name.
* @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the observable to the PrivateLinkServiceVisibilityInner object
+ * @return the observable for the request
*/
public Observable checkPrivateLinkServiceVisibilityAsync(String location) {
return checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location).map(new Func1, PrivateLinkServiceVisibilityInner>() {
@@ -1467,7 +1477,7 @@ public PrivateLinkServiceVisibilityInner call(ServiceResponse> checkPrivateLinkServiceVisibilityWithServiceResponseAsync(String location) {
if (location == null) {
@@ -1480,12 +1490,140 @@ public Observable> checkPriva
final String privateLinkServiceAlias = null;
CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
parameters.withPrivateLinkServiceAlias(null);
- return service.checkPrivateLinkServiceVisibility(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
+ Observable> observable = service.checkPrivateLinkServiceVisibility(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken() { }.getType());
+ }
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain name.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateLinkServiceVisibilityInner object if successful.
+ */
+ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String location, String privateLinkServiceAlias) {
+ return checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias).toBlocking().last().body();
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain name.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture checkPrivateLinkServiceVisibilityAsync(String location, String privateLinkServiceAlias, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias), serviceCallback);
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain name.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable checkPrivateLinkServiceVisibilityAsync(String location, String privateLinkServiceAlias) {
+ return checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias).map(new Func1, PrivateLinkServiceVisibilityInner>() {
+ @Override
+ public PrivateLinkServiceVisibilityInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain name.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> checkPrivateLinkServiceVisibilityWithServiceResponseAsync(String location, String privateLinkServiceAlias) {
+ if (location == null) {
+ throw new IllegalArgumentException("Parameter location is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ final String apiVersion = "2020-05-01";
+ CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
+ parameters.withPrivateLinkServiceAlias(privateLinkServiceAlias);
+ Observable> observable = service.checkPrivateLinkServiceVisibility(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken() { }.getType());
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateLinkServiceVisibilityInner object if successful.
+ */
+ public PrivateLinkServiceVisibilityInner beginCheckPrivateLinkServiceVisibility(String location) {
+ return beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(location).toBlocking().single().body();
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain 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 beginCheckPrivateLinkServiceVisibilityAsync(String location, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(location), serviceCallback);
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateLinkServiceVisibilityInner object
+ */
+ public Observable beginCheckPrivateLinkServiceVisibilityAsync(String location) {
+ return beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(location).map(new Func1, PrivateLinkServiceVisibilityInner>() {
+ @Override
+ public PrivateLinkServiceVisibilityInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service.
+ *
+ * @param location The location of the domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateLinkServiceVisibilityInner object
+ */
+ public Observable> beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(String location) {
+ if (location == null) {
+ throw new IllegalArgumentException("Parameter location is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ final String apiVersion = "2020-05-01";
+ final String privateLinkServiceAlias = null;
+ CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
+ parameters.withPrivateLinkServiceAlias(null);
+ return service.beginCheckPrivateLinkServiceVisibility(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
public Observable> call(Response response) {
try {
- ServiceResponse clientResponse = checkPrivateLinkServiceVisibilityDelegate(response);
+ ServiceResponse clientResponse = beginCheckPrivateLinkServiceVisibilityDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
@@ -1504,8 +1642,8 @@ public Observable> call(Respo
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PrivateLinkServiceVisibilityInner object if successful.
*/
- public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(String location, String privateLinkServiceAlias) {
- return checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias).toBlocking().single().body();
+ public PrivateLinkServiceVisibilityInner beginCheckPrivateLinkServiceVisibility(String location, String privateLinkServiceAlias) {
+ return beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias).toBlocking().single().body();
}
/**
@@ -1517,8 +1655,8 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibility(Strin
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture checkPrivateLinkServiceVisibilityAsync(String location, String privateLinkServiceAlias, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias), serviceCallback);
+ public ServiceFuture beginCheckPrivateLinkServiceVisibilityAsync(String location, String privateLinkServiceAlias, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias), serviceCallback);
}
/**
@@ -1529,8 +1667,8 @@ public ServiceFuture checkPrivateLinkServiceV
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PrivateLinkServiceVisibilityInner object
*/
- public Observable checkPrivateLinkServiceVisibilityAsync(String location, String privateLinkServiceAlias) {
- return checkPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias).map(new Func1, PrivateLinkServiceVisibilityInner>() {
+ public Observable beginCheckPrivateLinkServiceVisibilityAsync(String location, String privateLinkServiceAlias) {
+ return beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(location, privateLinkServiceAlias).map(new Func1, PrivateLinkServiceVisibilityInner>() {
@Override
public PrivateLinkServiceVisibilityInner call(ServiceResponse response) {
return response.body();
@@ -1546,7 +1684,7 @@ public PrivateLinkServiceVisibilityInner call(ServiceResponse> checkPrivateLinkServiceVisibilityWithServiceResponseAsync(String location, String privateLinkServiceAlias) {
+ public Observable> beginCheckPrivateLinkServiceVisibilityWithServiceResponseAsync(String location, String privateLinkServiceAlias) {
if (location == null) {
throw new IllegalArgumentException("Parameter location is required and cannot be null.");
}
@@ -1556,12 +1694,12 @@ public Observable> checkPriva
final String apiVersion = "2020-05-01";
CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
parameters.withPrivateLinkServiceAlias(privateLinkServiceAlias);
- return service.checkPrivateLinkServiceVisibility(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
+ return service.beginCheckPrivateLinkServiceVisibility(location, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
public Observable> call(Response response) {
try {
- ServiceResponse clientResponse = checkPrivateLinkServiceVisibilityDelegate(response);
+ ServiceResponse clientResponse = beginCheckPrivateLinkServiceVisibilityDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
@@ -1570,9 +1708,10 @@ public Observable> call(Respo
});
}
- private ServiceResponse checkPrivateLinkServiceVisibilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ private ServiceResponse beginCheckPrivateLinkServiceVisibilityDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
.register(200, new TypeToken() { }.getType())
+ .register(202, new TypeToken() { }.getType())
.registerError(CloudException.class)
.build(response);
}
@@ -1588,7 +1727,7 @@ private ServiceResponse checkPrivateLinkServi
* @return the PrivateLinkServiceVisibilityInner object if successful.
*/
public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGroup(String location, String resourceGroupName) {
- return checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName).toBlocking().single().body();
+ return checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName).toBlocking().last().body();
}
/**
@@ -1610,7 +1749,7 @@ public ServiceFuture checkPrivateLinkServiceV
* @param location The location of the domain name.
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation
- * @return the observable to the PrivateLinkServiceVisibilityInner object
+ * @return the observable for the request
*/
public Observable checkPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName) {
return checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName).map(new Func1, PrivateLinkServiceVisibilityInner>() {
@@ -1627,7 +1766,7 @@ public PrivateLinkServiceVisibilityInner call(ServiceResponse> checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(String location, String resourceGroupName) {
if (location == null) {
@@ -1643,12 +1782,154 @@ public Observable> checkPriva
final String privateLinkServiceAlias = null;
CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
parameters.withPrivateLinkServiceAlias(null);
- return service.checkPrivateLinkServiceVisibilityByResourceGroup(location, resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
+ Observable> observable = service.checkPrivateLinkServiceVisibilityByResourceGroup(location, resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken() { }.getType());
+ }
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateLinkServiceVisibilityInner object if successful.
+ */
+ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGroup(String location, String resourceGroupName, String privateLinkServiceAlias) {
+ return checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias).toBlocking().last().body();
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture checkPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName, String privateLinkServiceAlias, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias), serviceCallback);
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable checkPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName, String privateLinkServiceAlias) {
+ return checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias).map(new Func1, PrivateLinkServiceVisibilityInner>() {
+ @Override
+ public PrivateLinkServiceVisibilityInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @param privateLinkServiceAlias The alias of the private link service.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ public Observable> checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(String location, String resourceGroupName, String privateLinkServiceAlias) {
+ if (location == null) {
+ throw new IllegalArgumentException("Parameter location is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ final String apiVersion = "2020-05-01";
+ CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
+ parameters.withPrivateLinkServiceAlias(privateLinkServiceAlias);
+ Observable> observable = service.checkPrivateLinkServiceVisibilityByResourceGroup(location, resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent());
+ return client.getAzureClient().getPostOrDeleteResultAsync(observable, new LongRunningOperationOptions().withFinalStateVia(LongRunningFinalState.LOCATION), new TypeToken() { }.getType());
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PrivateLinkServiceVisibilityInner object if successful.
+ */
+ public PrivateLinkServiceVisibilityInner beginCheckPrivateLinkServiceVisibilityByResourceGroup(String location, String resourceGroupName) {
+ return beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName).toBlocking().single().body();
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture beginCheckPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName), serviceCallback);
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateLinkServiceVisibilityInner object
+ */
+ public Observable beginCheckPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName) {
+ return beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName).map(new Func1, PrivateLinkServiceVisibilityInner>() {
+ @Override
+ public PrivateLinkServiceVisibilityInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Checks whether the subscription is visible to private link service in the specified resource group.
+ *
+ * @param location The location of the domain name.
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PrivateLinkServiceVisibilityInner object
+ */
+ public Observable> beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(String location, String resourceGroupName) {
+ if (location == null) {
+ throw new IllegalArgumentException("Parameter location is required and cannot be null.");
+ }
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ final String apiVersion = "2020-05-01";
+ final String privateLinkServiceAlias = null;
+ CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
+ parameters.withPrivateLinkServiceAlias(null);
+ return service.beginCheckPrivateLinkServiceVisibilityByResourceGroup(location, resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
public Observable> call(Response response) {
try {
- ServiceResponse clientResponse = checkPrivateLinkServiceVisibilityByResourceGroupDelegate(response);
+ ServiceResponse clientResponse = beginCheckPrivateLinkServiceVisibilityByResourceGroupDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
@@ -1668,8 +1949,8 @@ public Observable> call(Respo
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PrivateLinkServiceVisibilityInner object if successful.
*/
- public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByResourceGroup(String location, String resourceGroupName, String privateLinkServiceAlias) {
- return checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias).toBlocking().single().body();
+ public PrivateLinkServiceVisibilityInner beginCheckPrivateLinkServiceVisibilityByResourceGroup(String location, String resourceGroupName, String privateLinkServiceAlias) {
+ return beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias).toBlocking().single().body();
}
/**
@@ -1682,8 +1963,8 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture checkPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName, String privateLinkServiceAlias, final ServiceCallback serviceCallback) {
- return ServiceFuture.fromResponse(checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias), serviceCallback);
+ public ServiceFuture beginCheckPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName, String privateLinkServiceAlias, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias), serviceCallback);
}
/**
@@ -1695,8 +1976,8 @@ public ServiceFuture checkPrivateLinkServiceV
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PrivateLinkServiceVisibilityInner object
*/
- public Observable checkPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName, String privateLinkServiceAlias) {
- return checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias).map(new Func1, PrivateLinkServiceVisibilityInner>() {
+ public Observable beginCheckPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName, String privateLinkServiceAlias) {
+ return beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(location, resourceGroupName, privateLinkServiceAlias).map(new Func1, PrivateLinkServiceVisibilityInner>() {
@Override
public PrivateLinkServiceVisibilityInner call(ServiceResponse response) {
return response.body();
@@ -1713,7 +1994,7 @@ public PrivateLinkServiceVisibilityInner call(ServiceResponse> checkPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(String location, String resourceGroupName, String privateLinkServiceAlias) {
+ public Observable> beginCheckPrivateLinkServiceVisibilityByResourceGroupWithServiceResponseAsync(String location, String resourceGroupName, String privateLinkServiceAlias) {
if (location == null) {
throw new IllegalArgumentException("Parameter location is required and cannot be null.");
}
@@ -1726,12 +2007,12 @@ public Observable> checkPriva
final String apiVersion = "2020-05-01";
CheckPrivateLinkServiceVisibilityRequest parameters = new CheckPrivateLinkServiceVisibilityRequest();
parameters.withPrivateLinkServiceAlias(privateLinkServiceAlias);
- return service.checkPrivateLinkServiceVisibilityByResourceGroup(location, resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
+ return service.beginCheckPrivateLinkServiceVisibilityByResourceGroup(location, resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent())
.flatMap(new Func1, Observable>>() {
@Override
public Observable> call(Response response) {
try {
- ServiceResponse clientResponse = checkPrivateLinkServiceVisibilityByResourceGroupDelegate(response);
+ ServiceResponse clientResponse = beginCheckPrivateLinkServiceVisibilityByResourceGroupDelegate(response);
return Observable.just(clientResponse);
} catch (Throwable t) {
return Observable.error(t);
@@ -1740,9 +2021,10 @@ public Observable> call(Respo
});
}
- private ServiceResponse checkPrivateLinkServiceVisibilityByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ private ServiceResponse beginCheckPrivateLinkServiceVisibilityByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
.register(200, new TypeToken() { }.getType())
+ .register(202, new TypeToken() { }.getType())
.registerError(CloudException.class)
.build(response);
}
diff --git a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/PublicIPAddressesInner.java b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/PublicIPAddressesInner.java
index c1d386fb11b54..bdcf1f86da29f 100644
--- a/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/PublicIPAddressesInner.java
+++ b/sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/PublicIPAddressesInner.java
@@ -133,7 +133,7 @@ interface PublicIPAddressesService {
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@@ -146,7 +146,7 @@ public void delete(String resourceGroupName, String publicIpAddressName) {
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
@@ -159,7 +159,7 @@ public ServiceFuture deleteAsync(String resourceGroupName, String publicIp
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
@@ -176,7 +176,7 @@ public Void call(ServiceResponse response) {
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
@@ -199,7 +199,7 @@ public Observable> deleteWithServiceResponseAsync(String r
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@@ -212,7 +212,7 @@ public void beginDelete(String resourceGroupName, String publicIpAddressName) {
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
@@ -225,7 +225,7 @@ public ServiceFuture beginDeleteAsync(String resourceGroupName, String pub
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceResponse} object if successful.
*/
@@ -242,7 +242,7 @@ public Void call(ServiceResponse response) {
* Deletes the specified public IP address.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceResponse} object if successful.
*/
@@ -284,7 +284,7 @@ private ServiceResponse beginDeleteDelegate(Response respons
* Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@@ -298,7 +298,7 @@ public PublicIPAddressInner getByResourceGroup(String resourceGroupName, String
* Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
@@ -311,7 +311,7 @@ public ServiceFuture getByResourceGroupAsync(String resour
* Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PublicIPAddressInner object
*/
@@ -328,7 +328,7 @@ public PublicIPAddressInner call(ServiceResponse response)
* Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PublicIPAddressInner object
*/
@@ -362,7 +362,7 @@ public Observable> call(Response getByResourceGroupAsync(String resour
* Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @param expand Expands referenced resources.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PublicIPAddressInner object
@@ -409,7 +409,7 @@ public PublicIPAddressInner call(ServiceResponse response)
* Gets the specified public IP address in a specified resource group.
*
* @param resourceGroupName The name of the resource group.
- * @param publicIpAddressName The name of the subnet.
+ * @param publicIpAddressName The name of the public IP address.
* @param expand Expands referenced resources.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PublicIPAddressInner object