Skip to content

Commit 530cc43

Browse files
mgmt, upgrade network 2023-04 (Azure#36242)
1 parent 7e3b6a5 commit 530cc43

File tree

754 files changed

+2678
-1913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

754 files changed

+2678
-1913
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@
175175
"dir": "azure-resourcemanager-network",
176176
"source": "specification/network/resource-manager/readme.md",
177177
"package": "com.azure.resourcemanager.network",
178-
"args": "--tag=package-2023-02 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture,ApplicationGateway,ApplicationGatewayListener",
179-
"note": "Deprecate v1 sku/tier in ApplicationGatewaySku(except BASIC) and add deprecation javadocs."
178+
"args": "--tag=package-2023-04 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture,ApplicationGateway,ApplicationGatewayListener",
179+
"note": "Run DeprecateApplicationGatewaySku to deprecate v1 sku/tier in ApplicationGatewaySku."
180180
},
181181
"network-hybrid": {
182182
"dir": "../resourcemanagerhybrid/azure-resourcemanager-network",

sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
- Supported `backends` for `LoadBalancingRule`.
88

9+
### Other Changes
10+
11+
#### Dependency Updates
12+
13+
- Updated `api-version` to `2023-04-01`.
14+
915
## 2.29.0 (2023-07-28)
1016

1117
### Bugs Fixed

sdk/resourcemanager/azure-resourcemanager-network/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "java",
44
"TagPrefix": "java/resourcemanager/azure-resourcemanager-network",
5-
"Tag": "java/resourcemanager/azure-resourcemanager-network_05e72adb49"
5+
"Tag": "java/resourcemanager/azure-resourcemanager-network_e62d4a4979"
66
}

sdk/resourcemanager/azure-resourcemanager-network/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
--add-opens com.azure.resourcemanager.resources/com.azure.resourcemanager.resources.fluentcore.arm=ALL-UNNAMED
5252
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
5353
</javaModulesSurefireArgLine>
54-
<revapi.skip>true</revapi.skip>
5554
</properties>
5655

5756
<developers>

sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LoadBalancersClient.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
import com.azure.core.util.polling.SyncPoller;
1616
import com.azure.resourcemanager.network.fluent.models.BackendAddressInboundNatRulePortMappingsInner;
1717
import com.azure.resourcemanager.network.fluent.models.LoadBalancerInner;
18+
import com.azure.resourcemanager.network.fluent.models.MigratedPoolsInner;
1819
import com.azure.resourcemanager.network.models.LoadBalancerVipSwapRequest;
20+
import com.azure.resourcemanager.network.models.MigrateLoadBalancerToIpBasedRequest;
1921
import com.azure.resourcemanager.network.models.QueryInboundNatRulePortMappingRequest;
2022
import com.azure.resourcemanager.network.models.TagsObject;
2123
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
@@ -645,4 +647,62 @@ BackendAddressInboundNatRulePortMappingsInner listInboundNatRulePortMappings(
645647
String backendPoolName,
646648
QueryInboundNatRulePortMappingRequest parameters,
647649
Context context);
650+
651+
/**
652+
* Migrate load balancer to IP Based.
653+
*
654+
* @param groupName The name of the resource group.
655+
* @param loadBalancerName The name of the load balancer.
656+
* @param parameters Parameters supplied to the migrateToIpBased Api.
657+
* @throws IllegalArgumentException thrown if parameters fail the validation.
658+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
659+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
660+
* @return the response for a migrateToIpBased API along with {@link Response} on successful completion of {@link
661+
* Mono}.
662+
*/
663+
@ServiceMethod(returns = ReturnType.SINGLE)
664+
Mono<Response<MigratedPoolsInner>> migrateToIpBasedWithResponseAsync(
665+
String groupName, String loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters);
666+
667+
/**
668+
* Migrate load balancer to IP Based.
669+
*
670+
* @param groupName The name of the resource group.
671+
* @param loadBalancerName The name of the load balancer.
672+
* @throws IllegalArgumentException thrown if parameters fail the validation.
673+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
674+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
675+
* @return the response for a migrateToIpBased API on successful completion of {@link Mono}.
676+
*/
677+
@ServiceMethod(returns = ReturnType.SINGLE)
678+
Mono<MigratedPoolsInner> migrateToIpBasedAsync(String groupName, String loadBalancerName);
679+
680+
/**
681+
* Migrate load balancer to IP Based.
682+
*
683+
* @param groupName The name of the resource group.
684+
* @param loadBalancerName The name of the load balancer.
685+
* @param parameters Parameters supplied to the migrateToIpBased Api.
686+
* @param context The context to associate with this operation.
687+
* @throws IllegalArgumentException thrown if parameters fail the validation.
688+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
689+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
690+
* @return the response for a migrateToIpBased API along with {@link Response}.
691+
*/
692+
@ServiceMethod(returns = ReturnType.SINGLE)
693+
Response<MigratedPoolsInner> migrateToIpBasedWithResponse(
694+
String groupName, String loadBalancerName, MigrateLoadBalancerToIpBasedRequest parameters, Context context);
695+
696+
/**
697+
* Migrate load balancer to IP Based.
698+
*
699+
* @param groupName The name of the resource group.
700+
* @param loadBalancerName The name of the load balancer.
701+
* @throws IllegalArgumentException thrown if parameters fail the validation.
702+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
703+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
704+
* @return the response for a migrateToIpBased API.
705+
*/
706+
@ServiceMethod(returns = ReturnType.SINGLE)
707+
MigratedPoolsInner migrateToIpBased(String groupName, String loadBalancerName);
648708
}

sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ public ProvisioningState provisioningState() {
350350

351351
/**
352352
* Get the port property: Custom port which will be used for probing the backend servers. The valid value ranges
353-
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2
354-
* and WAF_v2 only.
353+
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic,
354+
* Standard_v2 and WAF_v2 only.
355355
*
356356
* @return the port value.
357357
*/
@@ -361,8 +361,8 @@ public Integer port() {
361361

362362
/**
363363
* Set the port property: Custom port which will be used for probing the backend servers. The valid value ranges
364-
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2
365-
* and WAF_v2 only.
364+
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic,
365+
* Standard_v2 and WAF_v2 only.
366366
*
367367
* @param port the port value to set.
368368
* @return the ApplicationGatewayProbeInner object itself.

sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public final class ApplicationGatewayProbePropertiesFormat {
8585

8686
/*
8787
* Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case
88-
* not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only.
88+
* not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only.
8989
*/
9090
@JsonProperty(value = "port")
9191
private Integer port;
@@ -319,8 +319,8 @@ public ProvisioningState provisioningState() {
319319

320320
/**
321321
* Get the port property: Custom port which will be used for probing the backend servers. The valid value ranges
322-
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2
323-
* and WAF_v2 only.
322+
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic,
323+
* Standard_v2 and WAF_v2 only.
324324
*
325325
* @return the port value.
326326
*/
@@ -330,8 +330,8 @@ public Integer port() {
330330

331331
/**
332332
* Set the port property: Custom port which will be used for probing the backend servers. The valid value ranges
333-
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2
334-
* and WAF_v2 only.
333+
* from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic,
334+
* Standard_v2 and WAF_v2 only.
335335
*
336336
* @param port the port value to set.
337337
* @return the ApplicationGatewayProbePropertiesFormat object itself.

sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelInterface;
1010
import com.azure.resourcemanager.network.models.LoadBalancerBackendAddress;
1111
import com.azure.resourcemanager.network.models.ProvisioningState;
12+
import com.azure.resourcemanager.network.models.SyncMode;
1213
import com.fasterxml.jackson.annotation.JsonProperty;
1314
import java.util.List;
1415

@@ -273,6 +274,29 @@ public BackendAddressPoolInner withVirtualNetwork(SubResource virtualNetwork) {
273274
return this;
274275
}
275276

277+
/**
278+
* Get the syncMode property: Backend address synchronous mode for the backend pool.
279+
*
280+
* @return the syncMode value.
281+
*/
282+
public SyncMode syncMode() {
283+
return this.innerProperties() == null ? null : this.innerProperties().syncMode();
284+
}
285+
286+
/**
287+
* Set the syncMode property: Backend address synchronous mode for the backend pool.
288+
*
289+
* @param syncMode the syncMode value to set.
290+
* @return the BackendAddressPoolInner object itself.
291+
*/
292+
public BackendAddressPoolInner withSyncMode(SyncMode syncMode) {
293+
if (this.innerProperties() == null) {
294+
this.innerProperties = new BackendAddressPoolPropertiesFormat();
295+
}
296+
this.innerProperties().withSyncMode(syncMode);
297+
return this;
298+
}
299+
276300
/**
277301
* Validates the instance.
278302
*

sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelInterface;
1010
import com.azure.resourcemanager.network.models.LoadBalancerBackendAddress;
1111
import com.azure.resourcemanager.network.models.ProvisioningState;
12+
import com.azure.resourcemanager.network.models.SyncMode;
1213
import com.fasterxml.jackson.annotation.JsonProperty;
1314
import java.util.List;
1415

@@ -81,6 +82,12 @@ public final class BackendAddressPoolPropertiesFormat {
8182
@JsonProperty(value = "virtualNetwork")
8283
private SubResource virtualNetwork;
8384

85+
/*
86+
* Backend address synchronous mode for the backend pool
87+
*/
88+
@JsonProperty(value = "syncMode")
89+
private SyncMode syncMode;
90+
8491
/** Creates an instance of BackendAddressPoolPropertiesFormat class. */
8592
public BackendAddressPoolPropertiesFormat() {
8693
}
@@ -244,6 +251,26 @@ public BackendAddressPoolPropertiesFormat withVirtualNetwork(SubResource virtual
244251
return this;
245252
}
246253

254+
/**
255+
* Get the syncMode property: Backend address synchronous mode for the backend pool.
256+
*
257+
* @return the syncMode value.
258+
*/
259+
public SyncMode syncMode() {
260+
return this.syncMode;
261+
}
262+
263+
/**
264+
* Set the syncMode property: Backend address synchronous mode for the backend pool.
265+
*
266+
* @param syncMode the syncMode value to set.
267+
* @return the BackendAddressPoolPropertiesFormat object itself.
268+
*/
269+
public BackendAddressPoolPropertiesFormat withSyncMode(SyncMode syncMode) {
270+
this.syncMode = syncMode;
271+
return this;
272+
}
273+
247274
/**
248275
* Validates the instance.
249276
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.network.fluent.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
import java.util.List;
10+
11+
/** The response for a migrateToIpBased API. */
12+
@Fluent
13+
public final class MigratedPoolsInner {
14+
/*
15+
* A list of pools migrated from Nic based to IP based pool
16+
*/
17+
@JsonProperty(value = "migratedPools")
18+
private List<String> migratedPools;
19+
20+
/** Creates an instance of MigratedPoolsInner class. */
21+
public MigratedPoolsInner() {
22+
}
23+
24+
/**
25+
* Get the migratedPools property: A list of pools migrated from Nic based to IP based pool.
26+
*
27+
* @return the migratedPools value.
28+
*/
29+
public List<String> migratedPools() {
30+
return this.migratedPools;
31+
}
32+
33+
/**
34+
* Set the migratedPools property: A list of pools migrated from Nic based to IP based pool.
35+
*
36+
* @param migratedPools the migratedPools value to set.
37+
* @return the MigratedPoolsInner object itself.
38+
*/
39+
public MigratedPoolsInner withMigratedPools(List<String> migratedPools) {
40+
this.migratedPools = migratedPools;
41+
return this;
42+
}
43+
44+
/**
45+
* Validates the instance.
46+
*
47+
* @throws IllegalArgumentException thrown if the instance is not valid.
48+
*/
49+
public void validate() {
50+
}
51+
}

0 commit comments

Comments
 (0)