2021-07-31 03:05:02 +00:00
|
|
|
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
|
2021-08-05 19:37:53 +00:00
|
|
|
// (c) 2012-2020 by Taxnexus, Inc.
|
2021-07-31 03:05:02 +00:00
|
|
|
// All rights reserved worldwide.
|
|
|
|
// Proprietary product; unlicensed use is not allowed
|
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
package members_client
|
2021-07-31 03:05:02 +00:00
|
|
|
|
|
|
|
// This file was generated by the swagger tool.
|
|
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/go-openapi/runtime"
|
|
|
|
httptransport "github.com/go-openapi/runtime/client"
|
|
|
|
"github.com/go-openapi/strfmt"
|
2023-04-07 18:00:15 +00:00
|
|
|
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/attendees"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/certificates"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/clusters"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/courses"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/databases"
|
2023-04-17 22:11:43 +00:00
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/emails"
|
2023-04-07 18:00:15 +00:00
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/enrollments"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/events"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/favorites"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/invoices"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/issued_certificates"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/lesson_progress"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/orders"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/payment_methods"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/research_projects"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/templates"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/tenants"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/tickets"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/transactions"
|
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/users"
|
2023-04-11 14:59:35 +00:00
|
|
|
"code.tnxs.net/vernonkeenan/lib/api/members/members_client/webhooks"
|
2021-07-31 03:05:02 +00:00
|
|
|
)
|
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
// Default members HTTP client.
|
2021-07-31 03:05:02 +00:00
|
|
|
var Default = NewHTTPClient(nil)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// DefaultHost is the default Host
|
|
|
|
// found in Meta (info) section of spec file
|
2023-03-28 17:47:34 +00:00
|
|
|
DefaultHost string = "members.vernonkeenan.com:8080"
|
2021-07-31 03:05:02 +00:00
|
|
|
// DefaultBasePath is the default BasePath
|
|
|
|
// found in Meta (info) section of spec file
|
2023-03-28 17:47:34 +00:00
|
|
|
DefaultBasePath string = "/v1"
|
2021-07-31 03:05:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
|
2023-03-28 17:47:34 +00:00
|
|
|
var DefaultSchemes = []string{"http"}
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
// NewHTTPClient creates a new members HTTP client.
|
|
|
|
func NewHTTPClient(formats strfmt.Registry) *Members {
|
2021-07-31 03:05:02 +00:00
|
|
|
return NewHTTPClientWithConfig(formats, nil)
|
|
|
|
}
|
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
// NewHTTPClientWithConfig creates a new members HTTP client,
|
2021-07-31 03:05:02 +00:00
|
|
|
// using a customizable transport config.
|
2023-03-28 17:47:34 +00:00
|
|
|
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Members {
|
2021-07-31 03:05:02 +00:00
|
|
|
// ensure nullable parameters have default
|
|
|
|
if cfg == nil {
|
|
|
|
cfg = DefaultTransportConfig()
|
|
|
|
}
|
|
|
|
|
|
|
|
// create transport and client
|
|
|
|
transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes)
|
|
|
|
return New(transport, formats)
|
|
|
|
}
|
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
// New creates a new members client
|
|
|
|
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Members {
|
2021-07-31 03:05:02 +00:00
|
|
|
// ensure nullable parameters have default
|
|
|
|
if formats == nil {
|
|
|
|
formats = strfmt.Default
|
|
|
|
}
|
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
cli := new(Members)
|
2021-07-31 03:05:02 +00:00
|
|
|
cli.Transport = transport
|
2023-04-07 18:00:15 +00:00
|
|
|
cli.Attendees = attendees.New(transport, formats)
|
|
|
|
cli.Certificates = certificates.New(transport, formats)
|
|
|
|
cli.Clusters = clusters.New(transport, formats)
|
|
|
|
cli.Courses = courses.New(transport, formats)
|
|
|
|
cli.Databases = databases.New(transport, formats)
|
2023-04-17 22:11:43 +00:00
|
|
|
cli.Emails = emails.New(transport, formats)
|
2023-04-07 18:00:15 +00:00
|
|
|
cli.Enrollments = enrollments.New(transport, formats)
|
|
|
|
cli.Events = events.New(transport, formats)
|
|
|
|
cli.Favorites = favorites.New(transport, formats)
|
|
|
|
cli.Invoices = invoices.New(transport, formats)
|
|
|
|
cli.IssuedCertificates = issued_certificates.New(transport, formats)
|
|
|
|
cli.LessonProgress = lesson_progress.New(transport, formats)
|
|
|
|
cli.Orders = orders.New(transport, formats)
|
|
|
|
cli.PaymentMethods = payment_methods.New(transport, formats)
|
|
|
|
cli.ResearchProjects = research_projects.New(transport, formats)
|
|
|
|
cli.Templates = templates.New(transport, formats)
|
|
|
|
cli.Tenants = tenants.New(transport, formats)
|
|
|
|
cli.Tickets = tickets.New(transport, formats)
|
|
|
|
cli.Transactions = transactions.New(transport, formats)
|
|
|
|
cli.Users = users.New(transport, formats)
|
2023-04-11 14:59:35 +00:00
|
|
|
cli.Webhooks = webhooks.New(transport, formats)
|
2021-07-31 03:05:02 +00:00
|
|
|
return cli
|
|
|
|
}
|
|
|
|
|
|
|
|
// DefaultTransportConfig creates a TransportConfig with the
|
|
|
|
// default settings taken from the meta section of the spec file.
|
|
|
|
func DefaultTransportConfig() *TransportConfig {
|
|
|
|
return &TransportConfig{
|
|
|
|
Host: DefaultHost,
|
|
|
|
BasePath: DefaultBasePath,
|
|
|
|
Schemes: DefaultSchemes,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// TransportConfig contains the transport related info,
|
|
|
|
// found in the meta section of the spec file.
|
|
|
|
type TransportConfig struct {
|
|
|
|
Host string
|
|
|
|
BasePath string
|
|
|
|
Schemes []string
|
|
|
|
}
|
|
|
|
|
|
|
|
// WithHost overrides the default host,
|
|
|
|
// provided by the meta section of the spec file.
|
|
|
|
func (cfg *TransportConfig) WithHost(host string) *TransportConfig {
|
|
|
|
cfg.Host = host
|
|
|
|
return cfg
|
|
|
|
}
|
|
|
|
|
|
|
|
// WithBasePath overrides the default basePath,
|
|
|
|
// provided by the meta section of the spec file.
|
|
|
|
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig {
|
|
|
|
cfg.BasePath = basePath
|
|
|
|
return cfg
|
|
|
|
}
|
|
|
|
|
|
|
|
// WithSchemes overrides the default schemes,
|
|
|
|
// provided by the meta section of the spec file.
|
|
|
|
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
|
|
|
|
cfg.Schemes = schemes
|
|
|
|
return cfg
|
|
|
|
}
|
|
|
|
|
2023-03-28 17:47:34 +00:00
|
|
|
// Members is a client for members
|
|
|
|
type Members struct {
|
2023-04-07 18:00:15 +00:00
|
|
|
Attendees attendees.ClientService
|
|
|
|
|
|
|
|
Certificates certificates.ClientService
|
|
|
|
|
|
|
|
Clusters clusters.ClientService
|
|
|
|
|
|
|
|
Courses courses.ClientService
|
|
|
|
|
|
|
|
Databases databases.ClientService
|
|
|
|
|
2023-04-17 22:11:43 +00:00
|
|
|
Emails emails.ClientService
|
|
|
|
|
2023-04-07 18:00:15 +00:00
|
|
|
Enrollments enrollments.ClientService
|
|
|
|
|
|
|
|
Events events.ClientService
|
|
|
|
|
|
|
|
Favorites favorites.ClientService
|
|
|
|
|
|
|
|
Invoices invoices.ClientService
|
|
|
|
|
|
|
|
IssuedCertificates issued_certificates.ClientService
|
|
|
|
|
|
|
|
LessonProgress lesson_progress.ClientService
|
|
|
|
|
|
|
|
Orders orders.ClientService
|
|
|
|
|
|
|
|
PaymentMethods payment_methods.ClientService
|
|
|
|
|
|
|
|
ResearchProjects research_projects.ClientService
|
|
|
|
|
|
|
|
Templates templates.ClientService
|
|
|
|
|
|
|
|
Tenants tenants.ClientService
|
|
|
|
|
|
|
|
Tickets tickets.ClientService
|
|
|
|
|
|
|
|
Transactions transactions.ClientService
|
|
|
|
|
|
|
|
Users users.ClientService
|
2021-07-31 03:05:02 +00:00
|
|
|
|
2023-04-11 14:59:35 +00:00
|
|
|
Webhooks webhooks.ClientService
|
|
|
|
|
2021-07-31 03:05:02 +00:00
|
|
|
Transport runtime.ClientTransport
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetTransport changes the transport on the client and all its subresources
|
2023-03-28 17:47:34 +00:00
|
|
|
func (c *Members) SetTransport(transport runtime.ClientTransport) {
|
2021-07-31 03:05:02 +00:00
|
|
|
c.Transport = transport
|
2023-04-07 18:00:15 +00:00
|
|
|
c.Attendees.SetTransport(transport)
|
|
|
|
c.Certificates.SetTransport(transport)
|
|
|
|
c.Clusters.SetTransport(transport)
|
|
|
|
c.Courses.SetTransport(transport)
|
|
|
|
c.Databases.SetTransport(transport)
|
2023-04-17 22:11:43 +00:00
|
|
|
c.Emails.SetTransport(transport)
|
2023-04-07 18:00:15 +00:00
|
|
|
c.Enrollments.SetTransport(transport)
|
|
|
|
c.Events.SetTransport(transport)
|
|
|
|
c.Favorites.SetTransport(transport)
|
|
|
|
c.Invoices.SetTransport(transport)
|
|
|
|
c.IssuedCertificates.SetTransport(transport)
|
|
|
|
c.LessonProgress.SetTransport(transport)
|
|
|
|
c.Orders.SetTransport(transport)
|
|
|
|
c.PaymentMethods.SetTransport(transport)
|
|
|
|
c.ResearchProjects.SetTransport(transport)
|
|
|
|
c.Templates.SetTransport(transport)
|
|
|
|
c.Tenants.SetTransport(transport)
|
|
|
|
c.Tickets.SetTransport(transport)
|
|
|
|
c.Transactions.SetTransport(transport)
|
|
|
|
c.Users.SetTransport(transport)
|
2023-04-11 14:59:35 +00:00
|
|
|
c.Webhooks.SetTransport(transport)
|
2021-07-31 03:05:02 +00:00
|
|
|
}
|