diff --git a/sdk/network/mgmt-v2019_04_01/pom.xml b/sdk/network/mgmt-v2019_04_01/pom.xml
index 1d6d425f6965..2c06d85ab643 100644
--- a/sdk/network/mgmt-v2019_04_01/pom.xml
+++ b/sdk/network/mgmt-v2019_04_01/pom.xml
@@ -11,8 +11,8 @@
com.microsoft.azure
azure-arm-parent
- 1.2.0
- ../../parents/azure-arm-parent
+ 1.1.0
+ ../../../pom.management.xml
azure-mgmt-network
1.0.0-beta
@@ -71,6 +71,8 @@
azure-arm-client-runtime
test-jar
test
+
+ 1.6.5
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewayOnDemandProbe.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewayOnDemandProbe.java
index 589745596b9a..a8545e3d634d 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewayOnDemandProbe.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewayOnDemandProbe.java
@@ -8,6 +8,7 @@
package com.microsoft.azure.management.network.v2019_04_01;
+import com.microsoft.azure.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
@@ -56,18 +57,18 @@ public class ApplicationGatewayOnDemandProbe {
private ApplicationGatewayProbeHealthResponseMatch match;
/**
- * Name of backend pool of application gateway to which probe request will
- * be sent.
+ * Reference of backend pool of application gateway to which probe request
+ * will be sent.
*/
- @JsonProperty(value = "backendPoolName")
- private String backendPoolName;
+ @JsonProperty(value = "backendAddressPool")
+ private SubResource backendAddressPool;
/**
- * Name of backend http setting of application gateway to be used for test
- * probe.
+ * Reference of backend http setting of application gateway to be used for
+ * test probe.
*/
- @JsonProperty(value = "backendHttpSettingName")
- private String backendHttpSettingName;
+ @JsonProperty(value = "backendHttpSettings")
+ private SubResource backendHttpSettings;
/**
* Get the protocol used for the probe. Possible values include: 'Http', 'Https'.
@@ -190,42 +191,42 @@ public ApplicationGatewayOnDemandProbe withMatch(ApplicationGatewayProbeHealthRe
}
/**
- * Get name of backend pool of application gateway to which probe request will be sent.
+ * Get reference of backend pool of application gateway to which probe request will be sent.
*
- * @return the backendPoolName value
+ * @return the backendAddressPool value
*/
- public String backendPoolName() {
- return this.backendPoolName;
+ public SubResource backendAddressPool() {
+ return this.backendAddressPool;
}
/**
- * Set name of backend pool of application gateway to which probe request will be sent.
+ * Set reference of backend pool of application gateway to which probe request will be sent.
*
- * @param backendPoolName the backendPoolName value to set
+ * @param backendAddressPool the backendAddressPool value to set
* @return the ApplicationGatewayOnDemandProbe object itself.
*/
- public ApplicationGatewayOnDemandProbe withBackendPoolName(String backendPoolName) {
- this.backendPoolName = backendPoolName;
+ public ApplicationGatewayOnDemandProbe withBackendAddressPool(SubResource backendAddressPool) {
+ this.backendAddressPool = backendAddressPool;
return this;
}
/**
- * Get name of backend http setting of application gateway to be used for test probe.
+ * Get reference of backend http setting of application gateway to be used for test probe.
*
- * @return the backendHttpSettingName value
+ * @return the backendHttpSettings value
*/
- public String backendHttpSettingName() {
- return this.backendHttpSettingName;
+ public SubResource backendHttpSettings() {
+ return this.backendHttpSettings;
}
/**
- * Set name of backend http setting of application gateway to be used for test probe.
+ * Set reference of backend http setting of application gateway to be used for test probe.
*
- * @param backendHttpSettingName the backendHttpSettingName value to set
+ * @param backendHttpSettings the backendHttpSettings value to set
* @return the ApplicationGatewayOnDemandProbe object itself.
*/
- public ApplicationGatewayOnDemandProbe withBackendHttpSettingName(String backendHttpSettingName) {
- this.backendHttpSettingName = backendHttpSettingName;
+ public ApplicationGatewayOnDemandProbe withBackendHttpSettings(SubResource backendHttpSettings) {
+ this.backendHttpSettings = backendHttpSettings;
return this;
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewaySslCipherSuite.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewaySslCipherSuite.java
index 722702624685..15207a890173 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewaySslCipherSuite.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ApplicationGatewaySslCipherSuite.java
@@ -91,6 +91,15 @@ public final class ApplicationGatewaySslCipherSuite extends ExpandableStringEnum
/** Static value TLS_RSA_WITH_3DES_EDE_CBC_SHA for ApplicationGatewaySslCipherSuite. */
public static final ApplicationGatewaySslCipherSuite TLS_RSA_WITH_3DES_EDE_CBC_SHA = fromString("TLS_RSA_WITH_3DES_EDE_CBC_SHA");
+ /** Static value TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA for ApplicationGatewaySslCipherSuite. */
+ public static final ApplicationGatewaySslCipherSuite TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = fromString("TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA");
+
+ /** Static value TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 for ApplicationGatewaySslCipherSuite. */
+ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = fromString("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256");
+
+ /** Static value TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 for ApplicationGatewaySslCipherSuite. */
+ public static final ApplicationGatewaySslCipherSuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = fromString("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384");
+
/**
* Creates or finds a ApplicationGatewaySslCipherSuite from its string representation.
* @param name a name to look for
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AutoApprovedPrivateLinkService.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AutoApprovedPrivateLinkService.java
new file mode 100644
index 000000000000..4ba09b8cbbf5
--- /dev/null
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AutoApprovedPrivateLinkService.java
@@ -0,0 +1,25 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.network.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.AutoApprovedPrivateLinkServiceInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.NetworkManager;
+
+/**
+ * Type representing AutoApprovedPrivateLinkService.
+ */
+public interface AutoApprovedPrivateLinkService extends HasInner, HasManager {
+ /**
+ * @return the privateLinkService value.
+ */
+ String privateLinkService();
+
+}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableEndpointServices.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableEndpointServices.java
index b205a50ad1ef..ec1beee81ade 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableEndpointServices.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableEndpointServices.java
@@ -9,12 +9,13 @@
package com.microsoft.azure.management.network.v2019_04_01;
import rx.Observable;
-import com.microsoft.azure.management.network.v2019_04_01.EndpointServiceResult;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.AvailableEndpointServicesInner;
+import com.microsoft.azure.arm.model.HasInner;
/**
* Type representing AvailableEndpointServices.
*/
-public interface AvailableEndpointServices {
+public interface AvailableEndpointServices extends HasInner {
/**
* List what values of endpoint services are available for use.
*
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailablePrivateEndpointType.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailablePrivateEndpointType.java
new file mode 100644
index 000000000000..f38c8e9d0ec0
--- /dev/null
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailablePrivateEndpointType.java
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.network.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.AvailablePrivateEndpointTypeInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.NetworkManager;
+
+/**
+ * Type representing AvailablePrivateEndpointType.
+ */
+public interface AvailablePrivateEndpointType extends HasInner, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the resourceName value.
+ */
+ String resourceName();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailablePrivateEndpointTypes.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailablePrivateEndpointTypes.java
index 90c55661a5df..3cdbc85052b8 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailablePrivateEndpointTypes.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailablePrivateEndpointTypes.java
@@ -20,9 +20,19 @@ public interface AvailablePrivateEndpointTypes extends HasInner listAsync(final String location);
+ Observable listByResourceGroupAsync(final String location, final String resourceGroupName);
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @param location The location of the domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAsync(final String location);
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableResourceGroupDelegations.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableResourceGroupDelegations.java
index 1f57b41d5c20..a6a0e80384b1 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableResourceGroupDelegations.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/AvailableResourceGroupDelegations.java
@@ -9,12 +9,13 @@
package com.microsoft.azure.management.network.v2019_04_01;
import rx.Observable;
-import com.microsoft.azure.management.network.v2019_04_01.LocationAvailableDelegationModel;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.AvailableResourceGroupDelegationsInner;
+import com.microsoft.azure.arm.model.HasInner;
/**
* Type representing AvailableResourceGroupDelegations.
*/
-public interface AvailableResourceGroupDelegations {
+public interface AvailableResourceGroupDelegations extends HasInner {
/**
* Gets all of the available subnet delegations for this resource group in this region.
*
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BackendAddressPool.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BackendAddressPool.java
index 6d1093da0a5c..78a9daac2038 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BackendAddressPool.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BackendAddressPool.java
@@ -51,6 +51,11 @@ public interface BackendAddressPool extends HasInner, I
*/
SubResource outboundRule();
+ /**
+ * @return the outboundRules value.
+ */
+ List outboundRules();
+
/**
* @return the provisioningState value.
*/
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BastionHostIPConfiguration.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BastionHostIPConfiguration.java
index e5113fab3e32..d54fc5da1f05 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BastionHostIPConfiguration.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/BastionHostIPConfiguration.java
@@ -47,7 +47,7 @@ public class BastionHostIPConfiguration extends SubResource {
* Name of the resource that is unique within a resource group. This name
* can be used to access the resource.
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonProperty(value = "name")
private String name;
/**
@@ -151,6 +151,17 @@ public String name() {
return this.name;
}
+ /**
+ * Set name of the resource that is unique within a resource group. This name can be used to access the resource.
+ *
+ * @param name the name value to set
+ * @return the BastionHostIPConfiguration object itself.
+ */
+ public BastionHostIPConfiguration withName(String name) {
+ this.name = name;
+ return this;
+ }
+
/**
* Get a unique read-only string that changes whenever the resource is updated.
*
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/CheckPrivateLinkServiceVisibilityRequest.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/CheckPrivateLinkServiceVisibilityRequest.java
new file mode 100644
index 000000000000..bb5be367f787
--- /dev/null
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/CheckPrivateLinkServiceVisibilityRequest.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.network.v2019_04_01;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Request body of the CheckPrivateLinkServiceVisibility API service call.
+ */
+public class CheckPrivateLinkServiceVisibilityRequest {
+ /**
+ * The alias of the private link service.
+ */
+ @JsonProperty(value = "privateLinkServiceAlias")
+ private String privateLinkServiceAlias;
+
+ /**
+ * Get the alias of the private link service.
+ *
+ * @return the privateLinkServiceAlias value
+ */
+ public String privateLinkServiceAlias() {
+ return this.privateLinkServiceAlias;
+ }
+
+ /**
+ * Set the alias of the private link service.
+ *
+ * @param privateLinkServiceAlias the privateLinkServiceAlias value to set
+ * @return the CheckPrivateLinkServiceVisibilityRequest object itself.
+ */
+ public CheckPrivateLinkServiceVisibilityRequest withPrivateLinkServiceAlias(String privateLinkServiceAlias) {
+ this.privateLinkServiceAlias = privateLinkServiceAlias;
+ return this;
+ }
+
+}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateEndpoint.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateEndpoint.java
index b6da4e090e12..d0c5274097ad 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateEndpoint.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateEndpoint.java
@@ -49,7 +49,7 @@ public interface PrivateEndpoint extends HasInner, Resourc
/**
* @return the provisioningState value.
*/
- String provisioningState();
+ ProvisioningState provisioningState();
/**
* @return the subnet value.
@@ -84,7 +84,7 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup, Indexable, Updatable, HasManager {
/**
- * The resource of private end point.
+ * @return the etag value.
*/
- @JsonProperty(value = "properties.privateEndpoint")
- private PrivateEndpointInner privateEndpoint;
+ String etag();
/**
- * A collection of information about the state of the connection between
- * service consumer and provider.
+ * @return the id value.
*/
- @JsonProperty(value = "properties.privateLinkServiceConnectionState")
- private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+ String id();
/**
- * The name of the resource that is unique within a resource group. This
- * name can be used to access the resource.
+ * @return the name value.
*/
- @JsonProperty(value = "name")
- private String name;
+ String name();
/**
- * Get the resource of private end point.
- *
- * @return the privateEndpoint value
+ * @return the privateEndpoint value.
*/
- public PrivateEndpointInner privateEndpoint() {
- return this.privateEndpoint;
- }
+ PrivateEndpoint privateEndpoint();
/**
- * Set the resource of private end point.
- *
- * @param privateEndpoint the privateEndpoint value to set
- * @return the PrivateEndpointConnection object itself.
+ * @return the privateLinkServiceConnectionState value.
*/
- public PrivateEndpointConnection withPrivateEndpoint(PrivateEndpointInner privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- return this;
- }
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState();
/**
- * Get a collection of information about the state of the connection between service consumer and provider.
- *
- * @return the privateLinkServiceConnectionState value
+ * @return the provisioningState value.
*/
- public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
- }
+ ProvisioningState provisioningState();
/**
- * Set a collection of information about the state of the connection between service consumer and provider.
- *
- * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set
- * @return the PrivateEndpointConnection object itself.
+ * @return the type value.
*/
- public PrivateEndpointConnection withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
- return this;
- }
+ String type();
/**
- * Get the name of the resource that is unique within a resource group. This name can be used to access the resource.
- *
- * @return the name value
+ * The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
*/
- public String name() {
- return this.name;
+ interface Update extends Appliable, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState {
}
/**
- * Set the name of the resource that is unique within a resource group. This name can be used to access the resource.
- *
- * @param name the name value to set
- * @return the PrivateEndpointConnection object itself.
+ * Grouping of PrivateEndpointConnection update stages.
*/
- public PrivateEndpointConnection withName(String name) {
- this.name = name;
- return this;
- }
+ interface UpdateStages {
+ /**
+ * The stage of the privateendpointconnection update allowing to specify Id.
+ */
+ interface WithId {
+ /**
+ * Specifies id.
+ * @param id Resource ID
+ * @return the next update stage
+ */
+ Update withId(String id);
+ }
+ /**
+ * The stage of the privateendpointconnection update allowing to specify Name.
+ */
+ interface WithName {
+ /**
+ * Specifies name.
+ * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource
+ * @return the next update stage
+ */
+ Update withName(String name);
+ }
+
+ /**
+ * The stage of the privateendpointconnection update allowing to specify PrivateEndpoint.
+ */
+ interface WithPrivateEndpoint {
+ /**
+ * Specifies privateEndpoint.
+ * @param privateEndpoint The resource of private end point
+ * @return the next update stage
+ */
+ Update withPrivateEndpoint(PrivateEndpointInner privateEndpoint);
+ }
+
+ /**
+ * The stage of the privateendpointconnection update allowing to specify PrivateLinkServiceConnectionState.
+ */
+ interface WithPrivateLinkServiceConnectionState {
+ /**
+ * Specifies privateLinkServiceConnectionState.
+ * @param privateLinkServiceConnectionState A collection of information about the state of the connection between service consumer and provider
+ * @return the next update stage
+ */
+ Update withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState);
+ }
+
+ }
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkService.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkService.java
index 048842ad662d..f4664008cb9b 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkService.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkService.java
@@ -20,6 +20,7 @@
import com.microsoft.azure.management.network.v2019_04_01.implementation.NetworkManager;
import java.util.List;
import com.microsoft.azure.management.network.v2019_04_01.implementation.FrontendIPConfigurationInner;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.PrivateEndpointConnectionInner;
import com.microsoft.azure.management.network.v2019_04_01.implementation.PrivateLinkServiceInner;
/**
@@ -52,9 +53,9 @@ public interface PrivateLinkService extends HasInner, R
List ipConfigurations();
/**
- * @return the loadBalancerFrontendIPConfigurations value.
+ * @return the loadBalancerFrontendIpConfigurations value.
*/
- List loadBalancerFrontendIPConfigurations();
+ List loadBalancerFrontendIpConfigurations();
/**
* @return the networkInterfaces value.
@@ -69,7 +70,7 @@ public interface PrivateLinkService extends HasInner, R
/**
* @return the provisioningState value.
*/
- String provisioningState();
+ ProvisioningState provisioningState();
/**
* @return the visibility value.
@@ -116,7 +117,7 @@ interface WithAutoApproval {
interface WithEtag {
/**
* Specifies etag.
- * @param etag Gets a unique read-only string that changes whenever the resource is updated
+ * @param etag A unique read-only string that changes whenever the resource is updated
* @return the next definition stage
*/
WithCreate withEtag(String etag);
@@ -147,15 +148,15 @@ interface WithIpConfigurations {
}
/**
- * The stage of the privatelinkservice definition allowing to specify LoadBalancerFrontendIPConfigurations.
+ * The stage of the privatelinkservice definition allowing to specify LoadBalancerFrontendIpConfigurations.
*/
- interface WithLoadBalancerFrontendIPConfigurations {
+ interface WithLoadBalancerFrontendIpConfigurations {
/**
- * Specifies loadBalancerFrontendIPConfigurations.
- * @param loadBalancerFrontendIPConfigurations An array of references to the load balancer IP configurations
+ * Specifies loadBalancerFrontendIpConfigurations.
+ * @param loadBalancerFrontendIpConfigurations An array of references to the load balancer IP configurations
* @return the next definition stage
*/
- WithCreate withLoadBalancerFrontendIPConfigurations(List loadBalancerFrontendIPConfigurations);
+ WithCreate withLoadBalancerFrontendIpConfigurations(List loadBalancerFrontendIpConfigurations);
}
/**
@@ -167,7 +168,7 @@ interface WithPrivateEndpointConnections {
* @param privateEndpointConnections An array of list about connections to the private endpoint
* @return the next definition stage
*/
- WithCreate withPrivateEndpointConnections(List privateEndpointConnections);
+ WithCreate withPrivateEndpointConnections(List privateEndpointConnections);
}
/**
@@ -187,13 +188,13 @@ interface WithVisibility {
* 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.WithAutoApproval, DefinitionStages.WithEtag, DefinitionStages.WithFqdns, DefinitionStages.WithIpConfigurations, DefinitionStages.WithLoadBalancerFrontendIPConfigurations, DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithVisibility {
+ interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAutoApproval, DefinitionStages.WithEtag, DefinitionStages.WithFqdns, DefinitionStages.WithIpConfigurations, DefinitionStages.WithLoadBalancerFrontendIpConfigurations, DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithVisibility {
}
}
/**
* The template for a PrivateLinkService update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAutoApproval, UpdateStages.WithEtag, UpdateStages.WithFqdns, UpdateStages.WithIpConfigurations, UpdateStages.WithLoadBalancerFrontendIPConfigurations, UpdateStages.WithPrivateEndpointConnections, UpdateStages.WithVisibility {
+ interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAutoApproval, UpdateStages.WithEtag, UpdateStages.WithFqdns, UpdateStages.WithIpConfigurations, UpdateStages.WithLoadBalancerFrontendIpConfigurations, UpdateStages.WithPrivateEndpointConnections, UpdateStages.WithVisibility {
}
/**
@@ -218,7 +219,7 @@ interface WithAutoApproval {
interface WithEtag {
/**
* Specifies etag.
- * @param etag Gets a unique read-only string that changes whenever the resource is updated
+ * @param etag A unique read-only string that changes whenever the resource is updated
* @return the next update stage
*/
Update withEtag(String etag);
@@ -249,15 +250,15 @@ interface WithIpConfigurations {
}
/**
- * The stage of the privatelinkservice update allowing to specify LoadBalancerFrontendIPConfigurations.
+ * The stage of the privatelinkservice update allowing to specify LoadBalancerFrontendIpConfigurations.
*/
- interface WithLoadBalancerFrontendIPConfigurations {
+ interface WithLoadBalancerFrontendIpConfigurations {
/**
- * Specifies loadBalancerFrontendIPConfigurations.
- * @param loadBalancerFrontendIPConfigurations An array of references to the load balancer IP configurations
+ * Specifies loadBalancerFrontendIpConfigurations.
+ * @param loadBalancerFrontendIpConfigurations An array of references to the load balancer IP configurations
* @return the next update stage
*/
- Update withLoadBalancerFrontendIPConfigurations(List loadBalancerFrontendIPConfigurations);
+ Update withLoadBalancerFrontendIpConfigurations(List loadBalancerFrontendIpConfigurations);
}
/**
@@ -269,7 +270,7 @@ interface WithPrivateEndpointConnections {
* @param privateEndpointConnections An array of list about connections to the private endpoint
* @return the next update stage
*/
- Update withPrivateEndpointConnections(List privateEndpointConnections);
+ Update withPrivateEndpointConnections(List privateEndpointConnections);
}
/**
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnection.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnection.java
index 8ff9c590b31c..424e566cf2b6 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnection.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnection.java
@@ -18,6 +18,13 @@
*/
@JsonFlatten
public class PrivateLinkServiceConnection extends SubResource {
+ /**
+ * The provisioning state of the private link service connection. Possible
+ * values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
+ */
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
/**
* The resource id of private link service.
*/
@@ -52,6 +59,27 @@ public class PrivateLinkServiceConnection extends SubResource {
@JsonProperty(value = "name")
private String name;
+ /**
+ * The resource type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /**
+ * A unique read-only string that changes whenever the resource is updated.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * Get the provisioning state of the private link service connection. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
+ *
+ * @return the provisioningState value
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
/**
* Get the resource id of private link service.
*
@@ -152,4 +180,22 @@ public PrivateLinkServiceConnection withName(String name) {
return this;
}
+ /**
+ * Get the resource type.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get a unique read-only string that changes whenever the resource is updated.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnectionState.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnectionState.java
index d5545600bf91..3e86274c6e80 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnectionState.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceConnectionState.java
@@ -32,8 +32,8 @@ public class PrivateLinkServiceConnectionState {
* A message indicating if changes on the service provider require any
* updates on the consumer.
*/
- @JsonProperty(value = "actionRequired")
- private String actionRequired;
+ @JsonProperty(value = "actionsRequired")
+ private String actionsRequired;
/**
* Get indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
@@ -78,20 +78,20 @@ public PrivateLinkServiceConnectionState withDescription(String description) {
/**
* Get a message indicating if changes on the service provider require any updates on the consumer.
*
- * @return the actionRequired value
+ * @return the actionsRequired value
*/
- public String actionRequired() {
- return this.actionRequired;
+ public String actionsRequired() {
+ return this.actionsRequired;
}
/**
* Set a message indicating if changes on the service provider require any updates on the consumer.
*
- * @param actionRequired the actionRequired value to set
+ * @param actionsRequired the actionsRequired value to set
* @return the PrivateLinkServiceConnectionState object itself.
*/
- public PrivateLinkServiceConnectionState withActionRequired(String actionRequired) {
- this.actionRequired = actionRequired;
+ public PrivateLinkServiceConnectionState withActionsRequired(String actionsRequired) {
+ this.actionsRequired = actionsRequired;
return this;
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceIpConfiguration.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceIpConfiguration.java
index 089b4498ff61..28ce5a4a4f31 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceIpConfiguration.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceIpConfiguration.java
@@ -9,15 +9,15 @@
package com.microsoft.azure.management.network.v2019_04_01;
import com.microsoft.azure.management.network.v2019_04_01.implementation.SubnetInner;
-import com.microsoft.azure.management.network.v2019_04_01.implementation.PublicIPAddressInner;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.SubResource;
/**
* The private link service ip configuration.
*/
@JsonFlatten
-public class PrivateLinkServiceIpConfiguration {
+public class PrivateLinkServiceIpConfiguration extends SubResource {
/**
* The private IP address of the IP configuration.
*/
@@ -38,17 +38,17 @@ public class PrivateLinkServiceIpConfiguration {
private SubnetInner subnet;
/**
- * The reference of the public IP resource.
+ * Whether the ip configuration is primary or not.
*/
- @JsonProperty(value = "properties.publicIPAddress")
- private PublicIPAddressInner publicIPAddress;
+ @JsonProperty(value = "properties.primary")
+ private Boolean primary;
/**
- * Gets the provisioning state of the public IP resource. Possible values
- * are: 'Updating', 'Deleting', and 'Failed'.
+ * The provisioning state of the private link service ip configuration.
+ * Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*/
- @JsonProperty(value = "properties.provisioningState")
- private String provisioningState;
+ @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
/**
* Available from Api-Version 2016-03-30 onwards, it represents whether the
@@ -64,6 +64,18 @@ public class PrivateLinkServiceIpConfiguration {
@JsonProperty(value = "name")
private String name;
+ /**
+ * A unique read-only string that changes whenever the resource is updated.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * The resource type.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
/**
* Get the private IP address of the IP configuration.
*
@@ -125,45 +137,34 @@ public PrivateLinkServiceIpConfiguration withSubnet(SubnetInner subnet) {
}
/**
- * Get the reference of the public IP resource.
+ * Get whether the ip configuration is primary or not.
*
- * @return the publicIPAddress value
+ * @return the primary value
*/
- public PublicIPAddressInner publicIPAddress() {
- return this.publicIPAddress;
+ public Boolean primary() {
+ return this.primary;
}
/**
- * Set the reference of the public IP resource.
+ * Set whether the ip configuration is primary or not.
*
- * @param publicIPAddress the publicIPAddress value to set
+ * @param primary the primary value to set
* @return the PrivateLinkServiceIpConfiguration object itself.
*/
- public PrivateLinkServiceIpConfiguration withPublicIPAddress(PublicIPAddressInner publicIPAddress) {
- this.publicIPAddress = publicIPAddress;
+ public PrivateLinkServiceIpConfiguration withPrimary(Boolean primary) {
+ this.primary = primary;
return this;
}
/**
- * Get gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
+ * Get the provisioning state of the private link service ip configuration. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
*
* @return the provisioningState value
*/
- public String provisioningState() {
+ public ProvisioningState provisioningState() {
return this.provisioningState;
}
- /**
- * Set gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
- *
- * @param provisioningState the provisioningState value to set
- * @return the PrivateLinkServiceIpConfiguration object itself.
- */
- public PrivateLinkServiceIpConfiguration withProvisioningState(String provisioningState) {
- this.provisioningState = provisioningState;
- return this;
- }
-
/**
* Get available from Api-Version 2016-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values include: 'IPv4', 'IPv6'.
*
@@ -204,4 +205,22 @@ public PrivateLinkServiceIpConfiguration withName(String name) {
return this;
}
+ /**
+ * Get a unique read-only string that changes whenever the resource is updated.
+ *
+ * @return the etag value
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the resource type.
+ *
+ * @return the type value
+ */
+ public String type() {
+ return this.type;
+ }
+
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceVisibility.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceVisibility.java
new file mode 100644
index 000000000000..b1d7fe4dc41d
--- /dev/null
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServiceVisibility.java
@@ -0,0 +1,25 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.network.v2019_04_01;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.NetworkManager;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.PrivateLinkServiceVisibilityInner;
+
+/**
+ * Type representing PrivateLinkServiceVisibility.
+ */
+public interface PrivateLinkServiceVisibility extends HasInner, HasManager {
+ /**
+ * @return the visible value.
+ */
+ Boolean visible();
+
+}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServices.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServices.java
index 98a2582d945f..b1b3d8649a52 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServices.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PrivateLinkServices.java
@@ -15,35 +15,62 @@
import rx.Observable;
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.arm.collection.SupportsListing;
-import rx.Completable;
import com.microsoft.azure.management.network.v2019_04_01.implementation.PrivateLinkServicesInner;
import com.microsoft.azure.arm.model.HasInner;
+import rx.Completable;
+import com.microsoft.azure.management.network.v2019_04_01.AutoApprovedPrivateLinkService;
/**
* Type representing PrivateLinkServices.
*/
public interface PrivateLinkServices extends SupportsCreating, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup, SupportsListingByResourceGroup, SupportsListing, HasInner {
/**
- * Approve or reject private end point connection for a private link service in a subscription.
+ * Delete private end point connection for a private link service in a subscription.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the private link service.
* @param peConnectionName The name of the private end point connection.
- * @param parameters Parameters supplied to approve or reject the private end point connection.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Completable updatePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName, PrivateEndpointConnection parameters);
+ Completable deletePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName);
/**
- * Delete private end point connection for a private link service in a subscription.
+ * Checks 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 for the request
+ */
+ Observable checkPrivateLinkServiceVisibilityAsync(String location);
+
+ /**
+ * Checks the subscription is visible to private link service.
*
+ * @param location The location of the domain name.
* @param resourceGroupName The name of the resource group.
- * @param serviceName The name of the private link service.
- * @param peConnectionName The name of the private end point connection.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
- Completable deletePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName);
+ Observable checkPrivateLinkServiceVisibilityByResourceGroupAsync(String location, String resourceGroupName);
+
+ /**
+ * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
+ *
+ * @param location The location of the domain name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listAutoApprovedPrivateLinkServicesAsync(final String location);
+
+ /**
+ * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region.
+ *
+ * @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 for the request
+ */
+ Observable listAutoApprovedPrivateLinkServicesByResourceGroupAsync(final String location, final String resourceGroupName);
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PublicIPPrefix.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PublicIPPrefix.java
index 0cf716b0a9f9..9e0b0614335a 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PublicIPPrefix.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/PublicIPPrefix.java
@@ -19,6 +19,7 @@
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.network.v2019_04_01.implementation.NetworkManager;
import java.util.List;
+import com.microsoft.azure.SubResource;
import com.microsoft.azure.management.network.v2019_04_01.implementation.PublicIPPrefixInner;
/**
@@ -40,6 +41,11 @@ public interface PublicIPPrefix extends HasInner, Resource,
*/
List ipTags();
+ /**
+ * @return the loadBalancerFrontendIpConfiguration value.
+ */
+ SubResource loadBalancerFrontendIpConfiguration();
+
/**
* @return the prefixLength value.
*/
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ServiceTags.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ServiceTags.java
index 8dcbcfa669b3..b78af6c31f48 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ServiceTags.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/ServiceTags.java
@@ -9,15 +9,17 @@
package com.microsoft.azure.management.network.v2019_04_01;
import rx.Observable;
+import com.microsoft.azure.management.network.v2019_04_01.implementation.ServiceTagsInner;
+import com.microsoft.azure.arm.model.HasInner;
/**
* Type representing ServiceTags.
*/
-public interface ServiceTags {
+public interface ServiceTags extends HasInner {
/**
* Gets a list of service tag information resources.
*
- * @param location The location.
+ * @param location The location that will be used as a reference for version (not as a filter based on location, you will get the list of service tags with prefix details across all regions but limited to the cloud that your subscription belongs to).
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/Subnet.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/Subnet.java
index 9635e6b84eeb..3a805aa893a8 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/Subnet.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/Subnet.java
@@ -79,11 +79,21 @@ public interface Subnet extends HasInner, Indexable, Refreshable privateEndpoints();
+ /**
+ * @return the privateLinkServiceNetworkPolicies value.
+ */
+ String privateLinkServiceNetworkPolicies();
+
/**
* @return the provisioningState value.
*/
@@ -244,6 +254,30 @@ interface WithNetworkSecurityGroup {
WithCreate withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup);
}
+ /**
+ * The stage of the subnet definition allowing to specify PrivateEndpointNetworkPolicies.
+ */
+ interface WithPrivateEndpointNetworkPolicies {
+ /**
+ * Specifies privateEndpointNetworkPolicies.
+ * @param privateEndpointNetworkPolicies Enable or Disable private end point on the subnet
+ * @return the next definition stage
+ */
+ WithCreate withPrivateEndpointNetworkPolicies(String privateEndpointNetworkPolicies);
+ }
+
+ /**
+ * The stage of the subnet definition allowing to specify PrivateLinkServiceNetworkPolicies.
+ */
+ interface WithPrivateLinkServiceNetworkPolicies {
+ /**
+ * Specifies privateLinkServiceNetworkPolicies.
+ * @param privateLinkServiceNetworkPolicies Enable or Disable private link service on the subnet
+ * @return the next definition stage
+ */
+ WithCreate withPrivateLinkServiceNetworkPolicies(String privateLinkServiceNetworkPolicies);
+ }
+
/**
* The stage of the subnet definition allowing to specify ProvisioningState.
*/
@@ -321,13 +355,13 @@ interface WithServiceEndpoints {
* 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.WithAddressPrefix, DefinitionStages.WithAddressPrefixes, DefinitionStages.WithDelegations, DefinitionStages.WithEtag, DefinitionStages.WithId, DefinitionStages.WithName, DefinitionStages.WithNatGateway, DefinitionStages.WithNetworkSecurityGroup, DefinitionStages.WithProvisioningState, DefinitionStages.WithResourceNavigationLinks, DefinitionStages.WithRouteTable, DefinitionStages.WithServiceAssociationLinks, DefinitionStages.WithServiceEndpointPolicies, DefinitionStages.WithServiceEndpoints {
+ interface WithCreate extends Creatable, DefinitionStages.WithAddressPrefix, DefinitionStages.WithAddressPrefixes, DefinitionStages.WithDelegations, DefinitionStages.WithEtag, DefinitionStages.WithId, DefinitionStages.WithName, DefinitionStages.WithNatGateway, DefinitionStages.WithNetworkSecurityGroup, DefinitionStages.WithPrivateEndpointNetworkPolicies, DefinitionStages.WithPrivateLinkServiceNetworkPolicies, DefinitionStages.WithProvisioningState, DefinitionStages.WithResourceNavigationLinks, DefinitionStages.WithRouteTable, DefinitionStages.WithServiceAssociationLinks, DefinitionStages.WithServiceEndpointPolicies, DefinitionStages.WithServiceEndpoints {
}
}
/**
* The template for a Subnet update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithAddressPrefix, UpdateStages.WithAddressPrefixes, UpdateStages.WithDelegations, UpdateStages.WithEtag, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithNatGateway, UpdateStages.WithNetworkSecurityGroup, UpdateStages.WithProvisioningState, UpdateStages.WithResourceNavigationLinks, UpdateStages.WithRouteTable, UpdateStages.WithServiceAssociationLinks, UpdateStages.WithServiceEndpointPolicies, UpdateStages.WithServiceEndpoints {
+ interface Update extends Appliable, UpdateStages.WithAddressPrefix, UpdateStages.WithAddressPrefixes, UpdateStages.WithDelegations, UpdateStages.WithEtag, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithNatGateway, UpdateStages.WithNetworkSecurityGroup, UpdateStages.WithPrivateEndpointNetworkPolicies, UpdateStages.WithPrivateLinkServiceNetworkPolicies, UpdateStages.WithProvisioningState, UpdateStages.WithResourceNavigationLinks, UpdateStages.WithRouteTable, UpdateStages.WithServiceAssociationLinks, UpdateStages.WithServiceEndpointPolicies, UpdateStages.WithServiceEndpoints {
}
/**
@@ -430,6 +464,30 @@ interface WithNetworkSecurityGroup {
Update withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup);
}
+ /**
+ * The stage of the subnet update allowing to specify PrivateEndpointNetworkPolicies.
+ */
+ interface WithPrivateEndpointNetworkPolicies {
+ /**
+ * Specifies privateEndpointNetworkPolicies.
+ * @param privateEndpointNetworkPolicies Enable or Disable private end point on the subnet
+ * @return the next update stage
+ */
+ Update withPrivateEndpointNetworkPolicies(String privateEndpointNetworkPolicies);
+ }
+
+ /**
+ * The stage of the subnet update allowing to specify PrivateLinkServiceNetworkPolicies.
+ */
+ interface WithPrivateLinkServiceNetworkPolicies {
+ /**
+ * Specifies privateLinkServiceNetworkPolicies.
+ * @param privateLinkServiceNetworkPolicies Enable or Disable private link service on the subnet
+ * @return the next update stage
+ */
+ Update withPrivateLinkServiceNetworkPolicies(String privateLinkServiceNetworkPolicies);
+ }
+
/**
* The stage of the subnet update allowing to specify ProvisioningState.
*/
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysImpl.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysImpl.java
index 3ba6a907257f..d38a45c4f4a2 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysImpl.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysImpl.java
@@ -106,13 +106,13 @@ public ApplicationGateway call(ApplicationGatewayInner inner) {
@Override
public PagedList list() {
ApplicationGatewaysInner client = this.inner();
- return this.wrapList(client.listAll());
+ return this.wrapList(client.list());
}
@Override
public Observable listAsync() {
ApplicationGatewaysInner client = this.inner();
- return client.listAllAsync()
+ return client.listAsync()
.flatMapIterable(new Func1, Iterable>() {
@Override
public Iterable call(Page page) {
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysInner.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysInner.java
index feafac7fe78e..5756e7492df1 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysInner.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/ApplicationGatewaysInner.java
@@ -10,6 +10,7 @@
import com.microsoft.azure.arm.collection.InnerSupportsGet;
import com.microsoft.azure.arm.collection.InnerSupportsDelete;
+import com.microsoft.azure.arm.collection.InnerSupportsListing;
import retrofit2.Retrofit;
import com.google.common.reflect.TypeToken;
import com.microsoft.azure.AzureServiceFuture;
@@ -44,14 +45,12 @@
import rx.Observable;
import com.microsoft.azure.LongRunningFinalState;
import com.microsoft.azure.LongRunningOperationOptions;
-import com.microsoft.azure.LongRunningFinalState;
-import com.microsoft.azure.LongRunningOperationOptions;
/**
* An instance of this class provides access to all the operations defined
* in ApplicationGateways.
*/
-public class ApplicationGatewaysInner implements InnerSupportsGet, InnerSupportsDelete {
+public class ApplicationGatewaysInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing {
/** The Retrofit service to perform REST calls. */
private ApplicationGatewaysService service;
/** The service client containing this operation class. */
@@ -105,9 +104,9 @@ interface ApplicationGatewaysService {
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways")
Observable> listByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
- @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.ApplicationGateways listAll" })
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.ApplicationGateways list" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways")
- Observable> listAll(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.ApplicationGateways start" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start")
@@ -173,9 +172,9 @@ interface ApplicationGatewaysService {
@GET
Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
- @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.ApplicationGateways listAllNext" })
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.ApplicationGateways listNext" })
@GET
- Observable> listAllNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.ApplicationGateways listAvailableSslPredefinedPoliciesNext" })
@GET
@@ -1021,12 +1020,12 @@ private ServiceResponse> listByResourceGroupDe
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<ApplicationGatewayInner> object if successful.
*/
- public PagedList listAll() {
- ServiceResponse> response = listAllSinglePageAsync().toBlocking().single();
+ public PagedList list() {
+ ServiceResponse> response = listSinglePageAsync().toBlocking().single();
return new PagedList(response.body()) {
@Override
public Page nextPage(String nextPageLink) {
- return listAllNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
@@ -1038,13 +1037,13 @@ public Page nextPage(String nextPageLink) {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture> listAllAsync(final ListOperationCallback serviceCallback) {
+ public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) {
return AzureServiceFuture.fromPageResponse(
- listAllSinglePageAsync(),
+ listSinglePageAsync(),
new Func1>>>() {
@Override
public Observable>> call(String nextPageLink) {
- return listAllNextSinglePageAsync(nextPageLink);
+ return listNextSinglePageAsync(nextPageLink);
}
},
serviceCallback);
@@ -1056,8 +1055,8 @@ public Observable>> call(String ne
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<ApplicationGatewayInner> object
*/
- public Observable> listAllAsync() {
- return listAllWithServiceResponseAsync()
+ public Observable> listAsync() {
+ return listWithServiceResponseAsync()
.map(new Func1>, Page>() {
@Override
public Page call(ServiceResponse> response) {
@@ -1072,8 +1071,8 @@ public Page call(ServiceResponse>> listAllWithServiceResponseAsync() {
- return listAllSinglePageAsync()
+ public Observable>> listWithServiceResponseAsync() {
+ return listSinglePageAsync()
.concatMap(new Func1>, Observable>>>() {
@Override
public Observable>> call(ServiceResponse> page) {
@@ -1081,7 +1080,7 @@ public Observable>> call(ServiceRe
if (nextPageLink == null) {
return Observable.just(page);
}
- return Observable.just(page).concatWith(listAllNextWithServiceResponseAsync(nextPageLink));
+ return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink));
}
});
}
@@ -1092,17 +1091,17 @@ public Observable>> call(ServiceRe
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<ApplicationGatewayInner> object wrapped in {@link ServiceResponse} if successful.
*/
- public Observable>> listAllSinglePageAsync() {
+ public Observable>> listSinglePageAsync() {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2019-04-01";
- return service.listAll(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>>() {
@Override
public Observable>> call(Response response) {
try {
- ServiceResponse> result = listAllDelegate(response);
+ ServiceResponse> result = listDelegate(response);
return Observable.just(new ServiceResponse>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
@@ -1111,7 +1110,7 @@ public Observable>> call(Response<
});
}
- private ServiceResponse> listAllDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ private ServiceResponse> listDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken>() { }.getType())
.registerError(CloudException.class)
@@ -2712,12 +2711,12 @@ private ServiceResponse> listByResourceGroupNe
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<ApplicationGatewayInner> object if successful.
*/
- public PagedList listAllNext(final String nextPageLink) {
- ServiceResponse> response = listAllNextSinglePageAsync(nextPageLink).toBlocking().single();
+ public PagedList listNext(final String nextPageLink) {
+ ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single();
return new PagedList(response.body()) {
@Override
public Page nextPage(String nextPageLink) {
- return listAllNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
@@ -2731,13 +2730,13 @@ public Page nextPage(String nextPageLink) {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
- public ServiceFuture> listAllNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) {
+ public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) {
return AzureServiceFuture.fromPageResponse(
- listAllNextSinglePageAsync(nextPageLink),
+ listNextSinglePageAsync(nextPageLink),
new Func1>>>() {
@Override
public Observable>> call(String nextPageLink) {
- return listAllNextSinglePageAsync(nextPageLink);
+ return listNextSinglePageAsync(nextPageLink);
}
},
serviceCallback);
@@ -2750,8 +2749,8 @@ public Observable>> call(String ne
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList<ApplicationGatewayInner> object
*/
- public Observable> listAllNextAsync(final String nextPageLink) {
- return listAllNextWithServiceResponseAsync(nextPageLink)
+ public Observable> listNextAsync(final String nextPageLink) {
+ return listNextWithServiceResponseAsync(nextPageLink)
.map(new Func1>, Page>() {
@Override
public Page call(ServiceResponse> response) {
@@ -2767,8 +2766,8 @@ public Page call(ServiceResponse>> listAllNextWithServiceResponseAsync(final String nextPageLink) {
- return listAllNextSinglePageAsync(nextPageLink)
+ public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) {
+ return listNextSinglePageAsync(nextPageLink)
.concatMap(new Func1>, Observable>>>() {
@Override
public Observable>> call(ServiceResponse> page) {
@@ -2776,7 +2775,7 @@ public Observable>> call(ServiceRe
if (nextPageLink == null) {
return Observable.just(page);
}
- return Observable.just(page).concatWith(listAllNextWithServiceResponseAsync(nextPageLink));
+ return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink));
}
});
}
@@ -2788,17 +2787,17 @@ public Observable>> call(ServiceRe
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList<ApplicationGatewayInner> object wrapped in {@link ServiceResponse} if successful.
*/
- public Observable>> listAllNextSinglePageAsync(final String nextPageLink) {
+ public Observable>> listNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
}
String nextUrl = String.format("%s", nextPageLink);
- return service.listAllNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent())
+ return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1, Observable>>>() {
@Override
public Observable>> call(Response response) {
try {
- ServiceResponse> result = listAllNextDelegate(response);
+ ServiceResponse> result = listNextDelegate(response);
return Observable.just(new ServiceResponse>(result.body(), result.response()));
} catch (Throwable t) {
return Observable.error(t);
@@ -2807,7 +2806,7 @@ public Observable>> call(Response<
});
}
- private ServiceResponse> listAllNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ private ServiceResponse> listNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
.register(200, new TypeToken>() { }.getType())
.registerError(CloudException.class)
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AutoApprovedPrivateLinkServiceImpl.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AutoApprovedPrivateLinkServiceImpl.java
new file mode 100644
index 000000000000..8dd87c596f7e
--- /dev/null
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AutoApprovedPrivateLinkServiceImpl.java
@@ -0,0 +1,35 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.network.v2019_04_01.implementation;
+
+import com.microsoft.azure.management.network.v2019_04_01.AutoApprovedPrivateLinkService;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import rx.Observable;
+
+class AutoApprovedPrivateLinkServiceImpl extends WrapperImpl implements AutoApprovedPrivateLinkService {
+ private final NetworkManager manager;
+
+ AutoApprovedPrivateLinkServiceImpl(AutoApprovedPrivateLinkServiceInner inner, NetworkManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public NetworkManager manager() {
+ return this.manager;
+ }
+
+
+
+ @Override
+ public String privateLinkService() {
+ return this.inner().privateLinkService();
+ }
+
+}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AutoApprovedPrivateLinkServiceInner.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AutoApprovedPrivateLinkServiceInner.java
new file mode 100644
index 000000000000..345984621901
--- /dev/null
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AutoApprovedPrivateLinkServiceInner.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.network.v2019_04_01.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The information of an AutoApprovedPrivateLinkService.
+ */
+public class AutoApprovedPrivateLinkServiceInner {
+ /**
+ * The id of the private link service resource.
+ */
+ @JsonProperty(value = "privateLinkService")
+ private String privateLinkService;
+
+ /**
+ * Get the id of the private link service resource.
+ *
+ * @return the privateLinkService value
+ */
+ public String privateLinkService() {
+ return this.privateLinkService;
+ }
+
+ /**
+ * Set the id of the private link service resource.
+ *
+ * @param privateLinkService the privateLinkService value to set
+ * @return the AutoApprovedPrivateLinkServiceInner object itself.
+ */
+ public AutoApprovedPrivateLinkServiceInner withPrivateLinkService(String privateLinkService) {
+ this.privateLinkService = privateLinkService;
+ return this;
+ }
+
+}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailableEndpointServicesImpl.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailableEndpointServicesImpl.java
index e20237b04e53..fafc00a1a609 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailableEndpointServicesImpl.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailableEndpointServicesImpl.java
@@ -4,7 +4,7 @@
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * abc
+ *
*/
package com.microsoft.azure.management.network.v2019_04_01.implementation;
@@ -28,7 +28,7 @@ public NetworkManager manager() {
return this.manager;
}
- private EndpointServiceResultImpl wrapEndpointServiceResultModel(EndpointServiceResultInner inner) {
+ private EndpointServiceResultImpl wrapModel(EndpointServiceResultInner inner) {
return new EndpointServiceResultImpl(inner, manager());
}
@@ -45,7 +45,7 @@ public Iterable call(Page() {
@Override
public EndpointServiceResult call(EndpointServiceResultInner inner) {
- return wrapEndpointServiceResultModel(inner);
+ return wrapModel(inner);
}
});
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypeImpl.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypeImpl.java
new file mode 100644
index 000000000000..d13653e52f6e
--- /dev/null
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypeImpl.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ */
+
+package com.microsoft.azure.management.network.v2019_04_01.implementation;
+
+import com.microsoft.azure.management.network.v2019_04_01.AvailablePrivateEndpointType;
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import rx.Observable;
+
+class AvailablePrivateEndpointTypeImpl extends WrapperImpl implements AvailablePrivateEndpointType {
+ private final NetworkManager manager;
+
+ AvailablePrivateEndpointTypeImpl(AvailablePrivateEndpointTypeInner inner, NetworkManager manager) {
+ super(inner);
+ this.manager = manager;
+ }
+
+ @Override
+ public NetworkManager manager() {
+ return this.manager;
+ }
+
+
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public String resourceName() {
+ return this.inner().resourceName();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypeInner.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypeInner.java
index a09717beb298..385f0f129e78 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypeInner.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypeInner.java
@@ -14,6 +14,12 @@
* The information of an AvailablePrivateEndpointType.
*/
public class AvailablePrivateEndpointTypeInner {
+ /**
+ * The name of the service and resource.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
/**
* A unique identifier of the AvailablePrivateEndpoint Type resource.
*/
@@ -29,8 +35,28 @@ public class AvailablePrivateEndpointTypeInner {
/**
* The name of the service and resource.
*/
- @JsonProperty(value = "serviceName")
- private String serviceName;
+ @JsonProperty(value = "resourceName")
+ private String resourceName;
+
+ /**
+ * Get the name of the service and resource.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name of the service and resource.
+ *
+ * @param name the name value to set
+ * @return the AvailablePrivateEndpointTypeInner object itself.
+ */
+ public AvailablePrivateEndpointTypeInner withName(String name) {
+ this.name = name;
+ return this;
+ }
/**
* Get a unique identifier of the AvailablePrivateEndpoint Type resource.
@@ -75,20 +101,20 @@ public AvailablePrivateEndpointTypeInner withType(String type) {
/**
* Get the name of the service and resource.
*
- * @return the serviceName value
+ * @return the resourceName value
*/
- public String serviceName() {
- return this.serviceName;
+ public String resourceName() {
+ return this.resourceName;
}
/**
* Set the name of the service and resource.
*
- * @param serviceName the serviceName value to set
+ * @param resourceName the resourceName value to set
* @return the AvailablePrivateEndpointTypeInner object itself.
*/
- public AvailablePrivateEndpointTypeInner withServiceName(String serviceName) {
- this.serviceName = serviceName;
+ public AvailablePrivateEndpointTypeInner withResourceName(String resourceName) {
+ this.resourceName = resourceName;
return this;
}
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesImpl.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesImpl.java
index 5f6752201ae1..4c5bfe53e0a3 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesImpl.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesImpl.java
@@ -14,7 +14,7 @@
import rx.Observable;
import rx.functions.Func1;
import com.microsoft.azure.Page;
-import com.microsoft.azure.management.network.v2019_04_01.LocationAvailablePrivateEndpointType;
+import com.microsoft.azure.management.network.v2019_04_01.AvailablePrivateEndpointType;
class AvailablePrivateEndpointTypesImpl extends WrapperImpl implements AvailablePrivateEndpointTypes {
private final NetworkManager manager;
@@ -28,12 +28,30 @@ public NetworkManager manager() {
return this.manager;
}
- private LocationAvailablePrivateEndpointTypeImpl wrapModel(AvailablePrivateEndpointTypeInner inner) {
- return new LocationAvailablePrivateEndpointTypeImpl(inner, manager());
+ private AvailablePrivateEndpointTypeImpl wrapModel(AvailablePrivateEndpointTypeInner inner) {
+ return new AvailablePrivateEndpointTypeImpl(inner, manager());
}
@Override
- public Observable listAsync(final String location) {
+ public Observable listByResourceGroupAsync(final String location, final String resourceGroupName) {
+ AvailablePrivateEndpointTypesInner client = this.inner();
+ return client.listByResourceGroupAsync(location, resourceGroupName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public AvailablePrivateEndpointType call(AvailablePrivateEndpointTypeInner inner) {
+ return new AvailablePrivateEndpointTypeImpl(inner, manager());
+ }
+ });
+ }
+
+ @Override
+ public Observable listAsync(final String location) {
AvailablePrivateEndpointTypesInner client = this.inner();
return client.listAsync(location)
.flatMapIterable(new Func1, Iterable>() {
@@ -42,9 +60,9 @@ public Iterable call(Page() {
+ .map(new Func1() {
@Override
- public LocationAvailablePrivateEndpointType call(AvailablePrivateEndpointTypeInner inner) {
+ public AvailablePrivateEndpointType call(AvailablePrivateEndpointTypeInner inner) {
return wrapModel(inner);
}
});
diff --git a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesInner.java b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesInner.java
index 56b3e47fa7a7..f30cbf49e842 100644
--- a/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesInner.java
+++ b/sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/AvailablePrivateEndpointTypesInner.java
@@ -60,10 +60,18 @@ interface AvailablePrivateEndpointTypesService {
@GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes")
Observable> list(@Path("location") String location, @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.network.v2019_04_01.AvailablePrivateEndpointTypes listByResourceGroup" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availablePrivateEndpointTypes")
+ Observable> listByResourceGroup(@Path("location") String location, @Path("resourceGroupName") String resourceGroupName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.AvailablePrivateEndpointTypes listNext" })
@GET
Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_04_01.AvailablePrivateEndpointTypes listByResourceGroupNext" })
+ @GET
+ Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
}
/**
@@ -179,6 +187,127 @@ private ServiceResponse> listDelegat
.build(response);
}
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @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 PagedList<AvailablePrivateEndpointTypeInner> object if successful.
+ */
+ public PagedList listByResourceGroup(final String location, final String resourceGroupName) {
+ ServiceResponse> response = listByResourceGroupSinglePageAsync(location, resourceGroupName).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @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> listByResourceGroupAsync(final String location, final String resourceGroupName, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listByResourceGroupSinglePageAsync(location, resourceGroupName),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listByResourceGroupNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @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 PagedList<AvailablePrivateEndpointTypeInner> object
+ */
+ public Observable> listByResourceGroupAsync(final String location, final String resourceGroupName) {
+ return listByResourceGroupWithServiceResponseAsync(location, resourceGroupName)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @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 PagedList<AvailablePrivateEndpointTypeInner> object
+ */
+ public Observable>> listByResourceGroupWithServiceResponseAsync(final String location, final String resourceGroupName) {
+ return listByResourceGroupSinglePageAsync(location, resourceGroupName)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ ServiceResponse> * @param location The location of the domain name.
+ ServiceResponse> * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<AvailablePrivateEndpointTypeInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listByResourceGroupSinglePageAsync(final String location, final 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 = "2019-04-01";
+ return service.listByResourceGroup(location, resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listByResourceGroupDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listByResourceGroupDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
/**
* Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
*
@@ -290,4 +419,115 @@ private ServiceResponse> listNextDel
.build(response);
}
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<AvailablePrivateEndpointTypeInner> object if successful.
+ */
+ public PagedList listByResourceGroupNext(final String nextPageLink) {
+ ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param serviceFuture the ServiceFuture object tracking the Retrofit calls
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listByResourceGroupNextSinglePageAsync(nextPageLink),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listByResourceGroupNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @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<AvailablePrivateEndpointTypeInner> object
+ */
+ public Observable> listByResourceGroupNextAsync(final String nextPageLink) {
+ return listByResourceGroupNextWithServiceResponseAsync(nextPageLink)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ * @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<AvailablePrivateEndpointTypeInner> object
+ */
+ public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) {
+ return listByResourceGroupNextSinglePageAsync(nextPageLink)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region.
+ *
+ ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<AvailablePrivateEndpointTypeInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) {
+ if (nextPageLink == null) {
+ throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
+ }
+ String nextUrl = String.format("%s", nextPageLink);
+ return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listByResourceGroupNextDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken