operations

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationIoGoswaggerExamplesTodoListV1JSON

func WithAcceptApplicationIoGoswaggerExamplesTodoListV1JSON(r *runtime.ClientOperation)

WithAcceptApplicationIoGoswaggerExamplesTodoListV1JSON sets the Accept header to "application/io.goswagger.examples.todo-list.v1+json".

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithContentTypeApplicationIoGoswaggerExamplesTodoListV1JSON

func WithContentTypeApplicationIoGoswaggerExamplesTodoListV1JSON(r *runtime.ClientOperation)

WithContentTypeApplicationIoGoswaggerExamplesTodoListV1JSON sets the Content-Type header to "application/io.goswagger.examples.todo-list.v1+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for operations API

func (*Client) PutTest2766

func (a *Client) PutTest2766(params *PutTest2766Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTest2766OK, error)

PutTest2766 put test2766 API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	PutTest2766(params *PutTest2766Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTest2766OK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new operations API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new operations API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new operations API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type PutTest2766OK

type PutTest2766OK struct {
	Payload *models.GithubReactions
}

PutTest2766OK describes a response with status code 200, with default header values.

test issue #2766

func NewPutTest2766OK

func NewPutTest2766OK() *PutTest2766OK

NewPutTest2766OK creates a PutTest2766OK with default headers values

func (*PutTest2766OK) Code

func (o *PutTest2766OK) Code() int

Code gets the status code for the put test2766 o k response

func (*PutTest2766OK) Error

func (o *PutTest2766OK) Error() string

func (*PutTest2766OK) GetPayload

func (o *PutTest2766OK) GetPayload() *models.GithubReactions

func (*PutTest2766OK) IsClientError

func (o *PutTest2766OK) IsClientError() bool

IsClientError returns true when this put test2766 o k response has a 4xx status code

func (*PutTest2766OK) IsCode

func (o *PutTest2766OK) IsCode(code int) bool

IsCode returns true when this put test2766 o k response a status code equal to that given

func (*PutTest2766OK) IsRedirect

func (o *PutTest2766OK) IsRedirect() bool

IsRedirect returns true when this put test2766 o k response has a 3xx status code

func (*PutTest2766OK) IsServerError

func (o *PutTest2766OK) IsServerError() bool

IsServerError returns true when this put test2766 o k response has a 5xx status code

func (*PutTest2766OK) IsSuccess

func (o *PutTest2766OK) IsSuccess() bool

IsSuccess returns true when this put test2766 o k response has a 2xx status code

func (*PutTest2766OK) String

func (o *PutTest2766OK) String() string

type PutTest2766Params

type PutTest2766Params struct {

	// Plus1.
	Plus1 *int64

	// Minus1.
	Minus1 *int64

	// Body.
	Body *models.GithubReactions

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutTest2766Params contains all the parameters to send to the API endpoint

for the put test2766 operation.

Typically these are written to a http.Request.

func NewPutTest2766Params

func NewPutTest2766Params() *PutTest2766Params

NewPutTest2766Params creates a new PutTest2766Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutTest2766ParamsWithContext

func NewPutTest2766ParamsWithContext(ctx context.Context) *PutTest2766Params

NewPutTest2766ParamsWithContext creates a new PutTest2766Params object with the ability to set a context for a request.

func NewPutTest2766ParamsWithHTTPClient

func NewPutTest2766ParamsWithHTTPClient(client *http.Client) *PutTest2766Params

NewPutTest2766ParamsWithHTTPClient creates a new PutTest2766Params object with the ability to set a custom HTTPClient for a request.

func NewPutTest2766ParamsWithTimeout

func NewPutTest2766ParamsWithTimeout(timeout time.Duration) *PutTest2766Params

NewPutTest2766ParamsWithTimeout creates a new PutTest2766Params object with the ability to set a timeout on a request.

func (*PutTest2766Params) SetBody

func (o *PutTest2766Params) SetBody(body *models.GithubReactions)

SetBody adds the body to the put test2766 params

func (*PutTest2766Params) SetContext

func (o *PutTest2766Params) SetContext(ctx context.Context)

SetContext adds the context to the put test2766 params

func (*PutTest2766Params) SetDefaults

func (o *PutTest2766Params) SetDefaults()

SetDefaults hydrates default values in the put test2766 params (not the query body).

All values with no default are reset to their zero value.

func (*PutTest2766Params) SetHTTPClient

func (o *PutTest2766Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put test2766 params

func (*PutTest2766Params) SetMinus1

func (o *PutTest2766Params) SetMinus1(minus1 *int64)

SetMinus1 adds the 1 to the put test2766 params

func (*PutTest2766Params) SetPlus1

func (o *PutTest2766Params) SetPlus1(plus1 *int64)

SetPlus1 adds the 1 to the put test2766 params

func (*PutTest2766Params) SetTimeout

func (o *PutTest2766Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put test2766 params

func (*PutTest2766Params) WithBody

WithBody adds the body to the put test2766 params

func (*PutTest2766Params) WithContext

func (o *PutTest2766Params) WithContext(ctx context.Context) *PutTest2766Params

WithContext adds the context to the put test2766 params

func (*PutTest2766Params) WithDefaults

func (o *PutTest2766Params) WithDefaults() *PutTest2766Params

WithDefaults hydrates default values in the put test2766 params (not the query body).

All values with no default are reset to their zero value.

func (*PutTest2766Params) WithHTTPClient

func (o *PutTest2766Params) WithHTTPClient(client *http.Client) *PutTest2766Params

WithHTTPClient adds the HTTPClient to the put test2766 params

func (*PutTest2766Params) WithMinus1

func (o *PutTest2766Params) WithMinus1(minus1 *int64) *PutTest2766Params

WithMinus1 adds the minus1 to the put test2766 params

func (*PutTest2766Params) WithPlus1

func (o *PutTest2766Params) WithPlus1(plus1 *int64) *PutTest2766Params

WithPlus1 adds the plus1 to the put test2766 params

func (*PutTest2766Params) WithTimeout

func (o *PutTest2766Params) WithTimeout(timeout time.Duration) *PutTest2766Params

WithTimeout adds the timeout to the put test2766 params

func (*PutTest2766Params) WriteToRequest

func (o *PutTest2766Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutTest2766Reader

type PutTest2766Reader struct {
	// contains filtered or unexported fields
}

PutTest2766Reader is a Reader for the PutTest2766 structure.

func (*PutTest2766Reader) ReadResponse

func (o *PutTest2766Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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