Get interface for subscriptions
[ric-plt/xapp-frame.git] / pkg / clientapi / r_i_c_subscription_client.go
index 91c32aa..7591e49 100644 (file)
@@ -14,6 +14,7 @@ import (
        "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientapi/common"
        "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientapi/control"
        "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientapi/policy"
+       "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientapi/query"
        "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientapi/report"
 )
 
@@ -66,6 +67,8 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *RICSubscri
 
        cli.Policy = policy.New(transport, formats)
 
+       cli.Query = query.New(transport, formats)
+
        cli.Report = report.New(transport, formats)
 
        return cli
@@ -118,6 +121,8 @@ type RICSubscription struct {
 
        Policy *policy.Client
 
+       Query *query.Client
+
        Report *report.Client
 
        Transport runtime.ClientTransport
@@ -133,6 +138,8 @@ func (c *RICSubscription) SetTransport(transport runtime.ClientTransport) {
 
        c.Policy.SetTransport(transport)
 
+       c.Query.SetTransport(transport)
+
        c.Report.SetTransport(transport)
 
 }