diff --git a/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStore.java b/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStore.java index a0ad731cbd22..2f11f82e10b5 100644 --- a/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStore.java +++ b/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStore.java @@ -147,7 +147,7 @@ interface WithCreate extends Creatable, Resource.DefinitionW /** * The template for a ConfigurationStore update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithEncryption, UpdateStages.WithIdentity, UpdateStages.WithSku { + interface Update extends Appliable, Resource.UpdateWithTags, UpdateStages.WithEncryption, UpdateStages.WithIdentity, UpdateStages.WithPublicNetworkAccess, UpdateStages.WithSku { } /** @@ -178,6 +178,18 @@ interface WithIdentity { Update withIdentity(ResourceIdentity identity); } + /** + * The stage of the configurationstore update allowing to specify PublicNetworkAccess. + */ + interface WithPublicNetworkAccess { + /** + * Specifies publicNetworkAccess. + * @param publicNetworkAccess Control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: 'Enabled', 'Disabled' + * @return the next update stage + */ + Update withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess); + } + /** * The stage of the configurationstore update allowing to specify Sku. */ diff --git a/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStoreUpdateParameters.java b/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStoreUpdateParameters.java index 4cd55180481e..0c5f09a31d82 100644 --- a/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStoreUpdateParameters.java +++ b/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/ConfigurationStoreUpdateParameters.java @@ -23,6 +23,14 @@ public class ConfigurationStoreUpdateParameters { @JsonProperty(value = "properties.encryption") private EncryptionProperties encryption; + /** + * Control permission for data plane traffic coming from public networks + * while private endpoint is enabled. Possible values include: 'Enabled', + * 'Disabled'. + */ + @JsonProperty(value = "properties.publicNetworkAccess") + private PublicNetworkAccess publicNetworkAccess; + /** * The managed identity information for the configuration store. */ @@ -61,6 +69,26 @@ public ConfigurationStoreUpdateParameters withEncryption(EncryptionProperties en return this; } + /** + * Get control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: 'Enabled', 'Disabled'. + * + * @return the publicNetworkAccess value + */ + public PublicNetworkAccess publicNetworkAccess() { + return this.publicNetworkAccess; + } + + /** + * Set control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: 'Enabled', 'Disabled'. + * + * @param publicNetworkAccess the publicNetworkAccess value to set + * @return the ConfigurationStoreUpdateParameters object itself. + */ + public ConfigurationStoreUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { + this.publicNetworkAccess = publicNetworkAccess; + return this; + } + /** * Get the managed identity information for the configuration store. * diff --git a/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/implementation/ConfigurationStoreImpl.java b/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/implementation/ConfigurationStoreImpl.java index 26f986bcd4c8..3839a20b8d6c 100644 --- a/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/implementation/ConfigurationStoreImpl.java +++ b/sdk/appconfiguration/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/appconfiguration/v2020_06_01/implementation/ConfigurationStoreImpl.java @@ -112,12 +112,6 @@ public Sku sku() { return this.inner().sku(); } - @Override - public ConfigurationStoreImpl withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { - this.inner().withPublicNetworkAccess(publicNetworkAccess); - return this; - } - @Override public ConfigurationStoreImpl withSku(Sku sku) { if (isInCreateMode()) { @@ -148,4 +142,14 @@ public ConfigurationStoreImpl withIdentity(ResourceIdentity identity) { return this; } + @Override + public ConfigurationStoreImpl withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { + if (isInCreateMode()) { + this.inner().withPublicNetworkAccess(publicNetworkAccess); + } else { + this.updateParameter.withPublicNetworkAccess(publicNetworkAccess); + } + return this; + } + }