1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
13 "github.com/go-openapi/errors"
14 "github.com/go-openapi/runtime"
15 cr "github.com/go-openapi/runtime/client"
17 strfmt "github.com/go-openapi/strfmt"
19 clientmodel "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientmodel"
22 // NewSubscribeReportParams creates a new SubscribeReportParams object
23 // with the default values initialized.
24 func NewSubscribeReportParams() *SubscribeReportParams {
26 return &SubscribeReportParams{
28 timeout: cr.DefaultTimeout,
32 // NewSubscribeReportParamsWithTimeout creates a new SubscribeReportParams object
33 // with the default values initialized, and the ability to set a timeout on a request
34 func NewSubscribeReportParamsWithTimeout(timeout time.Duration) *SubscribeReportParams {
36 return &SubscribeReportParams{
42 // NewSubscribeReportParamsWithContext creates a new SubscribeReportParams object
43 // with the default values initialized, and the ability to set a context for a request
44 func NewSubscribeReportParamsWithContext(ctx context.Context) *SubscribeReportParams {
46 return &SubscribeReportParams{
52 // NewSubscribeReportParamsWithHTTPClient creates a new SubscribeReportParams object
53 // with the default values initialized, and the ability to set a custom HTTPClient for a request
54 func NewSubscribeReportParamsWithHTTPClient(client *http.Client) *SubscribeReportParams {
56 return &SubscribeReportParams{
61 /*SubscribeReportParams contains all the parameters to send to the API endpoint
62 for the subscribe report operation typically these are written to a http.Request
64 type SubscribeReportParams struct {
67 Subscription report parameters
70 ReportParams *clientmodel.ReportParams
73 Context context.Context
74 HTTPClient *http.Client
77 // WithTimeout adds the timeout to the subscribe report params
78 func (o *SubscribeReportParams) WithTimeout(timeout time.Duration) *SubscribeReportParams {
83 // SetTimeout adds the timeout to the subscribe report params
84 func (o *SubscribeReportParams) SetTimeout(timeout time.Duration) {
88 // WithContext adds the context to the subscribe report params
89 func (o *SubscribeReportParams) WithContext(ctx context.Context) *SubscribeReportParams {
94 // SetContext adds the context to the subscribe report params
95 func (o *SubscribeReportParams) SetContext(ctx context.Context) {
99 // WithHTTPClient adds the HTTPClient to the subscribe report params
100 func (o *SubscribeReportParams) WithHTTPClient(client *http.Client) *SubscribeReportParams {
101 o.SetHTTPClient(client)
105 // SetHTTPClient adds the HTTPClient to the subscribe report params
106 func (o *SubscribeReportParams) SetHTTPClient(client *http.Client) {
107 o.HTTPClient = client
110 // WithReportParams adds the reportParams to the subscribe report params
111 func (o *SubscribeReportParams) WithReportParams(reportParams *clientmodel.ReportParams) *SubscribeReportParams {
112 o.SetReportParams(reportParams)
116 // SetReportParams adds the reportParams to the subscribe report params
117 func (o *SubscribeReportParams) SetReportParams(reportParams *clientmodel.ReportParams) {
118 o.ReportParams = reportParams
121 // WriteToRequest writes these params to a swagger request
122 func (o *SubscribeReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
124 if err := r.SetTimeout(o.timeout); err != nil {
129 if o.ReportParams != nil {
130 if err := r.SetBodyParam(o.ReportParams); err != nil {
136 return errors.CompositeValidationError(res...)