Skip to content

Commit

Permalink
Generated from ad727d1bd3a2de6eea339825b7da0d64c7edc9c7
Browse files Browse the repository at this point in the history
add readonly flag
  • Loading branch information
SDK Automation committed Jul 15, 2020
1 parent fee3183 commit f382f0e
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 314 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public interface FirewallPolicy extends HasInner<FirewallPolicyInner>, Resource,
*/
List<SubResource> firewalls();

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

/**
* @return the provisioningState value.
*/
Expand Down Expand Up @@ -95,6 +100,18 @@ interface WithBasePolicy {
WithCreate withBasePolicy(SubResource basePolicy);
}

/**
* 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 @@ -112,13 +129,13 @@ interface WithThreatIntelMode {
* 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 {
interface WithCreate extends Creatable<FirewallPolicy>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithBasePolicy, DefinitionStages.WithIntrusionSystemMode, DefinitionStages.WithThreatIntelMode {
}
}
/**
* 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 {
interface Update extends Appliable<FirewallPolicy>, Resource.UpdateWithTags<Update>, UpdateStages.WithBasePolicy, UpdateStages.WithIntrusionSystemMode, UpdateStages.WithThreatIntelMode {
}

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

/**
* 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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.microsoft.azure.SubResource;
import com.microsoft.azure.management.network.v2020_03_01.ProvisioningState;
import com.microsoft.azure.management.network.v2020_03_01.AzureFirewallThreatIntelMode;
import com.microsoft.azure.management.network.v2020_03_01.FirewallPolicyIntrusionSystemMode;

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 @@ -67,6 +68,11 @@ public List<SubResource> firewalls() {
return this.inner().firewalls();
}

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

@Override
public ProvisioningState provisioningState() {
return this.inner().provisioningState();
Expand All @@ -88,6 +94,12 @@ public FirewallPolicyImpl withBasePolicy(SubResource basePolicy) {
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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.microsoft.azure.SubResource;
import com.microsoft.azure.management.network.v2020_03_01.ProvisioningState;
import com.microsoft.azure.management.network.v2020_03_01.AzureFirewallThreatIntelMode;
import com.microsoft.azure.management.network.v2020_03_01.FirewallPolicyIntrusionSystemMode;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.rest.SkipParentValidation;
Expand Down Expand Up @@ -62,6 +63,13 @@ public class FirewallPolicyInner extends Resource {
@JsonProperty(value = "properties.threatIntelMode")
private AzureFirewallThreatIntelMode threatIntelMode;

/**
* The operation mode for Intrusion system. Possible values include:
* 'Enabled', 'Disabled'.
*/
@JsonProperty(value = "properties.intrusionSystemMode")
private FirewallPolicyIntrusionSystemMode intrusionSystemMode;

/**
* A unique read-only string that changes whenever the resource is updated.
*/
Expand Down Expand Up @@ -150,6 +158,26 @@ public FirewallPolicyInner withThreatIntelMode(AzureFirewallThreatIntelMode thre
return this;
}

/**
* Get the operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'.
*
* @return the intrusionSystemMode value
*/
public FirewallPolicyIntrusionSystemMode intrusionSystemMode() {
return this.intrusionSystemMode;
}

/**
* Set the operation mode for Intrusion system. Possible values include: 'Enabled', 'Disabled'.
*
* @param intrusionSystemMode the intrusionSystemMode value to set
* @return the FirewallPolicyInner object itself.
*/
public FirewallPolicyInner withIntrusionSystemMode(FirewallPolicyIntrusionSystemMode intrusionSystemMode) {
this.intrusionSystemMode = intrusionSystemMode;
return this;
}

/**
* Get a unique read-only string that changes whenever the resource is updated.
*
Expand Down
Loading

0 comments on commit f382f0e

Please sign in to comment.