Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AdditionalPropertiesAnyType
- type AdditionalPropertiesArray
- type AdditionalPropertiesBoolean
- type AdditionalPropertiesClass
- type AdditionalPropertiesInteger
- type AdditionalPropertiesNumber
- type AdditionalPropertiesObject
- type AdditionalPropertiesString
- type Animal
- type AnotherFakeApiService
- type ApiResponse
- type ArrayOfArrayOfNumberOnly
- type ArrayOfNumberOnly
- type ArrayTest
- type BasicAuth
- type Capitalization
- type Cat
- type Category
- type ClassModel
- type Client
- type Configuration
- type DeletePetOpts
- type Dog
- type EnumArrays
- type EnumClass
- type EnumTest
- type FakeApiService
- func (a *FakeApiService) CreateXmlItem(ctx context.Context, xmlItem XmlItem) (*http.Response, error)
- func (a *FakeApiService) FakeOuterBooleanSerialize(ctx context.Context, localVarOptionals *FakeOuterBooleanSerializeOpts) (bool, *http.Response, error)
- func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localVarOptionals *FakeOuterCompositeSerializeOpts) (OuterComposite, *http.Response, error)
- func (a *FakeApiService) FakeOuterNumberSerialize(ctx context.Context, localVarOptionals *FakeOuterNumberSerializeOpts) (float32, *http.Response, error)
- func (a *FakeApiService) FakeOuterStringSerialize(ctx context.Context, localVarOptionals *FakeOuterStringSerializeOpts) (string, *http.Response, error)
- func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, body FileSchemaTestClass) (*http.Response, error)
- func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, body User) (*http.Response, error)
- func (a *FakeApiService) TestClientModel(ctx context.Context, body Client) (Client, *http.Response, error)
- func (a *FakeApiService) TestEndpointParameters(ctx context.Context, number float32, double float64, ...) (*http.Response, error)
- func (a *FakeApiService) TestEnumParameters(ctx context.Context, localVarOptionals *TestEnumParametersOpts) (*http.Response, error)
- func (a *FakeApiService) TestGroupParameters(ctx context.Context, requiredStringGroup int32, requiredBooleanGroup bool, ...) (*http.Response, error)
- func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, param map[string]string) (*http.Response, error)
- func (a *FakeApiService) TestJsonFormData(ctx context.Context, param string, param2 string) (*http.Response, error)
- type FakeClassnameTags123ApiService
- type FakeOuterBooleanSerializeOpts
- type FakeOuterCompositeSerializeOpts
- type FakeOuterNumberSerializeOpts
- type FakeOuterStringSerializeOpts
- type File
- type FileSchemaTestClass
- type FormatTest
- type GenericOpenAPIError
- type HasOnlyReadOnly
- type List
- type MapTest
- type MixedPropertiesAndAdditionalPropertiesClass
- type Model200Response
- type Name
- type NumberOnly
- type Order
- type OuterComposite
- type OuterEnum
- type Pet
- type PetApiService
- func (a *PetApiService) AddPet(ctx context.Context, body Pet) (*http.Response, error)
- func (a *PetApiService) DeletePet(ctx context.Context, petId int64, localVarOptionals *DeletePetOpts) (*http.Response, error)
- func (a *PetApiService) FindPetsByStatus(ctx context.Context, status []string) ([]Pet, *http.Response, error)
- func (a *PetApiService) FindPetsByTags(ctx context.Context, tags []string) ([]Pet, *http.Response, error)
- func (a *PetApiService) GetPetById(ctx context.Context, petId int64) (Pet, *http.Response, error)
- func (a *PetApiService) UpdatePet(ctx context.Context, body Pet) (*http.Response, error)
- func (a *PetApiService) UpdatePetWithForm(ctx context.Context, petId int64, localVarOptionals *UpdatePetWithFormOpts) (*http.Response, error)
- func (a *PetApiService) UploadFile(ctx context.Context, petId int64, localVarOptionals *UploadFileOpts) (ApiResponse, *http.Response, error)
- func (a *PetApiService) UploadFileWithRequiredFile(ctx context.Context, petId int64, requiredFile *os.File, ...) (ApiResponse, *http.Response, error)
- type ReadOnlyFirst
- type Return
- type SpecialModelName
- type StoreApiService
- func (a *StoreApiService) DeleteOrder(ctx context.Context, orderId string) (*http.Response, error)
- func (a *StoreApiService) GetInventory(ctx context.Context) (map[string]int32, *http.Response, error)
- func (a *StoreApiService) GetOrderById(ctx context.Context, orderId int64) (Order, *http.Response, error)
- func (a *StoreApiService) PlaceOrder(ctx context.Context, body Order) (Order, *http.Response, error)
- type Tag
- type TestEndpointParametersOpts
- type TestEnumParametersOpts
- type TestGroupParametersOpts
- type TypeHolderDefault
- type TypeHolderExample
- type UpdatePetWithFormOpts
- type UploadFileOpts
- type UploadFileWithRequiredFileOpts
- type User
- type UserApiService
- func (a *UserApiService) CreateUser(ctx context.Context, body User) (*http.Response, error)
- func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, body []User) (*http.Response, error)
- func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, body []User) (*http.Response, error)
- func (a *UserApiService) DeleteUser(ctx context.Context, username string) (*http.Response, error)
- func (a *UserApiService) GetUserByName(ctx context.Context, username string) (User, *http.Response, error)
- func (a *UserApiService) LoginUser(ctx context.Context, username string, password string) (string, *http.Response, error)
- func (a *UserApiService) LogoutUser(ctx context.Context) (*http.Response, error)
- func (a *UserApiService) UpdateUser(ctx context.Context, username string, body User) (*http.Response, error)
- type XmlItem
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { AnotherFakeApi *AnotherFakeApiService FakeApi *FakeApiService FakeClassnameTags123Api *FakeClassnameTags123ApiService PetApi *PetApiService StoreApi *StoreApiService UserApi *UserApiService // contains filtered or unexported fields }
APIClient manages communication with the OpenAPI Petstore API v1.0.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) ChangeBasePath ¶
Change base path to allow switching to mocks
type APIKey ¶
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:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type AdditionalPropertiesAnyType ¶
type AdditionalPropertiesAnyType struct {
Name string `json:"name,omitempty"`
}
type AdditionalPropertiesArray ¶
type AdditionalPropertiesArray struct {
Name string `json:"name,omitempty"`
}
type AdditionalPropertiesBoolean ¶
type AdditionalPropertiesBoolean struct {
Name string `json:"name,omitempty"`
}
type AdditionalPropertiesClass ¶
type AdditionalPropertiesClass struct { MapString map[string]string `json:"map_string,omitempty"` MapNumber map[string]float32 `json:"map_number,omitempty"` MapInteger map[string]int32 `json:"map_integer,omitempty"` MapBoolean map[string]bool `json:"map_boolean,omitempty"` MapArrayInteger map[string][]int32 `json:"map_array_integer,omitempty"` MapArrayAnytype map[string][]map[string]interface{} `json:"map_array_anytype,omitempty"` MapMapString map[string]map[string]string `json:"map_map_string,omitempty"` MapMapAnytype map[string]map[string]map[string]interface{} `json:"map_map_anytype,omitempty"` Anytype1 map[string]interface{} `json:"anytype_1,omitempty"` Anytype2 map[string]interface{} `json:"anytype_2,omitempty"` Anytype3 map[string]interface{} `json:"anytype_3,omitempty"` }
type AdditionalPropertiesInteger ¶
type AdditionalPropertiesInteger struct {
Name string `json:"name,omitempty"`
}
type AdditionalPropertiesNumber ¶
type AdditionalPropertiesNumber struct {
Name string `json:"name,omitempty"`
}
type AdditionalPropertiesObject ¶
type AdditionalPropertiesObject struct {
Name string `json:"name,omitempty"`
}
type AdditionalPropertiesString ¶
type AdditionalPropertiesString struct {
Name string `json:"name,omitempty"`
}
type AnotherFakeApiService ¶
type AnotherFakeApiService service
func (*AnotherFakeApiService) Call123TestSpecialTags ¶
func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, body Client) (Client, *http.Response, error)
AnotherFakeApiService To test special tags To test special tags and operation ID starting with number
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body client model
@return Client
type ApiResponse ¶
type ArrayOfArrayOfNumberOnly ¶
type ArrayOfArrayOfNumberOnly struct {
ArrayArrayNumber [][]float32 `json:"ArrayArrayNumber,omitempty"`
}
type ArrayOfNumberOnly ¶
type ArrayOfNumberOnly struct {
ArrayNumber []float32 `json:"ArrayNumber,omitempty"`
}
type ArrayTest ¶
type ArrayTest struct { ArrayOfString []string `json:"array_of_string,omitempty"` ArrayArrayOfInteger [][]int64 `json:"array_array_of_integer,omitempty"` ArrayArrayOfModel [][]ReadOnlyFirst `json:"array_array_of_model,omitempty"` }
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 Capitalization ¶
type Capitalization struct { SmallCamel string `json:"smallCamel,omitempty"` CapitalCamel string `json:"CapitalCamel,omitempty"` SmallSnake string `json:"small_Snake,omitempty"` CapitalSnake string `json:"Capital_Snake,omitempty"` SCAETHFlowPoints string `json:"SCA_ETH_Flow_Points,omitempty"` // Name of the pet ATT_NAME string `json:"ATT_NAME,omitempty"` }
type ClassModel ¶
type ClassModel struct {
Class string `json:"_class,omitempty"`
}
Model for testing model with \"_class\" property
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` HTTPClient *http.Client }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
type DeletePetOpts ¶
type EnumArrays ¶
type FakeApiService ¶
type FakeApiService service
func (*FakeApiService) CreateXmlItem ¶
func (a *FakeApiService) CreateXmlItem(ctx context.Context, xmlItem XmlItem) (*http.Response, error)
FakeApiService creates an XmlItem this route creates an XmlItem
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param xmlItem XmlItem Body
func (*FakeApiService) FakeOuterBooleanSerialize ¶
func (a *FakeApiService) FakeOuterBooleanSerialize(ctx context.Context, localVarOptionals *FakeOuterBooleanSerializeOpts) (bool, *http.Response, error)
func (*FakeApiService) FakeOuterCompositeSerialize ¶
func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localVarOptionals *FakeOuterCompositeSerializeOpts) (OuterComposite, *http.Response, error)
func (*FakeApiService) FakeOuterNumberSerialize ¶
func (a *FakeApiService) FakeOuterNumberSerialize(ctx context.Context, localVarOptionals *FakeOuterNumberSerializeOpts) (float32, *http.Response, error)
func (*FakeApiService) FakeOuterStringSerialize ¶
func (a *FakeApiService) FakeOuterStringSerialize(ctx context.Context, localVarOptionals *FakeOuterStringSerializeOpts) (string, *http.Response, error)
func (*FakeApiService) TestBodyWithFileSchema ¶
func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, body FileSchemaTestClass) (*http.Response, error)
FakeApiService For this test, the body for this request much reference a schema named `File`.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
func (*FakeApiService) TestBodyWithQueryParams ¶
func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, body User) (*http.Response, error)
FakeApiService
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param query
- @param body
func (*FakeApiService) TestClientModel ¶
func (a *FakeApiService) TestClientModel(ctx context.Context, body Client) (Client, *http.Response, error)
FakeApiService To test \"client\" model To test \"client\" model
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body client model
@return Client
func (*FakeApiService) TestEndpointParameters ¶
func (*FakeApiService) TestEnumParameters ¶
func (a *FakeApiService) TestEnumParameters(ctx context.Context, localVarOptionals *TestEnumParametersOpts) (*http.Response, error)
func (*FakeApiService) TestGroupParameters ¶
func (a *FakeApiService) TestGroupParameters(ctx context.Context, requiredStringGroup int32, requiredBooleanGroup bool, requiredInt64Group int64, localVarOptionals *TestGroupParametersOpts) (*http.Response, error)
func (*FakeApiService) TestInlineAdditionalProperties ¶
func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, param map[string]string) (*http.Response, error)
FakeApiService test inline additionalProperties
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param param request body
func (*FakeApiService) TestJsonFormData ¶
func (a *FakeApiService) TestJsonFormData(ctx context.Context, param string, param2 string) (*http.Response, error)
FakeApiService test json serialization of form data
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param param field1
- @param param2 field2
type FakeClassnameTags123ApiService ¶
type FakeClassnameTags123ApiService service
func (*FakeClassnameTags123ApiService) TestClassname ¶
func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, body Client) (Client, *http.Response, error)
FakeClassnameTags123ApiService To test class name in snake case To test class name in snake case
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body client model
@return Client
type File ¶
type File struct { // Test capitalization SourceURI string `json:"sourceURI,omitempty"` }
Must be named `File` for test.
type FileSchemaTestClass ¶
type FormatTest ¶
type FormatTest struct { Integer int32 `json:"integer,omitempty"` Int32 int32 `json:"int32,omitempty"` Int64 int64 `json:"int64,omitempty"` Number float32 `json:"number"` Float float32 `json:"float,omitempty"` Double float64 `json:"double,omitempty"` String string `json:"string,omitempty"` Byte string `json:"byte"` Binary *os.File `json:"binary,omitempty"` Date string `json:"date"` DateTime time.Time `json:"dateTime,omitempty"` Uuid string `json:"uuid,omitempty"` Password string `json:"password"` }
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 HasOnlyReadOnly ¶
type Model200Response ¶
type Model200Response struct { Name int32 `json:"name,omitempty"` Class string `json:"class,omitempty"` }
Model for testing model name starting with number
type Name ¶
type Name struct { Name int32 `json:"name"` SnakeCase int32 `json:"snake_case,omitempty"` Property string `json:"property,omitempty"` Var123Number int32 `json:"123Number,omitempty"` }
Model for testing model name same as property name
type NumberOnly ¶
type NumberOnly struct {
JustNumber float32 `json:"JustNumber,omitempty"`
}
type OuterComposite ¶
type PetApiService ¶
type PetApiService service
func (*PetApiService) AddPet ¶
PetApiService Add a new pet to the store
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Pet object that needs to be added to the store
func (*PetApiService) DeletePet ¶
func (a *PetApiService) DeletePet(ctx context.Context, petId int64, localVarOptionals *DeletePetOpts) (*http.Response, error)
func (*PetApiService) FindPetsByStatus ¶
func (a *PetApiService) FindPetsByStatus(ctx context.Context, status []string) ([]Pet, *http.Response, error)
PetApiService Finds Pets by status Multiple status values can be provided with comma separated strings
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param status Status values that need to be considered for filter
@return []Pet
func (*PetApiService) FindPetsByTags ¶
func (a *PetApiService) FindPetsByTags(ctx context.Context, tags []string) ([]Pet, *http.Response, error)
PetApiService Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param tags Tags to filter by
@return []Pet
func (*PetApiService) GetPetById ¶
PetApiService Find pet by ID Returns a single pet
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param petId ID of pet to return
@return Pet
func (*PetApiService) UpdatePet ¶
PetApiService Update an existing pet
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Pet object that needs to be added to the store
func (*PetApiService) UpdatePetWithForm ¶
func (a *PetApiService) UpdatePetWithForm(ctx context.Context, petId int64, localVarOptionals *UpdatePetWithFormOpts) (*http.Response, error)
func (*PetApiService) UploadFile ¶
func (a *PetApiService) UploadFile(ctx context.Context, petId int64, localVarOptionals *UploadFileOpts) (ApiResponse, *http.Response, error)
func (*PetApiService) UploadFileWithRequiredFile ¶
func (a *PetApiService) UploadFileWithRequiredFile(ctx context.Context, petId int64, requiredFile *os.File, localVarOptionals *UploadFileWithRequiredFileOpts) (ApiResponse, *http.Response, error)
type ReadOnlyFirst ¶
type Return ¶
type Return struct {
Return int32 `json:"return,omitempty"`
}
Model for testing reserved words
type SpecialModelName ¶
type SpecialModelName struct {
SpecialPropertyName int64 `json:"$special[property.name],omitempty"`
}
type StoreApiService ¶
type StoreApiService service
func (*StoreApiService) DeleteOrder ¶
StoreApiService Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param orderId ID of the order that needs to be deleted
func (*StoreApiService) GetInventory ¶
func (a *StoreApiService) GetInventory(ctx context.Context) (map[string]int32, *http.Response, error)
StoreApiService Returns pet inventories by status Returns a map of status codes to quantities
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return map[string]int32
func (*StoreApiService) GetOrderById ¶
func (a *StoreApiService) GetOrderById(ctx context.Context, orderId int64) (Order, *http.Response, error)
StoreApiService Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param orderId ID of pet that needs to be fetched
@return Order
func (*StoreApiService) PlaceOrder ¶
func (a *StoreApiService) PlaceOrder(ctx context.Context, body Order) (Order, *http.Response, error)
StoreApiService Place an order for a pet
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body order placed for purchasing the pet
@return Order
type TestEnumParametersOpts ¶
type TestEnumParametersOpts struct { EnumHeaderStringArray optional.Interface EnumHeaderString optional.String EnumQueryStringArray optional.Interface EnumQueryString optional.String EnumQueryInteger optional.Int32 EnumQueryDouble optional.Float64 EnumFormStringArray optional.Interface EnumFormString optional.String }
type TestGroupParametersOpts ¶
type TypeHolderDefault ¶
type TypeHolderExample ¶
type UpdatePetWithFormOpts ¶
type UploadFileOpts ¶
type User ¶
type User struct { Id int64 `json:"id,omitempty"` Username string `json:"username,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email,omitempty"` Password string `json:"password,omitempty"` Phone string `json:"phone,omitempty"` // User Status UserStatus int32 `json:"userStatus,omitempty"` }
type UserApiService ¶
type UserApiService service
func (*UserApiService) CreateUser ¶
UserApiService Create user This can only be done by the logged in user.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body Created user object
func (*UserApiService) CreateUsersWithArrayInput ¶
func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, body []User) (*http.Response, error)
UserApiService Creates list of users with given input array
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body List of user object
func (*UserApiService) CreateUsersWithListInput ¶
func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, body []User) (*http.Response, error)
UserApiService Creates list of users with given input array
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body List of user object
func (*UserApiService) DeleteUser ¶
UserApiService Delete user This can only be done by the logged in user.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param username The name that needs to be deleted
func (*UserApiService) GetUserByName ¶
func (a *UserApiService) GetUserByName(ctx context.Context, username string) (User, *http.Response, error)
UserApiService Get user by user name
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param username The name that needs to be fetched. Use user1 for testing.
@return User
func (*UserApiService) LoginUser ¶
func (a *UserApiService) LoginUser(ctx context.Context, username string, password string) (string, *http.Response, error)
UserApiService Logs user into the system
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param username The user name for login
- @param password The password for login in clear text
@return string
func (*UserApiService) LogoutUser ¶
UserApiService Logs out current logged in user session
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
func (*UserApiService) UpdateUser ¶
func (a *UserApiService) UpdateUser(ctx context.Context, username string, body User) (*http.Response, error)
UserApiService Updated user This can only be done by the logged in user.
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param username name that need to be deleted
- @param body Updated user object
type XmlItem ¶
type XmlItem struct { AttributeString string `json:"attribute_string,omitempty"` AttributeNumber float32 `json:"attribute_number,omitempty"` AttributeInteger int32 `json:"attribute_integer,omitempty"` AttributeBoolean bool `json:"attribute_boolean,omitempty"` WrappedArray []int32 `json:"wrapped_array,omitempty"` NameString string `json:"name_string,omitempty"` NameNumber float32 `json:"name_number,omitempty"` NameInteger int32 `json:"name_integer,omitempty"` NameBoolean bool `json:"name_boolean,omitempty"` NameArray []int32 `json:"name_array,omitempty"` NameWrappedArray []int32 `json:"name_wrapped_array,omitempty"` PrefixString string `json:"prefix_string,omitempty"` PrefixNumber float32 `json:"prefix_number,omitempty"` PrefixInteger int32 `json:"prefix_integer,omitempty"` PrefixBoolean bool `json:"prefix_boolean,omitempty"` PrefixArray []int32 `json:"prefix_array,omitempty"` PrefixWrappedArray []int32 `json:"prefix_wrapped_array,omitempty"` NamespaceString string `json:"namespace_string,omitempty"` NamespaceNumber float32 `json:"namespace_number,omitempty"` NamespaceInteger int32 `json:"namespace_integer,omitempty"` NamespaceBoolean bool `json:"namespace_boolean,omitempty"` NamespaceArray []int32 `json:"namespace_array,omitempty"` NamespaceWrappedArray []int32 `json:"namespace_wrapped_array,omitempty"` PrefixNsString string `json:"prefix_ns_string,omitempty"` PrefixNsNumber float32 `json:"prefix_ns_number,omitempty"` PrefixNsInteger int32 `json:"prefix_ns_integer,omitempty"` PrefixNsBoolean bool `json:"prefix_ns_boolean,omitempty"` PrefixNsArray []int32 `json:"prefix_ns_array,omitempty"` PrefixNsWrappedArray []int32 `json:"prefix_ns_wrapped_array,omitempty"` }
Source Files ¶
- api_another_fake.go
- api_fake.go
- api_fake_classname_tags123.go
- api_pet.go
- api_store.go
- api_user.go
- client.go
- configuration.go
- model_200_response.go
- model_additional_properties_any_type.go
- model_additional_properties_array.go
- model_additional_properties_boolean.go
- model_additional_properties_class.go
- model_additional_properties_integer.go
- model_additional_properties_number.go
- model_additional_properties_object.go
- model_additional_properties_string.go
- model_animal.go
- model_api_response.go
- model_array_of_array_of_number_only.go
- model_array_of_number_only.go
- model_array_test_.go
- model_capitalization.go
- model_cat.go
- model_category.go
- model_class_model.go
- model_client.go
- model_dog.go
- model_enum_arrays.go
- model_enum_class.go
- model_enum_test_.go
- model_file.go
- model_file_schema_test_class.go
- model_format_test_.go
- model_has_only_read_only.go
- model_list.go
- model_map_test_.go
- model_mixed_properties_and_additional_properties_class.go
- model_name.go
- model_number_only.go
- model_order.go
- model_outer_composite.go
- model_outer_enum.go
- model_pet.go
- model_read_only_first.go
- model_return.go
- model_special_model_name.go
- model_tag.go
- model_type_holder_default.go
- model_type_holder_example.go
- model_user.go
- model_xml_item.go
- response.go