summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_regular/src/policy_table/types.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/policy/policy_regular/src/policy_table/types.cc')
-rw-r--r--src/components/policy/policy_regular/src/policy_table/types.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/components/policy/policy_regular/src/policy_table/types.cc b/src/components/policy/policy_regular/src/policy_table/types.cc
index ac100984da..af2a556d91 100644
--- a/src/components/policy/policy_regular/src/policy_table/types.cc
+++ b/src/components/policy/policy_regular/src/policy_table/types.cc
@@ -278,7 +278,9 @@ ApplicationParams::ApplicationParams(const Json::Value* value__)
, auth_token(impl::ValueMember(value__, "auth_token"))
, cloud_transport_type(impl::ValueMember(value__, "cloud_transport_type"))
, icon_url(impl::ValueMember(value__, "icon_url"))
- , app_service_parameters(impl::ValueMember(value__, "app_services")) {}
+ , app_service_parameters(impl::ValueMember(value__, "app_services"))
+ , allow_unknown_rpc_pass_through(
+ impl::ValueMember(value__, "allow_unknown_rpc_pass_through")) {}
Json::Value ApplicationParams::ToJsonValue() const {
Json::Value result__(PolicyBase::ToJsonValue());
@@ -300,6 +302,9 @@ Json::Value ApplicationParams::ToJsonValue() const {
impl::WriteJsonField("cloud_transport_type", cloud_transport_type, &result__);
impl::WriteJsonField("icon_url", auth_token, &result__);
impl::WriteJsonField("app_services", app_service_parameters, &result__);
+ impl::WriteJsonField("allow_unknown_rpc_pass_through",
+ allow_unknown_rpc_pass_through,
+ &result__);
return result__;
}
@@ -352,6 +357,9 @@ bool ApplicationParams::is_valid() const {
if (!app_service_parameters.is_valid()) {
return false;
}
+ if (!allow_unknown_rpc_pass_through.is_valid()) {
+ return false;
+ }
return Validate();
}
@@ -411,6 +419,9 @@ bool ApplicationParams::struct_empty() const {
if (app_service_parameters.is_initialized()) {
return false;
}
+ if (allow_unknown_rpc_pass_through.is_initialized()) {
+ return false;
+ }
return true;
}
@@ -472,6 +483,10 @@ void ApplicationParams::ReportErrors(rpc::ValidationReport* report__) const {
app_service_parameters.ReportErrors(
&report__->ReportSubobject("app_services"));
}
+ if (!allow_unknown_rpc_pass_through.is_valid()) {
+ allow_unknown_rpc_pass_through.ReportErrors(
+ &report__->ReportSubobject("allow_unknown_rpc_pass_through"));
+ }
}
void ApplicationParams::SetPolicyTableType(PolicyTableType pt_type) {
@@ -490,6 +505,7 @@ void ApplicationParams::SetPolicyTableType(PolicyTableType pt_type) {
hybrid_app_preference.SetPolicyTableType(pt_type);
icon_url.SetPolicyTableType(pt_type);
app_service_parameters.SetPolicyTableType(pt_type);
+ allow_unknown_rpc_pass_through.SetPolicyTableType(pt_type);
}
// RpcParameters methods