X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fclientapi%2Fcommon%2Funsubscribe_parameters.go;h=6d32e7e02e0b9dcf3fc04e5ddf67f55d6714ae36;hb=c0df1232a53358f58807320c09fe55fcbb185cd5;hp=5563ca5615a8e10b1d2c03e6c3744236e12a6c69;hpb=e0948fe8b755b4d752ef9da4a46246cf3951c9dc;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/clientapi/common/unsubscribe_parameters.go b/pkg/clientapi/common/unsubscribe_parameters.go index 5563ca5..6d32e7e 100644 --- a/pkg/clientapi/common/unsubscribe_parameters.go +++ b/pkg/clientapi/common/unsubscribe_parameters.go @@ -13,7 +13,6 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/swag" strfmt "github.com/go-openapi/strfmt" ) @@ -63,10 +62,10 @@ for the unsubscribe operation typically these are written to a http.Request type UnsubscribeParams struct { /*SubscriptionID - The subscriptionId to be unsubscribed + The subscriptionId received in the Subscription Response */ - SubscriptionID int64 + SubscriptionID string timeout time.Duration Context context.Context @@ -107,13 +106,13 @@ func (o *UnsubscribeParams) SetHTTPClient(client *http.Client) { } // WithSubscriptionID adds the subscriptionID to the unsubscribe params -func (o *UnsubscribeParams) WithSubscriptionID(subscriptionID int64) *UnsubscribeParams { +func (o *UnsubscribeParams) WithSubscriptionID(subscriptionID string) *UnsubscribeParams { o.SetSubscriptionID(subscriptionID) return o } // SetSubscriptionID adds the subscriptionId to the unsubscribe params -func (o *UnsubscribeParams) SetSubscriptionID(subscriptionID int64) { +func (o *UnsubscribeParams) SetSubscriptionID(subscriptionID string) { o.SubscriptionID = subscriptionID } @@ -126,7 +125,7 @@ func (o *UnsubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R var res []error // path param subscriptionId - if err := r.SetPathParam("subscriptionId", swag.FormatInt64(o.SubscriptionID)); err != nil { + if err := r.SetPathParam("subscriptionId", o.SubscriptionID); err != nil { return err }