Skip to content

Commit a5a4cf2

Browse files
authored
mgmt, update network to 2023-05-01 (Azure#36618)
mgmt, local generation for network
1 parent 1cdc9c9 commit a5a4cf2

File tree

756 files changed

+2572
-1970
lines changed

Some content is hidden

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

756 files changed

+2572
-1970
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
"dir": "azure-resourcemanager-network",
176176
"source": "specification/network/resource-manager/readme.md",
177177
"package": "com.azure.resourcemanager.network",
178-
"args": "--tag=package-2023-04 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture,ApplicationGateway,ApplicationGatewayListener",
178+
"args": "--tag=package-2023-05 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture,ApplicationGateway,ApplicationGatewayListener",
179179
"note": "Run DeprecateApplicationGatewaySku to deprecate v1 sku/tier in ApplicationGatewaySku."
180180
},
181181
"network-hybrid": {

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
## 2.31.0-beta.1 (Unreleased)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Updated `api-version` to `2023-05-01`.
1210

1311
## 2.30.0 (2023-08-25)
1412

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_df475fdfe7"
5+
"Tag": "java/resourcemanager/azure-resourcemanager-network_a5ca5e0d4c"
66
}

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

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

77
import com.azure.core.annotation.Fluent;
88
import com.azure.core.management.Resource;
9+
import com.azure.core.management.SubResource;
910
import com.azure.resourcemanager.network.models.BastionHostIpConfiguration;
11+
import com.azure.resourcemanager.network.models.BastionHostPropertiesFormatNetworkAcls;
1012
import com.azure.resourcemanager.network.models.ProvisioningState;
1113
import com.azure.resourcemanager.network.models.Sku;
1214
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -162,6 +164,54 @@ public BastionHostInner withDnsName(String dnsName) {
162164
return this;
163165
}
164166

167+
/**
168+
* Get the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host
169+
* only.
170+
*
171+
* @return the virtualNetwork value.
172+
*/
173+
public SubResource virtualNetwork() {
174+
return this.innerProperties() == null ? null : this.innerProperties().virtualNetwork();
175+
}
176+
177+
/**
178+
* Set the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host
179+
* only.
180+
*
181+
* @param virtualNetwork the virtualNetwork value to set.
182+
* @return the BastionHostInner object itself.
183+
*/
184+
public BastionHostInner withVirtualNetwork(SubResource virtualNetwork) {
185+
if (this.innerProperties() == null) {
186+
this.innerProperties = new BastionHostPropertiesFormat();
187+
}
188+
this.innerProperties().withVirtualNetwork(virtualNetwork);
189+
return this;
190+
}
191+
192+
/**
193+
* Get the networkAcls property: The networkAcls property.
194+
*
195+
* @return the networkAcls value.
196+
*/
197+
public BastionHostPropertiesFormatNetworkAcls networkAcls() {
198+
return this.innerProperties() == null ? null : this.innerProperties().networkAcls();
199+
}
200+
201+
/**
202+
* Set the networkAcls property: The networkAcls property.
203+
*
204+
* @param networkAcls the networkAcls value to set.
205+
* @return the BastionHostInner object itself.
206+
*/
207+
public BastionHostInner withNetworkAcls(BastionHostPropertiesFormatNetworkAcls networkAcls) {
208+
if (this.innerProperties() == null) {
209+
this.innerProperties = new BastionHostPropertiesFormat();
210+
}
211+
this.innerProperties().withNetworkAcls(networkAcls);
212+
return this;
213+
}
214+
165215
/**
166216
* Get the provisioningState property: The provisioning state of the bastion host resource.
167217
*

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
package com.azure.resourcemanager.network.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8+
import com.azure.core.management.SubResource;
89
import com.azure.resourcemanager.network.models.BastionHostIpConfiguration;
10+
import com.azure.resourcemanager.network.models.BastionHostPropertiesFormatNetworkAcls;
911
import com.azure.resourcemanager.network.models.ProvisioningState;
1012
import com.fasterxml.jackson.annotation.JsonProperty;
1113
import java.util.List;
@@ -25,6 +27,18 @@ public final class BastionHostPropertiesFormat {
2527
@JsonProperty(value = "dnsName")
2628
private String dnsName;
2729

30+
/*
31+
* Reference to an existing virtual network required for Developer Bastion Host only.
32+
*/
33+
@JsonProperty(value = "virtualNetwork")
34+
private SubResource virtualNetwork;
35+
36+
/*
37+
* The networkAcls property.
38+
*/
39+
@JsonProperty(value = "networkAcls")
40+
private BastionHostPropertiesFormatNetworkAcls networkAcls;
41+
2842
/*
2943
* The provisioning state of the bastion host resource.
3044
*/
@@ -117,6 +131,48 @@ public BastionHostPropertiesFormat withDnsName(String dnsName) {
117131
return this;
118132
}
119133

