openapi

package module
v0.0.0-...-923634e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

README

Go API client for openapi

This is the API for the Vigo Bus Core project.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Generator version: 7.8.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import openapi "github.com/eryalito/vigo-bus-core-go-client"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value openapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value openapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using openapi.ContextOperationServerIndices and openapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost:8080

Class Method HTTP request Description
BusAPI ApiLinesGet Get /api/lines List all of the lines
BusAPI ApiStopsFindGet Get /api/stops/find Find a stop by text in its name
BusAPI ApiStopsFindLocationGet Get /api/stops/find/location Find a stop by its location
BusAPI ApiStopsFindLocationImageGet Get /api/stops/find/location/image Get the nearby stops as a PNG image and JSON array
BusAPI ApiStopsGet Get /api/stops List all of the stops
BusAPI ApiStopsStopNumberGet Get /api/stops/{stop_number} Get a stop by its number
BusAPI ApiStopsStopNumberScheduleGet Get /api/stops/{stop_number}/schedule Get the schedule for a stop
IdentityAPI ApiUsersProviderUuidFavoriteStopsStopNumberDelete Delete /api/users/{provider}/{uuid}/favorite_stops/{stop_number} Remove a favorite stop from a user
IdentityAPI ApiUsersProviderUuidFavoriteStopsStopNumberPost Post /api/users/{provider}/{uuid}/favorite_stops/{stop_number} Add a favorite stop to a user
IdentityAPI ApiUsersProviderUuidGet Get /api/users/{provider}/{uuid} Get a user by its UUID for a specific provider
IdentityAPI ApiUsersProviderUuidMetadataPut Put /api/users/{provider}/{uuid}/metadata Update the metadata of a user
IdentityAPI ApiUsersProviderUuidPost Post /api/users/{provider}/{uuid} Create a new user

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BearerAuth
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		openapi.ContextAPIKeys,
		map[string]openapi.APIKey{
			"Authorization": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedApiProviderTypeEnumValues = []ApiProviderType{
	"telegram",
}

All allowed values of ApiProviderType enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	BusAPI *BusAPIService

	IdentityAPI *IdentityAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Vigo Bus Core API API v1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiApiLinesGetRequest

type ApiApiLinesGetRequest struct {
	ApiService *BusAPIService
	// contains filtered or unexported fields
}

func (ApiApiLinesGetRequest) Execute

func (r ApiApiLinesGetRequest) Execute() ([]ApiLine, *http.Response, error)

type ApiApiStopsFindGetRequest

type ApiApiStopsFindGetRequest struct {
	ApiService *BusAPIService
	// contains filtered or unexported fields
}

func (ApiApiStopsFindGetRequest) Execute

func (ApiApiStopsFindGetRequest) Text

Text to search for in stop name

type ApiApiStopsFindLocationGetRequest

type ApiApiStopsFindLocationGetRequest struct {
	ApiService *BusAPIService
	// contains filtered or unexported fields
}

func (ApiApiStopsFindLocationGetRequest) Execute

func (ApiApiStopsFindLocationGetRequest) Lat

Latitude

func (ApiApiStopsFindLocationGetRequest) Lon

Longitude

func (ApiApiStopsFindLocationGetRequest) Radius

Radius in meters

type ApiApiStopsFindLocationImageGetRequest

type ApiApiStopsFindLocationImageGetRequest struct {
	ApiService *BusAPIService
	// contains filtered or unexported fields
}

func (ApiApiStopsFindLocationImageGetRequest) Execute

func (ApiApiStopsFindLocationImageGetRequest) Lat

Latitude

func (ApiApiStopsFindLocationImageGetRequest) Limit

Limit of stops to return, default 9

func (ApiApiStopsFindLocationImageGetRequest) Lon

Longitude

func (ApiApiStopsFindLocationImageGetRequest) Radius

Radius in meters

type ApiApiStopsGetRequest

type ApiApiStopsGetRequest struct {
	ApiService *BusAPIService
	// contains filtered or unexported fields
}

func (ApiApiStopsGetRequest) Execute

func (r ApiApiStopsGetRequest) Execute() ([]ApiStop, *http.Response, error)

type ApiApiStopsStopNumberGetRequest

type ApiApiStopsStopNumberGetRequest struct {
	ApiService *BusAPIService
	// contains filtered or unexported fields
}

func (ApiApiStopsStopNumberGetRequest) Execute

type ApiApiStopsStopNumberScheduleGetRequest

type ApiApiStopsStopNumberScheduleGetRequest struct {
	ApiService *BusAPIService
	// contains filtered or unexported fields
}

func (ApiApiStopsStopNumberScheduleGetRequest) Execute

type ApiApiUsersProviderUuidFavoriteStopsStopNumberDeleteRequest

type ApiApiUsersProviderUuidFavoriteStopsStopNumberDeleteRequest struct {
	ApiService *IdentityAPIService
	// contains filtered or unexported fields
}

func (ApiApiUsersProviderUuidFavoriteStopsStopNumberDeleteRequest) Execute

type ApiApiUsersProviderUuidFavoriteStopsStopNumberPostRequest

type ApiApiUsersProviderUuidFavoriteStopsStopNumberPostRequest struct {
	ApiService *IdentityAPIService
	// contains filtered or unexported fields
}

func (ApiApiUsersProviderUuidFavoriteStopsStopNumberPostRequest) Execute

type ApiApiUsersProviderUuidGetRequest

type ApiApiUsersProviderUuidGetRequest struct {
	ApiService *IdentityAPIService
	// contains filtered or unexported fields
}

func (ApiApiUsersProviderUuidGetRequest) Execute

type ApiApiUsersProviderUuidMetadataPutRequest

type ApiApiUsersProviderUuidMetadataPutRequest struct {
	ApiService *IdentityAPIService
	// contains filtered or unexported fields
}

func (ApiApiUsersProviderUuidMetadataPutRequest) Body

Metadata

func (ApiApiUsersProviderUuidMetadataPutRequest) Execute

type ApiApiUsersProviderUuidPostRequest

type ApiApiUsersProviderUuidPostRequest struct {
	ApiService *IdentityAPIService
	// contains filtered or unexported fields
}

func (ApiApiUsersProviderUuidPostRequest) Execute

type ApiIdentity

type ApiIdentity struct {
	// FavoriteStops is a list of the user's favorite stops
	FavoriteStops []ApiStop `json:"favorite_stops,omitempty"`
	// ID is the unique identifier of the identity
	Id *int32 `json:"id,omitempty"`
	// Metadata is a genric string that holds additional information about the identity
	Metadata *string `json:"metadata,omitempty"`
	// Provider is the type of the identity provider
	Provider *ApiProviderType `json:"provider,omitempty"`
	// UUID is the unique identifier of the identity, usually provided by the auth provider
	Uuid *string `json:"uuid,omitempty"`
}

ApiIdentity struct for ApiIdentity

func NewApiIdentity

func NewApiIdentity() *ApiIdentity

NewApiIdentity instantiates a new ApiIdentity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiIdentityWithDefaults

func NewApiIdentityWithDefaults() *ApiIdentity

NewApiIdentityWithDefaults instantiates a new ApiIdentity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiIdentity) GetFavoriteStops

