diff --git a/sdk/network/mgmt-v2019_09_01/pom.xml b/sdk/network/mgmt-v2019_09_01/pom.xml index 31c06a7bdfd9..467b63b9a441 100644 --- a/sdk/network/mgmt-v2019_09_01/pom.xml +++ b/sdk/network/mgmt-v2019_09_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.2.0 + 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-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ConnectivityParameters.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ConnectivityParameters.java index f1d30ab1919b..e9848f0ad270 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ConnectivityParameters.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ConnectivityParameters.java @@ -39,6 +39,13 @@ public class ConnectivityParameters { @JsonProperty(value = "protocolConfiguration") private ProtocolConfiguration protocolConfiguration; + /** + * Preferred IP version of the connection. Possible values include: 'IPv4', + * 'IPv6'. + */ + @JsonProperty(value = "preferredIPVersion") + private IPVersion preferredIPVersion; + /** * Get describes the source of the connection. * @@ -119,4 +126,24 @@ public ConnectivityParameters withProtocolConfiguration(ProtocolConfiguration pr return this; } + /** + * Get preferred IP version of the connection. Possible values include: 'IPv4', 'IPv6'. + * + * @return the preferredIPVersion value + */ + public IPVersion preferredIPVersion() { + return this.preferredIPVersion; + } + + /** + * Set preferred IP version of the connection. Possible values include: 'IPv4', 'IPv6'. + * + * @param preferredIPVersion the preferredIPVersion value to set + * @return the ConnectivityParameters object itself. + */ + public ConnectivityParameters withPreferredIPVersion(IPVersion preferredIPVersion) { + this.preferredIPVersion = preferredIPVersion; + return this; + } + } diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuit.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuit.java index 05cf62524e6a..9a7b485e445c 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuit.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuit.java @@ -166,6 +166,18 @@ interface WithBandwidthInGbps { WithCreate withBandwidthInGbps(Double bandwidthInGbps); } + /** + * The stage of the expressroutecircuit definition allowing to specify CircuitProvisioningState. + */ + interface WithCircuitProvisioningState { + /** + * Specifies circuitProvisioningState. + * @param circuitProvisioningState The CircuitProvisioningState state of the resource + * @return the next definition stage + */ + WithCreate withCircuitProvisioningState(String circuitProvisioningState); + } + /** * The stage of the expressroutecircuit definition allowing to specify ExpressRoutePort. */ @@ -190,6 +202,18 @@ interface WithGatewayManagerEtag { WithCreate withGatewayManagerEtag(String gatewayManagerEtag); } + /** + * The stage of the expressroutecircuit definition allowing to specify GlobalReachEnabled. + */ + interface WithGlobalReachEnabled { + /** + * Specifies globalReachEnabled. + * @param globalReachEnabled Flag denoting Global reach status + * @return the next definition stage + */ + WithCreate withGlobalReachEnabled(Boolean globalReachEnabled); + } + /** * The stage of the expressroutecircuit definition allowing to specify Peerings. */ @@ -202,6 +226,18 @@ interface WithPeerings { WithCreate withPeerings(List peerings); } + /** + * The stage of the expressroutecircuit definition allowing to specify ServiceKey. + */ + interface WithServiceKey { + /** + * Specifies serviceKey. + * @param serviceKey The ServiceKey + * @return the next definition stage + */ + WithCreate withServiceKey(String serviceKey); + } + /** * The stage of the expressroutecircuit definition allowing to specify ServiceProviderNotes. */ @@ -226,6 +262,18 @@ interface WithServiceProviderProperties { WithCreate withServiceProviderProperties(ExpressRouteCircuitServiceProviderProperties serviceProviderProperties); } + /** + * The stage of the expressroutecircuit definition allowing to specify ServiceProviderProvisioningState. + */ + interface WithServiceProviderProvisioningState { + /** + * Specifies serviceProviderProvisioningState. + * @param serviceProviderProvisioningState The ServiceProviderProvisioningState state of the resource. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' + * @return the next definition stage + */ + WithCreate withServiceProviderProvisioningState(ServiceProviderProvisioningState serviceProviderProvisioningState); + } + /** * The stage of the expressroutecircuit definition allowing to specify Sku. */ @@ -243,13 +291,13 @@ interface WithSku { * 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.WithAllowClassicOperations, DefinitionStages.WithAuthorizations, DefinitionStages.WithBandwidthInGbps, DefinitionStages.WithExpressRoutePort, DefinitionStages.WithGatewayManagerEtag, DefinitionStages.WithPeerings, DefinitionStages.WithServiceProviderNotes, DefinitionStages.WithServiceProviderProperties, DefinitionStages.WithSku { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithAllowClassicOperations, DefinitionStages.WithAuthorizations, DefinitionStages.WithBandwidthInGbps, DefinitionStages.WithCircuitProvisioningState, DefinitionStages.WithExpressRoutePort, DefinitionStages.WithGatewayManagerEtag, DefinitionStages.WithGlobalReachEnabled, DefinitionStages.WithPeerings, DefinitionStages.WithServiceKey, DefinitionStages.WithServiceProviderNotes, DefinitionStages.WithServiceProviderProperties, DefinitionStages.WithServiceProviderProvisioningState, DefinitionStages.WithSku { } } /** * The template for a ExpressRouteCircuit update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAllowClassicOperations, UpdateStages.WithAuthorizations, UpdateStages.WithBandwidthInGbps, UpdateStages.WithExpressRoutePort, UpdateStages.WithGatewayManagerEtag, UpdateStages.WithPeerings, UpdateStages.WithServiceProviderNotes, UpdateStages.WithServiceProviderProperties, UpdateStages.WithSku { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithAllowClassicOperations, UpdateStages.WithAuthorizations, UpdateStages.WithBandwidthInGbps, UpdateStages.WithCircuitProvisioningState, UpdateStages.WithExpressRoutePort, UpdateStages.WithGatewayManagerEtag, UpdateStages.WithGlobalReachEnabled, UpdateStages.WithPeerings, UpdateStages.WithServiceKey, UpdateStages.WithServiceProviderNotes, UpdateStages.WithServiceProviderProperties, UpdateStages.WithServiceProviderProvisioningState, UpdateStages.WithSku { } /** @@ -292,6 +340,18 @@ interface WithBandwidthInGbps { Update withBandwidthInGbps(Double bandwidthInGbps); } + /** + * The stage of the expressroutecircuit update allowing to specify CircuitProvisioningState. + */ + interface WithCircuitProvisioningState { + /** + * Specifies circuitProvisioningState. + * @param circuitProvisioningState The CircuitProvisioningState state of the resource + * @return the next update stage + */ + Update withCircuitProvisioningState(String circuitProvisioningState); + } + /** * The stage of the expressroutecircuit update allowing to specify ExpressRoutePort. */ @@ -316,6 +376,18 @@ interface WithGatewayManagerEtag { Update withGatewayManagerEtag(String gatewayManagerEtag); } + /** + * The stage of the expressroutecircuit update allowing to specify GlobalReachEnabled. + */ + interface WithGlobalReachEnabled { + /** + * Specifies globalReachEnabled. + * @param globalReachEnabled Flag denoting Global reach status + * @return the next update stage + */ + Update withGlobalReachEnabled(Boolean globalReachEnabled); + } + /** * The stage of the expressroutecircuit update allowing to specify Peerings. */ @@ -328,6 +400,18 @@ interface WithPeerings { Update withPeerings(List peerings); } + /** + * The stage of the expressroutecircuit update allowing to specify ServiceKey. + */ + interface WithServiceKey { + /** + * Specifies serviceKey. + * @param serviceKey The ServiceKey + * @return the next update stage + */ + Update withServiceKey(String serviceKey); + } + /** * The stage of the expressroutecircuit update allowing to specify ServiceProviderNotes. */ @@ -352,6 +436,18 @@ interface WithServiceProviderProperties { Update withServiceProviderProperties(ExpressRouteCircuitServiceProviderProperties serviceProviderProperties); } + /** + * The stage of the expressroutecircuit update allowing to specify ServiceProviderProvisioningState. + */ + interface WithServiceProviderProvisioningState { + /** + * Specifies serviceProviderProvisioningState. + * @param serviceProviderProvisioningState The ServiceProviderProvisioningState state of the resource. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' + * @return the next update stage + */ + Update withServiceProviderProvisioningState(ServiceProviderProvisioningState serviceProviderProvisioningState); + } + /** * The stage of the expressroutecircuit update allowing to specify Sku. */ diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitAuthorization.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitAuthorization.java index 19cb2d26ba6e..fdb567c618ba 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitAuthorization.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitAuthorization.java @@ -86,6 +86,30 @@ interface WithExpressRouteCircuit { WithCreate withExistingExpressRouteCircuit(String resourceGroupName, String circuitName); } + /** + * The stage of the expressroutecircuitauthorization definition allowing to specify AuthorizationKey. + */ + interface WithAuthorizationKey { + /** + * Specifies authorizationKey. + * @param authorizationKey The authorization key + * @return the next definition stage + */ + WithCreate withAuthorizationKey(String authorizationKey); + } + + /** + * The stage of the expressroutecircuitauthorization definition allowing to specify AuthorizationUseStatus. + */ + interface WithAuthorizationUseStatus { + /** + * Specifies authorizationUseStatus. + * @param authorizationUseStatus The authorization use status. Possible values include: 'Available', 'InUse' + * @return the next definition stage + */ + WithCreate withAuthorizationUseStatus(AuthorizationUseStatus authorizationUseStatus); + } + /** * The stage of the expressroutecircuitauthorization definition allowing to specify Id. */ @@ -115,19 +139,43 @@ interface WithName { * 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.WithId, DefinitionStages.WithName { + interface WithCreate extends Creatable, DefinitionStages.WithAuthorizationKey, DefinitionStages.WithAuthorizationUseStatus, DefinitionStages.WithId, DefinitionStages.WithName { } } /** * The template for a ExpressRouteCircuitAuthorization update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithId, UpdateStages.WithName { + interface Update extends Appliable, UpdateStages.WithAuthorizationKey, UpdateStages.WithAuthorizationUseStatus, UpdateStages.WithId, UpdateStages.WithName { } /** * Grouping of ExpressRouteCircuitAuthorization update stages. */ interface UpdateStages { + /** + * The stage of the expressroutecircuitauthorization update allowing to specify AuthorizationKey. + */ + interface WithAuthorizationKey { + /** + * Specifies authorizationKey. + * @param authorizationKey The authorization key + * @return the next update stage + */ + Update withAuthorizationKey(String authorizationKey); + } + + /** + * The stage of the expressroutecircuitauthorization update allowing to specify AuthorizationUseStatus. + */ + interface WithAuthorizationUseStatus { + /** + * Specifies authorizationUseStatus. + * @param authorizationUseStatus The authorization use status. Possible values include: 'Available', 'InUse' + * @return the next update stage + */ + Update withAuthorizationUseStatus(AuthorizationUseStatus authorizationUseStatus); + } + /** * The stage of the expressroutecircuitauthorization update allowing to specify Id. */ diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitConnection.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitConnection.java index 63f06bd0115f..4142a4cabce8 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitConnection.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitConnection.java @@ -127,6 +127,18 @@ interface WithAuthorizationKey { WithCreate withAuthorizationKey(String authorizationKey); } + /** + * The stage of the expressroutecircuitconnection definition allowing to specify CircuitConnectionStatus. + */ + interface WithCircuitConnectionStatus { + /** + * Specifies circuitConnectionStatus. + * @param circuitConnectionStatus Express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected' + * @return the next definition stage + */ + WithCreate withCircuitConnectionStatus(CircuitConnectionStatus circuitConnectionStatus); + } + /** * The stage of the expressroutecircuitconnection definition allowing to specify ExpressRouteCircuitPeering. */ @@ -180,13 +192,13 @@ interface WithPeerExpressRouteCircuitPeering { * 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.WithAuthorizationKey, DefinitionStages.WithExpressRouteCircuitPeering, DefinitionStages.WithId, DefinitionStages.WithName, DefinitionStages.WithPeerExpressRouteCircuitPeering { + interface WithCreate extends Creatable, DefinitionStages.WithAddressPrefix, DefinitionStages.WithAuthorizationKey, DefinitionStages.WithCircuitConnectionStatus, DefinitionStages.WithExpressRouteCircuitPeering, DefinitionStages.WithId, DefinitionStages.WithName, DefinitionStages.WithPeerExpressRouteCircuitPeering { } } /** * The template for a ExpressRouteCircuitConnection update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithAddressPrefix, UpdateStages.WithAuthorizationKey, UpdateStages.WithExpressRouteCircuitPeering, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPeerExpressRouteCircuitPeering { + interface Update extends Appliable, UpdateStages.WithAddressPrefix, UpdateStages.WithAuthorizationKey, UpdateStages.WithCircuitConnectionStatus, UpdateStages.WithExpressRouteCircuitPeering, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPeerExpressRouteCircuitPeering { } /** @@ -217,6 +229,18 @@ interface WithAuthorizationKey { Update withAuthorizationKey(String authorizationKey); } + /** + * The stage of the expressroutecircuitconnection update allowing to specify CircuitConnectionStatus. + */ + interface WithCircuitConnectionStatus { + /** + * Specifies circuitConnectionStatus. + * @param circuitConnectionStatus Express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected' + * @return the next update stage + */ + Update withCircuitConnectionStatus(CircuitConnectionStatus circuitConnectionStatus); + } + /** * The stage of the expressroutecircuitconnection update allowing to specify ExpressRouteCircuitPeering. */ diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitPeering.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitPeering.java index 4ea8dbe21476..a3709a358bcc 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitPeering.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/ExpressRouteCircuitPeering.java @@ -19,6 +19,7 @@ import com.microsoft.azure.management.network.v2019_09_01.implementation.NetworkManager; import com.microsoft.azure.SubResource; import java.util.List; +import com.microsoft.azure.management.network.v2019_09_01.implementation.ExpressRouteCircuitConnectionInner; import com.microsoft.azure.management.network.v2019_09_01.implementation.ExpressRouteCircuitStatsInner; /** @@ -174,6 +175,30 @@ interface WithExpressRouteCircuit { WithCreate withExistingExpressRouteCircuit(String resourceGroupName, String circuitName); } + /** + * The stage of the expressroutecircuitpeering definition allowing to specify AzureASN. + */ + interface WithAzureASN { + /** + * Specifies azureASN. + * @param azureASN The Azure ASN + * @return the next definition stage + */ + WithCreate withAzureASN(Integer azureASN); + } + + /** + * The stage of the expressroutecircuitpeering definition allowing to specify Connections. + */ + interface WithConnections { + /** + * Specifies connections. + * @param connections The list of circuit connections associated with Azure Private Peering for this circuit + * @return the next definition stage + */ + WithCreate withConnections(List connections); + } + /** * The stage of the expressroutecircuitpeering definition allowing to specify ExpressRouteConnection. */ @@ -270,6 +295,18 @@ interface WithPeeringType { WithCreate withPeeringType(ExpressRoutePeeringType peeringType); } + /** + * The stage of the expressroutecircuitpeering definition allowing to specify PrimaryAzurePort. + */ + interface WithPrimaryAzurePort { + /** + * Specifies primaryAzurePort. + * @param primaryAzurePort The primary port + * @return the next definition stage + */ + WithCreate withPrimaryAzurePort(String primaryAzurePort); + } + /** * The stage of the expressroutecircuitpeering definition allowing to specify PrimaryPeerAddressPrefix. */ @@ -294,6 +331,18 @@ interface WithRouteFilter { WithCreate withRouteFilter(SubResource routeFilter); } + /** + * The stage of the expressroutecircuitpeering definition allowing to specify SecondaryAzurePort. + */ + interface WithSecondaryAzurePort { + /** + * Specifies secondaryAzurePort. + * @param secondaryAzurePort The secondary port + * @return the next definition stage + */ + WithCreate withSecondaryAzurePort(String secondaryAzurePort); + } + /** * The stage of the expressroutecircuitpeering definition allowing to specify SecondaryPeerAddressPrefix. */ @@ -359,19 +408,43 @@ interface WithVlanId { * 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.WithExpressRouteConnection, DefinitionStages.WithGatewayManagerEtag, DefinitionStages.WithId, DefinitionStages.WithIpv6PeeringConfig, DefinitionStages.WithMicrosoftPeeringConfig, DefinitionStages.WithName, DefinitionStages.WithPeerASN, DefinitionStages.WithPeeringType, DefinitionStages.WithPrimaryPeerAddressPrefix, DefinitionStages.WithRouteFilter, DefinitionStages.WithSecondaryPeerAddressPrefix, DefinitionStages.WithSharedKey, DefinitionStages.WithState, DefinitionStages.WithStats, DefinitionStages.WithVlanId { + interface WithCreate extends Creatable, DefinitionStages.WithAzureASN, DefinitionStages.WithConnections, DefinitionStages.WithExpressRouteConnection, DefinitionStages.WithGatewayManagerEtag, DefinitionStages.WithId, DefinitionStages.WithIpv6PeeringConfig, DefinitionStages.WithMicrosoftPeeringConfig, DefinitionStages.WithName, DefinitionStages.WithPeerASN, DefinitionStages.WithPeeringType, DefinitionStages.WithPrimaryAzurePort, DefinitionStages.WithPrimaryPeerAddressPrefix, DefinitionStages.WithRouteFilter, DefinitionStages.WithSecondaryAzurePort, DefinitionStages.WithSecondaryPeerAddressPrefix, DefinitionStages.WithSharedKey, DefinitionStages.WithState, DefinitionStages.WithStats, DefinitionStages.WithVlanId { } } /** * The template for a ExpressRouteCircuitPeering update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithExpressRouteConnection, UpdateStages.WithGatewayManagerEtag, UpdateStages.WithId, UpdateStages.WithIpv6PeeringConfig, UpdateStages.WithMicrosoftPeeringConfig, UpdateStages.WithName, UpdateStages.WithPeerASN, UpdateStages.WithPeeringType, UpdateStages.WithPrimaryPeerAddressPrefix, UpdateStages.WithRouteFilter, UpdateStages.WithSecondaryPeerAddressPrefix, UpdateStages.WithSharedKey, UpdateStages.WithState, UpdateStages.WithStats, UpdateStages.WithVlanId { + interface Update extends Appliable, UpdateStages.WithAzureASN, UpdateStages.WithConnections, UpdateStages.WithExpressRouteConnection, UpdateStages.WithGatewayManagerEtag, UpdateStages.WithId, UpdateStages.WithIpv6PeeringConfig, UpdateStages.WithMicrosoftPeeringConfig, UpdateStages.WithName, UpdateStages.WithPeerASN, UpdateStages.WithPeeringType, UpdateStages.WithPrimaryAzurePort, UpdateStages.WithPrimaryPeerAddressPrefix, UpdateStages.WithRouteFilter, UpdateStages.WithSecondaryAzurePort, UpdateStages.WithSecondaryPeerAddressPrefix, UpdateStages.WithSharedKey, UpdateStages.WithState, UpdateStages.WithStats, UpdateStages.WithVlanId { } /** * Grouping of ExpressRouteCircuitPeering update stages. */ interface UpdateStages { + /** + * The stage of the expressroutecircuitpeering update allowing to specify AzureASN. + */ + interface WithAzureASN { + /** + * Specifies azureASN. + * @param azureASN The Azure ASN + * @return the next update stage + */ + Update withAzureASN(Integer azureASN); + } + + /** + * The stage of the expressroutecircuitpeering update allowing to specify Connections. + */ + interface WithConnections { + /** + * Specifies connections. + * @param connections The list of circuit connections associated with Azure Private Peering for this circuit + * @return the next update stage + */ + Update withConnections(List connections); + } + /** * The stage of the expressroutecircuitpeering update allowing to specify ExpressRouteConnection. */ @@ -468,6 +541,18 @@ interface WithPeeringType { Update withPeeringType(ExpressRoutePeeringType peeringType); } + /** + * The stage of the expressroutecircuitpeering update allowing to specify PrimaryAzurePort. + */ + interface WithPrimaryAzurePort { + /** + * Specifies primaryAzurePort. + * @param primaryAzurePort The primary port + * @return the next update stage + */ + Update withPrimaryAzurePort(String primaryAzurePort); + } + /** * The stage of the expressroutecircuitpeering update allowing to specify PrimaryPeerAddressPrefix. */ @@ -492,6 +577,18 @@ interface WithRouteFilter { Update withRouteFilter(SubResource routeFilter); } + /** + * The stage of the expressroutecircuitpeering update allowing to specify SecondaryAzurePort. + */ + interface WithSecondaryAzurePort { + /** + * Specifies secondaryAzurePort. + * @param secondaryAzurePort The secondary port + * @return the next update stage + */ + Update withSecondaryAzurePort(String secondaryAzurePort); + } + /** * The stage of the expressroutecircuitpeering update allowing to specify SecondaryPeerAddressPrefix. */ diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/Subnet.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/Subnet.java index a53788c19d08..1ee508e1aa06 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/Subnet.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/Subnet.java @@ -22,8 +22,6 @@ import com.microsoft.azure.management.network.v2019_09_01.implementation.NetworkSecurityGroupInner; import com.microsoft.azure.management.network.v2019_09_01.implementation.RouteTableInner; import com.microsoft.azure.management.network.v2019_09_01.implementation.ServiceEndpointPolicyInner; -import com.microsoft.azure.management.network.v2019_09_01.implementation.ResourceNavigationLinkInner; -import com.microsoft.azure.management.network.v2019_09_01.implementation.ServiceAssociationLinkInner; /** * Type representing Subnet. diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/AzureFirewallsInner.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/AzureFirewallsInner.java index 342e7ad49138..838f485ee7be 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/AzureFirewallsInner.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/AzureFirewallsInner.java @@ -91,6 +91,10 @@ interface AzureFirewallsService { @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") Observable> updateTags(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_09_01.AzureFirewalls beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}") + Observable> beginUpdateTags(@Path("resourceGroupName") String resourceGroupName, @Path("azureFirewallName") String azureFirewallName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject parameters, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.v2019_09_01.AzureFirewalls listByResourceGroup" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls") 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); @@ -523,7 +527,7 @@ private ServiceResponse beginCreateOrUpdateDelegate(Response * @return the AzureFirewallInner object if successful. */ public AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName) { - return updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName).toBlocking().single().body(); + return updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName).toBlocking().last().body(); } /** @@ -545,7 +549,7 @@ public ServiceFuture updateTagsAsync(String resourceGroupNam * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the AzureFirewallInner object + * @return the observable for the request */ public Observable updateTagsAsync(String resourceGroupName, String azureFirewallName) { return updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName).map(new Func1, AzureFirewallInner>() { @@ -562,7 +566,7 @@ public AzureFirewallInner call(ServiceResponse response) { * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the AzureFirewallInner object + * @return the observable for the request */ public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String azureFirewallName) { if (resourceGroupName == null) { @@ -578,12 +582,155 @@ public Observable> updateTagsWithServiceResp final Map tags = null; TagsObject parameters = new TagsObject(); parameters.withTags(null); - return service.updateTags(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) + Observable> observable = service.updateTags(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param tags Resource tags. + * @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 AzureFirewallInner object if successful. + */ + public AzureFirewallInner updateTags(String resourceGroupName, String azureFirewallName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags).toBlocking().last().body(); + } + + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String azureFirewallName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags), serviceCallback); + } + + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String azureFirewallName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags).map(new Func1, AzureFirewallInner>() { + @Override + public AzureFirewallInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String azureFirewallName, Map tags) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (azureFirewallName == null) { + throw new IllegalArgumentException("Parameter azureFirewallName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2019-09-01"; + TagsObject parameters = new TagsObject(); + parameters.withTags(tags); + Observable> observable = service.updateTags(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @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 AzureFirewallInner object if successful. + */ + public AzureFirewallInner beginUpdateTags(String resourceGroupName, String azureFirewallName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName).toBlocking().single().body(); + } + + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String azureFirewallName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName), serviceCallback); + } + + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureFirewallInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String azureFirewallName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName).map(new Func1, AzureFirewallInner>() { + @Override + public AzureFirewallInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates tags of an Azure Firewall resource. + * + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the Azure Firewall. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the AzureFirewallInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String azureFirewallName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (azureFirewallName == null) { + throw new IllegalArgumentException("Parameter azureFirewallName 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-09-01"; + final Map tags = null; + TagsObject parameters = new TagsObject(); + parameters.withTags(null); + return service.beginUpdateTags(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateTagsDelegate(response); + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -603,8 +750,8 @@ public Observable> call(Response tags) { - return updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags).toBlocking().single().body(); + public AzureFirewallInner beginUpdateTags(String resourceGroupName, String azureFirewallName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags).toBlocking().single().body(); } /** @@ -617,8 +764,8 @@ public AzureFirewallInner updateTags(String resourceGroupName, String azureFirew * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateTagsAsync(String resourceGroupName, String azureFirewallName, Map tags, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags), serviceCallback); + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String azureFirewallName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags), serviceCallback); } /** @@ -630,8 +777,8 @@ public ServiceFuture updateTagsAsync(String resourceGroupNam * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AzureFirewallInner object */ - public Observable updateTagsAsync(String resourceGroupName, String azureFirewallName, Map tags) { - return updateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags).map(new Func1, AzureFirewallInner>() { + public Observable beginUpdateTagsAsync(String resourceGroupName, String azureFirewallName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, azureFirewallName, tags).map(new Func1, AzureFirewallInner>() { @Override public AzureFirewallInner call(ServiceResponse response) { return response.body(); @@ -648,7 +795,7 @@ public AzureFirewallInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the AzureFirewallInner object */ - public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String azureFirewallName, Map tags) { + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String azureFirewallName, Map tags) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -662,12 +809,12 @@ public Observable> updateTagsWithServiceResp final String apiVersion = "2019-09-01"; TagsObject parameters = new TagsObject(); parameters.withTags(tags); - return service.updateTags(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) + return service.beginUpdateTags(resourceGroupName, azureFirewallName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), parameters, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateTagsDelegate(response); + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -676,9 +823,10 @@ public Observable> call(Response updateTagsDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + private ServiceResponse beginUpdateTagsDelegate(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-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationImpl.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationImpl.java index 677da33a3667..c9e10414513c 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationImpl.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationImpl.java @@ -113,6 +113,18 @@ public ExpressRouteCircuitAuthorizationImpl withExistingExpressRouteCircuit(Stri return this; } + @Override + public ExpressRouteCircuitAuthorizationImpl withAuthorizationKey(String authorizationKey) { + this.inner().withAuthorizationKey(authorizationKey); + return this; + } + + @Override + public ExpressRouteCircuitAuthorizationImpl withAuthorizationUseStatus(AuthorizationUseStatus authorizationUseStatus) { + this.inner().withAuthorizationUseStatus(authorizationUseStatus); + return this; + } + @Override public ExpressRouteCircuitAuthorizationImpl withId(String id) { this.inner().withId(id); diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationInner.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationInner.java index bf55f5f64182..7840988b7a9e 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationInner.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitAuthorizationInner.java @@ -22,14 +22,14 @@ public class ExpressRouteCircuitAuthorizationInner extends SubResource { /** * The authorization key. */ - @JsonProperty(value = "properties.authorizationKey", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.authorizationKey") private String authorizationKey; /** * The authorization use status. Possible values include: 'Available', * 'InUse'. */ - @JsonProperty(value = "properties.authorizationUseStatus", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.authorizationUseStatus") private AuthorizationUseStatus authorizationUseStatus; /** @@ -67,6 +67,17 @@ public String authorizationKey() { return this.authorizationKey; } + /** + * Set the authorization key. + * + * @param authorizationKey the authorizationKey value to set + * @return the ExpressRouteCircuitAuthorizationInner object itself. + */ + public ExpressRouteCircuitAuthorizationInner withAuthorizationKey(String authorizationKey) { + this.authorizationKey = authorizationKey; + return this; + } + /** * Get the authorization use status. Possible values include: 'Available', 'InUse'. * @@ -76,6 +87,17 @@ public AuthorizationUseStatus authorizationUseStatus() { return this.authorizationUseStatus; } + /** + * Set the authorization use status. Possible values include: 'Available', 'InUse'. + * + * @param authorizationUseStatus the authorizationUseStatus value to set + * @return the ExpressRouteCircuitAuthorizationInner object itself. + */ + public ExpressRouteCircuitAuthorizationInner withAuthorizationUseStatus(AuthorizationUseStatus authorizationUseStatus) { + this.authorizationUseStatus = authorizationUseStatus; + return this; + } + /** * Get the provisioning state of the authorization resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionImpl.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionImpl.java index f86354374a4b..beeeee373ee4 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionImpl.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionImpl.java @@ -144,6 +144,12 @@ public ExpressRouteCircuitConnectionImpl withAuthorizationKey(String authorizati return this; } + @Override + public ExpressRouteCircuitConnectionImpl withCircuitConnectionStatus(CircuitConnectionStatus circuitConnectionStatus) { + this.inner().withCircuitConnectionStatus(circuitConnectionStatus); + return this; + } + @Override public ExpressRouteCircuitConnectionImpl withExpressRouteCircuitPeering(SubResource expressRouteCircuitPeering) { this.inner().withExpressRouteCircuitPeering(expressRouteCircuitPeering); diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionInner.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionInner.java index b0b4be083822..d848ff62c95a 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionInner.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitConnectionInner.java @@ -49,7 +49,7 @@ public class ExpressRouteCircuitConnectionInner extends SubResource { * Express Route Circuit connection state. Possible values include: * 'Connected', 'Connecting', 'Disconnected'. */ - @JsonProperty(value = "properties.circuitConnectionStatus", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.circuitConnectionStatus") private CircuitConnectionStatus circuitConnectionStatus; /** @@ -167,6 +167,17 @@ public CircuitConnectionStatus circuitConnectionStatus() { return this.circuitConnectionStatus; } + /** + * Set express Route Circuit connection state. Possible values include: 'Connected', 'Connecting', 'Disconnected'. + * + * @param circuitConnectionStatus the circuitConnectionStatus value to set + * @return the ExpressRouteCircuitConnectionInner object itself. + */ + public ExpressRouteCircuitConnectionInner withCircuitConnectionStatus(CircuitConnectionStatus circuitConnectionStatus) { + this.circuitConnectionStatus = circuitConnectionStatus; + return this; + } + /** * Get the provisioning state of the express route circuit connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitImpl.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitImpl.java index a6606ffc19ac..120008a37f23 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitImpl.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitImpl.java @@ -162,6 +162,12 @@ public ExpressRouteCircuitImpl withBandwidthInGbps(Double bandwidthInGbps) { return this; } + @Override + public ExpressRouteCircuitImpl withCircuitProvisioningState(String circuitProvisioningState) { + this.inner().withCircuitProvisioningState(circuitProvisioningState); + return this; + } + @Override public ExpressRouteCircuitImpl withExpressRoutePort(SubResource expressRoutePort) { this.inner().withExpressRoutePort(expressRoutePort); @@ -174,12 +180,24 @@ public ExpressRouteCircuitImpl withGatewayManagerEtag(String gatewayManagerEtag) return this; } + @Override + public ExpressRouteCircuitImpl withGlobalReachEnabled(Boolean globalReachEnabled) { + this.inner().withGlobalReachEnabled(globalReachEnabled); + return this; + } + @Override public ExpressRouteCircuitImpl withPeerings(List peerings) { this.inner().withPeerings(peerings); return this; } + @Override + public ExpressRouteCircuitImpl withServiceKey(String serviceKey) { + this.inner().withServiceKey(serviceKey); + return this; + } + @Override public ExpressRouteCircuitImpl withServiceProviderNotes(String serviceProviderNotes) { this.inner().withServiceProviderNotes(serviceProviderNotes); @@ -192,6 +210,12 @@ public ExpressRouteCircuitImpl withServiceProviderProperties(ExpressRouteCircuit return this; } + @Override + public ExpressRouteCircuitImpl withServiceProviderProvisioningState(ServiceProviderProvisioningState serviceProviderProvisioningState) { + this.inner().withServiceProviderProvisioningState(serviceProviderProvisioningState); + return this; + } + @Override public ExpressRouteCircuitImpl withSku(ExpressRouteCircuitSku sku) { this.inner().withSku(sku); diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitInner.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitInner.java index d64458d3ee9c..857c3a99aadd 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitInner.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitInner.java @@ -40,7 +40,7 @@ public class ExpressRouteCircuitInner extends Resource { /** * The CircuitProvisioningState state of the resource. */ - @JsonProperty(value = "properties.circuitProvisioningState", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.circuitProvisioningState") private String circuitProvisioningState; /** @@ -48,7 +48,7 @@ public class ExpressRouteCircuitInner extends Resource { * values include: 'NotProvisioned', 'Provisioning', 'Provisioned', * 'Deprovisioning'. */ - @JsonProperty(value = "properties.serviceProviderProvisioningState", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.serviceProviderProvisioningState") private ServiceProviderProvisioningState serviceProviderProvisioningState; /** @@ -66,7 +66,7 @@ public class ExpressRouteCircuitInner extends Resource { /** * The ServiceKey. */ - @JsonProperty(value = "properties.serviceKey", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.serviceKey") private String serviceKey; /** @@ -117,7 +117,7 @@ public class ExpressRouteCircuitInner extends Resource { /** * Flag denoting Global reach status. */ - @JsonProperty(value = "properties.globalReachEnabled", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.globalReachEnabled") private Boolean globalReachEnabled; /** @@ -181,6 +181,17 @@ public String circuitProvisioningState() { return this.circuitProvisioningState; } + /** + * Set the CircuitProvisioningState state of the resource. + * + * @param circuitProvisioningState the circuitProvisioningState value to set + * @return the ExpressRouteCircuitInner object itself. + */ + public ExpressRouteCircuitInner withCircuitProvisioningState(String circuitProvisioningState) { + this.circuitProvisioningState = circuitProvisioningState; + return this; + } + /** * Get the ServiceProviderProvisioningState state of the resource. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning'. * @@ -190,6 +201,17 @@ public ServiceProviderProvisioningState serviceProviderProvisioningState() { return this.serviceProviderProvisioningState; } + /** + * Set the ServiceProviderProvisioningState state of the resource. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning'. + * + * @param serviceProviderProvisioningState the serviceProviderProvisioningState value to set + * @return the ExpressRouteCircuitInner object itself. + */ + public ExpressRouteCircuitInner withServiceProviderProvisioningState(ServiceProviderProvisioningState serviceProviderProvisioningState) { + this.serviceProviderProvisioningState = serviceProviderProvisioningState; + return this; + } + /** * Get the list of authorizations. * @@ -239,6 +261,17 @@ public String serviceKey() { return this.serviceKey; } + /** + * Set the ServiceKey. + * + * @param serviceKey the serviceKey value to set + * @return the ExpressRouteCircuitInner object itself. + */ + public ExpressRouteCircuitInner withServiceKey(String serviceKey) { + this.serviceKey = serviceKey; + return this; + } + /** * Get the ServiceProviderNotes. * @@ -366,6 +399,17 @@ public Boolean globalReachEnabled() { return this.globalReachEnabled; } + /** + * Set flag denoting Global reach status. + * + * @param globalReachEnabled the globalReachEnabled value to set + * @return the ExpressRouteCircuitInner object itself. + */ + public ExpressRouteCircuitInner withGlobalReachEnabled(Boolean globalReachEnabled) { + this.globalReachEnabled = globalReachEnabled; + return this; + } + /** * Get a unique read-only string that changes whenever the resource is updated. * diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringImpl.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringImpl.java index b54dff592f5d..53d6eec39994 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringImpl.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringImpl.java @@ -225,6 +225,18 @@ public ExpressRouteCircuitPeeringImpl withExistingExpressRouteCircuit(String res return this; } + @Override + public ExpressRouteCircuitPeeringImpl withAzureASN(Integer azureASN) { + this.inner().withAzureASN(azureASN); + return this; + } + + @Override + public ExpressRouteCircuitPeeringImpl withConnections(List connections) { + this.inner().withConnections(connections); + return this; + } + @Override public ExpressRouteCircuitPeeringImpl withExpressRouteConnection(ExpressRouteConnectionId expressRouteConnection) { this.inner().withExpressRouteConnection(expressRouteConnection); @@ -273,6 +285,12 @@ public ExpressRouteCircuitPeeringImpl withPeeringType(ExpressRoutePeeringType pe return this; } + @Override + public ExpressRouteCircuitPeeringImpl withPrimaryAzurePort(String primaryAzurePort) { + this.inner().withPrimaryAzurePort(primaryAzurePort); + return this; + } + @Override public ExpressRouteCircuitPeeringImpl withPrimaryPeerAddressPrefix(String primaryPeerAddressPrefix) { this.inner().withPrimaryPeerAddressPrefix(primaryPeerAddressPrefix); @@ -285,6 +303,12 @@ public ExpressRouteCircuitPeeringImpl withRouteFilter(SubResource routeFilter) { return this; } + @Override + public ExpressRouteCircuitPeeringImpl withSecondaryAzurePort(String secondaryAzurePort) { + this.inner().withSecondaryAzurePort(secondaryAzurePort); + return this; + } + @Override public ExpressRouteCircuitPeeringImpl withSecondaryPeerAddressPrefix(String secondaryPeerAddressPrefix) { this.inner().withSecondaryPeerAddressPrefix(secondaryPeerAddressPrefix); diff --git a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringInner.java b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringInner.java index e581d660bc36..b683c7e9447e 100644 --- a/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringInner.java +++ b/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/ExpressRouteCircuitPeeringInner.java @@ -40,7 +40,7 @@ public class ExpressRouteCircuitPeeringInner extends SubResource { /** * The Azure ASN. */ - @JsonProperty(value = "properties.azureASN", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.azureASN") private Integer azureASN; /** @@ -64,13 +64,13 @@ public class ExpressRouteCircuitPeeringInner extends SubResource { /** * The primary port. */ - @JsonProperty(value = "properties.primaryAzurePort", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.primaryAzurePort") private String primaryAzurePort; /** * The secondary port. */ - @JsonProperty(value = "properties.secondaryAzurePort", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.secondaryAzurePort") private String secondaryAzurePort; /** @@ -138,7 +138,7 @@ public class ExpressRouteCircuitPeeringInner extends SubResource { * The list of circuit connections associated with Azure Private Peering * for this circuit. */ - @JsonProperty(value = "properties.connections", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "properties.connections") private List connections; /** @@ -216,6 +216,17 @@ public Integer azureASN() { return this.azureASN; } + /** + * Set the Azure ASN. + * + * @param azureASN the azureASN value to set + * @return the ExpressRouteCircuitPeeringInner object itself. + */ + public ExpressRouteCircuitPeeringInner withAzureASN(Integer azureASN) { + this.azureASN = azureASN; + return this; + } + /** * Get the peer ASN. * @@ -285,6 +296,17 @@ public String primaryAzurePort() { return this.primaryAzurePort; } + /** + * Set the primary port. + * + * @param primaryAzurePort the primaryAzurePort value to set + * @return the ExpressRouteCircuitPeeringInner object itself. + */ + public ExpressRouteCircuitPeeringInner withPrimaryAzurePort(String primaryAzurePort) { + this.primaryAzurePort = primaryAzurePort; + return this; + } + /** * Get the secondary port. * @@ -294,6 +316,17 @@ public String secondaryAzurePort() { return this.secondaryAzurePort; } + /** + * Set the secondary port. + * + * @param secondaryAzurePort the secondaryAzurePort value to set + * @return the ExpressRouteCircuitPeeringInner object itself. + */ + public ExpressRouteCircuitPeeringInner withSecondaryAzurePort(String secondaryAzurePort) { + this.secondaryAzurePort = secondaryAzurePort; + return this; + } + /** * Get the shared key. * @@ -481,6 +514,17 @@ public List connections() { return this.connections; } + /** + * Set the list of circuit connections associated with Azure Private Peering for this circuit. + * + * @param connections the connections value to set + * @return the ExpressRouteCircuitPeeringInner object itself. + */ + public ExpressRouteCircuitPeeringInner withConnections(List connections) { + this.connections = connections; + return this; + } + /** * Get the list of peered circuit connections associated with Azure Private Peering for this circuit. *