// Code generated by go-swagger; DO NOT EDIT.
-package policy
+package common
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the generate command
golangswaggerpaths "path"
)
-// SubscribePolicyURL generates an URL for the subscribe policy operation
-type SubscribePolicyURL struct {
+// SubscribeURL generates an URL for the subscribe operation
+type SubscribeURL struct {
_basePath string
}
// WithBasePath sets the base path for this url builder, only required when it's different from the
// base path specified in the swagger spec.
// When the value of the base path is an empty string
-func (o *SubscribePolicyURL) WithBasePath(bp string) *SubscribePolicyURL {
+func (o *SubscribeURL) WithBasePath(bp string) *SubscribeURL {
o.SetBasePath(bp)
return o
}
// SetBasePath sets the base path for this url builder, only required when it's different from the
// base path specified in the swagger spec.
// When the value of the base path is an empty string
-func (o *SubscribePolicyURL) SetBasePath(bp string) {
+func (o *SubscribeURL) SetBasePath(bp string) {
o._basePath = bp
}
// Build a url path and query string
-func (o *SubscribePolicyURL) Build() (*url.URL, error) {
+func (o *SubscribeURL) Build() (*url.URL, error) {
var _result url.URL
- var _path = "/subscriptions/policy"
+ var _path = "/subscriptions"
_basePath := o._basePath
if _basePath == "" {
}
// Must is a helper function to panic when the url builder returns an error
-func (o *SubscribePolicyURL) Must(u *url.URL, err error) *url.URL {
+func (o *SubscribeURL) Must(u *url.URL, err error) *url.URL {
if err != nil {
panic(err)
}
}
// String returns the string representation of the path with query string
-func (o *SubscribePolicyURL) String() string {
+func (o *SubscribeURL) String() string {
return o.Must(o.Build()).String()
}
// BuildFull builds a full url with scheme, host, path and query string
-func (o *SubscribePolicyURL) BuildFull(scheme, host string) (*url.URL, error) {
+func (o *SubscribeURL) BuildFull(scheme, host string) (*url.URL, error) {
if scheme == "" {
- return nil, errors.New("scheme is required for a full url on SubscribePolicyURL")
+ return nil, errors.New("scheme is required for a full url on SubscribeURL")
}
if host == "" {
- return nil, errors.New("host is required for a full url on SubscribePolicyURL")
+ return nil, errors.New("host is required for a full url on SubscribeURL")
}
base, err := o.Build()
}
// StringFull returns the string representation of a complete url
-func (o *SubscribePolicyURL) StringFull(scheme, host string) string {
+func (o *SubscribeURL) StringFull(scheme, host string) string {
return o.Must(o.BuildFull(scheme, host)).String()
}