func (o *ApiIdentity) GetFavoriteStops() []ApiStop

GetFavoriteStops returns the FavoriteStops field value if set, zero value otherwise.

func (*ApiIdentity) GetFavoriteStopsOk

func (o *ApiIdentity) GetFavoriteStopsOk() ([]ApiStop, bool)

GetFavoriteStopsOk returns a tuple with the FavoriteStops field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiIdentity) GetId

func (o *ApiIdentity) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*ApiIdentity) GetIdOk

func (o *ApiIdentity) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiIdentity) GetMetadata

func (o *ApiIdentity) GetMetadata() string

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*ApiIdentity) GetMetadataOk

func (o *ApiIdentity) GetMetadataOk() (*string, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiIdentity) GetProvider

func (o *ApiIdentity) GetProvider() ApiProviderType

GetProvider returns the Provider field value if set, zero value otherwise.

func (*ApiIdentity) GetProviderOk

func (o *ApiIdentity) GetProviderOk() (*ApiProviderType, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiIdentity) GetUuid

func (o *ApiIdentity) GetUuid() string

GetUuid returns the Uuid field value if set, zero value otherwise.

func (*ApiIdentity) GetUuidOk

func (o *ApiIdentity) GetUuidOk() (*string, bool)

GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiIdentity) HasFavoriteStops

func (o *ApiIdentity) HasFavoriteStops() bool

HasFavoriteStops returns a boolean if a field has been set.

func (*ApiIdentity) HasId

func (o *ApiIdentity) HasId() bool

HasId returns a boolean if a field has been set.

func (*ApiIdentity) HasMetadata

func (o *ApiIdentity) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*ApiIdentity) HasProvider

func (o *ApiIdentity) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*ApiIdentity) HasUuid

func (o *ApiIdentity) HasUuid() bool

HasUuid returns a boolean if a field has been set.

func (ApiIdentity) MarshalJSON

func (o ApiIdentity) MarshalJSON() ([]byte, error)

func (*ApiIdentity) SetFavoriteStops

func (o *ApiIdentity) SetFavoriteStops(v []ApiStop)

SetFavoriteStops gets a reference to the given []ApiStop and assigns it to the FavoriteStops field.

func (*ApiIdentity) SetId

func (o *ApiIdentity) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*ApiIdentity) SetMetadata

func (o *ApiIdentity) SetMetadata(v string)

SetMetadata gets a reference to the given string and assigns it to the Metadata field.

func (*ApiIdentity) SetProvider

func (o *ApiIdentity) SetProvider(v ApiProviderType)

SetProvider gets a reference to the given ApiProviderType and assigns it to the Provider field.

func (*ApiIdentity) SetUuid

func (o *ApiIdentity) SetUuid(v string)

SetUuid gets a reference to the given string and assigns it to the Uuid field.

func (ApiIdentity) ToMap

func (o ApiIdentity) ToMap() (map[string]interface{}, error)

type ApiLine

type ApiLine struct {
	// ID is the unique identifier of the line
	Id *int32 `json:"id,omitempty"`
	// Name is the name of the line provided by the bus company
	Name *string `json:"name,omitempty"`
}

ApiLine struct for ApiLine

func NewApiLine

func NewApiLine() *ApiLine

NewApiLine instantiates a new ApiLine object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiLineWithDefaults

func NewApiLineWithDefaults() *ApiLine

NewApiLineWithDefaults instantiates a new ApiLine object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiLine) GetId

func (o *ApiLine) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*ApiLine) GetIdOk

func (o *ApiLine) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiLine) GetName

func (o *ApiLine) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ApiLine) GetNameOk

func (o *ApiLine) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiLine) HasId

func (o *ApiLine) HasId() bool

HasId returns a boolean if a field has been set.

func (*ApiLine) HasName

func (o *ApiLine) HasName() bool

