models

package module
v0.0.0-...-6148fba Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package models provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AitrailblazerServiceAddPetJSONRequestBody

type AitrailblazerServiceAddPetJSONRequestBody = NewPet

AitrailblazerServiceAddPetJSONRequestBody defines body for AitrailblazerServiceAddPet for application/json ContentType.

type AitrailblazerServiceEchoParams

type AitrailblazerServiceEchoParams struct {
	Value *string `form:"value,omitempty" json:"value,omitempty"`
}

AitrailblazerServiceEchoParams defines parameters for AitrailblazerServiceEcho.

type AitrailblazerServiceFindPetsParams

type AitrailblazerServiceFindPetsParams struct {
	Tags  *[]string `form:"tags,omitempty" json:"tags,omitempty"`
	Limit *int32    `form:"limit,omitempty" json:"limit,omitempty"`
}

AitrailblazerServiceFindPetsParams defines parameters for AitrailblazerServiceFindPets.

type AitrailblazerServiceListPetsParams

type AitrailblazerServiceListPetsParams struct {
	// PageSize The maximum number of pets to return. The service may return fewer than this value. If unspecified, at most 50 pets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`

	// PageToken A page token, received from a previous `ListPets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBooks` must match the call that provided the page token.
	PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"`

	// Filter An expression that can be used to filter the list. Filters use the Common Expression Language and can refer to all message fields.
	Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
}

AitrailblazerServiceListPetsParams defines parameters for AitrailblazerServiceListPets.

type AitrailblazerServiceSendPingParams

type AitrailblazerServiceSendPingParams struct {
	Message *string `form:"message,omitempty" json:"message,omitempty"`
}

AitrailblazerServiceSendPingParams defines parameters for AitrailblazerServiceSendPing.

type EchoMessage

type EchoMessage struct {
	Value *string `json:"value,omitempty"`
}

EchoMessage defines model for EchoMessage.

type Error

type Error struct {
	Code    *int32  `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

Error defines model for Error.

type GoogleProtobufAny

type GoogleProtobufAny struct {
	// Type The type of the serialized message.
	Type                 *string                `json:"@type,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

GoogleProtobufAny Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

func (GoogleProtobufAny) Get

func (a GoogleProtobufAny) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for GoogleProtobufAny. Returns the specified element and whether it was found

func (GoogleProtobufAny) MarshalJSON

func (a GoogleProtobufAny) MarshalJSON() ([]byte, error)

Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties

func (*GoogleProtobufAny) Set

func (a *GoogleProtobufAny) Set(fieldName string, value interface{})

Setter for additional properties for GoogleProtobufAny

func (*GoogleProtobufAny) UnmarshalJSON

func (a *GoogleProtobufAny) UnmarshalJSON(b []byte) error

Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties

type ListPetsResponse

type ListPetsResponse struct {
	// NextPageToken A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
	NextPageToken *string `json:"nextPageToken,omitempty"`

	// Pets The Pets.
	Pets *[]Pet `json:"pets,omitempty"`
}

ListPetsResponse defines model for ListPetsResponse.

type NewPet

type NewPet struct {
	Name *string `json:"name,omitempty"`
	Tag  *string `json:"tag,omitempty"`
}

NewPet The NewPet message contains information about a new pet being added to the system. It includes the name of the pet (a string) and a tag (also a string) that can be used to identify the pet. This message is used as the "new_pet" field in the AddPetParameters message, which is passed as input to the AddPet RPC.

type Pet

type Pet struct {
	// Id The id of the pet
	Id *int64 `json:"id,omitempty"`

	// Name The name of the pet
	Name *string `json:"name,omitempty"`

	// Tag The tag of the pet
	Tag *string `json:"tag,omitempty"`
}

Pet The message Pet is a data structure that represents a pet in this gRPC function. It has three fields: name, tag, and id. The name field is a string that represents the name of the pet. The tag field is a string that represents a tag or label associated with the pet. The id field is an integer that represents a unique identifier for the pet. These three fields are defined as required fields, meaning that they must be provided when creating a new Pet object.

type PingResponse

type PingResponse struct {
	Pong *Pong `json:"pong,omitempty"`
}

PingResponse defines model for PingResponse.

type Pong

type Pong struct {
	Index      *int32     `json:"index,omitempty"`
	Message    *string    `json:"message,omitempty"`
	ReceivedOn *time.Time `json:"receivedOn,omitempty"`
	Ver        *string    `json:"ver,omitempty"`
}

Pong defines model for Pong.

type Status

type Status struct {
	// Code The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
	Code *int32 `json:"code,omitempty"`

	// Details A list of messages that carry the error details.  There is a common set of message types for APIs to use.
	Details *[]GoogleProtobufAny `json:"details,omitempty"`

	// Message A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
	Message *string `json:"message,omitempty"`
}

Status The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

Jump to

Keyboard shortcuts

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