Skip to content

Commit

Permalink
Generated from 4eb6327bf0ed208884ea0d169bd15a9e39642f04
Browse files Browse the repository at this point in the history
reverting providerport changes
  • Loading branch information
SDK Automation committed Aug 3, 2020
1 parent ffb27f2 commit ea52bff
Show file tree
Hide file tree
Showing 10 changed files with 315 additions and 338 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ public class ApplicationRuleCondition extends FirewallPolicyRuleCondition {
@JsonProperty(value = "protocols")
private List<FirewallPolicyRuleConditionApplicationProtocol> protocols;

/**
* List of Urls for this rule condition.
*/
@JsonProperty(value = "targetUrls")
private List<String> targetUrls;

/**
* List of FQDNs for this rule condition.
*/
Expand Down Expand Up @@ -115,6 +121,26 @@ public ApplicationRuleCondition withProtocols(List<FirewallPolicyRuleConditionAp
return this;
}

/**
* Get list of Urls for this rule condition.
*
* @return the targetUrls value
*/
public List<String> targetUrls() {
return this.targetUrls;
}

/**
* Set list of Urls for this rule condition.
*
* @param targetUrls the targetUrls value to set
* @return the ApplicationRuleCondition object itself.
*/
public ApplicationRuleCondition withTargetUrls(List<String> targetUrls) {
this.targetUrls = targetUrls;
return this;
}

/**
* Get list of FQDNs for this rule condition.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ public interface FirewallPolicy extends HasInner<FirewallPolicyInner>, Resource,
*/
List<SubResource> firewalls();

/**
* @return the identity value.
*/
ManagedServiceIdentity identity();

/**
* @return the intrusionSystemMode value.
*/
FirewallPolicyIntrusionSystemMode intrusionSystemMode();

/**
* @return the provisioningState value.
*/
Expand All @@ -66,6 +76,11 @@ public interface FirewallPolicy extends HasInner<FirewallPolicyInner>, Resource,
*/
FirewallPolicyThreatIntelWhitelist threatIntelWhitelist();

/**
* @return the transportSecurity value.
*/
FirewallPolicyTransportSecurity transportSecurity();

/**
* The entirety of the FirewallPolicy definition.
*/
Expand Down Expand Up @@ -100,6 +115,30 @@ interface WithBasePolicy {
WithCreate withBasePolicy(SubResource basePolicy);
}

/**
* The stage of the firewallpolicy definition allowing to specify Identity.
*/
interface WithIdentity {
/**
* Specifies identity.
* @param identity The identity of the firewall policy
* @return the next definition stage
*/
WithCreate withIdentity(ManagedServiceIdentity identity);
}

/**
* The stage of the firewallpolicy definition allowing to specify IntrusionSystemMode.
*/
interface WithIntrusionSystemMode {
/**
* Specifies intrusionSystemMode.
* @param intrusionSystemMode The operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'
* @return the next definition stage
*/
WithCreate withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode);
}

/**
* The stage of the firewallpolicy definition allowing to specify ThreatIntelMode.
*/
Expand All @@ -124,18 +163,30 @@ interface WithThreatIntelWhitelist {
WithCreate withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist);
}

