{"modulePath":"github.com/BlueRainSoftware/id4i-cli","version":"v0.0.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api_client\n\n## Constants\n\n```go\nconst (\n\t// DefaultHost is the default Host\n\t// found in Meta (info) section of spec file\n\tDefaultHost string = \"backend.id4i.de\"\n\t// DefaultBasePath is the default BasePath\n\t// found in Meta (info) section of spec file\n\tDefaultBasePath string = \"/\"\n)\n```\n\n## Variables\n\n```go\nvar Default = NewHTTPClient(nil)\n```\nDefault ID4I HTTP client.\n\n```go\nvar DefaultSchemes = []string{\"http\"}\n```\nDefaultSchemes are the default schemes found in Meta (info) section of spec file\n\n## Types\n\n```go\ntype ID4I struct {\n\tAccounts *accounts.Client\n\n\tAlias *alias.Client\n\n\tAPIKeys *api_keys.Client\n\n\tAuditing *auditing.Client\n\n\tBilling *billing.Client\n\n\tCollections *collections.Client\n\n\tGuids *guids.Client\n\n\tHistory *history.Client\n\n\tMetaInformation *meta_information.Client\n\n\tOperations *operations.Client\n\n\tOrganizations *organizations.Client\n\n\tPublicServices *public_services.Client\n\n\tRouting *routing.Client\n\n\tStorage *storage.Client\n\n\tTransfer *transfer.Client\n\n\tTransport runtime.ClientTransport\n}\n```\nID4I is a client for ID4I\n\n```go\nfunc New(transport runtime.ClientTransport, formats strfmt.Registry) *ID4I\n```\nNew creates a new ID4I client\n\n```go\nfunc NewHTTPClient(formats strfmt.Registry) *ID4I\n```\nNewHTTPClient creates a new ID4I HTTP client.\n\n```go\nfunc NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *ID4I\n```\nNewHTTPClientWithConfig creates a new ID4I HTTP client, using a customizable transport config.\n\n```go\nfunc (c *ID4I) SetTransport(transport runtime.ClientTransport)\n```\nSetTransport changes the transport on the client and all its subresources\n\n```go\ntype TransportConfig struct {\n\tHost     string\n\tBasePath string\n\tSchemes  []string\n}\n```\nTransportConfig contains the transport related info, found in the meta section of the spec file.\n\n```go\nfunc DefaultTransportConfig() *TransportConfig\n```\nDefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.\n\n```go\nfunc (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig\n```\nWithBasePath overrides the default basePath, provided by the meta section of the spec file.\n\n```go\nfunc (cfg *TransportConfig) WithHost(host string) *TransportConfig\n```\nWithHost overrides the default host, provided by the meta section of the spec file.\n\n```go\nfunc (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig\n```\nWithSchemes overrides the default schemes, provided by the meta section of the spec file.\n\n","path":"github.com/BlueRainSoftware/id4i-cli/api_client","name":"api_client","synopsis":"","isRedistributable":true}