134+
/**
135+
* Get the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host
136+
* only.
137+
*
138+
* @return the virtualNetwork value.
139+
*/
140+
public SubResource virtualNetwork() {
141+
return this.virtualNetwork;
142+
}
143+
144+
/**
145+
* Set the virtualNetwork property: Reference to an existing virtual network required for Developer Bastion Host
146+
* only.
147+
*
148+
* @param virtualNetwork the virtualNetwork value to set.
149+
* @return the BastionHostPropertiesFormat object itself.
150+
*/
151+
public BastionHostPropertiesFormat withVirtualNetwork(SubResource virtualNetwork) {
152+
this.virtualNetwork = virtualNetwork;
153+
return this;
154+
}
155+
156+
/**
157+
* Get the networkAcls property: The networkAcls property.
158+
*
159+
* @return the networkAcls value.
160+
*/
161+
public BastionHostPropertiesFormatNetworkAcls networkAcls() {
162+
return this.networkAcls;
163+
}
164+
165+
/**
166+
* Set the networkAcls property: The networkAcls property.
167+
*
168+
* @param networkAcls the networkAcls value to set.
169+
* @return the BastionHostPropertiesFormat object itself.
170+
*/
171+
public BastionHostPropertiesFormat withNetworkAcls(BastionHostPropertiesFormatNetworkAcls networkAcls) {
172+
this.networkAcls = networkAcls;
173+
return this;
174+
}
175+
120176
/**
121177
* Get the provisioningState property: The provisioning state of the bastion host resource.
122178
*
@@ -275,5 +331,8 @@ public void validate() {
275331
if (ipConfigurations() != null) {
276332
ipConfigurations().forEach(e -> e.validate());
277333
}
334+
if (networkAcls() != null) {
335+
networkAcls().validate();
336+
}
278337
}
279338
}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ public FirewallPolicyInner withTags(Map<String, String> tags) {
126126
return this;
127127
}
128128

129+
/**
130+
* Get the size property: A read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB.
131+
* (ex 0.5MB).
132+
*
133+
* @return the size value.
134+
*/
135+
public String size() {
136+
return this.innerProperties() == null ? null : this.innerProperties().size();
137+
}
138+
129139
/**
130140
* Get the ruleCollectionGroups property: List of references to FirewallPolicyRuleCollectionGroups.
131141
*

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
/** Firewall Policy definition. */
2424
@Fluent
2525
public final class FirewallPolicyPropertiesFormat {
26+
/*
27+
* A read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB. (ex 0.5MB)
28+
*/
29+
@JsonProperty(value = "size", access = JsonProperty.Access.WRITE_ONLY)
30+
private String size;
31+
2632
/*
2733
* List of references to FirewallPolicyRuleCollectionGroups.
2834
*/
@@ -117,6 +123,16 @@ public final class FirewallPolicyPropertiesFormat {
117123
public FirewallPolicyPropertiesFormat() {
118124
}
119125

126+
/**
127+
* Get the size property: A read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB.
128+
* (ex 0.5MB).
129+
*
130+
* @return the size value.
131+
*/
132+
public String size() {
133+
return this.size;
134+
}
135+
120136
/**
121137
* Get the ruleCollectionGroups property: List of references to FirewallPolicyRuleCollectionGroups.
122138
*

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ public FirewallPolicyRuleCollectionGroupInner withId(String id) {
9898
return this;
9999
}
100100

101+
/**
102+
* Get the size property: A read-only string that represents the size of the
103+
* FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB).
104+
*
105+
* @return the size value.
106+
*/
107+
public String size() {
108+
return this.innerProperties() == null ? null : this.innerProperties().size();
109+
}
110+
101111
/**
102112
* Get the priority property: Priority of the Firewall Policy Rule Collection Group resource.
103113
*

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
/** Properties of the rule collection group. */
1414
@Fluent
1515
public final class FirewallPolicyRuleCollectionGroupProperties {
16+
/*
17+
* A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB)
18+
*/
19+
@JsonProperty(value = "size", access = JsonProperty.Access.WRITE_ONLY)
20+
private String size;
21+
1622
/*
1723
* Priority of the Firewall Policy Rule Collection Group resource.
1824
*/
@@ -35,6 +41,16 @@ public final class FirewallPolicyRuleCollectionGroupProperties {
3541
public FirewallPolicyRuleCollectionGroupProperties() {
3642
}
3743

44+
/**
45+
* Get the size property: A read-only string that represents the size of the
46+
* FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB).
47+
*
48+
* @return the size value.
49+
*/
50+
public String size() {
51+
return this.size;
52+
}
53+
3854
/**
3955
* Get the priority property: Priority of the Firewall Policy Rule Collection Group resource.
4056
*

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,33 @@ public SubnetInner withApplicationGatewayIpConfigurations(
464464
return this;
465465
}
466466

467+
/**
468+
* Get the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for
469+
* all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an
470+
* existing subnet.
471+
*
472+
* @return the defaultOutboundAccess value.
473+
*/
474+
public Boolean defaultOutboundAccess() {
475+
return this.innerProperties() == null ? null : this.innerProperties().defaultOutboundAccess();
476+
}
477+
478+
/**
479+
* Set the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for
480+
* all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an
481+
* existing subnet.
482+
*
483+
* @param defaultOutboundAccess the defaultOutboundAccess value to set.
484+
* @return the SubnetInner object itself.
485+
*/
486+
public SubnetInner withDefaultOutboundAccess(Boolean defaultOutboundAccess) {
487+
if (this.innerProperties() == null) {
488+
this.innerProperties = new SubnetPropertiesFormatInner();
489+
}
490+
this.innerProperties().withDefaultOutboundAccess(defaultOutboundAccess);
491+
return this;
492+
}
493+
467494
/**
468495
* Validates the instance.
469496
*

0 commit comments

Comments
 (0)