Skip to content
GitLab
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
288e86de
Commit
288e86de
authored
Jun 25, 2021
by
Vineeth Guna [Microsoft]
Committed by
Kishore Battula
Jun 25, 2021
Browse files
Added configuration related to airflow in PartitionInfoAzure
parent
5ea29983
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/partition/PartitionInfoAzure.java
View file @
288e86de
...
...
@@ -82,6 +82,20 @@ public class PartitionInfoAzure {
@SerializedName
(
"policy-service-enabled"
)
private
Property
policyServiceConfig
=
Property
.
builder
().
sensitive
(
false
).
build
();
@Builder
.
Default
@SerializedName
(
"airflow-enabled"
)
private
Property
airflowEnabledConfig
=
Property
.
builder
().
value
(
"false"
).
sensitive
(
false
).
build
();
@SerializedName
(
"airflow-endpoint"
)
private
Property
airflowEndpointConfig
;
@SerializedName
(
"airflow-username"
)
private
Property
airflowUsernameConfig
;
@SerializedName
(
"airflow-password"
)
private
Property
airflowPasswordConfig
;
private
Property
azureSubscriptionIdConfig
=
Property
.
builder
().
value
(
"subscription-id"
).
sensitive
(
true
).
build
();
private
Property
servicePrincipalAppIdConfig
=
Property
.
builder
().
value
(
"app-dev-sp-username"
).
sensitive
(
true
).
build
();
...
...
@@ -156,6 +170,43 @@ public class PartitionInfoAzure {
return
String
.
valueOf
(
this
.
getElasticPasswordConfig
().
getValue
());
}
/**
* @return partition airflow endpoint
*/
public
Boolean
getAirflowEnabled
()
{
return
Boolean
.
parseBoolean
((
String
)
this
.
getAirflowEnabledConfig
().
getValue
());
}
/**
* @return partition airflow endpoint
*/
public
String
getAirflowEndpoint
()
{
if
(
this
.
getAirflowEndpointConfig
().
isSensitive
())
{
return
getSecret
(
this
.
getAirflowEndpointConfig
());
}
return
String
.
valueOf
(
this
.
getAirflowEndpointConfig
().
getValue
());
}
/**
* @return partition airflow username
*/
public
String
getAirflowUsername
()
{
if
(
this
.
getAirflowUsernameConfig
().
isSensitive
())
{
return
getSecret
(
this
.
getAirflowUsernameConfig
());
}
return
String
.
valueOf
(
this
.
getAirflowUsernameConfig
().
getValue
());
}
/**
* @return partition airflow password
*/
public
String
getAirflowPassword
()
{
if
(
this
.
getAirflowPasswordConfig
().
isSensitive
())
{
return
getSecret
(
this
.
getAirflowPasswordConfig
());
}
return
String
.
valueOf
(
this
.
getAirflowPasswordConfig
().
getValue
());
}
/**
* @return partition elastic ssl enabled
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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