HasName returns a boolean if a field has been set.

func (ApiLine) MarshalJSON

func (o ApiLine) MarshalJSON() ([]byte, error)

func (*ApiLine) SetId

func (o *ApiLine) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*ApiLine) SetName

func (o *ApiLine) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (ApiLine) ToMap

func (o ApiLine) ToMap() (map[string]interface{}, error)

type ApiNearbyStops

type ApiNearbyStops struct {
	Image  *string               `json:"image,omitempty"`
	Origin *ApiNearbyStopsOrigin `json:"origin,omitempty"`
	Radius *float32              `json:"radius,omitempty"`
	Stops  []ApiStop             `json:"stops,omitempty"`
}

ApiNearbyStops struct for ApiNearbyStops

func NewApiNearbyStops

func NewApiNearbyStops() *ApiNearbyStops

NewApiNearbyStops instantiates a new ApiNearbyStops object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiNearbyStopsWithDefaults

func NewApiNearbyStopsWithDefaults() *ApiNearbyStops

NewApiNearbyStopsWithDefaults instantiates a new ApiNearbyStops object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiNearbyStops) GetImage

func (o *ApiNearbyStops) GetImage() string

GetImage returns the Image field value if set, zero value otherwise.

func (*ApiNearbyStops) GetImageOk

func (o *ApiNearbyStops) GetImageOk() (*string, bool)

GetImageOk returns a tuple with the Image field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiNearbyStops) GetOrigin

func (o *ApiNearbyStops) GetOrigin() ApiNearbyStopsOrigin

GetOrigin returns the Origin field value if set, zero value otherwise.

func (*ApiNearbyStops) GetOriginOk

func (o *ApiNearbyStops) GetOriginOk() (*ApiNearbyStopsOrigin, bool)

GetOriginOk returns a tuple with the Origin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiNearbyStops) GetRadius

func (o *ApiNearbyStops) GetRadius() float32

GetRadius returns the Radius field value if set, zero value otherwise.

func (*ApiNearbyStops) GetRadiusOk

func (o *ApiNearbyStops) GetRadiusOk() (*float32, bool)

GetRadiusOk returns a tuple with the Radius field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiNearbyStops) GetStops

func (o *ApiNearbyStops) GetStops() []ApiStop

GetStops returns the Stops field value if set, zero value otherwise.

func (*ApiNearbyStops) GetStopsOk

func (o *ApiNearbyStops) GetStopsOk() ([]ApiStop, bool)

GetStopsOk returns a tuple with the Stops field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiNearbyStops) HasImage

func (o *ApiNearbyStops) HasImage() bool

HasImage returns a boolean if a field has been set.

func (*ApiNearbyStops) HasOrigin

func (o *ApiNearbyStops) HasOrigin() bool

HasOrigin returns a boolean if a field has been set.

func (*ApiNearbyStops) HasRadius

func (o *ApiNearbyStops) HasRadius() bool

HasRadius returns a boolean if a field has been set.

func (*ApiNearbyStops) HasStops

func (o *ApiNearbyStops) HasStops() bool

HasStops returns a boolean if a field has been set.

func (ApiNearbyStops) MarshalJSON

func (o ApiNearbyStops) MarshalJSON() ([]byte, error)

func (*ApiNearbyStops) SetImage

func (o *ApiNearbyStops) SetImage(v string)

SetImage gets a reference to the given string and assigns it to the Image field.

func (*ApiNearbyStops) SetOrigin

func (o *ApiNearbyStops) SetOrigin(v ApiNearbyStopsOrigin)

SetOrigin gets a reference to the given ApiNearbyStopsOrigin and assigns it to the Origin field.

func (*ApiNearbyStops) SetRadius

func (o *ApiNearbyStops) SetRadius(v float32)

SetRadius gets a reference to the given float32 and assigns it to the Radius field.

func (*ApiNearbyStops) SetStops

func (o *ApiNearbyStops) SetStops(v []ApiStop)

SetStops gets a reference to the given []ApiStop and assigns it to the Stops field.

func (ApiNearbyStops) ToMap

func (o ApiNearbyStops) ToMap() (map[string]interface{}, error)

type ApiNearbyStopsOrigin

type ApiNearbyStopsOrigin struct {
	Lat *float32 `json:"lat,omitempty"`
	Lon *float32 `json:"lon,omitempty"`
}

ApiNearbyStopsOrigin struct for ApiNearbyStopsOrigin

func NewApiNearbyStopsOrigin

func NewApiNearbyStopsOrigin() *ApiNearbyStopsOrigin

NewApiNearbyStopsOrigin instantiates a new ApiNearbyStopsOrigin object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiNearbyStopsOriginWithDefaults

func NewApiNearbyStopsOriginWithDefaults() *ApiNearbyStopsOrigin

NewApiNearbyStopsOriginWithDefaults instantiates a new ApiNearbyStopsOrigin object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiNearbyStopsOrigin) GetLat

func (o *ApiNearbyStopsOrigin) GetLat() float32

GetLat returns the Lat field value if set, zero value otherwise.

func (*ApiNearbyStopsOrigin) GetLatOk

func (o *ApiNearbyStopsOrigin) GetLatOk() (*float32, bool)

GetLatOk returns a tuple with the Lat field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiNearbyStopsOrigin) GetLon

func (o *ApiNearbyStopsOrigin) GetLon() float32

GetLon returns the Lon field value if set, zero value otherwise.

func (*ApiNearbyStopsOrigin) GetLonOk

func (o *ApiNearbyStopsOrigin) GetLonOk() (*float32, bool)

