forked from loafle/openapi-generator-original
minor enhancement to code format in go client (#11657)
This commit is contained in:
parent
d030ac1b50
commit
d530e1baec
@ -24,9 +24,9 @@ type {{classname}} interface {
|
|||||||
{{{unescapedNotes}}}
|
{{{unescapedNotes}}}
|
||||||
{{/notes}}
|
{{/notes}}
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}}
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}}
|
||||||
@param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}}
|
@param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}}
|
||||||
@return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request
|
@return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request
|
||||||
{{#isDeprecated}}
|
{{#isDeprecated}}
|
||||||
|
|
||||||
Deprecated
|
Deprecated
|
||||||
@ -58,7 +58,9 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request s
|
|||||||
{{paramName}} {{^isPathParam}}*{{/isPathParam}}{{{dataType}}}
|
{{paramName}} {{^isPathParam}}*{{/isPathParam}}{{{dataType}}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
}
|
}
|
||||||
{{#allParams}}{{^isPathParam}}
|
|
||||||
|
{{#allParams}}
|
||||||
|
{{^isPathParam}}
|
||||||
{{#description}}
|
{{#description}}
|
||||||
// {{.}}
|
// {{.}}
|
||||||
{{/description}}
|
{{/description}}
|
||||||
@ -68,8 +70,10 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request s
|
|||||||
func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) {{vendorExtensions.x-export-param-name}}({{paramName}} {{{dataType}}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request {
|
func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) {{vendorExtensions.x-export-param-name}}({{paramName}} {{{dataType}}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request {
|
||||||
r.{{paramName}} = &{{paramName}}
|
r.{{paramName}} = &{{paramName}}
|
||||||
return r
|
return r
|
||||||
}{{/isPathParam}}{{/allParams}}
|
}
|
||||||
|
|
||||||
|
{{/isPathParam}}
|
||||||
|
{{/allParams}}
|
||||||
func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) Execute() ({{#returnType}}{{^isArray}}{{^returnTypeIsPrimitive}}*{{/returnTypeIsPrimitive}}{{/isArray}}{{{.}}}, {{/returnType}}*http.Response, error) {
|
func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) Execute() ({{#returnType}}{{^isArray}}{{^returnTypeIsPrimitive}}*{{/returnTypeIsPrimitive}}{{/isArray}}{{{.}}}, {{/returnType}}*http.Response, error) {
|
||||||
return r.ApiService.{{nickname}}Execute(r)
|
return r.ApiService.{{nickname}}Execute(r)
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} {
|
|||||||
// Deprecated
|
// Deprecated
|
||||||
{{/deprecated}}
|
{{/deprecated}}
|
||||||
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{vendorExtensions.x-go-base-type}}, bool) {
|
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{vendorExtensions.x-go-base-type}}, bool) {
|
||||||
if o == nil {{#isNullable}}{{#vendorExtensions.x-golang-is-container}}|| o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
|
if o == nil{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
@ -163,7 +163,7 @@ func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) {
|
|||||||
// Deprecated
|
// Deprecated
|
||||||
{{/deprecated}}
|
{{/deprecated}}
|
||||||
func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} {
|
func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} {
|
||||||
if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{^vendorExtensions.x-golang-is-container}}|| o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
|
if o == nil{{^isNullable}} || o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
|
||||||
var ret {{vendorExtensions.x-go-base-type}}
|
var ret {{vendorExtensions.x-go-base-type}}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
@ -189,7 +189,7 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} {
|
|||||||
// Deprecated
|
// Deprecated
|
||||||
{{/deprecated}}
|
{{/deprecated}}
|
||||||
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{vendorExtensions.x-go-base-type}}, bool) {
|
func (o *{{classname}}) Get{{name}}Ok() ({{^isArray}}{{^isFreeFormObject}}*{{/isFreeFormObject}}{{/isArray}}{{vendorExtensions.x-go-base-type}}, bool) {
|
||||||
if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}}|| o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
|
if o == nil{{^isNullable}} || o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
|
@ -26,8 +26,8 @@ type AnotherFakeApi interface {
|
|||||||
|
|
||||||
To test special tags and operation ID starting with number
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCall123TestSpecialTagsRequest
|
@return ApiCall123TestSpecialTagsRequest
|
||||||
*/
|
*/
|
||||||
Call123TestSpecialTags(ctx context.Context) ApiCall123TestSpecialTagsRequest
|
Call123TestSpecialTags(ctx context.Context) ApiCall123TestSpecialTagsRequest
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
this route 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCreateXmlItemRequest
|
@return ApiCreateXmlItemRequest
|
||||||
*/
|
*/
|
||||||
CreateXmlItem(ctx context.Context) ApiCreateXmlItemRequest
|
CreateXmlItem(ctx context.Context) ApiCreateXmlItemRequest
|
||||||
|
|
||||||
@ -42,8 +42,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of outer boolean types
|
Test serialization of outer boolean types
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterBooleanSerializeRequest
|
@return ApiFakeOuterBooleanSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterBooleanSerialize(ctx context.Context) ApiFakeOuterBooleanSerializeRequest
|
FakeOuterBooleanSerialize(ctx context.Context) ApiFakeOuterBooleanSerializeRequest
|
||||||
|
|
||||||
@ -56,8 +56,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of object with outer number type
|
Test serialization of object with outer number type
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterCompositeSerializeRequest
|
@return ApiFakeOuterCompositeSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterCompositeSerialize(ctx context.Context) ApiFakeOuterCompositeSerializeRequest
|
FakeOuterCompositeSerialize(ctx context.Context) ApiFakeOuterCompositeSerializeRequest
|
||||||
|
|
||||||
@ -70,8 +70,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of outer number types
|
Test serialization of outer number types
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterNumberSerializeRequest
|
@return ApiFakeOuterNumberSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterNumberSerialize(ctx context.Context) ApiFakeOuterNumberSerializeRequest
|
FakeOuterNumberSerialize(ctx context.Context) ApiFakeOuterNumberSerializeRequest
|
||||||
|
|
||||||
@ -84,8 +84,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of outer string types
|
Test serialization of outer string types
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterStringSerializeRequest
|
@return ApiFakeOuterStringSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterStringSerialize(ctx context.Context) ApiFakeOuterStringSerializeRequest
|
FakeOuterStringSerialize(ctx context.Context) ApiFakeOuterStringSerializeRequest
|
||||||
|
|
||||||
@ -98,8 +98,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
For this test, the body for this request much reference a schema named `File`.
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestBodyWithFileSchemaRequest
|
@return ApiTestBodyWithFileSchemaRequest
|
||||||
*/
|
*/
|
||||||
TestBodyWithFileSchema(ctx context.Context) ApiTestBodyWithFileSchemaRequest
|
TestBodyWithFileSchema(ctx context.Context) ApiTestBodyWithFileSchemaRequest
|
||||||
|
|
||||||
@ -109,8 +109,8 @@ type FakeApi interface {
|
|||||||
/*
|
/*
|
||||||
TestBodyWithQueryParams Method for TestBodyWithQueryParams
|
TestBodyWithQueryParams Method for TestBodyWithQueryParams
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestBodyWithQueryParamsRequest
|
@return ApiTestBodyWithQueryParamsRequest
|
||||||
*/
|
*/
|
||||||
TestBodyWithQueryParams(ctx context.Context) ApiTestBodyWithQueryParamsRequest
|
TestBodyWithQueryParams(ctx context.Context) ApiTestBodyWithQueryParamsRequest
|
||||||
|
|
||||||
@ -122,8 +122,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestClientModelRequest
|
@return ApiTestClientModelRequest
|
||||||
*/
|
*/
|
||||||
TestClientModel(ctx context.Context) ApiTestClientModelRequest
|
TestClientModel(ctx context.Context) ApiTestClientModelRequest
|
||||||
|
|
||||||
@ -139,8 +139,8 @@ type FakeApi interface {
|
|||||||
偽のエンドポイント
|
偽のエンドポイント
|
||||||
가짜 엔드 포인트
|
가짜 엔드 포인트
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestEndpointParametersRequest
|
@return ApiTestEndpointParametersRequest
|
||||||
*/
|
*/
|
||||||
TestEndpointParameters(ctx context.Context) ApiTestEndpointParametersRequest
|
TestEndpointParameters(ctx context.Context) ApiTestEndpointParametersRequest
|
||||||
|
|
||||||
@ -152,8 +152,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestEnumParametersRequest
|
@return ApiTestEnumParametersRequest
|
||||||
*/
|
*/
|
||||||
TestEnumParameters(ctx context.Context) ApiTestEnumParametersRequest
|
TestEnumParameters(ctx context.Context) ApiTestEnumParametersRequest
|
||||||
|
|
||||||
@ -165,8 +165,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Fake endpoint to test group parameters (optional)
|
Fake endpoint to test group parameters (optional)
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestGroupParametersRequest
|
@return ApiTestGroupParametersRequest
|
||||||
*/
|
*/
|
||||||
TestGroupParameters(ctx context.Context) ApiTestGroupParametersRequest
|
TestGroupParameters(ctx context.Context) ApiTestGroupParametersRequest
|
||||||
|
|
||||||
@ -176,8 +176,8 @@ type FakeApi interface {
|
|||||||
/*
|
/*
|
||||||
TestInlineAdditionalProperties test inline additionalProperties
|
TestInlineAdditionalProperties test inline additionalProperties
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestInlineAdditionalPropertiesRequest
|
@return ApiTestInlineAdditionalPropertiesRequest
|
||||||
*/
|
*/
|
||||||
TestInlineAdditionalProperties(ctx context.Context) ApiTestInlineAdditionalPropertiesRequest
|
TestInlineAdditionalProperties(ctx context.Context) ApiTestInlineAdditionalPropertiesRequest
|
||||||
|
|
||||||
@ -187,8 +187,8 @@ type FakeApi interface {
|
|||||||
/*
|
/*
|
||||||
TestJsonFormData test json serialization of form data
|
TestJsonFormData 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestJsonFormDataRequest
|
@return ApiTestJsonFormDataRequest
|
||||||
*/
|
*/
|
||||||
TestJsonFormData(ctx context.Context) ApiTestJsonFormDataRequest
|
TestJsonFormData(ctx context.Context) ApiTestJsonFormDataRequest
|
||||||
|
|
||||||
@ -200,8 +200,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
To test the collection format in query parameters
|
To test the collection format in query parameters
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestQueryParameterCollectionFormatRequest
|
@return ApiTestQueryParameterCollectionFormatRequest
|
||||||
*/
|
*/
|
||||||
TestQueryParameterCollectionFormat(ctx context.Context) ApiTestQueryParameterCollectionFormatRequest
|
TestQueryParameterCollectionFormat(ctx context.Context) ApiTestQueryParameterCollectionFormatRequest
|
||||||
|
|
||||||
@ -854,6 +854,7 @@ func (r ApiTestBodyWithQueryParamsRequest) Query(query string) ApiTestBodyWithQu
|
|||||||
r.query = &query
|
r.query = &query
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestBodyWithQueryParamsRequest) Body(body User) ApiTestBodyWithQueryParamsRequest {
|
func (r ApiTestBodyWithQueryParamsRequest) Body(body User) ApiTestBodyWithQueryParamsRequest {
|
||||||
r.body = &body
|
r.body = &body
|
||||||
return r
|
return r
|
||||||
@ -1084,66 +1085,79 @@ func (r ApiTestEndpointParametersRequest) Number(number float32) ApiTestEndpoint
|
|||||||
r.number = &number
|
r.number = &number
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest {
|
||||||
r.double = &double
|
r.double = &double
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest {
|
||||||
r.patternWithoutDelimiter = &patternWithoutDelimiter
|
r.patternWithoutDelimiter = &patternWithoutDelimiter
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest {
|
||||||
r.byte_ = &byte_
|
r.byte_ = &byte_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest {
|
||||||
r.integer = &integer
|
r.integer = &integer
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest {
|
||||||
r.int32_ = &int32_
|
r.int32_ = &int32_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest {
|
||||||
r.int64_ = &int64_
|
r.int64_ = &int64_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest {
|
||||||
r.float = &float
|
r.float = &float
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest {
|
||||||
r.string_ = &string_
|
r.string_ = &string_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest {
|
||||||
r.binary = &binary
|
r.binary = &binary
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest {
|
||||||
r.date = &date
|
r.date = &date
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest {
|
||||||
r.dateTime = &dateTime
|
r.dateTime = &dateTime
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest {
|
||||||
r.password = &password
|
r.password = &password
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest {
|
||||||
r.callback = &callback
|
r.callback = &callback
|
||||||
@ -1326,36 +1340,43 @@ func (r ApiTestEnumParametersRequest) EnumHeaderStringArray(enumHeaderStringArra
|
|||||||
r.enumHeaderStringArray = &enumHeaderStringArray
|
r.enumHeaderStringArray = &enumHeaderStringArray
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Header parameter enum test (string)
|
// Header parameter enum test (string)
|
||||||
func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest {
|
||||||
r.enumHeaderString = &enumHeaderString
|
r.enumHeaderString = &enumHeaderString
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (string array)
|
// Query parameter enum test (string array)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryStringArray = &enumQueryStringArray
|
r.enumQueryStringArray = &enumQueryStringArray
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (string)
|
// Query parameter enum test (string)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryString = &enumQueryString
|
r.enumQueryString = &enumQueryString
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (double)
|
// Query parameter enum test (double)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryInteger = &enumQueryInteger
|
r.enumQueryInteger = &enumQueryInteger
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (double)
|
// Query parameter enum test (double)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryDouble = &enumQueryDouble
|
r.enumQueryDouble = &enumQueryDouble
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Form parameter enum test (string array)
|
// Form parameter enum test (string array)
|
||||||
func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest {
|
||||||
r.enumFormStringArray = &enumFormStringArray
|
r.enumFormStringArray = &enumFormStringArray
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Form parameter enum test (string)
|
// Form parameter enum test (string)
|
||||||
func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest {
|
||||||
r.enumFormString = &enumFormString
|
r.enumFormString = &enumFormString
|
||||||
@ -1485,26 +1506,31 @@ func (r ApiTestGroupParametersRequest) RequiredStringGroup(requiredStringGroup i
|
|||||||
r.requiredStringGroup = &requiredStringGroup
|
r.requiredStringGroup = &requiredStringGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Required Boolean in group parameters
|
// Required Boolean in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest {
|
||||||
r.requiredBooleanGroup = &requiredBooleanGroup
|
r.requiredBooleanGroup = &requiredBooleanGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Required Integer in group parameters
|
// Required Integer in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest {
|
||||||
r.requiredInt64Group = &requiredInt64Group
|
r.requiredInt64Group = &requiredInt64Group
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// String in group parameters
|
// String in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest {
|
||||||
r.stringGroup = &stringGroup
|
r.stringGroup = &stringGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Boolean in group parameters
|
// Boolean in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest {
|
||||||
r.booleanGroup = &booleanGroup
|
r.booleanGroup = &booleanGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Integer in group parameters
|
// Integer in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest {
|
||||||
r.int64Group = &int64Group
|
r.int64Group = &int64Group
|
||||||
@ -1725,6 +1751,7 @@ func (r ApiTestJsonFormDataRequest) Param(param string) ApiTestJsonFormDataReque
|
|||||||
r.param = ¶m
|
r.param = ¶m
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// field2
|
// field2
|
||||||
func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest {
|
func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest {
|
||||||
r.param2 = ¶m2
|
r.param2 = ¶m2
|
||||||
@ -1834,18 +1861,22 @@ func (r ApiTestQueryParameterCollectionFormatRequest) Pipe(pipe []string) ApiTes
|
|||||||
r.pipe = &pipe
|
r.pipe = &pipe
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Ioutil(ioutil []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Ioutil(ioutil []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.ioutil = &ioutil
|
r.ioutil = &ioutil
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Http(http []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Http(http []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.http = &http
|
r.http = &http
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Url(url []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Url(url []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.url = &url
|
r.url = &url
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Context(context []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Context(context []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.context = &context
|
r.context = &context
|
||||||
return r
|
return r
|
||||||
|
@ -26,8 +26,8 @@ type FakeClassnameTags123Api interface {
|
|||||||
|
|
||||||
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestClassnameRequest
|
@return ApiTestClassnameRequest
|
||||||
*/
|
*/
|
||||||
TestClassname(ctx context.Context) ApiTestClassnameRequest
|
TestClassname(ctx context.Context) ApiTestClassnameRequest
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
AddPet Add a new pet to the store
|
AddPet 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiAddPetRequest
|
@return ApiAddPetRequest
|
||||||
*/
|
*/
|
||||||
AddPet(ctx context.Context) ApiAddPetRequest
|
AddPet(ctx context.Context) ApiAddPetRequest
|
||||||
|
|
||||||
@ -37,9 +37,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
DeletePet Deletes a pet
|
DeletePet Deletes a pet
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId Pet id to delete
|
@param petId Pet id to delete
|
||||||
@return ApiDeletePetRequest
|
@return ApiDeletePetRequest
|
||||||
*/
|
*/
|
||||||
DeletePet(ctx context.Context, petId int64) ApiDeletePetRequest
|
DeletePet(ctx context.Context, petId int64) ApiDeletePetRequest
|
||||||
|
|
||||||
@ -51,8 +51,8 @@ type PetApi interface {
|
|||||||
|
|
||||||
Multiple status values can be provided with comma separated strings
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFindPetsByStatusRequest
|
@return ApiFindPetsByStatusRequest
|
||||||
*/
|
*/
|
||||||
FindPetsByStatus(ctx context.Context) ApiFindPetsByStatusRequest
|
FindPetsByStatus(ctx context.Context) ApiFindPetsByStatusRequest
|
||||||
|
|
||||||
@ -65,8 +65,8 @@ type PetApi interface {
|
|||||||
|
|
||||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFindPetsByTagsRequest
|
@return ApiFindPetsByTagsRequest
|
||||||
|
|
||||||
Deprecated
|
Deprecated
|
||||||
*/
|
*/
|
||||||
@ -82,9 +82,9 @@ type PetApi interface {
|
|||||||
|
|
||||||
Returns a single pet
|
Returns a single pet
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@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
|
@param petId ID of pet to return
|
||||||
@return ApiGetPetByIdRequest
|
@return ApiGetPetByIdRequest
|
||||||
*/
|
*/
|
||||||
GetPetById(ctx context.Context, petId int64) ApiGetPetByIdRequest
|
GetPetById(ctx context.Context, petId int64) ApiGetPetByIdRequest
|
||||||
|
|
||||||
@ -95,8 +95,8 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UpdatePet Update an existing pet
|
UpdatePet Update an existing pet
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiUpdatePetRequest
|
@return ApiUpdatePetRequest
|
||||||
*/
|
*/
|
||||||
UpdatePet(ctx context.Context) ApiUpdatePetRequest
|
UpdatePet(ctx context.Context) ApiUpdatePetRequest
|
||||||
|
|
||||||
@ -106,9 +106,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UpdatePetWithForm Updates a pet in the store with form data
|
UpdatePetWithForm Updates a pet in the store with form data
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId ID of pet that needs to be updated
|
@param petId ID of pet that needs to be updated
|
||||||
@return ApiUpdatePetWithFormRequest
|
@return ApiUpdatePetWithFormRequest
|
||||||
*/
|
*/
|
||||||
UpdatePetWithForm(ctx context.Context, petId int64) ApiUpdatePetWithFormRequest
|
UpdatePetWithForm(ctx context.Context, petId int64) ApiUpdatePetWithFormRequest
|
||||||
|
|
||||||
@ -118,9 +118,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UploadFile uploads an image
|
UploadFile uploads an image
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId ID of pet to update
|
@param petId ID of pet to update
|
||||||
@return ApiUploadFileRequest
|
@return ApiUploadFileRequest
|
||||||
*/
|
*/
|
||||||
UploadFile(ctx context.Context, petId int64) ApiUploadFileRequest
|
UploadFile(ctx context.Context, petId int64) ApiUploadFileRequest
|
||||||
|
|
||||||
@ -131,9 +131,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UploadFileWithRequiredFile uploads an image (required)
|
UploadFileWithRequiredFile uploads an image (required)
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId ID of pet to update
|
@param petId ID of pet to update
|
||||||
@return ApiUploadFileWithRequiredFileRequest
|
@return ApiUploadFileWithRequiredFileRequest
|
||||||
*/
|
*/
|
||||||
UploadFileWithRequiredFile(ctx context.Context, petId int64) ApiUploadFileWithRequiredFileRequest
|
UploadFileWithRequiredFile(ctx context.Context, petId int64) ApiUploadFileWithRequiredFileRequest
|
||||||
|
|
||||||
@ -571,7 +571,6 @@ type ApiGetPetByIdRequest struct {
|
|||||||
petId int64
|
petId int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetPetByIdRequest) Execute() (*Pet, *http.Response, error) {
|
func (r ApiGetPetByIdRequest) Execute() (*Pet, *http.Response, error) {
|
||||||
return r.ApiService.GetPetByIdExecute(r)
|
return r.ApiService.GetPetByIdExecute(r)
|
||||||
}
|
}
|
||||||
@ -794,6 +793,7 @@ func (r ApiUpdatePetWithFormRequest) Name(name string) ApiUpdatePetWithFormReque
|
|||||||
r.name = &name
|
r.name = &name
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Updated status of the pet
|
// Updated status of the pet
|
||||||
func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest {
|
func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest {
|
||||||
r.status = &status
|
r.status = &status
|
||||||
@ -903,6 +903,7 @@ func (r ApiUploadFileRequest) AdditionalMetadata(additionalMetadata string) ApiU
|
|||||||
r.additionalMetadata = &additionalMetadata
|
r.additionalMetadata = &additionalMetadata
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// file to upload
|
// file to upload
|
||||||
func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest {
|
func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest {
|
||||||
r.file = &file
|
r.file = &file
|
||||||
@ -1037,6 +1038,7 @@ func (r ApiUploadFileWithRequiredFileRequest) RequiredFile(requiredFile *os.File
|
|||||||
r.requiredFile = &requiredFile
|
r.requiredFile = &requiredFile
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Additional data to pass to server
|
// Additional data to pass to server
|
||||||
func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest {
|
func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest {
|
||||||
r.additionalMetadata = &additionalMetadata
|
r.additionalMetadata = &additionalMetadata
|
||||||
|
@ -27,9 +27,9 @@ type StoreApi interface {
|
|||||||
|
|
||||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
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 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
|
@param orderId ID of the order that needs to be deleted
|
||||||
@return ApiDeleteOrderRequest
|
@return ApiDeleteOrderRequest
|
||||||
*/
|
*/
|
||||||
DeleteOrder(ctx context.Context, orderId string) ApiDeleteOrderRequest
|
DeleteOrder(ctx context.Context, orderId string) ApiDeleteOrderRequest
|
||||||
|
|
||||||
@ -41,8 +41,8 @@ type StoreApi interface {
|
|||||||
|
|
||||||
Returns a map of status codes to quantities
|
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().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiGetInventoryRequest
|
@return ApiGetInventoryRequest
|
||||||
*/
|
*/
|
||||||
GetInventory(ctx context.Context) ApiGetInventoryRequest
|
GetInventory(ctx context.Context) ApiGetInventoryRequest
|
||||||
|
|
||||||
@ -55,9 +55,9 @@ type StoreApi interface {
|
|||||||
|
|
||||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
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 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
|
@param orderId ID of pet that needs to be fetched
|
||||||
@return ApiGetOrderByIdRequest
|
@return ApiGetOrderByIdRequest
|
||||||
*/
|
*/
|
||||||
GetOrderById(ctx context.Context, orderId int64) ApiGetOrderByIdRequest
|
GetOrderById(ctx context.Context, orderId int64) ApiGetOrderByIdRequest
|
||||||
|
|
||||||
@ -68,8 +68,8 @@ type StoreApi interface {
|
|||||||
/*
|
/*
|
||||||
PlaceOrder Place an order for a pet
|
PlaceOrder 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiPlaceOrderRequest
|
@return ApiPlaceOrderRequest
|
||||||
*/
|
*/
|
||||||
PlaceOrder(ctx context.Context) ApiPlaceOrderRequest
|
PlaceOrder(ctx context.Context) ApiPlaceOrderRequest
|
||||||
|
|
||||||
@ -87,7 +87,6 @@ type ApiDeleteOrderRequest struct {
|
|||||||
orderId string
|
orderId string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiDeleteOrderRequest) Execute() (*http.Response, error) {
|
func (r ApiDeleteOrderRequest) Execute() (*http.Response, error) {
|
||||||
return r.ApiService.DeleteOrderExecute(r)
|
return r.ApiService.DeleteOrderExecute(r)
|
||||||
}
|
}
|
||||||
@ -179,7 +178,6 @@ type ApiGetInventoryRequest struct {
|
|||||||
ApiService StoreApi
|
ApiService StoreApi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetInventoryRequest) Execute() (map[string]int32, *http.Response, error) {
|
func (r ApiGetInventoryRequest) Execute() (map[string]int32, *http.Response, error) {
|
||||||
return r.ApiService.GetInventoryExecute(r)
|
return r.ApiService.GetInventoryExecute(r)
|
||||||
}
|
}
|
||||||
@ -294,7 +292,6 @@ type ApiGetOrderByIdRequest struct {
|
|||||||
orderId int64
|
orderId int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetOrderByIdRequest) Execute() (*Order, *http.Response, error) {
|
func (r ApiGetOrderByIdRequest) Execute() (*Order, *http.Response, error) {
|
||||||
return r.ApiService.GetOrderByIdExecute(r)
|
return r.ApiService.GetOrderByIdExecute(r)
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ type UserApi interface {
|
|||||||
|
|
||||||
This can only be done by the logged in 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCreateUserRequest
|
@return ApiCreateUserRequest
|
||||||
*/
|
*/
|
||||||
CreateUser(ctx context.Context) ApiCreateUserRequest
|
CreateUser(ctx context.Context) ApiCreateUserRequest
|
||||||
|
|
||||||
@ -38,8 +38,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
CreateUsersWithArrayInput Creates list of users with given input array
|
CreateUsersWithArrayInput 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCreateUsersWithArrayInputRequest
|
@return ApiCreateUsersWithArrayInputRequest
|
||||||
*/
|
*/
|
||||||
CreateUsersWithArrayInput(ctx context.Context) ApiCreateUsersWithArrayInputRequest
|
CreateUsersWithArrayInput(ctx context.Context) ApiCreateUsersWithArrayInputRequest
|
||||||
|
|
||||||
@ -49,8 +49,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
CreateUsersWithListInput Creates list of users with given input array
|
CreateUsersWithListInput 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCreateUsersWithListInputRequest
|
@return ApiCreateUsersWithListInputRequest
|
||||||
*/
|
*/
|
||||||
CreateUsersWithListInput(ctx context.Context) ApiCreateUsersWithListInputRequest
|
CreateUsersWithListInput(ctx context.Context) ApiCreateUsersWithListInputRequest
|
||||||
|
|
||||||
@ -62,9 +62,9 @@ type UserApi interface {
|
|||||||
|
|
||||||
This can only be done by the logged in 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 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
|
@param username The name that needs to be deleted
|
||||||
@return ApiDeleteUserRequest
|
@return ApiDeleteUserRequest
|
||||||
*/
|
*/
|
||||||
DeleteUser(ctx context.Context, username string) ApiDeleteUserRequest
|
DeleteUser(ctx context.Context, username string) ApiDeleteUserRequest
|
||||||
|
|
||||||
@ -74,9 +74,9 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
GetUserByName Get user by user name
|
GetUserByName Get user by user name
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@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.
|
@param username The name that needs to be fetched. Use user1 for testing.
|
||||||
@return ApiGetUserByNameRequest
|
@return ApiGetUserByNameRequest
|
||||||
*/
|
*/
|
||||||
GetUserByName(ctx context.Context, username string) ApiGetUserByNameRequest
|
GetUserByName(ctx context.Context, username string) ApiGetUserByNameRequest
|
||||||
|
|
||||||
@ -87,8 +87,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
LoginUser Logs user into the system
|
LoginUser Logs user into the system
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiLoginUserRequest
|
@return ApiLoginUserRequest
|
||||||
*/
|
*/
|
||||||
LoginUser(ctx context.Context) ApiLoginUserRequest
|
LoginUser(ctx context.Context) ApiLoginUserRequest
|
||||||
|
|
||||||
@ -99,8 +99,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
LogoutUser Logs out current logged in user session
|
LogoutUser 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().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiLogoutUserRequest
|
@return ApiLogoutUserRequest
|
||||||
*/
|
*/
|
||||||
LogoutUser(ctx context.Context) ApiLogoutUserRequest
|
LogoutUser(ctx context.Context) ApiLogoutUserRequest
|
||||||
|
|
||||||
@ -112,9 +112,9 @@ type UserApi interface {
|
|||||||
|
|
||||||
This can only be done by the logged in 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 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 username name that need to be deleted
|
||||||
@return ApiUpdateUserRequest
|
@return ApiUpdateUserRequest
|
||||||
*/
|
*/
|
||||||
UpdateUser(ctx context.Context, username string) ApiUpdateUserRequest
|
UpdateUser(ctx context.Context, username string) ApiUpdateUserRequest
|
||||||
|
|
||||||
@ -427,7 +427,6 @@ type ApiDeleteUserRequest struct {
|
|||||||
username string
|
username string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiDeleteUserRequest) Execute() (*http.Response, error) {
|
func (r ApiDeleteUserRequest) Execute() (*http.Response, error) {
|
||||||
return r.ApiService.DeleteUserExecute(r)
|
return r.ApiService.DeleteUserExecute(r)
|
||||||
}
|
}
|
||||||
@ -520,7 +519,6 @@ type ApiGetUserByNameRequest struct {
|
|||||||
username string
|
username string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetUserByNameRequest) Execute() (*User, *http.Response, error) {
|
func (r ApiGetUserByNameRequest) Execute() (*User, *http.Response, error) {
|
||||||
return r.ApiService.GetUserByNameExecute(r)
|
return r.ApiService.GetUserByNameExecute(r)
|
||||||
}
|
}
|
||||||
@ -628,6 +626,7 @@ func (r ApiLoginUserRequest) Username(username string) ApiLoginUserRequest {
|
|||||||
r.username = &username
|
r.username = &username
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// The password for login in clear text
|
// The password for login in clear text
|
||||||
func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest {
|
func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest {
|
||||||
r.password = &password
|
r.password = &password
|
||||||
@ -739,7 +738,6 @@ type ApiLogoutUserRequest struct {
|
|||||||
ApiService UserApi
|
ApiService UserApi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiLogoutUserRequest) Execute() (*http.Response, error) {
|
func (r ApiLogoutUserRequest) Execute() (*http.Response, error) {
|
||||||
return r.ApiService.LogoutUserExecute(r)
|
return r.ApiService.LogoutUserExecute(r)
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ func (o *Animal) GetClassName() string {
|
|||||||
// GetClassNameOk returns a tuple with the ClassName field value
|
// GetClassNameOk returns a tuple with the ClassName field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Animal) GetClassNameOk() (*string, bool) {
|
func (o *Animal) GetClassNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.ClassName, true
|
return &o.ClassName, true
|
||||||
|
@ -85,7 +85,7 @@ func (o *Category) GetName() string {
|
|||||||
// GetNameOk returns a tuple with the Name field value
|
// GetNameOk returns a tuple with the Name field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Category) GetNameOk() (*string, bool) {
|
func (o *Category) GetNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Name, true
|
return &o.Name, true
|
||||||
|
@ -86,7 +86,7 @@ func (o *EnumTest) GetEnumStringRequired() string {
|
|||||||
// GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field value
|
// GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool) {
|
func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.EnumStringRequired, true
|
return &o.EnumStringRequired, true
|
||||||
|
@ -164,7 +164,7 @@ func (o *FormatTest) GetNumber() float32 {
|
|||||||
// GetNumberOk returns a tuple with the Number field value
|
// GetNumberOk returns a tuple with the Number field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetNumberOk() (*float32, bool) {
|
func (o *FormatTest) GetNumberOk() (*float32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Number, true
|
return &o.Number, true
|
||||||
@ -284,7 +284,7 @@ func (o *FormatTest) GetByte() string {
|
|||||||
// GetByteOk returns a tuple with the Byte field value
|
// GetByteOk returns a tuple with the Byte field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetByteOk() (*string, bool) {
|
func (o *FormatTest) GetByteOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Byte, true
|
return &o.Byte, true
|
||||||
@ -340,7 +340,7 @@ func (o *FormatTest) GetDate() string {
|
|||||||
// GetDateOk returns a tuple with the Date field value
|
// GetDateOk returns a tuple with the Date field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetDateOk() (*string, bool) {
|
func (o *FormatTest) GetDateOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Date, true
|
return &o.Date, true
|
||||||
@ -428,7 +428,7 @@ func (o *FormatTest) GetPassword() string {
|
|||||||
// GetPasswordOk returns a tuple with the Password field value
|
// GetPasswordOk returns a tuple with the Password field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetPasswordOk() (*string, bool) {
|
func (o *FormatTest) GetPasswordOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Password, true
|
return &o.Password, true
|
||||||
|
@ -53,7 +53,7 @@ func (o *Name) GetName() int32 {
|
|||||||
// GetNameOk returns a tuple with the Name field value
|
// GetNameOk returns a tuple with the Name field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Name) GetNameOk() (*int32, bool) {
|
func (o *Name) GetNameOk() (*int32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Name, true
|
return &o.Name, true
|
||||||
|
@ -121,7 +121,7 @@ func (o *Pet) GetName() string {
|
|||||||
// GetNameOk returns a tuple with the Name field value
|
// GetNameOk returns a tuple with the Name field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Pet) GetNameOk() (*string, bool) {
|
func (o *Pet) GetNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Name, true
|
return &o.Name, true
|
||||||
@ -145,7 +145,7 @@ func (o *Pet) GetPhotoUrls() []string {
|
|||||||
// GetPhotoUrlsOk returns a tuple with the PhotoUrls field value
|
// GetPhotoUrlsOk returns a tuple with the PhotoUrls field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Pet) GetPhotoUrlsOk() ([]string, bool) {
|
func (o *Pet) GetPhotoUrlsOk() ([]string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.PhotoUrls, true
|
return o.PhotoUrls, true
|
||||||
|
@ -62,7 +62,7 @@ func (o *TypeHolderDefault) GetStringItem() string {
|
|||||||
// GetStringItemOk returns a tuple with the StringItem field value
|
// GetStringItemOk returns a tuple with the StringItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderDefault) GetStringItemOk() (*string, bool) {
|
func (o *TypeHolderDefault) GetStringItemOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.StringItem, true
|
return &o.StringItem, true
|
||||||
@ -86,7 +86,7 @@ func (o *TypeHolderDefault) GetNumberItem() float32 {
|
|||||||
// GetNumberItemOk returns a tuple with the NumberItem field value
|
// GetNumberItemOk returns a tuple with the NumberItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderDefault) GetNumberItemOk() (*float32, bool) {
|
func (o *TypeHolderDefault) GetNumberItemOk() (*float32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.NumberItem, true
|
return &o.NumberItem, true
|
||||||
@ -110,7 +110,7 @@ func (o *TypeHolderDefault) GetIntegerItem() int32 {
|
|||||||
// GetIntegerItemOk returns a tuple with the IntegerItem field value
|
// GetIntegerItemOk returns a tuple with the IntegerItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderDefault) GetIntegerItemOk() (*int32, bool) {
|
func (o *TypeHolderDefault) GetIntegerItemOk() (*int32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.IntegerItem, true
|
return &o.IntegerItem, true
|
||||||
@ -134,7 +134,7 @@ func (o *TypeHolderDefault) GetBoolItem() bool {
|
|||||||
// GetBoolItemOk returns a tuple with the BoolItem field value
|
// GetBoolItemOk returns a tuple with the BoolItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderDefault) GetBoolItemOk() (*bool, bool) {
|
func (o *TypeHolderDefault) GetBoolItemOk() (*bool, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.BoolItem, true
|
return &o.BoolItem, true
|
||||||
@ -158,7 +158,7 @@ func (o *TypeHolderDefault) GetArrayItem() []int32 {
|
|||||||
// GetArrayItemOk returns a tuple with the ArrayItem field value
|
// GetArrayItemOk returns a tuple with the ArrayItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderDefault) GetArrayItemOk() ([]int32, bool) {
|
func (o *TypeHolderDefault) GetArrayItemOk() ([]int32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.ArrayItem, true
|
return o.ArrayItem, true
|
||||||
|
@ -60,7 +60,7 @@ func (o *TypeHolderExample) GetStringItem() string {
|
|||||||
// GetStringItemOk returns a tuple with the StringItem field value
|
// GetStringItemOk returns a tuple with the StringItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderExample) GetStringItemOk() (*string, bool) {
|
func (o *TypeHolderExample) GetStringItemOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.StringItem, true
|
return &o.StringItem, true
|
||||||
@ -84,7 +84,7 @@ func (o *TypeHolderExample) GetNumberItem() float32 {
|
|||||||
// GetNumberItemOk returns a tuple with the NumberItem field value
|
// GetNumberItemOk returns a tuple with the NumberItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderExample) GetNumberItemOk() (*float32, bool) {
|
func (o *TypeHolderExample) GetNumberItemOk() (*float32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.NumberItem, true
|
return &o.NumberItem, true
|
||||||
@ -108,7 +108,7 @@ func (o *TypeHolderExample) GetFloatItem() float32 {
|
|||||||
// GetFloatItemOk returns a tuple with the FloatItem field value
|
// GetFloatItemOk returns a tuple with the FloatItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderExample) GetFloatItemOk() (*float32, bool) {
|
func (o *TypeHolderExample) GetFloatItemOk() (*float32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.FloatItem, true
|
return &o.FloatItem, true
|
||||||
@ -132,7 +132,7 @@ func (o *TypeHolderExample) GetIntegerItem() int32 {
|
|||||||
// GetIntegerItemOk returns a tuple with the IntegerItem field value
|
// GetIntegerItemOk returns a tuple with the IntegerItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderExample) GetIntegerItemOk() (*int32, bool) {
|
func (o *TypeHolderExample) GetIntegerItemOk() (*int32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.IntegerItem, true
|
return &o.IntegerItem, true
|
||||||
@ -156,7 +156,7 @@ func (o *TypeHolderExample) GetBoolItem() bool {
|
|||||||
// GetBoolItemOk returns a tuple with the BoolItem field value
|
// GetBoolItemOk returns a tuple with the BoolItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderExample) GetBoolItemOk() (*bool, bool) {
|
func (o *TypeHolderExample) GetBoolItemOk() (*bool, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.BoolItem, true
|
return &o.BoolItem, true
|
||||||
@ -180,7 +180,7 @@ func (o *TypeHolderExample) GetArrayItem() []int32 {
|
|||||||
// GetArrayItemOk returns a tuple with the ArrayItem field value
|
// GetArrayItemOk returns a tuple with the ArrayItem field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *TypeHolderExample) GetArrayItemOk() ([]int32, bool) {
|
func (o *TypeHolderExample) GetArrayItemOk() ([]int32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.ArrayItem, true
|
return o.ArrayItem, true
|
||||||
|
@ -27,7 +27,6 @@ type ApiAnyKeyRequest struct {
|
|||||||
ApiService *UsageApiService
|
ApiService *UsageApiService
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiAnyKeyRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
func (r ApiAnyKeyRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||||
return r.ApiService.AnyKeyExecute(r)
|
return r.ApiService.AnyKeyExecute(r)
|
||||||
}
|
}
|
||||||
@ -155,7 +154,6 @@ type ApiBothKeysRequest struct {
|
|||||||
ApiService *UsageApiService
|
ApiService *UsageApiService
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiBothKeysRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
func (r ApiBothKeysRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||||
return r.ApiService.BothKeysExecute(r)
|
return r.ApiService.BothKeysExecute(r)
|
||||||
}
|
}
|
||||||
@ -283,7 +281,6 @@ type ApiKeyInHeaderRequest struct {
|
|||||||
ApiService *UsageApiService
|
ApiService *UsageApiService
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiKeyInHeaderRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
func (r ApiKeyInHeaderRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||||
return r.ApiService.KeyInHeaderExecute(r)
|
return r.ApiService.KeyInHeaderExecute(r)
|
||||||
}
|
}
|
||||||
@ -397,7 +394,6 @@ type ApiKeyInQueryRequest struct {
|
|||||||
ApiService *UsageApiService
|
ApiService *UsageApiService
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiKeyInQueryRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
func (r ApiKeyInQueryRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||||
return r.ApiService.KeyInQueryExecute(r)
|
return r.ApiService.KeyInQueryExecute(r)
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,8 @@ type AnotherFakeApi interface {
|
|||||||
|
|
||||||
To test special tags and operation ID starting with number
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCall123TestSpecialTagsRequest
|
@return ApiCall123TestSpecialTagsRequest
|
||||||
*/
|
*/
|
||||||
Call123TestSpecialTags(ctx context.Context) ApiCall123TestSpecialTagsRequest
|
Call123TestSpecialTags(ctx context.Context) ApiCall123TestSpecialTagsRequest
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@ type DefaultApi interface {
|
|||||||
/*
|
/*
|
||||||
FooGet Method for FooGet
|
FooGet Method for FooGet
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFooGetRequest
|
@return ApiFooGetRequest
|
||||||
*/
|
*/
|
||||||
FooGet(ctx context.Context) ApiFooGetRequest
|
FooGet(ctx context.Context) ApiFooGetRequest
|
||||||
|
|
||||||
@ -42,7 +42,6 @@ type ApiFooGetRequest struct {
|
|||||||
ApiService DefaultApi
|
ApiService DefaultApi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiFooGetRequest) Execute() (*InlineResponseDefault, *http.Response, error) {
|
func (r ApiFooGetRequest) Execute() (*InlineResponseDefault, *http.Response, error) {
|
||||||
return r.ApiService.FooGetExecute(r)
|
return r.ApiService.FooGetExecute(r)
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ type FakeApi interface {
|
|||||||
/*
|
/*
|
||||||
FakeHealthGet Health check endpoint
|
FakeHealthGet Health check endpoint
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeHealthGetRequest
|
@return ApiFakeHealthGetRequest
|
||||||
*/
|
*/
|
||||||
FakeHealthGet(ctx context.Context) ApiFakeHealthGetRequest
|
FakeHealthGet(ctx context.Context) ApiFakeHealthGetRequest
|
||||||
|
|
||||||
@ -41,8 +41,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of outer boolean types
|
Test serialization of outer boolean types
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterBooleanSerializeRequest
|
@return ApiFakeOuterBooleanSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterBooleanSerialize(ctx context.Context) ApiFakeOuterBooleanSerializeRequest
|
FakeOuterBooleanSerialize(ctx context.Context) ApiFakeOuterBooleanSerializeRequest
|
||||||
|
|
||||||
@ -55,8 +55,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of object with outer number type
|
Test serialization of object with outer number type
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterCompositeSerializeRequest
|
@return ApiFakeOuterCompositeSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterCompositeSerialize(ctx context.Context) ApiFakeOuterCompositeSerializeRequest
|
FakeOuterCompositeSerialize(ctx context.Context) ApiFakeOuterCompositeSerializeRequest
|
||||||
|
|
||||||
@ -69,8 +69,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of outer number types
|
Test serialization of outer number types
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterNumberSerializeRequest
|
@return ApiFakeOuterNumberSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterNumberSerialize(ctx context.Context) ApiFakeOuterNumberSerializeRequest
|
FakeOuterNumberSerialize(ctx context.Context) ApiFakeOuterNumberSerializeRequest
|
||||||
|
|
||||||
@ -83,8 +83,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Test serialization of outer string types
|
Test serialization of outer string types
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFakeOuterStringSerializeRequest
|
@return ApiFakeOuterStringSerializeRequest
|
||||||
*/
|
*/
|
||||||
FakeOuterStringSerialize(ctx context.Context) ApiFakeOuterStringSerializeRequest
|
FakeOuterStringSerialize(ctx context.Context) ApiFakeOuterStringSerializeRequest
|
||||||
|
|
||||||
@ -97,8 +97,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
For this test, the body for this request much reference a schema named `File`.
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestBodyWithFileSchemaRequest
|
@return ApiTestBodyWithFileSchemaRequest
|
||||||
*/
|
*/
|
||||||
TestBodyWithFileSchema(ctx context.Context) ApiTestBodyWithFileSchemaRequest
|
TestBodyWithFileSchema(ctx context.Context) ApiTestBodyWithFileSchemaRequest
|
||||||
|
|
||||||
@ -108,8 +108,8 @@ type FakeApi interface {
|
|||||||
/*
|
/*
|
||||||
TestBodyWithQueryParams Method for TestBodyWithQueryParams
|
TestBodyWithQueryParams Method for TestBodyWithQueryParams
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestBodyWithQueryParamsRequest
|
@return ApiTestBodyWithQueryParamsRequest
|
||||||
*/
|
*/
|
||||||
TestBodyWithQueryParams(ctx context.Context) ApiTestBodyWithQueryParamsRequest
|
TestBodyWithQueryParams(ctx context.Context) ApiTestBodyWithQueryParamsRequest
|
||||||
|
|
||||||
@ -121,8 +121,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestClientModelRequest
|
@return ApiTestClientModelRequest
|
||||||
*/
|
*/
|
||||||
TestClientModel(ctx context.Context) ApiTestClientModelRequest
|
TestClientModel(ctx context.Context) ApiTestClientModelRequest
|
||||||
|
|
||||||
@ -139,8 +139,8 @@ type FakeApi interface {
|
|||||||
가짜 엔드 포인트
|
가짜 엔드 포인트
|
||||||
|
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestEndpointParametersRequest
|
@return ApiTestEndpointParametersRequest
|
||||||
*/
|
*/
|
||||||
TestEndpointParameters(ctx context.Context) ApiTestEndpointParametersRequest
|
TestEndpointParameters(ctx context.Context) ApiTestEndpointParametersRequest
|
||||||
|
|
||||||
@ -152,8 +152,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestEnumParametersRequest
|
@return ApiTestEnumParametersRequest
|
||||||
*/
|
*/
|
||||||
TestEnumParameters(ctx context.Context) ApiTestEnumParametersRequest
|
TestEnumParameters(ctx context.Context) ApiTestEnumParametersRequest
|
||||||
|
|
||||||
@ -165,8 +165,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
Fake endpoint to test group parameters (optional)
|
Fake endpoint to test group parameters (optional)
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestGroupParametersRequest
|
@return ApiTestGroupParametersRequest
|
||||||
*/
|
*/
|
||||||
TestGroupParameters(ctx context.Context) ApiTestGroupParametersRequest
|
TestGroupParameters(ctx context.Context) ApiTestGroupParametersRequest
|
||||||
|
|
||||||
@ -176,8 +176,8 @@ type FakeApi interface {
|
|||||||
/*
|
/*
|
||||||
TestInlineAdditionalProperties test inline additionalProperties
|
TestInlineAdditionalProperties test inline additionalProperties
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestInlineAdditionalPropertiesRequest
|
@return ApiTestInlineAdditionalPropertiesRequest
|
||||||
*/
|
*/
|
||||||
TestInlineAdditionalProperties(ctx context.Context) ApiTestInlineAdditionalPropertiesRequest
|
TestInlineAdditionalProperties(ctx context.Context) ApiTestInlineAdditionalPropertiesRequest
|
||||||
|
|
||||||
@ -187,8 +187,8 @@ type FakeApi interface {
|
|||||||
/*
|
/*
|
||||||
TestJsonFormData test json serialization of form data
|
TestJsonFormData 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestJsonFormDataRequest
|
@return ApiTestJsonFormDataRequest
|
||||||
*/
|
*/
|
||||||
TestJsonFormData(ctx context.Context) ApiTestJsonFormDataRequest
|
TestJsonFormData(ctx context.Context) ApiTestJsonFormDataRequest
|
||||||
|
|
||||||
@ -200,8 +200,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
To test the collection format in query parameters
|
To test the collection format in query parameters
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestQueryParameterCollectionFormatRequest
|
@return ApiTestQueryParameterCollectionFormatRequest
|
||||||
*/
|
*/
|
||||||
TestQueryParameterCollectionFormat(ctx context.Context) ApiTestQueryParameterCollectionFormatRequest
|
TestQueryParameterCollectionFormat(ctx context.Context) ApiTestQueryParameterCollectionFormatRequest
|
||||||
|
|
||||||
@ -213,8 +213,8 @@ type FakeApi interface {
|
|||||||
|
|
||||||
To test unique items in header and query parameters
|
To test unique items in header and query parameters
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest
|
@return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest
|
||||||
*/
|
*/
|
||||||
TestUniqueItemsHeaderAndQueryParameterCollectionFormat(ctx context.Context) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest
|
TestUniqueItemsHeaderAndQueryParameterCollectionFormat(ctx context.Context) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest
|
||||||
|
|
||||||
@ -231,7 +231,6 @@ type ApiFakeHealthGetRequest struct {
|
|||||||
ApiService FakeApi
|
ApiService FakeApi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiFakeHealthGetRequest) Execute() (*HealthCheckResult, *http.Response, error) {
|
func (r ApiFakeHealthGetRequest) Execute() (*HealthCheckResult, *http.Response, error) {
|
||||||
return r.ApiService.FakeHealthGetExecute(r)
|
return r.ApiService.FakeHealthGetExecute(r)
|
||||||
}
|
}
|
||||||
@ -866,6 +865,7 @@ func (r ApiTestBodyWithQueryParamsRequest) Query(query string) ApiTestBodyWithQu
|
|||||||
r.query = &query
|
r.query = &query
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestBodyWithQueryParamsRequest) User(user User) ApiTestBodyWithQueryParamsRequest {
|
func (r ApiTestBodyWithQueryParamsRequest) User(user User) ApiTestBodyWithQueryParamsRequest {
|
||||||
r.user = &user
|
r.user = &user
|
||||||
return r
|
return r
|
||||||
@ -1096,66 +1096,79 @@ func (r ApiTestEndpointParametersRequest) Number(number float32) ApiTestEndpoint
|
|||||||
r.number = &number
|
r.number = &number
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest {
|
||||||
r.double = &double
|
r.double = &double
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest {
|
||||||
r.patternWithoutDelimiter = &patternWithoutDelimiter
|
r.patternWithoutDelimiter = &patternWithoutDelimiter
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest {
|
||||||
r.byte_ = &byte_
|
r.byte_ = &byte_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest {
|
||||||
r.integer = &integer
|
r.integer = &integer
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest {
|
||||||
r.int32_ = &int32_
|
r.int32_ = &int32_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest {
|
||||||
r.int64_ = &int64_
|
r.int64_ = &int64_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest {
|
||||||
r.float = &float
|
r.float = &float
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest {
|
||||||
r.string_ = &string_
|
r.string_ = &string_
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest {
|
||||||
r.binary = &binary
|
r.binary = &binary
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest {
|
||||||
r.date = &date
|
r.date = &date
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest {
|
||||||
r.dateTime = &dateTime
|
r.dateTime = &dateTime
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest {
|
||||||
r.password = &password
|
r.password = &password
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// None
|
// None
|
||||||
func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest {
|
func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest {
|
||||||
r.callback = &callback
|
r.callback = &callback
|
||||||
@ -1339,36 +1352,43 @@ func (r ApiTestEnumParametersRequest) EnumHeaderStringArray(enumHeaderStringArra
|
|||||||
r.enumHeaderStringArray = &enumHeaderStringArray
|
r.enumHeaderStringArray = &enumHeaderStringArray
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Header parameter enum test (string)
|
// Header parameter enum test (string)
|
||||||
func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest {
|
||||||
r.enumHeaderString = &enumHeaderString
|
r.enumHeaderString = &enumHeaderString
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (string array)
|
// Query parameter enum test (string array)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryStringArray = &enumQueryStringArray
|
r.enumQueryStringArray = &enumQueryStringArray
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (string)
|
// Query parameter enum test (string)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryString = &enumQueryString
|
r.enumQueryString = &enumQueryString
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (double)
|
// Query parameter enum test (double)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryInteger = &enumQueryInteger
|
r.enumQueryInteger = &enumQueryInteger
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Query parameter enum test (double)
|
// Query parameter enum test (double)
|
||||||
func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest {
|
||||||
r.enumQueryDouble = &enumQueryDouble
|
r.enumQueryDouble = &enumQueryDouble
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Form parameter enum test (string array)
|
// Form parameter enum test (string array)
|
||||||
func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest {
|
||||||
r.enumFormStringArray = &enumFormStringArray
|
r.enumFormStringArray = &enumFormStringArray
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Form parameter enum test (string)
|
// Form parameter enum test (string)
|
||||||
func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest {
|
func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest {
|
||||||
r.enumFormString = &enumFormString
|
r.enumFormString = &enumFormString
|
||||||
@ -1506,26 +1526,31 @@ func (r ApiTestGroupParametersRequest) RequiredStringGroup(requiredStringGroup i
|
|||||||
r.requiredStringGroup = &requiredStringGroup
|
r.requiredStringGroup = &requiredStringGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Required Boolean in group parameters
|
// Required Boolean in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest {
|
||||||
r.requiredBooleanGroup = &requiredBooleanGroup
|
r.requiredBooleanGroup = &requiredBooleanGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Required Integer in group parameters
|
// Required Integer in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest {
|
||||||
r.requiredInt64Group = &requiredInt64Group
|
r.requiredInt64Group = &requiredInt64Group
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// String in group parameters
|
// String in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest {
|
||||||
r.stringGroup = &stringGroup
|
r.stringGroup = &stringGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Boolean in group parameters
|
// Boolean in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest {
|
||||||
r.booleanGroup = &booleanGroup
|
r.booleanGroup = &booleanGroup
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Integer in group parameters
|
// Integer in group parameters
|
||||||
func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest {
|
func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest {
|
||||||
r.int64Group = &int64Group
|
r.int64Group = &int64Group
|
||||||
@ -1746,6 +1771,7 @@ func (r ApiTestJsonFormDataRequest) Param(param string) ApiTestJsonFormDataReque
|
|||||||
r.param = ¶m
|
r.param = ¶m
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// field2
|
// field2
|
||||||
func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest {
|
func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest {
|
||||||
r.param2 = ¶m2
|
r.param2 = ¶m2
|
||||||
@ -1855,18 +1881,22 @@ func (r ApiTestQueryParameterCollectionFormatRequest) Pipe(pipe []string) ApiTes
|
|||||||
r.pipe = &pipe
|
r.pipe = &pipe
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Ioutil(ioutil []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Ioutil(ioutil []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.ioutil = &ioutil
|
r.ioutil = &ioutil
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Http(http []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Http(http []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.http = &http
|
r.http = &http
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Url(url []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Url(url []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.url = &url
|
r.url = &url
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestQueryParameterCollectionFormatRequest) Context(context []string) ApiTestQueryParameterCollectionFormatRequest {
|
func (r ApiTestQueryParameterCollectionFormatRequest) Context(context []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||||
r.context = &context
|
r.context = &context
|
||||||
return r
|
return r
|
||||||
@ -2006,6 +2036,7 @@ func (r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) QueryU
|
|||||||
r.queryUnique = &queryUnique
|
r.queryUnique = &queryUnique
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) HeaderUnique(headerUnique []string) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest {
|
func (r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) HeaderUnique(headerUnique []string) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest {
|
||||||
r.headerUnique = &headerUnique
|
r.headerUnique = &headerUnique
|
||||||
return r
|
return r
|
||||||
|
@ -26,8 +26,8 @@ type FakeClassnameTags123Api interface {
|
|||||||
|
|
||||||
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiTestClassnameRequest
|
@return ApiTestClassnameRequest
|
||||||
*/
|
*/
|
||||||
TestClassname(ctx context.Context) ApiTestClassnameRequest
|
TestClassname(ctx context.Context) ApiTestClassnameRequest
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
AddPet Add a new pet to the store
|
AddPet 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiAddPetRequest
|
@return ApiAddPetRequest
|
||||||
*/
|
*/
|
||||||
AddPet(ctx context.Context) ApiAddPetRequest
|
AddPet(ctx context.Context) ApiAddPetRequest
|
||||||
|
|
||||||
@ -37,9 +37,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
DeletePet Deletes a pet
|
DeletePet Deletes a pet
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId Pet id to delete
|
@param petId Pet id to delete
|
||||||
@return ApiDeletePetRequest
|
@return ApiDeletePetRequest
|
||||||
*/
|
*/
|
||||||
DeletePet(ctx context.Context, petId int64) ApiDeletePetRequest
|
DeletePet(ctx context.Context, petId int64) ApiDeletePetRequest
|
||||||
|
|
||||||
@ -51,8 +51,8 @@ type PetApi interface {
|
|||||||
|
|
||||||
Multiple status values can be provided with comma separated strings
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFindPetsByStatusRequest
|
@return ApiFindPetsByStatusRequest
|
||||||
*/
|
*/
|
||||||
FindPetsByStatus(ctx context.Context) ApiFindPetsByStatusRequest
|
FindPetsByStatus(ctx context.Context) ApiFindPetsByStatusRequest
|
||||||
|
|
||||||
@ -65,8 +65,8 @@ type PetApi interface {
|
|||||||
|
|
||||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiFindPetsByTagsRequest
|
@return ApiFindPetsByTagsRequest
|
||||||
|
|
||||||
Deprecated
|
Deprecated
|
||||||
*/
|
*/
|
||||||
@ -82,9 +82,9 @@ type PetApi interface {
|
|||||||
|
|
||||||
Returns a single pet
|
Returns a single pet
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@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
|
@param petId ID of pet to return
|
||||||
@return ApiGetPetByIdRequest
|
@return ApiGetPetByIdRequest
|
||||||
*/
|
*/
|
||||||
GetPetById(ctx context.Context, petId int64) ApiGetPetByIdRequest
|
GetPetById(ctx context.Context, petId int64) ApiGetPetByIdRequest
|
||||||
|
|
||||||
@ -95,8 +95,8 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UpdatePet Update an existing pet
|
UpdatePet Update an existing pet
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiUpdatePetRequest
|
@return ApiUpdatePetRequest
|
||||||
*/
|
*/
|
||||||
UpdatePet(ctx context.Context) ApiUpdatePetRequest
|
UpdatePet(ctx context.Context) ApiUpdatePetRequest
|
||||||
|
|
||||||
@ -106,9 +106,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UpdatePetWithForm Updates a pet in the store with form data
|
UpdatePetWithForm Updates a pet in the store with form data
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId ID of pet that needs to be updated
|
@param petId ID of pet that needs to be updated
|
||||||
@return ApiUpdatePetWithFormRequest
|
@return ApiUpdatePetWithFormRequest
|
||||||
*/
|
*/
|
||||||
UpdatePetWithForm(ctx context.Context, petId int64) ApiUpdatePetWithFormRequest
|
UpdatePetWithForm(ctx context.Context, petId int64) ApiUpdatePetWithFormRequest
|
||||||
|
|
||||||
@ -118,9 +118,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UploadFile uploads an image
|
UploadFile uploads an image
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId ID of pet to update
|
@param petId ID of pet to update
|
||||||
@return ApiUploadFileRequest
|
@return ApiUploadFileRequest
|
||||||
*/
|
*/
|
||||||
UploadFile(ctx context.Context, petId int64) ApiUploadFileRequest
|
UploadFile(ctx context.Context, petId int64) ApiUploadFileRequest
|
||||||
|
|
||||||
@ -131,9 +131,9 @@ type PetApi interface {
|
|||||||
/*
|
/*
|
||||||
UploadFileWithRequiredFile uploads an image (required)
|
UploadFileWithRequiredFile uploads an image (required)
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@param petId ID of pet to update
|
@param petId ID of pet to update
|
||||||
@return ApiUploadFileWithRequiredFileRequest
|
@return ApiUploadFileWithRequiredFileRequest
|
||||||
*/
|
*/
|
||||||
UploadFileWithRequiredFile(ctx context.Context, petId int64) ApiUploadFileWithRequiredFileRequest
|
UploadFileWithRequiredFile(ctx context.Context, petId int64) ApiUploadFileWithRequiredFileRequest
|
||||||
|
|
||||||
@ -572,7 +572,6 @@ type ApiGetPetByIdRequest struct {
|
|||||||
petId int64
|
petId int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetPetByIdRequest) Execute() (*Pet, *http.Response, error) {
|
func (r ApiGetPetByIdRequest) Execute() (*Pet, *http.Response, error) {
|
||||||
return r.ApiService.GetPetByIdExecute(r)
|
return r.ApiService.GetPetByIdExecute(r)
|
||||||
}
|
}
|
||||||
@ -795,6 +794,7 @@ func (r ApiUpdatePetWithFormRequest) Name(name string) ApiUpdatePetWithFormReque
|
|||||||
r.name = &name
|
r.name = &name
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Updated status of the pet
|
// Updated status of the pet
|
||||||
func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest {
|
func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest {
|
||||||
r.status = &status
|
r.status = &status
|
||||||
@ -904,6 +904,7 @@ func (r ApiUploadFileRequest) AdditionalMetadata(additionalMetadata string) ApiU
|
|||||||
r.additionalMetadata = &additionalMetadata
|
r.additionalMetadata = &additionalMetadata
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// file to upload
|
// file to upload
|
||||||
func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest {
|
func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest {
|
||||||
r.file = &file
|
r.file = &file
|
||||||
@ -1038,6 +1039,7 @@ func (r ApiUploadFileWithRequiredFileRequest) RequiredFile(requiredFile *os.File
|
|||||||
r.requiredFile = &requiredFile
|
r.requiredFile = &requiredFile
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Additional data to pass to server
|
// Additional data to pass to server
|
||||||
func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest {
|
func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest {
|
||||||
r.additionalMetadata = &additionalMetadata
|
r.additionalMetadata = &additionalMetadata
|
||||||
|
@ -27,9 +27,9 @@ type StoreApi interface {
|
|||||||
|
|
||||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
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 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
|
@param orderId ID of the order that needs to be deleted
|
||||||
@return ApiDeleteOrderRequest
|
@return ApiDeleteOrderRequest
|
||||||
*/
|
*/
|
||||||
DeleteOrder(ctx context.Context, orderId string) ApiDeleteOrderRequest
|
DeleteOrder(ctx context.Context, orderId string) ApiDeleteOrderRequest
|
||||||
|
|
||||||
@ -41,8 +41,8 @@ type StoreApi interface {
|
|||||||
|
|
||||||
Returns a map of status codes to quantities
|
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().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiGetInventoryRequest
|
@return ApiGetInventoryRequest
|
||||||
*/
|
*/
|
||||||
GetInventory(ctx context.Context) ApiGetInventoryRequest
|
GetInventory(ctx context.Context) ApiGetInventoryRequest
|
||||||
|
|
||||||
@ -55,9 +55,9 @@ type StoreApi interface {
|
|||||||
|
|
||||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
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 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
|
@param orderId ID of pet that needs to be fetched
|
||||||
@return ApiGetOrderByIdRequest
|
@return ApiGetOrderByIdRequest
|
||||||
*/
|
*/
|
||||||
GetOrderById(ctx context.Context, orderId int64) ApiGetOrderByIdRequest
|
GetOrderById(ctx context.Context, orderId int64) ApiGetOrderByIdRequest
|
||||||
|
|
||||||
@ -68,8 +68,8 @@ type StoreApi interface {
|
|||||||
/*
|
/*
|
||||||
PlaceOrder Place an order for a pet
|
PlaceOrder 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiPlaceOrderRequest
|
@return ApiPlaceOrderRequest
|
||||||
*/
|
*/
|
||||||
PlaceOrder(ctx context.Context) ApiPlaceOrderRequest
|
PlaceOrder(ctx context.Context) ApiPlaceOrderRequest
|
||||||
|
|
||||||
@ -87,7 +87,6 @@ type ApiDeleteOrderRequest struct {
|
|||||||
orderId string
|
orderId string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiDeleteOrderRequest) Execute() (*http.Response, error) {
|
func (r ApiDeleteOrderRequest) Execute() (*http.Response, error) {
|
||||||
return r.ApiService.DeleteOrderExecute(r)
|
return r.ApiService.DeleteOrderExecute(r)
|
||||||
}
|
}
|
||||||
@ -179,7 +178,6 @@ type ApiGetInventoryRequest struct {
|
|||||||
ApiService StoreApi
|
ApiService StoreApi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetInventoryRequest) Execute() (map[string]int32, *http.Response, error) {
|
func (r ApiGetInventoryRequest) Execute() (map[string]int32, *http.Response, error) {
|
||||||
return r.ApiService.GetInventoryExecute(r)
|
return r.ApiService.GetInventoryExecute(r)
|
||||||
}
|
}
|
||||||
@ -294,7 +292,6 @@ type ApiGetOrderByIdRequest struct {
|
|||||||
orderId int64
|
orderId int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetOrderByIdRequest) Execute() (*Order, *http.Response, error) {
|
func (r ApiGetOrderByIdRequest) Execute() (*Order, *http.Response, error) {
|
||||||
return r.ApiService.GetOrderByIdExecute(r)
|
return r.ApiService.GetOrderByIdExecute(r)
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ type UserApi interface {
|
|||||||
|
|
||||||
This can only be done by the logged in 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCreateUserRequest
|
@return ApiCreateUserRequest
|
||||||
*/
|
*/
|
||||||
CreateUser(ctx context.Context) ApiCreateUserRequest
|
CreateUser(ctx context.Context) ApiCreateUserRequest
|
||||||
|
|
||||||
@ -38,8 +38,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
CreateUsersWithArrayInput Creates list of users with given input array
|
CreateUsersWithArrayInput 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCreateUsersWithArrayInputRequest
|
@return ApiCreateUsersWithArrayInputRequest
|
||||||
*/
|
*/
|
||||||
CreateUsersWithArrayInput(ctx context.Context) ApiCreateUsersWithArrayInputRequest
|
CreateUsersWithArrayInput(ctx context.Context) ApiCreateUsersWithArrayInputRequest
|
||||||
|
|
||||||
@ -49,8 +49,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
CreateUsersWithListInput Creates list of users with given input array
|
CreateUsersWithListInput 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 ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiCreateUsersWithListInputRequest
|
@return ApiCreateUsersWithListInputRequest
|
||||||
*/
|
*/
|
||||||
CreateUsersWithListInput(ctx context.Context) ApiCreateUsersWithListInputRequest
|
CreateUsersWithListInput(ctx context.Context) ApiCreateUsersWithListInputRequest
|
||||||
|
|
||||||
@ -62,9 +62,9 @@ type UserApi interface {
|
|||||||
|
|
||||||
This can only be done by the logged in 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 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
|
@param username The name that needs to be deleted
|
||||||
@return ApiDeleteUserRequest
|
@return ApiDeleteUserRequest
|
||||||
*/
|
*/
|
||||||
DeleteUser(ctx context.Context, username string) ApiDeleteUserRequest
|
DeleteUser(ctx context.Context, username string) ApiDeleteUserRequest
|
||||||
|
|
||||||
@ -74,9 +74,9 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
GetUserByName Get user by user name
|
GetUserByName Get user by user name
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@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.
|
@param username The name that needs to be fetched. Use user1 for testing.
|
||||||
@return ApiGetUserByNameRequest
|
@return ApiGetUserByNameRequest
|
||||||
*/
|
*/
|
||||||
GetUserByName(ctx context.Context, username string) ApiGetUserByNameRequest
|
GetUserByName(ctx context.Context, username string) ApiGetUserByNameRequest
|
||||||
|
|
||||||
@ -87,8 +87,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
LoginUser Logs user into the system
|
LoginUser Logs user into the system
|
||||||
|
|
||||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiLoginUserRequest
|
@return ApiLoginUserRequest
|
||||||
*/
|
*/
|
||||||
LoginUser(ctx context.Context) ApiLoginUserRequest
|
LoginUser(ctx context.Context) ApiLoginUserRequest
|
||||||
|
|
||||||
@ -99,8 +99,8 @@ type UserApi interface {
|
|||||||
/*
|
/*
|
||||||
LogoutUser Logs out current logged in user session
|
LogoutUser 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().
|
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||||
@return ApiLogoutUserRequest
|
@return ApiLogoutUserRequest
|
||||||
*/
|
*/
|
||||||
LogoutUser(ctx context.Context) ApiLogoutUserRequest
|
LogoutUser(ctx context.Context) ApiLogoutUserRequest
|
||||||
|
|
||||||
@ -112,9 +112,9 @@ type UserApi interface {
|
|||||||
|
|
||||||
This can only be done by the logged in 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 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 username name that need to be deleted
|
||||||
@return ApiUpdateUserRequest
|
@return ApiUpdateUserRequest
|
||||||
*/
|
*/
|
||||||
UpdateUser(ctx context.Context, username string) ApiUpdateUserRequest
|
UpdateUser(ctx context.Context, username string) ApiUpdateUserRequest
|
||||||
|
|
||||||
@ -427,7 +427,6 @@ type ApiDeleteUserRequest struct {
|
|||||||
username string
|
username string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiDeleteUserRequest) Execute() (*http.Response, error) {
|
func (r ApiDeleteUserRequest) Execute() (*http.Response, error) {
|
||||||
return r.ApiService.DeleteUserExecute(r)
|
return r.ApiService.DeleteUserExecute(r)
|
||||||
}
|
}
|
||||||
@ -520,7 +519,6 @@ type ApiGetUserByNameRequest struct {
|
|||||||
username string
|
username string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiGetUserByNameRequest) Execute() (*User, *http.Response, error) {
|
func (r ApiGetUserByNameRequest) Execute() (*User, *http.Response, error) {
|
||||||
return r.ApiService.GetUserByNameExecute(r)
|
return r.ApiService.GetUserByNameExecute(r)
|
||||||
}
|
}
|
||||||
@ -628,6 +626,7 @@ func (r ApiLoginUserRequest) Username(username string) ApiLoginUserRequest {
|
|||||||
r.username = &username
|
r.username = &username
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// The password for login in clear text
|
// The password for login in clear text
|
||||||
func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest {
|
func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest {
|
||||||
r.password = &password
|
r.password = &password
|
||||||
@ -739,7 +738,6 @@ type ApiLogoutUserRequest struct {
|
|||||||
ApiService UserApi
|
ApiService UserApi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (r ApiLogoutUserRequest) Execute() (*http.Response, error) {
|
func (r ApiLogoutUserRequest) Execute() (*http.Response, error) {
|
||||||
return r.ApiService.LogoutUserExecute(r)
|
return r.ApiService.LogoutUserExecute(r)
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ func (o *Animal) GetClassName() string {
|
|||||||
// GetClassNameOk returns a tuple with the ClassName field value
|
// GetClassNameOk returns a tuple with the ClassName field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Animal) GetClassNameOk() (*string, bool) {
|
func (o *Animal) GetClassNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.ClassName, true
|
return &o.ClassName, true
|
||||||
|
@ -54,7 +54,7 @@ func (o *AppleReq) GetCultivar() string {
|
|||||||
// GetCultivarOk returns a tuple with the Cultivar field value
|
// GetCultivarOk returns a tuple with the Cultivar field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *AppleReq) GetCultivarOk() (*string, bool) {
|
func (o *AppleReq) GetCultivarOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Cultivar, true
|
return &o.Cultivar, true
|
||||||
|
@ -54,7 +54,7 @@ func (o *BananaReq) GetLengthCm() float32 {
|
|||||||
// GetLengthCmOk returns a tuple with the LengthCm field value
|
// GetLengthCmOk returns a tuple with the LengthCm field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *BananaReq) GetLengthCmOk() (*float32, bool) {
|
func (o *BananaReq) GetLengthCmOk() (*float32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.LengthCm, true
|
return &o.LengthCm, true
|
||||||
|
@ -88,7 +88,7 @@ func (o *Category) GetName() string {
|
|||||||
// GetNameOk returns a tuple with the Name field value
|
// GetNameOk returns a tuple with the Name field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Category) GetNameOk() (*string, bool) {
|
func (o *Category) GetNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Name, true
|
return &o.Name, true
|
||||||
|
@ -100,7 +100,7 @@ func (o *EnumTest) GetEnumStringRequired() string {
|
|||||||
// GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field value
|
// GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool) {
|
func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.EnumStringRequired, true
|
return &o.EnumStringRequired, true
|
||||||
@ -188,7 +188,7 @@ func (o *EnumTest) GetOuterEnum() OuterEnum {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *EnumTest) GetOuterEnumOk() (*OuterEnum, bool) {
|
func (o *EnumTest) GetOuterEnumOk() (*OuterEnum, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.OuterEnum.Get(), o.OuterEnum.IsSet()
|
return o.OuterEnum.Get(), o.OuterEnum.IsSet()
|
||||||
|
@ -170,7 +170,7 @@ func (o *FormatTest) GetNumber() float32 {
|
|||||||
// GetNumberOk returns a tuple with the Number field value
|
// GetNumberOk returns a tuple with the Number field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetNumberOk() (*float32, bool) {
|
func (o *FormatTest) GetNumberOk() (*float32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Number, true
|
return &o.Number, true
|
||||||
@ -290,7 +290,7 @@ func (o *FormatTest) GetByte() string {
|
|||||||
// GetByteOk returns a tuple with the Byte field value
|
// GetByteOk returns a tuple with the Byte field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetByteOk() (*string, bool) {
|
func (o *FormatTest) GetByteOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Byte, true
|
return &o.Byte, true
|
||||||
@ -346,7 +346,7 @@ func (o *FormatTest) GetDate() string {
|
|||||||
// GetDateOk returns a tuple with the Date field value
|
// GetDateOk returns a tuple with the Date field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetDateOk() (*string, bool) {
|
func (o *FormatTest) GetDateOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Date, true
|
return &o.Date, true
|
||||||
@ -434,7 +434,7 @@ func (o *FormatTest) GetPassword() string {
|
|||||||
// GetPasswordOk returns a tuple with the Password field value
|
// GetPasswordOk returns a tuple with the Password field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *FormatTest) GetPasswordOk() (*string, bool) {
|
func (o *FormatTest) GetPasswordOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Password, true
|
return &o.Password, true
|
||||||
|
@ -52,7 +52,7 @@ func (o *HealthCheckResult) GetNullableMessage() string {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *HealthCheckResult) GetNullableMessageOk() (*string, bool) {
|
func (o *HealthCheckResult) GetNullableMessageOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.NullableMessage.Get(), o.NullableMessage.IsSet()
|
return o.NullableMessage.Get(), o.NullableMessage.IsSet()
|
||||||
|
@ -56,7 +56,7 @@ func (o *Name) GetName() int32 {
|
|||||||
// GetNameOk returns a tuple with the Name field value
|
// GetNameOk returns a tuple with the Name field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Name) GetNameOk() (*int32, bool) {
|
func (o *Name) GetNameOk() (*int32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Name, true
|
return &o.Name, true
|
||||||
|
@ -65,7 +65,7 @@ func (o *NullableClass) GetIntegerProp() int32 {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *NullableClass) GetIntegerPropOk() (*int32, bool) {
|
func (o *NullableClass) GetIntegerPropOk() (*int32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.IntegerProp.Get(), o.IntegerProp.IsSet()
|
return o.IntegerProp.Get(), o.IntegerProp.IsSet()
|
||||||
@ -107,7 +107,7 @@ func (o *NullableClass) GetNumberProp() float32 {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *NullableClass) GetNumberPropOk() (*float32, bool) {
|
func (o *NullableClass) GetNumberPropOk() (*float32, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.NumberProp.Get(), o.NumberProp.IsSet()
|
return o.NumberProp.Get(), o.NumberProp.IsSet()
|
||||||
@ -149,7 +149,7 @@ func (o *NullableClass) GetBooleanProp() bool {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *NullableClass) GetBooleanPropOk() (*bool, bool) {
|
func (o *NullableClass) GetBooleanPropOk() (*bool, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.BooleanProp.Get(), o.BooleanProp.IsSet()
|
return o.BooleanProp.Get(), o.BooleanProp.IsSet()
|
||||||
@ -191,7 +191,7 @@ func (o *NullableClass) GetStringProp() string {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *NullableClass) GetStringPropOk() (*string, bool) {
|
func (o *NullableClass) GetStringPropOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.StringProp.Get(), o.StringProp.IsSet()
|
return o.StringProp.Get(), o.StringProp.IsSet()
|
||||||
@ -233,7 +233,7 @@ func (o *NullableClass) GetDateProp() string {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *NullableClass) GetDatePropOk() (*string, bool) {
|
func (o *NullableClass) GetDatePropOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.DateProp.Get(), o.DateProp.IsSet()
|
return o.DateProp.Get(), o.DateProp.IsSet()
|
||||||
@ -275,7 +275,7 @@ func (o *NullableClass) GetDatetimeProp() time.Time {
|
|||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||||
func (o *NullableClass) GetDatetimePropOk() (*time.Time, bool) {
|
func (o *NullableClass) GetDatetimePropOk() (*time.Time, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.DatetimeProp.Get(), o.DatetimeProp.IsSet()
|
return o.DatetimeProp.Get(), o.DatetimeProp.IsSet()
|
||||||
@ -306,7 +306,7 @@ func (o *NullableClass) UnsetDatetimeProp() {
|
|||||||
|
|
||||||
// GetArrayNullableProp returns the ArrayNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
// GetArrayNullableProp returns the ArrayNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||||
func (o *NullableClass) GetArrayNullableProp() []map[string]interface{} {
|
func (o *NullableClass) GetArrayNullableProp() []map[string]interface{} {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
var ret []map[string]interface{}
|
var ret []map[string]interface{}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
@ -339,7 +339,7 @@ func (o *NullableClass) SetArrayNullableProp(v []map[string]interface{}) {
|
|||||||
|
|
||||||
// GetArrayAndItemsNullableProp returns the ArrayAndItemsNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
// GetArrayAndItemsNullableProp returns the ArrayAndItemsNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||||
func (o *NullableClass) GetArrayAndItemsNullableProp() []*map[string]interface{} {
|
func (o *NullableClass) GetArrayAndItemsNullableProp() []*map[string]interface{} {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
var ret []*map[string]interface{}
|
var ret []*map[string]interface{}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
@ -404,7 +404,7 @@ func (o *NullableClass) SetArrayItemsNullable(v []*map[string]interface{}) {
|
|||||||
|
|
||||||
// GetObjectNullableProp returns the ObjectNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
// GetObjectNullableProp returns the ObjectNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||||
func (o *NullableClass) GetObjectNullableProp() map[string]map[string]interface{} {
|
func (o *NullableClass) GetObjectNullableProp() map[string]map[string]interface{} {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
var ret map[string]map[string]interface{}
|
var ret map[string]map[string]interface{}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
@ -437,7 +437,7 @@ func (o *NullableClass) SetObjectNullableProp(v map[string]map[string]interface{
|
|||||||
|
|
||||||
// GetObjectAndItemsNullableProp returns the ObjectAndItemsNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
// GetObjectAndItemsNullableProp returns the ObjectAndItemsNullableProp field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||||
func (o *NullableClass) GetObjectAndItemsNullableProp() map[string]map[string]interface{} {
|
func (o *NullableClass) GetObjectAndItemsNullableProp() map[string]map[string]interface{} {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
var ret map[string]map[string]interface{}
|
var ret map[string]map[string]interface{}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ func (o *Pet) GetName() string {
|
|||||||
// GetNameOk returns a tuple with the Name field value
|
// GetNameOk returns a tuple with the Name field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Pet) GetNameOk() (*string, bool) {
|
func (o *Pet) GetNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.Name, true
|
return &o.Name, true
|
||||||
@ -149,7 +149,7 @@ func (o *Pet) GetPhotoUrls() []string {
|
|||||||
// GetPhotoUrlsOk returns a tuple with the PhotoUrls field value
|
// GetPhotoUrlsOk returns a tuple with the PhotoUrls field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Pet) GetPhotoUrlsOk() ([]string, bool) {
|
func (o *Pet) GetPhotoUrlsOk() ([]string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return o.PhotoUrls, true
|
return o.PhotoUrls, true
|
||||||
|
@ -345,7 +345,7 @@ func (o *User) SetArbitraryObject(v map[string]interface{}) {
|
|||||||
|
|
||||||
// GetArbitraryNullableObject returns the ArbitraryNullableObject field value if set, zero value otherwise (both if not set or set to explicit null).
|
// GetArbitraryNullableObject returns the ArbitraryNullableObject field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||||
func (o *User) GetArbitraryNullableObject() map[string]interface{} {
|
func (o *User) GetArbitraryNullableObject() map[string]interface{} {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
var ret map[string]interface{}
|
var ret map[string]interface{}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ func (o *User) SetArbitraryNullableObject(v map[string]interface{}) {
|
|||||||
|
|
||||||
// GetArbitraryTypeValue returns the ArbitraryTypeValue field value if set, zero value otherwise (both if not set or set to explicit null).
|
// GetArbitraryTypeValue returns the ArbitraryTypeValue field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||||
func (o *User) GetArbitraryTypeValue() interface{} {
|
func (o *User) GetArbitraryTypeValue() interface{} {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
var ret interface{}
|
var ret interface{}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
@ -411,7 +411,7 @@ func (o *User) SetArbitraryTypeValue(v interface{}) {
|
|||||||
|
|
||||||
// GetArbitraryNullableTypeValue returns the ArbitraryNullableTypeValue field value if set, zero value otherwise (both if not set or set to explicit null).
|
// GetArbitraryNullableTypeValue returns the ArbitraryNullableTypeValue field value if set, zero value otherwise (both if not set or set to explicit null).
|
||||||
func (o *User) GetArbitraryNullableTypeValue() interface{} {
|
func (o *User) GetArbitraryNullableTypeValue() interface{} {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
var ret interface{}
|
var ret interface{}
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ func (o *Whale) GetClassName() string {
|
|||||||
// GetClassNameOk returns a tuple with the ClassName field value
|
// GetClassNameOk returns a tuple with the ClassName field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Whale) GetClassNameOk() (*string, bool) {
|
func (o *Whale) GetClassNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.ClassName, true
|
return &o.ClassName, true
|
||||||
|
@ -86,7 +86,7 @@ func (o *Zebra) GetClassName() string {
|
|||||||
// GetClassNameOk returns a tuple with the ClassName field value
|
// GetClassNameOk returns a tuple with the ClassName field value
|
||||||
// and a boolean to check if the value has been set.
|
// and a boolean to check if the value has been set.
|
||||||
func (o *Zebra) GetClassNameOk() (*string, bool) {
|
func (o *Zebra) GetClassNameOk() (*string, bool) {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return &o.ClassName, true
|
return &o.ClassName, true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user