Documentation ¶
Index ¶
- Constants
- Variables
- func SetUserAgent(inner http.RoundTripper, userAgent string) http.RoundTripper
- type Device42
- func New(transport runtime.ClientTransport, formats strfmt.Registry) *Device42
- func NewHTTPClient(formats strfmt.Registry) *Device42
- func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Device42
- func NewHTTPClientWithConfigAndAuth(formats strfmt.Registry, cfg *TransportConfig, ...) *Device42
- type TransportConfig
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "<host>" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default device42 HTTP client.
var DefaultSchemes = []string{"http", "https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
func SetUserAgent ¶
func SetUserAgent(inner http.RoundTripper, userAgent string) http.RoundTripper
Types ¶
type Device42 ¶
type Device42 struct { AdminUsersGroups admin_users_groups.ClientService ApplicationComponents application_components.ClientService AssetDeviceLifeCycle asset_device_life_cycle.ClientService Assets assets.ClientService AuditLog audit_log.ClientService AutoDiscovery auto_discovery.ClientService Buildings buildings.ClientService Cables cables.ClientService Certificates certificates.ClientService Customers customers.ClientService Devices devices.ClientService EndUsers end_users.ClientService GetAllTags get_all_tags.ClientService HardwareModels hardware_models.ClientService History history.ClientService IPam ip_a_m.ClientService ObjectCategories object_categories.ClientService OperatingSystems operating_systems.ClientService Pdu p_d_u.ClientService PartsManagement parts_management.ClientService Passwords passwords.ClientService PatchPanels patch_panels.ClientService PowerCircuits power_circuits.ClientService Purchasing purchasing.ClientService Racks racks.ClientService Reports reports.ClientService Rooms rooms.ClientService ServiceLevels service_levels.ClientService Services services.ClientService Software software.ClientService TelcoCircuits telco_circuits.ClientService Vendors vendors.ClientService Transport runtime.ClientTransport }
Device42 is a client for device42
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Device42
New creates a new device42 client
func NewHTTPClient ¶
NewHTTPClient creates a new device42 HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Device42
NewHTTPClientWithConfig creates a new device42 HTTP client, using a customizable transport config.
func NewHTTPClientWithConfigAndAuth ¶
func NewHTTPClientWithConfigAndAuth(formats strfmt.Registry, cfg *TransportConfig, username, password, useragent string, verify bool) *Device42
NewHTTPClientWithConfig creates a new device42 HTTP client, using a customizable transport config and auth.
func (*Device42) SetTransport ¶
func (c *Device42) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.