Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ interface WithCreate extends Creatable<ConfigurationStore>, Resource.DefinitionW
/**
* The template for a ConfigurationStore update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<ConfigurationStore>, Resource.UpdateWithTags<Update>, UpdateStages.WithEncryption, UpdateStages.WithIdentity, UpdateStages.WithSku {
interface Update extends Appliable<ConfigurationStore>, Resource.UpdateWithTags<Update>, UpdateStages.WithEncryption, UpdateStages.WithIdentity, UpdateStages.WithPublicNetworkAccess, UpdateStages.WithSku {
}

/**
Expand Down Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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;
}

}