/**
* The stage of the firewallpolicy definition allowing to specify TransportSecurity.
*/
interface WithTransportSecurity {
/**
* Specifies transportSecurity.
* @param transportSecurity TLS Configuration definition
* @return the next definition stage
*/
WithCreate withTransportSecurity(FirewallPolicyTransportSecurity transportSecurity);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<FirewallPolicy>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithBasePolicy, DefinitionStages.WithThreatIntelMode, DefinitionStages.WithThreatIntelWhitelist {
interface WithCreate extends Creatable<FirewallPolicy>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithBasePolicy, DefinitionStages.WithIdentity, DefinitionStages.WithIntrusionSystemMode, DefinitionStages.WithThreatIntelMode, DefinitionStages.WithThreatIntelWhitelist, DefinitionStages.WithTransportSecurity {
}
}
/**
* The template for a FirewallPolicy update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<FirewallPolicy>, Resource.UpdateWithTags<Update>, UpdateStages.WithBasePolicy, UpdateStages.WithThreatIntelMode, UpdateStages.WithThreatIntelWhitelist {
interface Update extends Appliable<FirewallPolicy>, Resource.UpdateWithTags<Update>, UpdateStages.WithBasePolicy, UpdateStages.WithIdentity, UpdateStages.WithIntrusionSystemMode, UpdateStages.WithThreatIntelMode, UpdateStages.WithThreatIntelWhitelist, UpdateStages.WithTransportSecurity {
}

/**
Expand All @@ -154,6 +205,30 @@ interface WithBasePolicy {
Update withBasePolicy(SubResource basePolicy);
}

/**
* The stage of the firewallpolicy update allowing to specify Identity.
*/
interface WithIdentity {
/**
* Specifies identity.
* @param identity The identity of the firewall policy
* @return the next update stage
*/
Update withIdentity(ManagedServiceIdentity identity);
}

/**
* The stage of the firewallpolicy update allowing to specify IntrusionSystemMode.
*/
interface WithIntrusionSystemMode {
/**
* Specifies intrusionSystemMode.
* @param intrusionSystemMode The operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'
* @return the next update stage
*/
Update withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode);
}

/**
* The stage of the firewallpolicy update allowing to specify ThreatIntelMode.
*/
Expand All @@ -178,5 +253,17 @@ interface WithThreatIntelWhitelist {
Update withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist);
}

