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 generate command
11 golangswaggerpaths "path"
14 // SubscribeReportURL generates an URL for the subscribe report operation
15 type SubscribeReportURL struct {
19 // WithBasePath sets the base path for this url builder, only required when it's different from the
20 // base path specified in the swagger spec.
21 // When the value of the base path is an empty string
22 func (o *SubscribeReportURL) WithBasePath(bp string) *SubscribeReportURL {
27 // SetBasePath sets the base path for this url builder, only required when it's different from the
28 // base path specified in the swagger spec.
29 // When the value of the base path is an empty string
30 func (o *SubscribeReportURL) SetBasePath(bp string) {
34 // Build a url path and query string
35 func (o *SubscribeReportURL) Build() (*url.URL, error) {
38 var _path = "/subscriptions/report"
40 _basePath := o._basePath
44 _result.Path = golangswaggerpaths.Join(_basePath, _path)
49 // Must is a helper function to panic when the url builder returns an error
50 func (o *SubscribeReportURL) Must(u *url.URL, err error) *url.URL {
55 panic("url can't be nil")
60 // String returns the string representation of the path with query string
61 func (o *SubscribeReportURL) String() string {
62 return o.Must(o.Build()).String()
65 // BuildFull builds a full url with scheme, host, path and query string
66 func (o *SubscribeReportURL) BuildFull(scheme, host string) (*url.URL, error) {
68 return nil, errors.New("scheme is required for a full url on SubscribeReportURL")
71 return nil, errors.New("host is required for a full url on SubscribeReportURL")
74 base, err := o.Build()
84 // StringFull returns the string representation of a complete url
85 func (o *SubscribeReportURL) StringFull(scheme, host string) string {
86 return o.Must(o.BuildFull(scheme, host)).String()