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
86bac7f2
Commit
86bac7f2
authored
Dec 15, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/partition/PartitionInfoAzure.java
View file @
86bac7f2
...
...
@@ -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