Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
a9647717
Commit
a9647717
authored
Dec 15, 2020
by
Komal Makkar
Committed by
Kishore Battula
Dec 15, 2020
Browse files
Adding event grid to Partition Info Azure
parent
55a2150e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/partition/PartitionInfoAzure.java
View file @
a9647717
...
...
@@ -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
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment