Commit 86bac7f2 authored by Kishore Battula's avatar Kishore Battula
Browse files

Merge branch 'users/komakkar/addingEventGridToPartitionInfo' into 'master'

Adding event grid to Partition Info Azure

See merge request !58
parents 55a2150e a9647717
Pipeline #19069 passed with stages
in 7 minutes and 45 seconds
......@@ -61,6 +61,12 @@ public class PartitionInfoAzure {
@SerializedName("sb-namespace")
private Property sbNamespaceConfig;
@SerializedName("eventgrid-recordstopic")
private Property eventGridRecordsTopicEndpointConfig;
@SerializedName("eventgrid-recordstopic-accesskey")
private Property eventGridRecordsTopicAccessKeyConfig;
private Property servicePrincipalAppIdConfig = Property.builder().value("app-dev-sp-username").sensitive(true).build();
private SecretClient secretClient;
......@@ -206,6 +212,26 @@ public class PartitionInfoAzure {
return String.valueOf(this.getStorageAccountNameConfig().getValue());
}
/**
* @return partition event grid topic endpoint
*/
public String getEventGridRecordsTopicEndpoint() {
if (this.getEventGridRecordsTopicEndpointConfig().isSensitive()) {
return getSecret(this.getEventGridRecordsTopicEndpointConfig());
}
return String.valueOf(this.getEventGridRecordsTopicEndpointConfig().getValue());
}
/**
* @return partition event grid topic key
*/
public String getEventGridRecordsTopicAccessKey() {
if (this.getEventGridRecordsTopicAccessKeyConfig().isSensitive()) {
return getSecret(this.getEventGridRecordsTopicAccessKeyConfig());
}
return String.valueOf(this.getEventGridRecordsTopicAccessKeyConfig().getValue());
}
/**
* @param client KV secret client
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment