Skip to content

Commit

Permalink
Generated from 1e268069bc189948878facdff7f8e4d8a44c5a44
Browse files Browse the repository at this point in the history
fix breaking change
  • Loading branch information
SDK Automation committed Jul 9, 2020
1 parent 88aca66 commit 7f83bab
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 580 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ 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 @@ -121,26 +115,6 @@ 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,16 +46,6 @@ 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 @@ -76,11 +66,6 @@ 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 @@ -115,30 +100,6 @@ 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 @@ -163,30 +124,18 @@ 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.WithIdentity, DefinitionStages.WithIntrusionSystemMode, DefinitionStages.WithThreatIntelMode, DefinitionStages.WithThreatIntelWhitelist, DefinitionStages.WithTransportSecurity {
interface WithCreate extends Creatable<FirewallPolicy>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithBasePolicy, DefinitionStages.WithThreatIntelMode, DefinitionStages.WithThreatIntelWhitelist {
}
}
/**
* 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.WithIdentity, UpdateStages.WithIntrusionSystemMode, UpdateStages.WithThreatIntelMode, UpdateStages.WithThreatIntelWhitelist, UpdateStages.WithTransportSecurity {
interface Update extends Appliable<FirewallPolicy>, Resource.UpdateWithTags<Update>, UpdateStages.WithBasePolicy, UpdateStages.WithThreatIntelMode, UpdateStages.WithThreatIntelWhitelist {
}

/**
Expand All @@ -205,30 +154,6 @@ 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 @@ -253,17 +178,5 @@ 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,12 +49,6 @@ 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 @@ -155,24 +149,4 @@ 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 @@ -16,9 +16,6 @@
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 @@ -71,16 +68,6 @@ 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 @@ -101,29 +88,12 @@ 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 @@ -136,10 +106,4 @@ public FirewallPolicyImpl withThreatIntelWhitelist(FirewallPolicyThreatIntelWhit
return this;
}

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

}
Loading

0 comments on commit 7f83bab

Please sign in to comment.