GetLonOk returns a tuple with the Lon field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiNearbyStopsOrigin) HasLat

func (o *ApiNearbyStopsOrigin) HasLat() bool

HasLat returns a boolean if a field has been set.

func (*ApiNearbyStopsOrigin) HasLon

func (o *ApiNearbyStopsOrigin) HasLon() bool

HasLon returns a boolean if a field has been set.

func (ApiNearbyStopsOrigin) MarshalJSON

func (o ApiNearbyStopsOrigin) MarshalJSON() ([]byte, error)

func (*ApiNearbyStopsOrigin) SetLat

func (o *ApiNearbyStopsOrigin) SetLat(v float32)

SetLat gets a reference to the given float32 and assigns it to the Lat field.

func (*ApiNearbyStopsOrigin) SetLon

func (o *ApiNearbyStopsOrigin) SetLon(v float32)

SetLon gets a reference to the given float32 and assigns it to the Lon field.

func (ApiNearbyStopsOrigin) ToMap

func (o ApiNearbyStopsOrigin) ToMap() (map[string]interface{}, error)

type ApiProviderType

type ApiProviderType string

ApiProviderType the model 'ApiProviderType'

const (
	ProviderTypeTelegram ApiProviderType = "telegram"
)

List of api.ProviderType

func NewApiProviderTypeFromValue

func NewApiProviderTypeFromValue(v string) (*ApiProviderType, error)

NewApiProviderTypeFromValue returns a pointer to a valid ApiProviderType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ApiProviderType) IsValid

func (v ApiProviderType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ApiProviderType) Ptr

Ptr returns reference to api.ProviderType value

func (*ApiProviderType) UnmarshalJSON

func (v *ApiProviderType) UnmarshalJSON(src []byte) error

type ApiSchedule

type ApiSchedule struct {
	// Line is the line that the schedule is for
	Line *ApiLine `json:"line,omitempty"`
	// Route is the route that the schedule is for
	Route *string `json:"route,omitempty"`
	// Time is the time of the schedule
	Time *int32 `json:"time,omitempty"`
}

ApiSchedule struct for ApiSchedule

func NewApiSchedule

func NewApiSchedule() *ApiSchedule

NewApiSchedule instantiates a new ApiSchedule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiScheduleWithDefaults

func NewApiScheduleWithDefaults() *ApiSchedule

NewApiScheduleWithDefaults instantiates a new ApiSchedule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiSchedule) GetLine

func (o *ApiSchedule) GetLine() ApiLine

GetLine returns the Line field value if set, zero value otherwise.

func (*ApiSchedule) GetLineOk

func (o *ApiSchedule) GetLineOk() (*ApiLine, bool)

GetLineOk returns a tuple with the Line field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiSchedule) GetRoute

func (o *ApiSchedule) GetRoute() string

GetRoute returns the Route field value if set, zero value otherwise.

func (*ApiSchedule) GetRouteOk

func (o *ApiSchedule) GetRouteOk() (*string, bool)

GetRouteOk returns a tuple with the Route field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiSchedule) GetTime

func (o *ApiSchedule) GetTime() int32

GetTime returns the Time field value if set, zero value otherwise.

func (*ApiSchedule) GetTimeOk

func (o *ApiSchedule) GetTimeOk() (*int32, bool)

GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiSchedule) HasLine

func (o *ApiSchedule) HasLine() bool

HasLine returns a boolean if a field has been set.

func (*ApiSchedule) HasRoute

func (o *ApiSchedule) HasRoute() bool

HasRoute returns a boolean if a field has been set.

func (*ApiSchedule) HasTime

func (o *ApiSchedule) HasTime() bool

HasTime returns a boolean if a field has been set.

func (ApiSchedule) MarshalJSON

func (o ApiSchedule) MarshalJSON() ([]byte, error)

func (*ApiSchedule) SetLine

func (o *ApiSchedule) SetLine(v ApiLine)

SetLine gets a reference to the given ApiLine and assigns it to the Line field.

func (*ApiSchedule) SetRoute

func (o *ApiSchedule) SetRoute(v string)

SetRoute gets a reference to the given string and assigns it to the Route field.

func (*ApiSchedule) SetTime

func (o *ApiSchedule) SetTime(v int32)

SetTime gets a reference to the given int32 and assigns it to the Time field.

func (ApiSchedule) ToMap

func (o ApiSchedule) ToMap() (map[string]interface{}, error)

type ApiStop

type ApiStop struct {
	// ID is the unique identifier of the stop
	Id       *int32           `json:"id,omitempty"`
	Location *ApiStopLocation `json:"location,omitempty"`
	// Name is the name of the stop
	Name *string `json:"name,omitempty"`
	// StopID is the number of the stop used internally by the bus company
	StopId *int32 `json:"stop_id,omitempty"`
	// StopNumber is the number of the stop provided by the bus company
	StopNumber *int32 `json:"stop_number,omitempty"`
}

ApiStop struct for ApiStop

func NewApiStop

func NewApiStop() *ApiStop

NewApiStop instantiates a new ApiStop object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiStopWithDefaults

func NewApiStopWithDefaults() *ApiStop

NewApiStopWithDefaults instantiates a new ApiStop object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiStop) GetId

func (o *ApiStop) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*ApiStop) GetIdOk

func (o *ApiStop) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStop) GetLocation

func (o *ApiStop) GetLocation() ApiStopLocation

GetLocation returns the Location field value if set, zero value otherwise.

func (*ApiStop) GetLocationOk