/**
* The stage of the firewallpolicy update allowing to specify TransportSecurity.
*/
interface WithTransportSecurity {
/**
* Specifies transportSecurity.
* @param transportSecurity TLS Configuration definition
* @return the next update stage
*/
Update withTransportSecurity(FirewallPolicyTransportSecurity transportSecurity);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.network.v2020_04_01.implementation.NetworkManager;
import java.util.List;
import com.microsoft.azure.SubResource;

/**
* Type representing HubRouteTable.
Expand All @@ -26,7 +27,7 @@ public interface HubRouteTable extends HasInner<HubRouteTableInner>, Indexable,
/**
* @return the associatedConnections value.
*/
List<String> associatedConnections();
List<SubResource> associatedConnections();

/**
* @return the etag value.
Expand All @@ -51,7 +52,7 @@ public interface HubRouteTable extends HasInner<HubRouteTableInner>, Indexable,
/**
* @return the propagatingConnections value.
*/
List<String> propagatingConnections();
List<SubResource> propagatingConnections();

/**
* @return the provisioningState value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public class NatRuleCondition extends FirewallPolicyRuleCondition {
@JsonProperty(value = "sourceIpGroups")
private List<String> sourceIpGroups;

/**
* Terminate TLS connections for this rule.
*/
@JsonProperty(value = "terminateTLS")
private Boolean terminateTLS;

/**
* Get array of FirewallPolicyRuleConditionNetworkProtocols.
*
Expand Down Expand Up @@ -149,4 +155,24 @@ public NatRuleCondition withSourceIpGroups(List<String> sourceIpGroups) {
return this;
}

/**
* Get terminate TLS connections for this rule.
*
* @return the terminateTLS value
*/
public Boolean terminateTLS() {
return this.terminateTLS;
}

/**
* Set terminate TLS connections for this rule.
*
* @param terminateTLS the terminateTLS value to set
* @return the NatRuleCondition object itself.
*/
public NatRuleCondition withTerminateTLS(Boolean terminateTLS) {
this.terminateTLS = terminateTLS;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
*/
@JsonFlatten
public class BackendAddressPoolInner extends SubResource {
/**
* An array of backend addresses.
*/
@JsonProperty(value = "properties.loadBalancerBackendAddresses")
private List<LoadBalancerBackendAddress> loadBalancerBackendAddresses;

/**
* An array of references to IP addresses defined in network interfaces.
*/
@JsonProperty(value = "properties.backendIPConfigurations", access = JsonProperty.Access.WRITE_ONLY)
private List<NetworkInterfaceIPConfigurationInner> backendIPConfigurations;

/**
* An array of backend addresses.
*/
@JsonProperty(value = "properties.loadBalancerBackendAddresses")
private List<LoadBalancerBackendAddress> loadBalancerBackendAddresses;

/**
* An array of references to load balancing rules that use this backend
* address pool.
Expand Down Expand Up @@ -79,6 +79,15 @@ public class BackendAddressPoolInner extends SubResource {
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

/**
* Get an array of references to IP addresses defined in network interfaces.
*
* @return the backendIPConfigurations value
*/
public List<NetworkInterfaceIPConfigurationInner> backendIPConfigurations() {
return this.backendIPConfigurations;
}

/**
* Get an array of backend addresses.
*
Expand All @@ -99,15 +108,6 @@ public BackendAddressPoolInner withLoadBalancerBackendAddresses(List<LoadBalance
return this;
}

/**
* Get an array of references to IP addresses defined in network interfaces.
*
* @return the backendIPConfigurations value
*/
public List<NetworkInterfaceIPConfigurationInner> backendIPConfigurations() {
return this.backendIPConfigurations;
}

/**
* Get an array of references to load balancing rules that use this backend address pool.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
import com.microsoft.azure.management.network.v2020_04_01.ProvisioningState;
import com.microsoft.azure.management.network.v2020_04_01.AzureFirewallThreatIntelMode;
import com.microsoft.azure.management.network.v2020_04_01.FirewallPolicyThreatIntelWhitelist;
import com.microsoft.azure.management.network.v2020_04_01.FirewallPolicyIntrusionSystemMode;
import com.microsoft.azure.management.network.v2020_04_01.FirewallPolicyTransportSecurity;
import com.microsoft.azure.management.network.v2020_04_01.ManagedServiceIdentity;

class FirewallPolicyImpl extends GroupableResourceCoreImpl<FirewallPolicy, FirewallPolicyInner, FirewallPolicyImpl, NetworkManager> implements FirewallPolicy, FirewallPolicy.Definition, FirewallPolicy.Update {
FirewallPolicyImpl(String name, FirewallPolicyInner inner, NetworkManager manager) {
Expand Down Expand Up @@ -68,6 +71,16 @@ public List<SubResource> firewalls() {
return this.inner().firewalls();
}

@Override
public ManagedServiceIdentity identity() {
return this.inner().identity();
}

@Override
public FirewallPolicyIntrusionSystemMode intrusionSystemMode() {
return this.inner().intrusionSystemMode();
}

@Override
public ProvisioningState provisioningState() {
return this.inner().provisioningState();
Expand All @@ -88,12 +101,29 @@ public FirewallPolicyThreatIntelWhitelist threatIntelWhitelist() {
return this.inner().threatIntelWhitelist();
}

@Override
public FirewallPolicyTransportSecurity transportSecurity() {
return this.inner().transportSecurity();
}

@Override
public FirewallPolicyImpl withBasePolicy(SubResource basePolicy) {
this.inner().withBasePolicy(basePolicy);
return this;
}

@Override
public FirewallPolicyImpl withIdentity(ManagedServiceIdentity identity) {
this.inner().withIdentity(identity);
return this;
}

@Override
public FirewallPolicyImpl withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode) {
this.inner().withIntrusionSystemMode(intrusionSystemMode);
return this;
}

@Override
public FirewallPolicyImpl withThreatIntelMode(AzureFirewallThreatIntelMode threatIntelMode) {
this.inner().withThreatIntelMode(threatIntelMode);
Expand All @@ -106,4 +136,10 @@ public FirewallPolicyImpl withThreatIntelWhitelist(FirewallPolicyThreatIntelWhit
return this;
}

@Override
public FirewallPolicyImpl withTransportSecurity(FirewallPolicyTransportSecurity transportSecurity) {
this.inner().withTransportSecurity(transportSecurity);
return this;
}

}
Loading

0 comments on commit ea52bff

Please sign in to comment.