-
Notifications
You must be signed in to change notification settings - Fork 67
/
model_demo_pokeshop.go
40 lines (33 loc) 路 1.2 KB
/
model_demo_pokeshop.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* TraceTest
*
* OpenAPI definition for TraceTest endpoint and resources
*
* API version: 0.2.1
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
// DemoPokeshop - Represents the settings of the Pokeshop API demonstration.
type DemoPokeshop struct {
// HTTP endpoint for Pokeshop API
HttpEndpoint string `json:"httpEndpoint,omitempty"`
// gRPC endpoint for Pokeshop API
GrpcEndpoint string `json:"grpcEndpoint,omitempty"`
// kafka broker for Pokeshop API
KafkaBroker string `json:"kafkaBroker,omitempty"`
}
// AssertDemoPokeshopRequired checks if the required fields are not zero-ed
func AssertDemoPokeshopRequired(obj DemoPokeshop) error {
return nil
}
// AssertRecurseDemoPokeshopRequired recursively checks if required fields are not zero-ed in a nested slice.
// Accepts only nested slice of DemoPokeshop (e.g. [][]DemoPokeshop), otherwise ErrTypeAssertionError is thrown.
func AssertRecurseDemoPokeshopRequired(objSlice interface{}) error {
return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
aDemoPokeshop, ok := obj.(DemoPokeshop)
if !ok {
return ErrTypeAssertionError
}
return AssertDemoPokeshopRequired(aDemoPokeshop)
})
}