func (o *ApiStop) GetLocationOk() (*ApiStopLocation, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStop) GetName

func (o *ApiStop) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ApiStop) GetNameOk

func (o *ApiStop) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStop) GetStopId

func (o *ApiStop) GetStopId() int32

GetStopId returns the StopId field value if set, zero value otherwise.

func (*ApiStop) GetStopIdOk

func (o *ApiStop) GetStopIdOk() (*int32, bool)

GetStopIdOk returns a tuple with the StopId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStop) GetStopNumber

func (o *ApiStop) GetStopNumber() int32

GetStopNumber returns the StopNumber field value if set, zero value otherwise.

func (*ApiStop) GetStopNumberOk

func (o *ApiStop) GetStopNumberOk() (*int32, bool)

GetStopNumberOk returns a tuple with the StopNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStop) HasId

func (o *ApiStop) HasId() bool

HasId returns a boolean if a field has been set.

func (*ApiStop) HasLocation

func (o *ApiStop) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*ApiStop) HasName

func (o *ApiStop) HasName() bool

HasName returns a boolean if a field has been set.

func (*ApiStop) HasStopId

func (o *ApiStop) HasStopId() bool

HasStopId returns a boolean if a field has been set.

func (*ApiStop) HasStopNumber

func (o *ApiStop) HasStopNumber() bool

HasStopNumber returns a boolean if a field has been set.

func (ApiStop) MarshalJSON

func (o ApiStop) MarshalJSON() ([]byte, error)

func (*ApiStop) SetId

func (o *ApiStop) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*ApiStop) SetLocation

func (o *ApiStop) SetLocation(v ApiStopLocation)

SetLocation gets a reference to the given ApiStopLocation and assigns it to the Location field.

func (*ApiStop) SetName

func (o *ApiStop) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ApiStop) SetStopId

func (o *ApiStop) SetStopId(v int32)

SetStopId gets a reference to the given int32 and assigns it to the StopId field.

func (*ApiStop) SetStopNumber

func (o *ApiStop) SetStopNumber(v int32)

SetStopNumber gets a reference to the given int32 and assigns it to the StopNumber field.

func (ApiStop) ToMap

func (o ApiStop) ToMap() (map[string]interface{}, error)

type ApiStopLocation

type ApiStopLocation struct {
	// Lat is the latitude of the stop
	Lat *float32 `json:"lat,omitempty"`
	// Lon is the longitude of the stop
	Lon *float32 `json:"lon,omitempty"`
}

ApiStopLocation Location is the geographical location of the stop

func NewApiStopLocation

func NewApiStopLocation() *ApiStopLocation

NewApiStopLocation instantiates a new ApiStopLocation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiStopLocationWithDefaults

func NewApiStopLocationWithDefaults() *ApiStopLocation

NewApiStopLocationWithDefaults instantiates a new ApiStopLocation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiStopLocation) GetLat

func (o *ApiStopLocation) GetLat() float32

GetLat returns the Lat field value if set, zero value otherwise.

func (*ApiStopLocation) GetLatOk

func (o *ApiStopLocation) GetLatOk() (*float32, bool)

GetLatOk returns a tuple with the Lat field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStopLocation) GetLon

func (o *ApiStopLocation) GetLon() float32

GetLon returns the Lon field value if set, zero value otherwise.

func (*ApiStopLocation) GetLonOk

func (o *ApiStopLocation) GetLonOk() (*float32, bool)

GetLonOk returns a tuple with the Lon field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStopLocation) HasLat

func (o *ApiStopLocation) HasLat() bool

HasLat returns a boolean if a field has been set.

func (*ApiStopLocation) HasLon

func (o *ApiStopLocation) HasLon() bool

HasLon returns a boolean if a field has been set.

func (ApiStopLocation) MarshalJSON

func (o ApiStopLocation) MarshalJSON() ([]byte, error)

func (*ApiStopLocation) SetLat

func (o *ApiStopLocation) SetLat(v float32)

SetLat gets a reference to the given float32 and assigns it to the Lat field.

func (*ApiStopLocation) SetLon

func (o *ApiStopLocation) SetLon(v float32)

SetLon gets a reference to the given float32 and assigns it to the Lon field.

func (ApiStopLocation) ToMap

func (o ApiStopLocation) ToMap() (map[string]interface{}, error)

type ApiStopSchedule

type ApiStopSchedule struct {
	// Schedules is a list of the schedules for the stop
	Schedules []ApiSchedule `json:"schedules,omitempty"`
	// Stop is the stop that the schedule is for
	Stop *ApiStop `json:"stop,omitempty"`
}

ApiStopSchedule struct for ApiStopSchedule

func NewApiStopSchedule

func NewApiStopSchedule() *ApiStopSchedule

NewApiStopSchedule instantiates a new ApiStopSchedule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiStopScheduleWithDefaults

func NewApiStopScheduleWithDefaults() *ApiStopSchedule

NewApiStopScheduleWithDefaults instantiates a new ApiStopSchedule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiStopSchedule) GetSchedules

func (o *ApiStopSchedule) GetSchedules() []ApiSchedule

GetSchedules returns the Schedules field value if set, zero value otherwise.

func (*ApiStopSchedule) GetSchedulesOk

func (o *ApiStopSchedule) GetSchedulesOk() ([]ApiSchedule, bool)

GetSchedulesOk returns a tuple with the Schedules field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStopSchedule) GetStop

func (o *ApiStopSchedule) GetStop() ApiStop

GetStop returns the Stop field value if set, zero value otherwise.

