From 894eb8094c44725a6d6f4d59fd7aa9436972b75b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sat, 10 Nov 2018 00:40:36 +0000 Subject: [PATCH] Generated from 17c33de453f36cbd8fce59ea9bd30ae0ee332edf examples added for ddos custom policy swagger spec --- network/resource-manager/v2018_04_01/pom.xml | 266 +++++++++--------- network/resource-manager/v2018_06_01/pom.xml | 266 +++++++++--------- network/resource-manager/v2018_07_01/pom.xml | 266 +++++++++--------- network/resource-manager/v2018_08_01/pom.xml | 266 +++++++++--------- .../network/v2018_08_01/DdoSSettings.java | 157 +++++++++++ .../network/v2018_08_01/PublicIPAddress.java | 33 ++- .../implementation/PublicIPAddressImpl.java | 12 + .../implementation/PublicIPAddressInner.java | 27 ++ 8 files changed, 759 insertions(+), 534 deletions(-) create mode 100644 network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/DdoSSettings.java diff --git a/network/resource-manager/v2018_04_01/pom.xml b/network/resource-manager/v2018_04_01/pom.xml index 06692df6b54e..7308a9953af6 100644 --- a/network/resource-manager/v2018_04_01/pom.xml +++ b/network/resource-manager/v2018_04_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.network.v2018_04_01 - - com.microsoft.azure - azure-arm-parent - 0.0.3-beta - ../../../pom.xml - - azure-mgmt-network - 1.0.0-beta - jar - Microsoft Azure SDK for Network Management - This package contains Microsoft Network Management SDK. - https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.network.v2018_04_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-network + 1.0.0-beta + jar + Microsoft Azure SDK for Network Management + This package contains Microsoft Network Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/network/resource-manager/v2018_06_01/pom.xml b/network/resource-manager/v2018_06_01/pom.xml index 0e24503cb10d..8dbdda2055e0 100644 --- a/network/resource-manager/v2018_06_01/pom.xml +++ b/network/resource-manager/v2018_06_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.network.v2018_06_01 - - com.microsoft.azure - azure-arm-parent - 0.0.3-beta - ../../../pom.xml - - azure-mgmt-network - 1.0.0-beta - jar - Microsoft Azure SDK for Network Management - This package contains Microsoft Network Management SDK. - https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.network.v2018_06_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-network + 1.0.0-beta + jar + Microsoft Azure SDK for Network Management + This package contains Microsoft Network Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/network/resource-manager/v2018_07_01/pom.xml b/network/resource-manager/v2018_07_01/pom.xml index 9c88d3ab6904..91dc7fc18793 100644 --- a/network/resource-manager/v2018_07_01/pom.xml +++ b/network/resource-manager/v2018_07_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.network.v2018_07_01 - - com.microsoft.azure - azure-arm-parent - 0.0.3-beta - ../../../pom.xml - - azure-mgmt-network - 1.0.0-beta - jar - Microsoft Azure SDK for Network Management - This package contains Microsoft Network Management SDK. - https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.network.v2018_07_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-network + 1.0.0-beta + jar + Microsoft Azure SDK for Network Management + This package contains Microsoft Network Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/network/resource-manager/v2018_08_01/pom.xml b/network/resource-manager/v2018_08_01/pom.xml index 7fc8815f36f9..d1cfbce769a6 100644 --- a/network/resource-manager/v2018_08_01/pom.xml +++ b/network/resource-manager/v2018_08_01/pom.xml @@ -1,133 +1,133 @@ - - - 4.0.0 - com.microsoft.azure.network.v2018_08_01 - - com.microsoft.azure - azure-arm-parent - 0.0.3-beta - ../../../pom.xml - - azure-mgmt-network - 1.0.0-beta - jar - Microsoft Azure SDK for Network Management - This package contains Microsoft Network Management SDK. - https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - - - scm:git:https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - UTF-8 - - - - - microsoft - Microsoft - - - - - com.microsoft.azure - azure-client-runtime - - - com.microsoft.azure - azure-arm-client-runtime - - - junit - junit - test - - - com.microsoft.azure - azure-client-authentication - test - - - com.microsoft.azure - azure-mgmt-resources - test - - - com.microsoft.azure - azure-arm-client-runtime - test-jar - test - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - - com.microsoft.azure.management.apigeneration.LangDefinitionProcessor - - - true - true - - true - true - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.8 - - *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search - - - /** -
* Copyright (c) Microsoft Corporation. All rights reserved. -
* Licensed under the MIT License. See License.txt in the project root for -
* license information. -
*/ - ]]> -
-
-
-
-
-
+ + + 4.0.0 + com.microsoft.azure.network.v2018_08_01 + + com.microsoft.azure + azure-arm-parent + 0.0.3-beta + ../../../pom.xml + + azure-mgmt-network + 1.0.0-beta + jar + Microsoft Azure SDK for Network Management + This package contains Microsoft Network Management SDK. + https://github.com/Azure/azure-sdk-for-java + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + UTF-8 + + + + + microsoft + Microsoft + + + + + com.microsoft.azure + azure-client-runtime + + + com.microsoft.azure + azure-arm-client-runtime + + + junit + junit + test + + + com.microsoft.azure + azure-client-authentication + test + + + com.microsoft.azure + azure-mgmt-resources + test + + + com.microsoft.azure + azure-arm-client-runtime + test-jar + test + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + com.microsoft.azure.management.apigeneration.LangDefinitionProcessor + + + true + true + + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.8 + + *.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search + + + /** +
* Copyright (c) Microsoft Corporation. All rights reserved. +
* Licensed under the MIT License. See License.txt in the project root for +
* license information. +
*/ + ]]> +
+
+
+
+
+
diff --git a/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/DdoSSettings.java b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/DdoSSettings.java new file mode 100644 index 000000000000..ff9cdb535bbd --- /dev/null +++ b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/DdoSSettings.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.network.v2018_08_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Contains FQDN of the DNS record associated with the public IP address. + */ +public class DdoSSettings { + /** + * The DDoS custom policy associated with the public IP. + */ + @JsonProperty(value = "ddosCustomPolicy") + private String ddosCustomPolicy; + + /** + * The type of the DDoS protection plan associated with the public IP. + * Possible values include: 'Basic', 'Standard'. + */ + @JsonProperty(value = "protectionCoverage") + private String protectionCoverage; + + /** + * Gets or sets the Domain name label.The concatenation of the domain name + * label and the regionalized DNS zone make up the fully qualified domain + * name associated with the public IP address. If a domain name label is + * specified, an A DNS record is created for the public IP in the Microsoft + * Azure DNS system. + */ + @JsonProperty(value = "domainNameLabel") + private String domainNameLabel; + + /** + * Gets the FQDN, Fully qualified domain name of the A DNS record + * associated with the public IP. This is the concatenation of the + * domainNameLabel and the regionalized DNS zone. + */ + @JsonProperty(value = "fqdn") + private String fqdn; + + /** + * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain + * name that resolves to this public IP address. If the reverseFqdn is + * specified, then a PTR DNS record is created pointing from the IP address + * in the in-addr.arpa domain to the reverse FQDN. + */ + @JsonProperty(value = "reverseFqdn") + private String reverseFqdn; + + /** + * Get the DDoS custom policy associated with the public IP. + * + * @return the ddosCustomPolicy value + */ + public String ddosCustomPolicy() { + return this.ddosCustomPolicy; + } + + /** + * Set the DDoS custom policy associated with the public IP. + * + * @param ddosCustomPolicy the ddosCustomPolicy value to set + * @return the DdoSSettings object itself. + */ + public DdoSSettings withDdosCustomPolicy(String ddosCustomPolicy) { + this.ddosCustomPolicy = ddosCustomPolicy; + return this; + } + + /** + * Get the type of the DDoS protection plan associated with the public IP. Possible values include: 'Basic', 'Standard'. + * + * @return the protectionCoverage value + */ + public String protectionCoverage() { + return this.protectionCoverage; + } + + /** + * Set the type of the DDoS protection plan associated with the public IP. Possible values include: 'Basic', 'Standard'. + * + * @param protectionCoverage the protectionCoverage value to set + * @return the DdoSSettings object itself. + */ + public DdoSSettings withProtectionCoverage(String protectionCoverage) { + this.protectionCoverage = protectionCoverage; + return this; + } + + /** + * Get gets or sets the Domain name label.The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. + * + * @return the domainNameLabel value + */ + public String domainNameLabel() { + return this.domainNameLabel; + } + + /** + * Set gets or sets the Domain name label.The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. + * + * @param domainNameLabel the domainNameLabel value to set + * @return the DdoSSettings object itself. + */ + public DdoSSettings withDomainNameLabel(String domainNameLabel) { + this.domainNameLabel = domainNameLabel; + return this; + } + + /** + * Get gets the FQDN, Fully qualified domain name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. + * + * @return the fqdn value + */ + public String fqdn() { + return this.fqdn; + } + + /** + * Set gets the FQDN, Fully qualified domain name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. + * + * @param fqdn the fqdn value to set + * @return the DdoSSettings object itself. + */ + public DdoSSettings withFqdn(String fqdn) { + this.fqdn = fqdn; + return this; + } + + /** + * Get gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. + * + * @return the reverseFqdn value + */ + public String reverseFqdn() { + return this.reverseFqdn; + } + + /** + * Set gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. + * + * @param reverseFqdn the reverseFqdn value to set + * @return the DdoSSettings object itself. + */ + public DdoSSettings withReverseFqdn(String reverseFqdn) { + this.reverseFqdn = reverseFqdn; + return this; + } + +} diff --git a/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/PublicIPAddress.java b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/PublicIPAddress.java index 77b41c177c4a..df83698dcfd5 100644 --- a/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/PublicIPAddress.java +++ b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/PublicIPAddress.java @@ -26,6 +26,11 @@ * Type representing PublicIPAddress. */ public interface PublicIPAddress extends HasInner, Resource, GroupableResourceCore, HasResourceGroup, Refreshable, Updatable, HasManager { + /** + * @return the ddosSettings value. + */ + DdoSSettings ddosSettings(); + /** * @return the dnsSettings value. */ @@ -113,6 +118,18 @@ interface Blank extends GroupableResourceCore.DefinitionWithRegion { interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup { } + /** + * The stage of the publicipaddress definition allowing to specify DdosSettings. + */ + interface WithDdosSettings { + /** + * Specifies ddosSettings. + * @param ddosSettings The DDoS protection custom policy associated with the public IP address + * @return the next definition stage + */ + WithCreate withDdosSettings(DdoSSettings ddosSettings); + } + /** * The stage of the publicipaddress definition allowing to specify DnsSettings. */ @@ -262,19 +279,31 @@ interface WithZones { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithDnsSettings, DefinitionStages.WithEtag, DefinitionStages.WithIdleTimeoutInMinutes, DefinitionStages.WithIpAddress, DefinitionStages.WithIpTags, DefinitionStages.WithProvisioningState, DefinitionStages.WithPublicIPAddressVersion, DefinitionStages.WithPublicIPAllocationMethod, DefinitionStages.WithPublicIPPrefix, DefinitionStages.WithResourceGuid, DefinitionStages.WithSku, DefinitionStages.WithZones { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithDdosSettings, DefinitionStages.WithDnsSettings, DefinitionStages.WithEtag, DefinitionStages.WithIdleTimeoutInMinutes, DefinitionStages.WithIpAddress, DefinitionStages.WithIpTags, DefinitionStages.WithProvisioningState, DefinitionStages.WithPublicIPAddressVersion, DefinitionStages.WithPublicIPAllocationMethod, DefinitionStages.WithPublicIPPrefix, DefinitionStages.WithResourceGuid, DefinitionStages.WithSku, DefinitionStages.WithZones { } } /** * The template for a PublicIPAddress update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithDnsSettings, UpdateStages.WithEtag, UpdateStages.WithIdleTimeoutInMinutes, UpdateStages.WithIpAddress, UpdateStages.WithIpTags, UpdateStages.WithProvisioningState, UpdateStages.WithPublicIPAddressVersion, UpdateStages.WithPublicIPAllocationMethod, UpdateStages.WithPublicIPPrefix, UpdateStages.WithResourceGuid, UpdateStages.WithSku, UpdateStages.WithZones { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithDdosSettings, UpdateStages.WithDnsSettings, UpdateStages.WithEtag, UpdateStages.WithIdleTimeoutInMinutes, UpdateStages.WithIpAddress, UpdateStages.WithIpTags, UpdateStages.WithProvisioningState, UpdateStages.WithPublicIPAddressVersion, UpdateStages.WithPublicIPAllocationMethod, UpdateStages.WithPublicIPPrefix, UpdateStages.WithResourceGuid, UpdateStages.WithSku, UpdateStages.WithZones { } /** * Grouping of PublicIPAddress update stages. */ interface UpdateStages { + /** + * The stage of the publicipaddress update allowing to specify DdosSettings. + */ + interface WithDdosSettings { + /** + * Specifies ddosSettings. + * @param ddosSettings The DDoS protection custom policy associated with the public IP address + * @return the next update stage + */ + Update withDdosSettings(DdoSSettings ddosSettings); + } + /** * The stage of the publicipaddress update allowing to specify DnsSettings. */ diff --git a/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressImpl.java b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressImpl.java index db003d268cc6..cfe01da6c3a3 100644 --- a/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressImpl.java +++ b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressImpl.java @@ -16,6 +16,7 @@ import com.microsoft.azure.management.network.v2018_08_01.IPVersion; import com.microsoft.azure.management.network.v2018_08_01.IPConfiguration; import com.microsoft.azure.management.network.v2018_08_01.PublicIPAddressDnsSettings; +import com.microsoft.azure.management.network.v2018_08_01.DdoSSettings; import java.util.List; import com.microsoft.azure.management.network.v2018_08_01.IpTag; import com.microsoft.azure.SubResource; @@ -51,6 +52,11 @@ public boolean isInCreateMode() { } + @Override + public DdoSSettings ddosSettings() { + return this.inner().ddosSettings(); + } + @Override public PublicIPAddressDnsSettings dnsSettings() { return this.inner().dnsSettings(); @@ -116,6 +122,12 @@ public List zones() { return this.inner().zones(); } + @Override + public PublicIPAddressImpl withDdosSettings(DdoSSettings ddosSettings) { + this.inner().withDdosSettings(ddosSettings); + return this; + } + @Override public PublicIPAddressImpl withDnsSettings(PublicIPAddressDnsSettings dnsSettings) { this.inner().withDnsSettings(dnsSettings); diff --git a/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressInner.java b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressInner.java index 0a33c3f1ce63..f20195a1fc3f 100644 --- a/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressInner.java +++ b/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/PublicIPAddressInner.java @@ -13,6 +13,7 @@ import com.microsoft.azure.management.network.v2018_08_01.IPVersion; import com.microsoft.azure.management.network.v2018_08_01.IPConfiguration; import com.microsoft.azure.management.network.v2018_08_01.PublicIPAddressDnsSettings; +import com.microsoft.azure.management.network.v2018_08_01.DdoSSettings; import java.util.List; import com.microsoft.azure.management.network.v2018_08_01.IpTag; import com.microsoft.azure.SubResource; @@ -59,6 +60,12 @@ public class PublicIPAddressInner extends Resource { @JsonProperty(value = "properties.dnsSettings") private PublicIPAddressDnsSettings dnsSettings; + /** + * The DDoS protection custom policy associated with the public IP address. + */ + @JsonProperty(value = "properties.ddosSettings") + private DdoSSettings ddosSettings; + /** * The list of tags associated with the public IP address. */ @@ -204,6 +211,26 @@ public PublicIPAddressInner withDnsSettings(PublicIPAddressDnsSettings dnsSettin return this; } + /** + * Get the DDoS protection custom policy associated with the public IP address. + * + * @return the ddosSettings value + */ + public DdoSSettings ddosSettings() { + return this.ddosSettings; + } + + /** + * Set the DDoS protection custom policy associated with the public IP address. + * + * @param ddosSettings the ddosSettings value to set + * @return the PublicIPAddressInner object itself. + */ + public PublicIPAddressInner withDdosSettings(DdoSSettings ddosSettings) { + this.ddosSettings = ddosSettings; + return this; + } + /** * Get the list of tags associated with the public IP address. *