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}}}
|
||||
{{/notes}}
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}}
|
||||
@param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}}
|
||||
@return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}}
|
||||
@param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}}
|
||||
@return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request
|
||||
{{#isDeprecated}}
|
||||
|
||||
Deprecated
|
||||
@ -58,7 +58,9 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request s
|
||||
{{paramName}} {{^isPathParam}}*{{/isPathParam}}{{{dataType}}}
|
||||
{{/allParams}}
|
||||
}
|
||||
{{#allParams}}{{^isPathParam}}
|
||||
|
||||
{{#allParams}}
|
||||
{{^isPathParam}}
|
||||
{{#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 {
|
||||
r.{{paramName}} = &{{paramName}}
|
||||
return r
|
||||
}{{/isPathParam}}{{/allParams}}
|
||||
}
|
||||
|
||||
{{/isPathParam}}
|
||||
{{/allParams}}
|
||||
func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) Execute() ({{#returnType}}{{^isArray}}{{^returnTypeIsPrimitive}}*{{/returnTypeIsPrimitive}}{{/isArray}}{{{.}}}, {{/returnType}}*http.Response, error) {
|
||||
return r.ApiService.{{nickname}}Execute(r)
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} {
|
||||
// Deprecated
|
||||
{{/deprecated}}
|
||||
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
|
||||
}
|
||||
{{#isNullable}}
|
||||
@ -163,7 +163,7 @@ func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) {
|
||||
// Deprecated
|
||||
{{/deprecated}}
|
||||
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}}
|
||||
return ret
|
||||
}
|
||||
@ -189,7 +189,7 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} {
|
||||
// Deprecated
|
||||
{{/deprecated}}
|
||||
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
|
||||
}
|
||||
{{#isNullable}}
|
||||
|
@ -26,8 +26,8 @@ type AnotherFakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiCall123TestSpecialTagsRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCall123TestSpecialTagsRequest
|
||||
*/
|
||||
Call123TestSpecialTags(ctx context.Context) ApiCall123TestSpecialTagsRequest
|
||||
|
||||
|
@ -29,8 +29,8 @@ type FakeApi interface {
|
||||
|
||||
this route creates an XmlItem
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateXmlItemRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateXmlItemRequest
|
||||
*/
|
||||
CreateXmlItem(ctx context.Context) ApiCreateXmlItemRequest
|
||||
|
||||
@ -42,8 +42,8 @@ type FakeApi interface {
|
||||
|
||||
Test serialization of outer boolean types
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterBooleanSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterBooleanSerializeRequest
|
||||
*/
|
||||
FakeOuterBooleanSerialize(ctx context.Context) ApiFakeOuterBooleanSerializeRequest
|
||||
|
||||
@ -56,8 +56,8 @@ type FakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiFakeOuterCompositeSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterCompositeSerializeRequest
|
||||
*/
|
||||
FakeOuterCompositeSerialize(ctx context.Context) ApiFakeOuterCompositeSerializeRequest
|
||||
|
||||
@ -70,8 +70,8 @@ type FakeApi interface {
|
||||
|
||||
Test serialization of outer number types
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterNumberSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterNumberSerializeRequest
|
||||
*/
|
||||
FakeOuterNumberSerialize(ctx context.Context) ApiFakeOuterNumberSerializeRequest
|
||||
|
||||
@ -84,8 +84,8 @@ type FakeApi interface {
|
||||
|
||||
Test serialization of outer string types
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterStringSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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`.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithFileSchemaRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithFileSchemaRequest
|
||||
*/
|
||||
TestBodyWithFileSchema(ctx context.Context) ApiTestBodyWithFileSchemaRequest
|
||||
|
||||
@ -109,8 +109,8 @@ type FakeApi interface {
|
||||
/*
|
||||
TestBodyWithQueryParams Method for TestBodyWithQueryParams
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithQueryParamsRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithQueryParamsRequest
|
||||
*/
|
||||
TestBodyWithQueryParams(ctx context.Context) ApiTestBodyWithQueryParamsRequest
|
||||
|
||||
@ -122,8 +122,8 @@ type FakeApi interface {
|
||||
|
||||
To test "client" model
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestClientModelRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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().
|
||||
@return ApiTestEndpointParametersRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestEndpointParametersRequest
|
||||
*/
|
||||
TestEndpointParameters(ctx context.Context) ApiTestEndpointParametersRequest
|
||||
|
||||
@ -152,8 +152,8 @@ type FakeApi interface {
|
||||
|
||||
To test enum parameters
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestEnumParametersRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestEnumParametersRequest
|
||||
*/
|
||||
TestEnumParameters(ctx context.Context) ApiTestEnumParametersRequest
|
||||
|
||||
@ -165,8 +165,8 @@ type FakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiTestGroupParametersRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestGroupParametersRequest
|
||||
*/
|
||||
TestGroupParameters(ctx context.Context) ApiTestGroupParametersRequest
|
||||
|
||||
@ -176,8 +176,8 @@ type FakeApi interface {
|
||||
/*
|
||||
TestInlineAdditionalProperties test inline additionalProperties
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestInlineAdditionalPropertiesRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestInlineAdditionalPropertiesRequest
|
||||
*/
|
||||
TestInlineAdditionalProperties(ctx context.Context) ApiTestInlineAdditionalPropertiesRequest
|
||||
|
||||
@ -187,8 +187,8 @@ type FakeApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiTestJsonFormDataRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestJsonFormDataRequest
|
||||
*/
|
||||
TestJsonFormData(ctx context.Context) ApiTestJsonFormDataRequest
|
||||
|
||||
@ -200,8 +200,8 @@ type FakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiTestQueryParameterCollectionFormatRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestQueryParameterCollectionFormatRequest
|
||||
*/
|
||||
TestQueryParameterCollectionFormat(ctx context.Context) ApiTestQueryParameterCollectionFormatRequest
|
||||
|
||||
@ -854,6 +854,7 @@ func (r ApiTestBodyWithQueryParamsRequest) Query(query string) ApiTestBodyWithQu
|
||||
r.query = &query
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestBodyWithQueryParamsRequest) Body(body User) ApiTestBodyWithQueryParamsRequest {
|
||||
r.body = &body
|
||||
return r
|
||||
@ -1084,66 +1085,79 @@ func (r ApiTestEndpointParametersRequest) Number(number float32) ApiTestEndpoint
|
||||
r.number = &number
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest {
|
||||
r.double = &double
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest {
|
||||
r.patternWithoutDelimiter = &patternWithoutDelimiter
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest {
|
||||
r.byte_ = &byte_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest {
|
||||
r.integer = &integer
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest {
|
||||
r.int32_ = &int32_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest {
|
||||
r.int64_ = &int64_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest {
|
||||
r.float = &float
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest {
|
||||
r.string_ = &string_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest {
|
||||
r.binary = &binary
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest {
|
||||
r.date = &date
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest {
|
||||
r.dateTime = &dateTime
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest {
|
||||
r.password = &password
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest {
|
||||
r.callback = &callback
|
||||
@ -1326,36 +1340,43 @@ func (r ApiTestEnumParametersRequest) EnumHeaderStringArray(enumHeaderStringArra
|
||||
r.enumHeaderStringArray = &enumHeaderStringArray
|
||||
return r
|
||||
}
|
||||
|
||||
// Header parameter enum test (string)
|
||||
func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest {
|
||||
r.enumHeaderString = &enumHeaderString
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (string array)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest {
|
||||
r.enumQueryStringArray = &enumQueryStringArray
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (string)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest {
|
||||
r.enumQueryString = &enumQueryString
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (double)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest {
|
||||
r.enumQueryInteger = &enumQueryInteger
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (double)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest {
|
||||
r.enumQueryDouble = &enumQueryDouble
|
||||
return r
|
||||
}
|
||||
|
||||
// Form parameter enum test (string array)
|
||||
func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest {
|
||||
r.enumFormStringArray = &enumFormStringArray
|
||||
return r
|
||||
}
|
||||
|
||||
// Form parameter enum test (string)
|
||||
func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest {
|
||||
r.enumFormString = &enumFormString
|
||||
@ -1485,26 +1506,31 @@ func (r ApiTestGroupParametersRequest) RequiredStringGroup(requiredStringGroup i
|
||||
r.requiredStringGroup = &requiredStringGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Required Boolean in group parameters
|
||||
func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest {
|
||||
r.requiredBooleanGroup = &requiredBooleanGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Required Integer in group parameters
|
||||
func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest {
|
||||
r.requiredInt64Group = &requiredInt64Group
|
||||
return r
|
||||
}
|
||||
|
||||
// String in group parameters
|
||||
func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest {
|
||||
r.stringGroup = &stringGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Boolean in group parameters
|
||||
func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest {
|
||||
r.booleanGroup = &booleanGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Integer in group parameters
|
||||
func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest {
|
||||
r.int64Group = &int64Group
|
||||
@ -1725,6 +1751,7 @@ func (r ApiTestJsonFormDataRequest) Param(param string) ApiTestJsonFormDataReque
|
||||
r.param = ¶m
|
||||
return r
|
||||
}
|
||||
|
||||
// field2
|
||||
func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest {
|
||||
r.param2 = ¶m2
|
||||
@ -1834,18 +1861,22 @@ func (r ApiTestQueryParameterCollectionFormatRequest) Pipe(pipe []string) ApiTes
|
||||
r.pipe = &pipe
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Ioutil(ioutil []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.ioutil = &ioutil
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Http(http []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.http = &http
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Url(url []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.url = &url
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Context(context []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.context = &context
|
||||
return r
|
||||
|
@ -26,8 +26,8 @@ type FakeClassnameTags123Api interface {
|
||||
|
||||
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().
|
||||
@return ApiTestClassnameRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestClassnameRequest
|
||||
*/
|
||||
TestClassname(ctx context.Context) ApiTestClassnameRequest
|
||||
|
||||
|
@ -26,8 +26,8 @@ type PetApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiAddPetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAddPetRequest
|
||||
*/
|
||||
AddPet(ctx context.Context) ApiAddPetRequest
|
||||
|
||||
@ -37,9 +37,9 @@ type PetApi interface {
|
||||
/*
|
||||
DeletePet Deletes a pet
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId Pet id to delete
|
||||
@return ApiDeletePetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId Pet id to delete
|
||||
@return 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
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFindPetsByStatusRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFindPetsByTagsRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFindPetsByTagsRequest
|
||||
|
||||
Deprecated
|
||||
*/
|
||||
@ -82,9 +82,9 @@ type PetApi interface {
|
||||
|
||||
Returns a single pet
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId ID of pet to return
|
||||
@return ApiGetPetByIdRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId ID of pet to return
|
||||
@return ApiGetPetByIdRequest
|
||||
*/
|
||||
GetPetById(ctx context.Context, petId int64) ApiGetPetByIdRequest
|
||||
|
||||
@ -95,8 +95,8 @@ type PetApi interface {
|
||||
/*
|
||||
UpdatePet Update an existing pet
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiUpdatePetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiUpdatePetRequest
|
||||
*/
|
||||
UpdatePet(ctx context.Context) ApiUpdatePetRequest
|
||||
|
||||
@ -106,9 +106,9 @@ type PetApi interface {
|
||||
/*
|
||||
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 petId ID of pet that needs to be updated
|
||||
@return ApiUpdatePetWithFormRequest
|
||||
@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
|
||||
@return ApiUpdatePetWithFormRequest
|
||||
*/
|
||||
UpdatePetWithForm(ctx context.Context, petId int64) ApiUpdatePetWithFormRequest
|
||||
|
||||
@ -118,9 +118,9 @@ type PetApi interface {
|
||||
/*
|
||||
UploadFile uploads an image
|
||||
|
||||
@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
|
||||
@return ApiUploadFileRequest
|
||||
@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
|
||||
@return ApiUploadFileRequest
|
||||
*/
|
||||
UploadFile(ctx context.Context, petId int64) ApiUploadFileRequest
|
||||
|
||||
@ -131,9 +131,9 @@ type PetApi interface {
|
||||
/*
|
||||
UploadFileWithRequiredFile uploads an image (required)
|
||||
|
||||
@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
|
||||
@return ApiUploadFileWithRequiredFileRequest
|
||||
@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
|
||||
@return ApiUploadFileWithRequiredFileRequest
|
||||
*/
|
||||
UploadFileWithRequiredFile(ctx context.Context, petId int64) ApiUploadFileWithRequiredFileRequest
|
||||
|
||||
@ -571,7 +571,6 @@ type ApiGetPetByIdRequest struct {
|
||||
petId int64
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetPetByIdRequest) Execute() (*Pet, *http.Response, error) {
|
||||
return r.ApiService.GetPetByIdExecute(r)
|
||||
}
|
||||
@ -794,6 +793,7 @@ func (r ApiUpdatePetWithFormRequest) Name(name string) ApiUpdatePetWithFormReque
|
||||
r.name = &name
|
||||
return r
|
||||
}
|
||||
|
||||
// Updated status of the pet
|
||||
func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest {
|
||||
r.status = &status
|
||||
@ -903,6 +903,7 @@ func (r ApiUploadFileRequest) AdditionalMetadata(additionalMetadata string) ApiU
|
||||
r.additionalMetadata = &additionalMetadata
|
||||
return r
|
||||
}
|
||||
|
||||
// file to upload
|
||||
func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest {
|
||||
r.file = &file
|
||||
@ -1037,6 +1038,7 @@ func (r ApiUploadFileWithRequiredFileRequest) RequiredFile(requiredFile *os.File
|
||||
r.requiredFile = &requiredFile
|
||||
return r
|
||||
}
|
||||
|
||||
// Additional data to pass to server
|
||||
func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest {
|
||||
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
|
||||
|
||||
@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
|
||||
@return ApiDeleteOrderRequest
|
||||
@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
|
||||
@return ApiDeleteOrderRequest
|
||||
*/
|
||||
DeleteOrder(ctx context.Context, orderId string) ApiDeleteOrderRequest
|
||||
|
||||
@ -41,8 +41,8 @@ type StoreApi interface {
|
||||
|
||||
Returns a map of status codes to quantities
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiGetInventoryRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param orderId ID of pet that needs to be fetched
|
||||
@return ApiGetOrderByIdRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param orderId ID of pet that needs to be fetched
|
||||
@return ApiGetOrderByIdRequest
|
||||
*/
|
||||
GetOrderById(ctx context.Context, orderId int64) ApiGetOrderByIdRequest
|
||||
|
||||
@ -68,8 +68,8 @@ type StoreApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiPlaceOrderRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiPlaceOrderRequest
|
||||
*/
|
||||
PlaceOrder(ctx context.Context) ApiPlaceOrderRequest
|
||||
|
||||
@ -87,7 +87,6 @@ type ApiDeleteOrderRequest struct {
|
||||
orderId string
|
||||
}
|
||||
|
||||
|
||||
func (r ApiDeleteOrderRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.DeleteOrderExecute(r)
|
||||
}
|
||||
@ -179,7 +178,6 @@ type ApiGetInventoryRequest struct {
|
||||
ApiService StoreApi
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetInventoryRequest) Execute() (map[string]int32, *http.Response, error) {
|
||||
return r.ApiService.GetInventoryExecute(r)
|
||||
}
|
||||
@ -294,7 +292,6 @@ type ApiGetOrderByIdRequest struct {
|
||||
orderId int64
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetOrderByIdRequest) Execute() (*Order, *http.Response, error) {
|
||||
return r.ApiService.GetOrderByIdExecute(r)
|
||||
}
|
||||
|
@ -27,8 +27,8 @@ type UserApi interface {
|
||||
|
||||
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().
|
||||
@return ApiCreateUserRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateUserRequest
|
||||
*/
|
||||
CreateUser(ctx context.Context) ApiCreateUserRequest
|
||||
|
||||
@ -38,8 +38,8 @@ type UserApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiCreateUsersWithArrayInputRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateUsersWithArrayInputRequest
|
||||
*/
|
||||
CreateUsersWithArrayInput(ctx context.Context) ApiCreateUsersWithArrayInputRequest
|
||||
|
||||
@ -49,8 +49,8 @@ type UserApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiCreateUsersWithListInputRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateUsersWithListInputRequest
|
||||
*/
|
||||
CreateUsersWithListInput(ctx context.Context) ApiCreateUsersWithListInputRequest
|
||||
|
||||
@ -62,9 +62,9 @@ type UserApi interface {
|
||||
|
||||
This can only be done by the logged in user.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param username The name that needs to be deleted
|
||||
@return ApiDeleteUserRequest
|
||||
@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
|
||||
@return ApiDeleteUserRequest
|
||||
*/
|
||||
DeleteUser(ctx context.Context, username string) ApiDeleteUserRequest
|
||||
|
||||
@ -74,9 +74,9 @@ type UserApi interface {
|
||||
/*
|
||||
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 username The name that needs to be fetched. Use user1 for testing.
|
||||
@return ApiGetUserByNameRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param username The name that needs to be fetched. Use user1 for testing.
|
||||
@return ApiGetUserByNameRequest
|
||||
*/
|
||||
GetUserByName(ctx context.Context, username string) ApiGetUserByNameRequest
|
||||
|
||||
@ -87,8 +87,8 @@ type UserApi interface {
|
||||
/*
|
||||
LoginUser Logs user into the system
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiLoginUserRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiLoginUserRequest
|
||||
*/
|
||||
LoginUser(ctx context.Context) ApiLoginUserRequest
|
||||
|
||||
@ -99,8 +99,8 @@ type UserApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiLogoutUserRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiLogoutUserRequest
|
||||
*/
|
||||
LogoutUser(ctx context.Context) ApiLogoutUserRequest
|
||||
|
||||
@ -112,9 +112,9 @@ type UserApi interface {
|
||||
|
||||
This can only be done by the logged in user.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param username name that need to be deleted
|
||||
@return ApiUpdateUserRequest
|
||||
@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
|
||||
@return ApiUpdateUserRequest
|
||||
*/
|
||||
UpdateUser(ctx context.Context, username string) ApiUpdateUserRequest
|
||||
|
||||
@ -427,7 +427,6 @@ type ApiDeleteUserRequest struct {
|
||||
username string
|
||||
}
|
||||
|
||||
|
||||
func (r ApiDeleteUserRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.DeleteUserExecute(r)
|
||||
}
|
||||
@ -520,7 +519,6 @@ type ApiGetUserByNameRequest struct {
|
||||
username string
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetUserByNameRequest) Execute() (*User, *http.Response, error) {
|
||||
return r.ApiService.GetUserByNameExecute(r)
|
||||
}
|
||||
@ -628,6 +626,7 @@ func (r ApiLoginUserRequest) Username(username string) ApiLoginUserRequest {
|
||||
r.username = &username
|
||||
return r
|
||||
}
|
||||
|
||||
// The password for login in clear text
|
||||
func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest {
|
||||
r.password = &password
|
||||
@ -739,7 +738,6 @@ type ApiLogoutUserRequest struct {
|
||||
ApiService UserApi
|
||||
}
|
||||
|
||||
|
||||
func (r ApiLogoutUserRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.LogoutUserExecute(r)
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ func (o *Animal) GetClassName() string {
|
||||
// GetClassNameOk returns a tuple with the ClassName field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Animal) GetClassNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.ClassName, true
|
||||
|
@ -85,7 +85,7 @@ func (o *Category) GetName() string {
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Category) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
|
@ -86,7 +86,7 @@ func (o *EnumTest) GetEnumStringRequired() string {
|
||||
// GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.EnumStringRequired, true
|
||||
|
@ -164,7 +164,7 @@ func (o *FormatTest) GetNumber() float32 {
|
||||
// GetNumberOk returns a tuple with the Number field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetNumberOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Number, true
|
||||
@ -284,7 +284,7 @@ func (o *FormatTest) GetByte() string {
|
||||
// GetByteOk returns a tuple with the Byte field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetByteOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Byte, true
|
||||
@ -340,7 +340,7 @@ func (o *FormatTest) GetDate() string {
|
||||
// GetDateOk returns a tuple with the Date field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetDateOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Date, true
|
||||
@ -428,7 +428,7 @@ func (o *FormatTest) GetPassword() string {
|
||||
// GetPasswordOk returns a tuple with the Password field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetPasswordOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Password, true
|
||||
|
@ -53,7 +53,7 @@ func (o *Name) GetName() int32 {
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Name) GetNameOk() (*int32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
|
@ -121,7 +121,7 @@ func (o *Pet) GetName() string {
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pet) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
@ -145,7 +145,7 @@ func (o *Pet) GetPhotoUrls() []string {
|
||||
// GetPhotoUrlsOk returns a tuple with the PhotoUrls field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pet) GetPhotoUrlsOk() ([]string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.PhotoUrls, true
|
||||
|
@ -62,7 +62,7 @@ func (o *TypeHolderDefault) GetStringItem() string {
|
||||
// GetStringItemOk returns a tuple with the StringItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderDefault) GetStringItemOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.StringItem, true
|
||||
@ -86,7 +86,7 @@ func (o *TypeHolderDefault) GetNumberItem() float32 {
|
||||
// GetNumberItemOk returns a tuple with the NumberItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderDefault) GetNumberItemOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.NumberItem, true
|
||||
@ -110,7 +110,7 @@ func (o *TypeHolderDefault) GetIntegerItem() int32 {
|
||||
// GetIntegerItemOk returns a tuple with the IntegerItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderDefault) GetIntegerItemOk() (*int32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.IntegerItem, true
|
||||
@ -134,7 +134,7 @@ func (o *TypeHolderDefault) GetBoolItem() bool {
|
||||
// GetBoolItemOk returns a tuple with the BoolItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderDefault) GetBoolItemOk() (*bool, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.BoolItem, true
|
||||
@ -158,7 +158,7 @@ func (o *TypeHolderDefault) GetArrayItem() []int32 {
|
||||
// GetArrayItemOk returns a tuple with the ArrayItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderDefault) GetArrayItemOk() ([]int32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ArrayItem, true
|
||||
|
@ -60,7 +60,7 @@ func (o *TypeHolderExample) GetStringItem() string {
|
||||
// GetStringItemOk returns a tuple with the StringItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderExample) GetStringItemOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.StringItem, true
|
||||
@ -84,7 +84,7 @@ func (o *TypeHolderExample) GetNumberItem() float32 {
|
||||
// GetNumberItemOk returns a tuple with the NumberItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderExample) GetNumberItemOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.NumberItem, true
|
||||
@ -108,7 +108,7 @@ func (o *TypeHolderExample) GetFloatItem() float32 {
|
||||
// GetFloatItemOk returns a tuple with the FloatItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderExample) GetFloatItemOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.FloatItem, true
|
||||
@ -132,7 +132,7 @@ func (o *TypeHolderExample) GetIntegerItem() int32 {
|
||||
// GetIntegerItemOk returns a tuple with the IntegerItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderExample) GetIntegerItemOk() (*int32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.IntegerItem, true
|
||||
@ -156,7 +156,7 @@ func (o *TypeHolderExample) GetBoolItem() bool {
|
||||
// GetBoolItemOk returns a tuple with the BoolItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderExample) GetBoolItemOk() (*bool, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.BoolItem, true
|
||||
@ -180,7 +180,7 @@ func (o *TypeHolderExample) GetArrayItem() []int32 {
|
||||
// GetArrayItemOk returns a tuple with the ArrayItem field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *TypeHolderExample) GetArrayItemOk() ([]int32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.ArrayItem, true
|
||||
|
@ -27,7 +27,6 @@ type ApiAnyKeyRequest struct {
|
||||
ApiService *UsageApiService
|
||||
}
|
||||
|
||||
|
||||
func (r ApiAnyKeyRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||
return r.ApiService.AnyKeyExecute(r)
|
||||
}
|
||||
@ -155,7 +154,6 @@ type ApiBothKeysRequest struct {
|
||||
ApiService *UsageApiService
|
||||
}
|
||||
|
||||
|
||||
func (r ApiBothKeysRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||
return r.ApiService.BothKeysExecute(r)
|
||||
}
|
||||
@ -283,7 +281,6 @@ type ApiKeyInHeaderRequest struct {
|
||||
ApiService *UsageApiService
|
||||
}
|
||||
|
||||
|
||||
func (r ApiKeyInHeaderRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||
return r.ApiService.KeyInHeaderExecute(r)
|
||||
}
|
||||
@ -397,7 +394,6 @@ type ApiKeyInQueryRequest struct {
|
||||
ApiService *UsageApiService
|
||||
}
|
||||
|
||||
|
||||
func (r ApiKeyInQueryRequest) Execute() (map[string]interface{}, *http.Response, error) {
|
||||
return r.ApiService.KeyInQueryExecute(r)
|
||||
}
|
||||
|
@ -26,8 +26,8 @@ type AnotherFakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiCall123TestSpecialTagsRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCall123TestSpecialTagsRequest
|
||||
*/
|
||||
Call123TestSpecialTags(ctx context.Context) ApiCall123TestSpecialTagsRequest
|
||||
|
||||
|
@ -24,8 +24,8 @@ type DefaultApi interface {
|
||||
/*
|
||||
FooGet Method for FooGet
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFooGetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFooGetRequest
|
||||
*/
|
||||
FooGet(ctx context.Context) ApiFooGetRequest
|
||||
|
||||
@ -42,7 +42,6 @@ type ApiFooGetRequest struct {
|
||||
ApiService DefaultApi
|
||||
}
|
||||
|
||||
|
||||
func (r ApiFooGetRequest) Execute() (*InlineResponseDefault, *http.Response, error) {
|
||||
return r.ApiService.FooGetExecute(r)
|
||||
}
|
||||
|
@ -27,8 +27,8 @@ type FakeApi interface {
|
||||
/*
|
||||
FakeHealthGet Health check endpoint
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeHealthGetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeHealthGetRequest
|
||||
*/
|
||||
FakeHealthGet(ctx context.Context) ApiFakeHealthGetRequest
|
||||
|
||||
@ -41,8 +41,8 @@ type FakeApi interface {
|
||||
|
||||
Test serialization of outer boolean types
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterBooleanSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterBooleanSerializeRequest
|
||||
*/
|
||||
FakeOuterBooleanSerialize(ctx context.Context) ApiFakeOuterBooleanSerializeRequest
|
||||
|
||||
@ -55,8 +55,8 @@ type FakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiFakeOuterCompositeSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterCompositeSerializeRequest
|
||||
*/
|
||||
FakeOuterCompositeSerialize(ctx context.Context) ApiFakeOuterCompositeSerializeRequest
|
||||
|
||||
@ -69,8 +69,8 @@ type FakeApi interface {
|
||||
|
||||
Test serialization of outer number types
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterNumberSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterNumberSerializeRequest
|
||||
*/
|
||||
FakeOuterNumberSerialize(ctx context.Context) ApiFakeOuterNumberSerializeRequest
|
||||
|
||||
@ -83,8 +83,8 @@ type FakeApi interface {
|
||||
|
||||
Test serialization of outer string types
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFakeOuterStringSerializeRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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`.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithFileSchemaRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithFileSchemaRequest
|
||||
*/
|
||||
TestBodyWithFileSchema(ctx context.Context) ApiTestBodyWithFileSchemaRequest
|
||||
|
||||
@ -108,8 +108,8 @@ type FakeApi interface {
|
||||
/*
|
||||
TestBodyWithQueryParams Method for TestBodyWithQueryParams
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithQueryParamsRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestBodyWithQueryParamsRequest
|
||||
*/
|
||||
TestBodyWithQueryParams(ctx context.Context) ApiTestBodyWithQueryParamsRequest
|
||||
|
||||
@ -121,8 +121,8 @@ type FakeApi interface {
|
||||
|
||||
To test "client" model
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestClientModelRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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().
|
||||
@return ApiTestEndpointParametersRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestEndpointParametersRequest
|
||||
*/
|
||||
TestEndpointParameters(ctx context.Context) ApiTestEndpointParametersRequest
|
||||
|
||||
@ -152,8 +152,8 @@ type FakeApi interface {
|
||||
|
||||
To test enum parameters
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestEnumParametersRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestEnumParametersRequest
|
||||
*/
|
||||
TestEnumParameters(ctx context.Context) ApiTestEnumParametersRequest
|
||||
|
||||
@ -165,8 +165,8 @@ type FakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiTestGroupParametersRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestGroupParametersRequest
|
||||
*/
|
||||
TestGroupParameters(ctx context.Context) ApiTestGroupParametersRequest
|
||||
|
||||
@ -176,8 +176,8 @@ type FakeApi interface {
|
||||
/*
|
||||
TestInlineAdditionalProperties test inline additionalProperties
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestInlineAdditionalPropertiesRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestInlineAdditionalPropertiesRequest
|
||||
*/
|
||||
TestInlineAdditionalProperties(ctx context.Context) ApiTestInlineAdditionalPropertiesRequest
|
||||
|
||||
@ -187,8 +187,8 @@ type FakeApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiTestJsonFormDataRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestJsonFormDataRequest
|
||||
*/
|
||||
TestJsonFormData(ctx context.Context) ApiTestJsonFormDataRequest
|
||||
|
||||
@ -200,8 +200,8 @@ type FakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiTestQueryParameterCollectionFormatRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestQueryParameterCollectionFormatRequest
|
||||
*/
|
||||
TestQueryParameterCollectionFormat(ctx context.Context) ApiTestQueryParameterCollectionFormatRequest
|
||||
|
||||
@ -213,8 +213,8 @@ type FakeApi interface {
|
||||
|
||||
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().
|
||||
@return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest
|
||||
*/
|
||||
TestUniqueItemsHeaderAndQueryParameterCollectionFormat(ctx context.Context) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest
|
||||
|
||||
@ -231,7 +231,6 @@ type ApiFakeHealthGetRequest struct {
|
||||
ApiService FakeApi
|
||||
}
|
||||
|
||||
|
||||
func (r ApiFakeHealthGetRequest) Execute() (*HealthCheckResult, *http.Response, error) {
|
||||
return r.ApiService.FakeHealthGetExecute(r)
|
||||
}
|
||||
@ -866,6 +865,7 @@ func (r ApiTestBodyWithQueryParamsRequest) Query(query string) ApiTestBodyWithQu
|
||||
r.query = &query
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestBodyWithQueryParamsRequest) User(user User) ApiTestBodyWithQueryParamsRequest {
|
||||
r.user = &user
|
||||
return r
|
||||
@ -1096,66 +1096,79 @@ func (r ApiTestEndpointParametersRequest) Number(number float32) ApiTestEndpoint
|
||||
r.number = &number
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest {
|
||||
r.double = &double
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest {
|
||||
r.patternWithoutDelimiter = &patternWithoutDelimiter
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest {
|
||||
r.byte_ = &byte_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest {
|
||||
r.integer = &integer
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest {
|
||||
r.int32_ = &int32_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest {
|
||||
r.int64_ = &int64_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest {
|
||||
r.float = &float
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest {
|
||||
r.string_ = &string_
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest {
|
||||
r.binary = &binary
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest {
|
||||
r.date = &date
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest {
|
||||
r.dateTime = &dateTime
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest {
|
||||
r.password = &password
|
||||
return r
|
||||
}
|
||||
|
||||
// None
|
||||
func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest {
|
||||
r.callback = &callback
|
||||
@ -1339,36 +1352,43 @@ func (r ApiTestEnumParametersRequest) EnumHeaderStringArray(enumHeaderStringArra
|
||||
r.enumHeaderStringArray = &enumHeaderStringArray
|
||||
return r
|
||||
}
|
||||
|
||||
// Header parameter enum test (string)
|
||||
func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest {
|
||||
r.enumHeaderString = &enumHeaderString
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (string array)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest {
|
||||
r.enumQueryStringArray = &enumQueryStringArray
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (string)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest {
|
||||
r.enumQueryString = &enumQueryString
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (double)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest {
|
||||
r.enumQueryInteger = &enumQueryInteger
|
||||
return r
|
||||
}
|
||||
|
||||
// Query parameter enum test (double)
|
||||
func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest {
|
||||
r.enumQueryDouble = &enumQueryDouble
|
||||
return r
|
||||
}
|
||||
|
||||
// Form parameter enum test (string array)
|
||||
func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest {
|
||||
r.enumFormStringArray = &enumFormStringArray
|
||||
return r
|
||||
}
|
||||
|
||||
// Form parameter enum test (string)
|
||||
func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest {
|
||||
r.enumFormString = &enumFormString
|
||||
@ -1506,26 +1526,31 @@ func (r ApiTestGroupParametersRequest) RequiredStringGroup(requiredStringGroup i
|
||||
r.requiredStringGroup = &requiredStringGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Required Boolean in group parameters
|
||||
func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest {
|
||||
r.requiredBooleanGroup = &requiredBooleanGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Required Integer in group parameters
|
||||
func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest {
|
||||
r.requiredInt64Group = &requiredInt64Group
|
||||
return r
|
||||
}
|
||||
|
||||
// String in group parameters
|
||||
func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest {
|
||||
r.stringGroup = &stringGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Boolean in group parameters
|
||||
func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest {
|
||||
r.booleanGroup = &booleanGroup
|
||||
return r
|
||||
}
|
||||
|
||||
// Integer in group parameters
|
||||
func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest {
|
||||
r.int64Group = &int64Group
|
||||
@ -1746,6 +1771,7 @@ func (r ApiTestJsonFormDataRequest) Param(param string) ApiTestJsonFormDataReque
|
||||
r.param = ¶m
|
||||
return r
|
||||
}
|
||||
|
||||
// field2
|
||||
func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest {
|
||||
r.param2 = ¶m2
|
||||
@ -1855,18 +1881,22 @@ func (r ApiTestQueryParameterCollectionFormatRequest) Pipe(pipe []string) ApiTes
|
||||
r.pipe = &pipe
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Ioutil(ioutil []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.ioutil = &ioutil
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Http(http []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.http = &http
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Url(url []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.url = &url
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestQueryParameterCollectionFormatRequest) Context(context []string) ApiTestQueryParameterCollectionFormatRequest {
|
||||
r.context = &context
|
||||
return r
|
||||
@ -2006,6 +2036,7 @@ func (r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) QueryU
|
||||
r.queryUnique = &queryUnique
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) HeaderUnique(headerUnique []string) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest {
|
||||
r.headerUnique = &headerUnique
|
||||
return r
|
||||
|
@ -26,8 +26,8 @@ type FakeClassnameTags123Api interface {
|
||||
|
||||
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().
|
||||
@return ApiTestClassnameRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestClassnameRequest
|
||||
*/
|
||||
TestClassname(ctx context.Context) ApiTestClassnameRequest
|
||||
|
||||
|
@ -26,8 +26,8 @@ type PetApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiAddPetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAddPetRequest
|
||||
*/
|
||||
AddPet(ctx context.Context) ApiAddPetRequest
|
||||
|
||||
@ -37,9 +37,9 @@ type PetApi interface {
|
||||
/*
|
||||
DeletePet Deletes a pet
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId Pet id to delete
|
||||
@return ApiDeletePetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId Pet id to delete
|
||||
@return 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
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFindPetsByStatusRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFindPetsByTagsRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiFindPetsByTagsRequest
|
||||
|
||||
Deprecated
|
||||
*/
|
||||
@ -82,9 +82,9 @@ type PetApi interface {
|
||||
|
||||
Returns a single pet
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId ID of pet to return
|
||||
@return ApiGetPetByIdRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param petId ID of pet to return
|
||||
@return ApiGetPetByIdRequest
|
||||
*/
|
||||
GetPetById(ctx context.Context, petId int64) ApiGetPetByIdRequest
|
||||
|
||||
@ -95,8 +95,8 @@ type PetApi interface {
|
||||
/*
|
||||
UpdatePet Update an existing pet
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiUpdatePetRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiUpdatePetRequest
|
||||
*/
|
||||
UpdatePet(ctx context.Context) ApiUpdatePetRequest
|
||||
|
||||
@ -106,9 +106,9 @@ type PetApi interface {
|
||||
/*
|
||||
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 petId ID of pet that needs to be updated
|
||||
@return ApiUpdatePetWithFormRequest
|
||||
@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
|
||||
@return ApiUpdatePetWithFormRequest
|
||||
*/
|
||||
UpdatePetWithForm(ctx context.Context, petId int64) ApiUpdatePetWithFormRequest
|
||||
|
||||
@ -118,9 +118,9 @@ type PetApi interface {
|
||||
/*
|
||||
UploadFile uploads an image
|
||||
|
||||
@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
|
||||
@return ApiUploadFileRequest
|
||||
@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
|
||||
@return ApiUploadFileRequest
|
||||
*/
|
||||
UploadFile(ctx context.Context, petId int64) ApiUploadFileRequest
|
||||
|
||||
@ -131,9 +131,9 @@ type PetApi interface {
|
||||
/*
|
||||
UploadFileWithRequiredFile uploads an image (required)
|
||||
|
||||
@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
|
||||
@return ApiUploadFileWithRequiredFileRequest
|
||||
@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
|
||||
@return ApiUploadFileWithRequiredFileRequest
|
||||
*/
|
||||
UploadFileWithRequiredFile(ctx context.Context, petId int64) ApiUploadFileWithRequiredFileRequest
|
||||
|
||||
@ -572,7 +572,6 @@ type ApiGetPetByIdRequest struct {
|
||||
petId int64
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetPetByIdRequest) Execute() (*Pet, *http.Response, error) {
|
||||
return r.ApiService.GetPetByIdExecute(r)
|
||||
}
|
||||
@ -795,6 +794,7 @@ func (r ApiUpdatePetWithFormRequest) Name(name string) ApiUpdatePetWithFormReque
|
||||
r.name = &name
|
||||
return r
|
||||
}
|
||||
|
||||
// Updated status of the pet
|
||||
func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest {
|
||||
r.status = &status
|
||||
@ -904,6 +904,7 @@ func (r ApiUploadFileRequest) AdditionalMetadata(additionalMetadata string) ApiU
|
||||
r.additionalMetadata = &additionalMetadata
|
||||
return r
|
||||
}
|
||||
|
||||
// file to upload
|
||||
func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest {
|
||||
r.file = &file
|
||||
@ -1038,6 +1039,7 @@ func (r ApiUploadFileWithRequiredFileRequest) RequiredFile(requiredFile *os.File
|
||||
r.requiredFile = &requiredFile
|
||||
return r
|
||||
}
|
||||
|
||||
// Additional data to pass to server
|
||||
func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest {
|
||||
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
|
||||
|
||||
@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
|
||||
@return ApiDeleteOrderRequest
|
||||
@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
|
||||
@return ApiDeleteOrderRequest
|
||||
*/
|
||||
DeleteOrder(ctx context.Context, orderId string) ApiDeleteOrderRequest
|
||||
|
||||
@ -41,8 +41,8 @@ type StoreApi interface {
|
||||
|
||||
Returns a map of status codes to quantities
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiGetInventoryRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return 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
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param orderId ID of pet that needs to be fetched
|
||||
@return ApiGetOrderByIdRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param orderId ID of pet that needs to be fetched
|
||||
@return ApiGetOrderByIdRequest
|
||||
*/
|
||||
GetOrderById(ctx context.Context, orderId int64) ApiGetOrderByIdRequest
|
||||
|
||||
@ -68,8 +68,8 @@ type StoreApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiPlaceOrderRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiPlaceOrderRequest
|
||||
*/
|
||||
PlaceOrder(ctx context.Context) ApiPlaceOrderRequest
|
||||
|
||||
@ -87,7 +87,6 @@ type ApiDeleteOrderRequest struct {
|
||||
orderId string
|
||||
}
|
||||
|
||||
|
||||
func (r ApiDeleteOrderRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.DeleteOrderExecute(r)
|
||||
}
|
||||
@ -179,7 +178,6 @@ type ApiGetInventoryRequest struct {
|
||||
ApiService StoreApi
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetInventoryRequest) Execute() (map[string]int32, *http.Response, error) {
|
||||
return r.ApiService.GetInventoryExecute(r)
|
||||
}
|
||||
@ -294,7 +292,6 @@ type ApiGetOrderByIdRequest struct {
|
||||
orderId int64
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetOrderByIdRequest) Execute() (*Order, *http.Response, error) {
|
||||
return r.ApiService.GetOrderByIdExecute(r)
|
||||
}
|
||||
|
@ -27,8 +27,8 @@ type UserApi interface {
|
||||
|
||||
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().
|
||||
@return ApiCreateUserRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateUserRequest
|
||||
*/
|
||||
CreateUser(ctx context.Context) ApiCreateUserRequest
|
||||
|
||||
@ -38,8 +38,8 @@ type UserApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiCreateUsersWithArrayInputRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateUsersWithArrayInputRequest
|
||||
*/
|
||||
CreateUsersWithArrayInput(ctx context.Context) ApiCreateUsersWithArrayInputRequest
|
||||
|
||||
@ -49,8 +49,8 @@ type UserApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiCreateUsersWithListInputRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiCreateUsersWithListInputRequest
|
||||
*/
|
||||
CreateUsersWithListInput(ctx context.Context) ApiCreateUsersWithListInputRequest
|
||||
|
||||
@ -62,9 +62,9 @@ type UserApi interface {
|
||||
|
||||
This can only be done by the logged in user.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param username The name that needs to be deleted
|
||||
@return ApiDeleteUserRequest
|
||||
@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
|
||||
@return ApiDeleteUserRequest
|
||||
*/
|
||||
DeleteUser(ctx context.Context, username string) ApiDeleteUserRequest
|
||||
|
||||
@ -74,9 +74,9 @@ type UserApi interface {
|
||||
/*
|
||||
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 username The name that needs to be fetched. Use user1 for testing.
|
||||
@return ApiGetUserByNameRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param username The name that needs to be fetched. Use user1 for testing.
|
||||
@return ApiGetUserByNameRequest
|
||||
*/
|
||||
GetUserByName(ctx context.Context, username string) ApiGetUserByNameRequest
|
||||
|
||||
@ -87,8 +87,8 @@ type UserApi interface {
|
||||
/*
|
||||
LoginUser Logs user into the system
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiLoginUserRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiLoginUserRequest
|
||||
*/
|
||||
LoginUser(ctx context.Context) ApiLoginUserRequest
|
||||
|
||||
@ -99,8 +99,8 @@ type UserApi interface {
|
||||
/*
|
||||
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().
|
||||
@return ApiLogoutUserRequest
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiLogoutUserRequest
|
||||
*/
|
||||
LogoutUser(ctx context.Context) ApiLogoutUserRequest
|
||||
|
||||
@ -112,9 +112,9 @@ type UserApi interface {
|
||||
|
||||
This can only be done by the logged in user.
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@param username name that need to be deleted
|
||||
@return ApiUpdateUserRequest
|
||||
@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
|
||||
@return ApiUpdateUserRequest
|
||||
*/
|
||||
UpdateUser(ctx context.Context, username string) ApiUpdateUserRequest
|
||||
|
||||
@ -427,7 +427,6 @@ type ApiDeleteUserRequest struct {
|
||||
username string
|
||||
}
|
||||
|
||||
|
||||
func (r ApiDeleteUserRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.DeleteUserExecute(r)
|
||||
}
|
||||
@ -520,7 +519,6 @@ type ApiGetUserByNameRequest struct {
|
||||
username string
|
||||
}
|
||||
|
||||
|
||||
func (r ApiGetUserByNameRequest) Execute() (*User, *http.Response, error) {
|
||||
return r.ApiService.GetUserByNameExecute(r)
|
||||
}
|
||||
@ -628,6 +626,7 @@ func (r ApiLoginUserRequest) Username(username string) ApiLoginUserRequest {
|
||||
r.username = &username
|
||||
return r
|
||||
}
|
||||
|
||||
// The password for login in clear text
|
||||
func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest {
|
||||
r.password = &password
|
||||
@ -739,7 +738,6 @@ type ApiLogoutUserRequest struct {
|
||||
ApiService UserApi
|
||||
}
|
||||
|
||||
|
||||
func (r ApiLogoutUserRequest) Execute() (*http.Response, error) {
|
||||
return r.ApiService.LogoutUserExecute(r)
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ func (o *Animal) GetClassName() string {
|
||||
// GetClassNameOk returns a tuple with the ClassName field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Animal) GetClassNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.ClassName, true
|
||||
|
@ -54,7 +54,7 @@ func (o *AppleReq) GetCultivar() string {
|
||||
// GetCultivarOk returns a tuple with the Cultivar field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AppleReq) GetCultivarOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Cultivar, true
|
||||
|
@ -54,7 +54,7 @@ func (o *BananaReq) GetLengthCm() float32 {
|
||||
// GetLengthCmOk returns a tuple with the LengthCm field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *BananaReq) GetLengthCmOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.LengthCm, true
|
||||
|
@ -88,7 +88,7 @@ func (o *Category) GetName() string {
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Category) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
|
@ -100,7 +100,7 @@ func (o *EnumTest) GetEnumStringRequired() string {
|
||||
// GetEnumStringRequiredOk returns a tuple with the EnumStringRequired field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *EnumTest) GetEnumStringRequiredOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.EnumStringRequired, true
|
||||
@ -188,7 +188,7 @@ func (o *EnumTest) GetOuterEnum() OuterEnum {
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *EnumTest) GetOuterEnumOk() (*OuterEnum, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetNumberOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Number, true
|
||||
@ -290,7 +290,7 @@ func (o *FormatTest) GetByte() string {
|
||||
// GetByteOk returns a tuple with the Byte field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetByteOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Byte, true
|
||||
@ -346,7 +346,7 @@ func (o *FormatTest) GetDate() string {
|
||||
// GetDateOk returns a tuple with the Date field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetDateOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Date, true
|
||||
@ -434,7 +434,7 @@ func (o *FormatTest) GetPassword() string {
|
||||
// GetPasswordOk returns a tuple with the Password field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *FormatTest) GetPasswordOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Password, true
|
||||
|
@ -52,7 +52,7 @@ func (o *HealthCheckResult) GetNullableMessage() string {
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *HealthCheckResult) GetNullableMessageOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Name) GetNameOk() (*int32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
|
@ -65,7 +65,7 @@ func (o *NullableClass) GetIntegerProp() int32 {
|
||||
// and a boolean to check if the value has been set.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *NullableClass) GetIntegerPropOk() (*int32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *NullableClass) GetNumberPropOk() (*float32, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *NullableClass) GetBooleanPropOk() (*bool, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *NullableClass) GetStringPropOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *NullableClass) GetDatePropOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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.
|
||||
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
||||
func (o *NullableClass) GetDatetimePropOk() (*time.Time, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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).
|
||||
func (o *NullableClass) GetArrayNullableProp() []map[string]interface{} {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
var ret []map[string]interface{}
|
||||
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).
|
||||
func (o *NullableClass) GetArrayAndItemsNullableProp() []*map[string]interface{} {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
var ret []*map[string]interface{}
|
||||
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).
|
||||
func (o *NullableClass) GetObjectNullableProp() map[string]map[string]interface{} {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
var ret map[string]map[string]interface{}
|
||||
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).
|
||||
func (o *NullableClass) GetObjectAndItemsNullableProp() map[string]map[string]interface{} {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
var ret map[string]map[string]interface{}
|
||||
return ret
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ func (o *Pet) GetName() string {
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pet) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
@ -149,7 +149,7 @@ func (o *Pet) GetPhotoUrls() []string {
|
||||
// GetPhotoUrlsOk returns a tuple with the PhotoUrls field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Pet) GetPhotoUrlsOk() ([]string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
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).
|
||||
func (o *User) GetArbitraryNullableObject() map[string]interface{} {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
var ret map[string]interface{}
|
||||
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).
|
||||
func (o *User) GetArbitraryTypeValue() interface{} {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
var ret interface{}
|
||||
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).
|
||||
func (o *User) GetArbitraryNullableTypeValue() interface{} {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
var ret interface{}
|
||||
return ret
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ func (o *Whale) GetClassName() string {
|
||||
// GetClassNameOk returns a tuple with the ClassName field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Whale) GetClassNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.ClassName, true
|
||||
|
@ -86,7 +86,7 @@ func (o *Zebra) GetClassName() string {
|
||||
// GetClassNameOk returns a tuple with the ClassName field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Zebra) GetClassNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.ClassName, true
|
||||
|
Loading…
x
Reference in New Issue
Block a user