func (*ApiStopSchedule) GetStopOk

func (o *ApiStopSchedule) GetStopOk() (*ApiStop, bool)

GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiStopSchedule) HasSchedules

func (o *ApiStopSchedule) HasSchedules() bool

HasSchedules returns a boolean if a field has been set.

func (*ApiStopSchedule) HasStop

func (o *ApiStopSchedule) HasStop() bool

HasStop returns a boolean if a field has been set.

func (ApiStopSchedule) MarshalJSON

func (o ApiStopSchedule) MarshalJSON() ([]byte, error)

func (*ApiStopSchedule) SetSchedules

func (o *ApiStopSchedule) SetSchedules(v []ApiSchedule)

SetSchedules gets a reference to the given []ApiSchedule and assigns it to the Schedules field.

func (*ApiStopSchedule) SetStop

func (o *ApiStopSchedule) SetStop(v ApiStop)

SetStop gets a reference to the given ApiStop and assigns it to the Stop field.

func (ApiStopSchedule) ToMap

func (o ApiStopSchedule) ToMap() (map[string]interface{}, error)

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BusAPIService

type BusAPIService service

BusAPIService BusAPI service

func (*BusAPIService) ApiLinesGet

func (a *BusAPIService) ApiLinesGet(ctx context.Context) ApiApiLinesGetRequest

ApiLinesGet List all of the lines

Provide a list of all the lines

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiLinesGetRequest

func (*BusAPIService) ApiLinesGetExecute

func (a *BusAPIService) ApiLinesGetExecute(r ApiApiLinesGetRequest) ([]ApiLine, *http.Response, error)

Execute executes the request

@return []ApiLine

func (*BusAPIService) ApiStopsFindGet

func (a *BusAPIService) ApiStopsFindGet(ctx context.Context) ApiApiStopsFindGetRequest

ApiStopsFindGet Find a stop by text in its name

Provide a list of stops that match the text in their name

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiStopsFindGetRequest

func (*BusAPIService) ApiStopsFindGetExecute

func (a *BusAPIService) ApiStopsFindGetExecute(r ApiApiStopsFindGetRequest) ([]ApiStop, *http.Response, error)

Execute executes the request

@return []ApiStop

func (*BusAPIService) ApiStopsFindLocationGet

func (a *BusAPIService) ApiStopsFindLocationGet(ctx context.Context) ApiApiStopsFindLocationGetRequest

ApiStopsFindLocationGet Find a stop by its location

Provide a list of stops in a given radius around a location

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiStopsFindLocationGetRequest

func (*BusAPIService) ApiStopsFindLocationGetExecute

func (a *BusAPIService) ApiStopsFindLocationGetExecute(r ApiApiStopsFindLocationGetRequest) ([]ApiStop, *http.Response, error)

Execute executes the request

@return []ApiStop

func (*BusAPIService) ApiStopsFindLocationImageGet

func (a *BusAPIService) ApiStopsFindLocationImageGet(ctx context.Context) ApiApiStopsFindLocationImageGetRequest

ApiStopsFindLocationImageGet Get the nearby stops as a PNG image and JSON array

Provide the nearby stops for a location and return a PNG image and JSON array

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiStopsFindLocationImageGetRequest

func (*BusAPIService) ApiStopsFindLocationImageGetExecute

func (a *BusAPIService) ApiStopsFindLocationImageGetExecute(r ApiApiStopsFindLocationImageGetRequest) (*ApiNearbyStops, *http.Response, error)

Execute executes the request

@return ApiNearbyStops

func (*BusAPIService) ApiStopsGet

func (a *BusAPIService) ApiStopsGet(ctx context.Context) ApiApiStopsGetRequest

ApiStopsGet List all of the stops

Provide a list of all the stops

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApiStopsGetRequest

func (*BusAPIService) ApiStopsGetExecute

func (a *BusAPIService) ApiStopsGetExecute(r ApiApiStopsGetRequest) ([]ApiStop, *http.Response, error)

Execute executes the request

@return []ApiStop

func (*BusAPIService) ApiStopsStopNumberGet

func (a *BusAPIService) ApiStopsStopNumberGet(ctx context.Context, stopNumber int32) ApiApiStopsStopNumberGetRequest

ApiStopsStopNumberGet Get a stop by its number

Provide a stop by its number

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param stopNumber Stop Number
@return ApiApiStopsStopNumberGetRequest

func (*BusAPIService) ApiStopsStopNumberGetExecute

func (a *BusAPIService) ApiStopsStopNumberGetExecute(r ApiApiStopsStopNumberGetRequest) (*ApiStop, *http.Response, error)

Execute executes the request

@return ApiStop

func (*BusAPIService) ApiStopsStopNumberScheduleGet

func (a *BusAPIService) ApiStopsStopNumberScheduleGet(ctx context.Context, stopNumber int32) ApiApiStopsStopNumberScheduleGetRequest

ApiStopsStopNumberScheduleGet Get the schedule for a stop

Provide the schedule for a stop

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param stopNumber Stop Number
@return ApiApiStopsStopNumberScheduleGetRequest

func (*BusAPIService) ApiStopsStopNumberScheduleGetExecute

func (a *BusAPIService) ApiStopsStopNumberScheduleGetExecute(r ApiApiStopsStopNumberScheduleGetRequest) (*ApiStopSchedule, *http.Response, error)

Execute executes the request

@return ApiStopSchedule

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type IdentityAPIService

type IdentityAPIService service

IdentityAPIService IdentityAPI service

