import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
-
- strfmt "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/strfmt"
"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/report"
+ "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientapi/xapp"
)
// Default r i c subscription HTTP client.
cli := new(RICSubscription)
cli.Transport = transport
-
cli.Common = common.New(transport, formats)
-
- cli.Control = control.New(transport, formats)
-
- cli.Policy = policy.New(transport, formats)
-
- cli.Report = report.New(transport, formats)
-
+ cli.Xapp = xapp.New(transport, formats)
return cli
}
// RICSubscription is a client for r i c subscription
type RICSubscription struct {
- Common *common.Client
-
- Control *control.Client
+ Common common.ClientService
- Policy *policy.Client
-
- Report *report.Client
+ Xapp xapp.ClientService
Transport runtime.ClientTransport
}
// SetTransport changes the transport on the client and all its subresources
func (c *RICSubscription) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
-
c.Common.SetTransport(transport)
-
- c.Control.SetTransport(transport)
-
- c.Policy.SetTransport(transport)
-
- c.Report.SetTransport(transport)
-
+ c.Xapp.SetTransport(transport)
}