func (*IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberDelete

func (a *IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberDelete(ctx context.Context, provider string, uuid string, stopNumber int32) ApiApiUsersProviderUuidFavoriteStopsStopNumberDeleteRequest

ApiUsersProviderUuidFavoriteStopsStopNumberDelete Remove a favorite stop from a user

Remove a favorite stop from a user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provider Provider
@param uuid UUID
@param stopNumber Stop Number
@return ApiApiUsersProviderUuidFavoriteStopsStopNumberDeleteRequest

func (*IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberDeleteExecute

func (a *IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberDeleteExecute(r ApiApiUsersProviderUuidFavoriteStopsStopNumberDeleteRequest) (*ApiIdentity, *http.Response, error)

Execute executes the request

@return ApiIdentity

func (*IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberPost

func (a *IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberPost(ctx context.Context, provider string, uuid string, stopNumber int32) ApiApiUsersProviderUuidFavoriteStopsStopNumberPostRequest

ApiUsersProviderUuidFavoriteStopsStopNumberPost Add a favorite stop to a user

Add a favorite stop to a user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provider Provider
@param uuid UUID
@param stopNumber Stop Number
@return ApiApiUsersProviderUuidFavoriteStopsStopNumberPostRequest

func (*IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberPostExecute

func (a *IdentityAPIService) ApiUsersProviderUuidFavoriteStopsStopNumberPostExecute(r ApiApiUsersProviderUuidFavoriteStopsStopNumberPostRequest) (*ApiIdentity, *http.Response, error)

Execute executes the request

@return ApiIdentity

func (*IdentityAPIService) ApiUsersProviderUuidGet

func (a *IdentityAPIService) ApiUsersProviderUuidGet(ctx context.Context, provider string, uuid string) ApiApiUsersProviderUuidGetRequest

ApiUsersProviderUuidGet Get a user by its UUID for a specific provider

Provide a user by its UUID for a specific provider

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provider Provider
@param uuid UUID
@return ApiApiUsersProviderUuidGetRequest

func (*IdentityAPIService) ApiUsersProviderUuidGetExecute

func (a *IdentityAPIService) ApiUsersProviderUuidGetExecute(r ApiApiUsersProviderUuidGetRequest) (*ApiIdentity, *http.Response, error)

Execute executes the request

@return ApiIdentity

func (*IdentityAPIService) ApiUsersProviderUuidMetadataPut

func (a *IdentityAPIService) ApiUsersProviderUuidMetadataPut(ctx context.Context, provider string, uuid string) ApiApiUsersProviderUuidMetadataPutRequest

ApiUsersProviderUuidMetadataPut Update the metadata of a user

Update the metadata of a user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provider Provider
@param uuid UUID
@return ApiApiUsersProviderUuidMetadataPutRequest

func (*IdentityAPIService) ApiUsersProviderUuidMetadataPutExecute

func (a *IdentityAPIService) ApiUsersProviderUuidMetadataPutExecute(r ApiApiUsersProviderUuidMetadataPutRequest) (*ApiIdentity, *http.Response, error)

Execute executes the request

@return ApiIdentity

func (*IdentityAPIService) ApiUsersProviderUuidPost

func (a *IdentityAPIService) ApiUsersProviderUuidPost(ctx context.Context, provider string, uuid string) ApiApiUsersProviderUuidPostRequest

ApiUsersProviderUuidPost Create a new user

Create a new user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param provider Provider
@param uuid UUID
@return ApiApiUsersProviderUuidPostRequest

func (*IdentityAPIService) ApiUsersProviderUuidPostExecute

func (a *IdentityAPIService) ApiUsersProviderUuidPostExecute(r ApiApiUsersProviderUuidPostRequest) (*ApiIdentity, *http.Response, error)

Execute executes the request

@return ApiIdentity

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableApiIdentity

type NullableApiIdentity struct {
	// contains filtered or unexported fields
}

func NewNullableApiIdentity

func NewNullableApiIdentity(val *ApiIdentity) *NullableApiIdentity

func (NullableApiIdentity) Get

func (NullableApiIdentity) IsSet

func (v NullableApiIdentity) IsSet() bool

func (NullableApiIdentity) MarshalJSON

func (v NullableApiIdentity) MarshalJSON() ([]byte, error)

func (*NullableApiIdentity) Set

func (v *NullableApiIdentity) Set(val *ApiIdentity)

func (*NullableApiIdentity) UnmarshalJSON

func (v *NullableApiIdentity) UnmarshalJSON(src []byte) error

func (*NullableApiIdentity) Unset

func (v *NullableApiIdentity) Unset()

type NullableApiLine

type NullableApiLine struct {
	// contains filtered or unexported fields
}

func NewNullableApiLine

func NewNullableApiLine(val *ApiLine) *NullableApiLine

func (NullableApiLine) Get

func (v NullableApiLine) Get() *ApiLine

func (NullableApiLine) IsSet

func (v NullableApiLine) IsSet() bool

func (NullableApiLine) MarshalJSON

func (v NullableApiLine) MarshalJSON() ([]byte, error)

func (*NullableApiLine) Set

func (v *NullableApiLine) Set(val *ApiLine)

func (*NullableApiLine) UnmarshalJSON

func (v *NullableApiLine) UnmarshalJSON(src []byte) error

func (*NullableApiLine) Unset

func (v *NullableApiLine) Unset()

type NullableApiNearbyStops

type NullableApiNearbyStops struct {
	// contains filtered or unexported fields
}

func NewNullableApiNearbyStops

func NewNullableApiNearbyStops(val *ApiNearbyStops) *NullableApiNearbyStops

func (NullableApiNearbyStops) Get

func (NullableApiNearbyStops) IsSet

func (v NullableApiNearbyStops) IsSet() bool

func (NullableApiNearbyStops) MarshalJSON

func (v NullableApiNearbyStops) MarshalJSON() ([]byte, error)

func (*NullableApiNearbyStops) Set

func (*NullableApiNearbyStops) UnmarshalJSON

func (v *NullableApiNearbyStops) UnmarshalJSON(src []byte) error

func (*NullableApiNearbyStops) Unset

func (v *NullableApiNearbyStops) Unset()

type NullableApiNearbyStopsOrigin

type NullableApiNearbyStopsOrigin struct {
	// contains filtered or unexported fields
}

func NewNullableApiNearbyStopsOrigin

func NewNullableApiNearbyStopsOrigin(val *ApiNearbyStopsOrigin) *NullableApiNearbyStopsOrigin

func (NullableApiNearbyStopsOrigin) Get

func (NullableApiNearbyStopsOrigin) IsSet

func (NullableApiNearbyStopsOrigin) MarshalJSON

func (v NullableApiNearbyStopsOrigin) MarshalJSON() ([]byte, error)

func (*NullableApiNearbyStopsOrigin) Set

func (*NullableApiNearbyStopsOrigin) UnmarshalJSON

func (v *NullableApiNearbyStopsOrigin) UnmarshalJSON(src []byte) error

func (*NullableApiNearbyStopsOrigin) Unset

func (v *NullableApiNearbyStopsOrigin) Unset()

type NullableApiProviderType

type NullableApiProviderType struct {
	// contains filtered or unexported fields
}

func NewNullableApiProviderType

func NewNullableApiProviderType(val *ApiProviderType) *NullableApiProviderType

func (NullableApiProviderType) Get

func (NullableApiProviderType) IsSet

func (v NullableApiProviderType) IsSet() bool

func (NullableApiProviderType) MarshalJSON

func (v NullableApiProviderType) MarshalJSON() ([]byte, error)

func (*NullableApiProviderType) Set

func (*NullableApiProviderType) UnmarshalJSON

func (v *NullableApiProviderType) UnmarshalJSON(src []byte) error

func (*NullableApiProviderType) Unset

func (v *NullableApiProviderType) Unset()

type NullableApiSchedule

type NullableApiSchedule struct {
	// contains filtered or unexported fields
}

func NewNullableApiSchedule

func NewNullableApiSchedule(val *ApiSchedule) *NullableApiSchedule

func (NullableApiSchedule) Get

func (NullableApiSchedule) IsSet

func (v NullableApiSchedule) IsSet() bool

func (NullableApiSchedule) MarshalJSON

func (v NullableApiSchedule) MarshalJSON() ([]byte, error)

func (*NullableApiSchedule) Set

func (v *NullableApiSchedule) Set(val *ApiSchedule)

func (*NullableApiSchedule) UnmarshalJSON

func (v *NullableApiSchedule) UnmarshalJSON(src []byte) error

func (*NullableApiSchedule) Unset

func (v *NullableApiSchedule) Unset()

type NullableApiStop

type NullableApiStop struct {
	// contains filtered or unexported fields
}

func NewNullableApiStop

func NewNullableApiStop(val *ApiStop) *NullableApiStop

func (NullableApiStop) Get

func (v NullableApiStop) Get() *ApiStop

func (NullableApiStop) IsSet

func (v NullableApiStop) IsSet() bool

func (NullableApiStop) MarshalJSON

func (v NullableApiStop) MarshalJSON() ([]byte, error)

func (*NullableApiStop) Set

func (v *NullableApiStop) Set(val *ApiStop)

func (*NullableApiStop) UnmarshalJSON

func (v *NullableApiStop) UnmarshalJSON(src []byte) error

func (*NullableApiStop) Unset

func (v *NullableApiStop) Unset()

type NullableApiStopLocation

type NullableApiStopLocation struct {
	// contains filtered or unexported fields
}

func NewNullableApiStopLocation

func NewNullableApiStopLocation(val *ApiStopLocation) *NullableApiStopLocation

func (NullableApiStopLocation) Get

func (NullableApiStopLocation) IsSet

func (v NullableApiStopLocation) IsSet() bool

func (NullableApiStopLocation) MarshalJSON

func (v NullableApiStopLocation) MarshalJSON() ([]byte, error)

func (*NullableApiStopLocation) Set

func (*NullableApiStopLocation) UnmarshalJSON

func (v *NullableApiStopLocation) UnmarshalJSON(src []byte) error

func (*NullableApiStopLocation) Unset

func (v *NullableApiStopLocation) Unset()

type NullableApiStopSchedule

type NullableApiStopSchedule struct {
	// contains filtered or unexported fields
}

func NewNullableApiStopSchedule

func NewNullableApiStopSchedule(val *ApiStopSchedule) *NullableApiStopSchedule

func (NullableApiStopSchedule) Get

func (NullableApiStopSchedule) IsSet

func (v NullableApiStopSchedule) IsSet() bool

func (NullableApiStopSchedule) MarshalJSON

func (v NullableApiStopSchedule) MarshalJSON() ([]byte, error)

func (*NullableApiStopSchedule) Set

func (*NullableApiStopSchedule) UnmarshalJSON

func (v *NullableApiStopSchedule) UnmarshalJSON(src []byte) error

func (*NullableApiStopSchedule) Unset

func (v *NullableApiStopSchedule) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL