party

package
v0.0.0-...-2439cfa Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

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

func WithAcceptApplicationXML

func WithAcceptApplicationXML(r *runtime.ClientOperation)

WithAcceptApplicationXML sets the Accept header to "application/xml".

func WithAcceptTextJSON

func WithAcceptTextJSON(r *runtime.ClientOperation)

WithAcceptTextJSON sets the Accept header to "text/json".

func WithAcceptTextXML

func WithAcceptTextXML(r *runtime.ClientOperation)

WithAcceptTextXML sets the Accept header to "text/xml".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

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

func WithContentTypeApplicationXML

func WithContentTypeApplicationXML(r *runtime.ClientOperation)

WithContentTypeApplicationXML sets the Content-Type header to "application/xml".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

func WithContentTypeTextJSON

func WithContentTypeTextJSON(r *runtime.ClientOperation)

WithContentTypeTextJSON sets the Content-Type header to "text/json".

func WithContentTypeTextXML

func WithContentTypeTextXML(r *runtime.ClientOperation)

WithContentTypeTextXML sets the Content-Type header to "text/xml".

Types

type Client

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

Client for party API

func (*Client) PartyGetParties

func (a *Client) PartyGetParties(params *PartyGetPartiesParams, opts ...ClientOption) (*PartyGetPartiesOK, error)

PartyGetParties party get parties API

func (*Client) PartyGetParty

func (a *Client) PartyGetParty(params *PartyGetPartyParams, opts ...ClientOption) (*PartyGetPartyOK, error)

PartyGetParty party get party API

func (*Client) PartyPatchParties

func (a *Client) PartyPatchParties(params *PartyPatchPartiesParams, opts ...ClientOption) (*PartyPatchPartiesOK, error)

PartyPatchParties endpoints to patch party properties won t work with navigation properties

func (*Client) PartyPostParty

func (a *Client) PartyPostParty(params *PartyPostPartyParams, opts ...ClientOption) (*PartyPostPartyOK, error)

PartyPostParty party post party 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 {
	PartyGetParties(params *PartyGetPartiesParams, opts ...ClientOption) (*PartyGetPartiesOK, error)

	PartyGetParty(params *PartyGetPartyParams, opts ...ClientOption) (*PartyGetPartyOK, error)

	PartyPatchParties(params *PartyPatchPartiesParams, opts ...ClientOption) (*PartyPatchPartiesOK, error)

	PartyPostParty(params *PartyPostPartyParams, opts ...ClientOption) (*PartyPostPartyOK, 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 party API client.

func NewClientWithBasicAuth

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

New creates a new party 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 party 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 PartyGetPartiesOK

type PartyGetPartiesOK struct {
	Payload []*model.Party
}

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

Get a list of customers or suppliers

func NewPartyGetPartiesOK

func NewPartyGetPartiesOK() *PartyGetPartiesOK

NewPartyGetPartiesOK creates a PartyGetPartiesOK with default headers values

func (*PartyGetPartiesOK) Code

func (o *PartyGetPartiesOK) Code() int

Code gets the status code for the party get parties o k response

func (*PartyGetPartiesOK) Error

func (o *PartyGetPartiesOK) Error() string

func (*PartyGetPartiesOK) GetPayload

func (o *PartyGetPartiesOK) GetPayload() []*model.Party

func (*PartyGetPartiesOK) IsClientError

func (o *PartyGetPartiesOK) IsClientError() bool

IsClientError returns true when this party get parties o k response has a 4xx status code

func (*PartyGetPartiesOK) IsCode

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

IsCode returns true when this party get parties o k response a status code equal to that given

func (*PartyGetPartiesOK) IsRedirect

func (o *PartyGetPartiesOK) IsRedirect() bool

IsRedirect returns true when this party get parties o k response has a 3xx status code

func (*PartyGetPartiesOK) IsServerError

func (o *PartyGetPartiesOK) IsServerError() bool

IsServerError returns true when this party get parties o k response has a 5xx status code

func (*PartyGetPartiesOK) IsSuccess

func (o *PartyGetPartiesOK) IsSuccess() bool

IsSuccess returns true when this party get parties o k response has a 2xx status code

func (*PartyGetPartiesOK) String

func (o *PartyGetPartiesOK) String() string

type PartyGetPartiesParams

type PartyGetPartiesParams struct {

	// FullTextSearch.
	FullTextSearch *string

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

PartyGetPartiesParams contains all the parameters to send to the API endpoint

for the party get parties operation.

Typically these are written to a http.Request.

func NewPartyGetPartiesParams

func NewPartyGetPartiesParams() *PartyGetPartiesParams

NewPartyGetPartiesParams creates a new PartyGetPartiesParams 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 NewPartyGetPartiesParamsWithContext

func NewPartyGetPartiesParamsWithContext(ctx context.Context) *PartyGetPartiesParams

NewPartyGetPartiesParamsWithContext creates a new PartyGetPartiesParams object with the ability to set a context for a request.

func NewPartyGetPartiesParamsWithHTTPClient

func NewPartyGetPartiesParamsWithHTTPClient(client *http.Client) *PartyGetPartiesParams

NewPartyGetPartiesParamsWithHTTPClient creates a new PartyGetPartiesParams object with the ability to set a custom HTTPClient for a request.

func NewPartyGetPartiesParamsWithTimeout

func NewPartyGetPartiesParamsWithTimeout(timeout time.Duration) *PartyGetPartiesParams

NewPartyGetPartiesParamsWithTimeout creates a new PartyGetPartiesParams object with the ability to set a timeout on a request.

func (*PartyGetPartiesParams) SetContext

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

SetContext adds the context to the party get parties params

func (*PartyGetPartiesParams) SetDefaults

func (o *PartyGetPartiesParams) SetDefaults()

SetDefaults hydrates default values in the party get parties params (not the query body).

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

func (*PartyGetPartiesParams) SetFullTextSearch

func (o *PartyGetPartiesParams) SetFullTextSearch(fullTextSearch *string)

SetFullTextSearch adds the fullTextSearch to the party get parties params

func (*PartyGetPartiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the party get parties params

func (*PartyGetPartiesParams) SetTimeout

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

SetTimeout adds the timeout to the party get parties params

func (*PartyGetPartiesParams) WithContext

WithContext adds the context to the party get parties params

func (*PartyGetPartiesParams) WithDefaults

func (o *PartyGetPartiesParams) WithDefaults() *PartyGetPartiesParams

WithDefaults hydrates default values in the party get parties params (not the query body).

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

func (*PartyGetPartiesParams) WithFullTextSearch

func (o *PartyGetPartiesParams) WithFullTextSearch(fullTextSearch *string) *PartyGetPartiesParams

WithFullTextSearch adds the fullTextSearch to the party get parties params

func (*PartyGetPartiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the party get parties params

func (*PartyGetPartiesParams) WithTimeout

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

WithTimeout adds the timeout to the party get parties params

func (*PartyGetPartiesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PartyGetPartiesReader

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

PartyGetPartiesReader is a Reader for the PartyGetParties structure.

func (*PartyGetPartiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PartyGetPartyOK

type PartyGetPartyOK struct {
	Payload *model.Party
}

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

Get a party

func NewPartyGetPartyOK

func NewPartyGetPartyOK() *PartyGetPartyOK

NewPartyGetPartyOK creates a PartyGetPartyOK with default headers values

func (*PartyGetPartyOK) Code

func (o *PartyGetPartyOK) Code() int

Code gets the status code for the party get party o k response

func (*PartyGetPartyOK) Error

func (o *PartyGetPartyOK) Error() string

func (*PartyGetPartyOK) GetPayload

func (o *PartyGetPartyOK) GetPayload() *model.Party

func (*PartyGetPartyOK) IsClientError

func (o *PartyGetPartyOK) IsClientError() bool

IsClientError returns true when this party get party o k response has a 4xx status code

func (*PartyGetPartyOK) IsCode

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

IsCode returns true when this party get party o k response a status code equal to that given

func (*PartyGetPartyOK) IsRedirect

func (o *PartyGetPartyOK) IsRedirect() bool

IsRedirect returns true when this party get party o k response has a 3xx status code

func (*PartyGetPartyOK) IsServerError

func (o *PartyGetPartyOK) IsServerError() bool

IsServerError returns true when this party get party o k response has a 5xx status code

func (*PartyGetPartyOK) IsSuccess

func (o *PartyGetPartyOK) IsSuccess() bool

IsSuccess returns true when this party get party o k response has a 2xx status code

func (*PartyGetPartyOK) String

func (o *PartyGetPartyOK) String() string

type PartyGetPartyParams

type PartyGetPartyParams struct {

	// PartyID.
	//
	// Format: int32
	PartyID int32

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

PartyGetPartyParams contains all the parameters to send to the API endpoint

for the party get party operation.

Typically these are written to a http.Request.

func NewPartyGetPartyParams

func NewPartyGetPartyParams() *PartyGetPartyParams

NewPartyGetPartyParams creates a new PartyGetPartyParams 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 NewPartyGetPartyParamsWithContext

func NewPartyGetPartyParamsWithContext(ctx context.Context) *PartyGetPartyParams

NewPartyGetPartyParamsWithContext creates a new PartyGetPartyParams object with the ability to set a context for a request.

func NewPartyGetPartyParamsWithHTTPClient

func NewPartyGetPartyParamsWithHTTPClient(client *http.Client) *PartyGetPartyParams

NewPartyGetPartyParamsWithHTTPClient creates a new PartyGetPartyParams object with the ability to set a custom HTTPClient for a request.

func NewPartyGetPartyParamsWithTimeout

func NewPartyGetPartyParamsWithTimeout(timeout time.Duration) *PartyGetPartyParams

NewPartyGetPartyParamsWithTimeout creates a new PartyGetPartyParams object with the ability to set a timeout on a request.

func (*PartyGetPartyParams) SetContext

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

SetContext adds the context to the party get party params

func (*PartyGetPartyParams) SetDefaults

func (o *PartyGetPartyParams) SetDefaults()

SetDefaults hydrates default values in the party get party params (not the query body).

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

func (*PartyGetPartyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the party get party params

func (*PartyGetPartyParams) SetPartyID

func (o *PartyGetPartyParams) SetPartyID(partyID int32)

SetPartyID adds the partyId to the party get party params

func (*PartyGetPartyParams) SetTimeout

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

SetTimeout adds the timeout to the party get party params

func (*PartyGetPartyParams) WithContext

WithContext adds the context to the party get party params

func (*PartyGetPartyParams) WithDefaults

func (o *PartyGetPartyParams) WithDefaults() *PartyGetPartyParams

WithDefaults hydrates default values in the party get party params (not the query body).

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

func (*PartyGetPartyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the party get party params

func (*PartyGetPartyParams) WithPartyID

func (o *PartyGetPartyParams) WithPartyID(partyID int32) *PartyGetPartyParams

WithPartyID adds the partyID to the party get party params

func (*PartyGetPartyParams) WithTimeout

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

WithTimeout adds the timeout to the party get party params

func (*PartyGetPartyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PartyGetPartyReader

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

PartyGetPartyReader is a Reader for the PartyGetParty structure.

func (*PartyGetPartyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PartyPatchPartiesOK

type PartyPatchPartiesOK struct {
}

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

Patch a party

func NewPartyPatchPartiesOK

func NewPartyPatchPartiesOK() *PartyPatchPartiesOK

NewPartyPatchPartiesOK creates a PartyPatchPartiesOK with default headers values

func (*PartyPatchPartiesOK) Code

func (o *PartyPatchPartiesOK) Code() int

Code gets the status code for the party patch parties o k response

func (*PartyPatchPartiesOK) Error

func (o *PartyPatchPartiesOK) Error() string

func (*PartyPatchPartiesOK) IsClientError

func (o *PartyPatchPartiesOK) IsClientError() bool

IsClientError returns true when this party patch parties o k response has a 4xx status code

func (*PartyPatchPartiesOK) IsCode

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

IsCode returns true when this party patch parties o k response a status code equal to that given

func (*PartyPatchPartiesOK) IsRedirect

func (o *PartyPatchPartiesOK) IsRedirect() bool

IsRedirect returns true when this party patch parties o k response has a 3xx status code

func (*PartyPatchPartiesOK) IsServerError

func (o *PartyPatchPartiesOK) IsServerError() bool

IsServerError returns true when this party patch parties o k response has a 5xx status code

func (*PartyPatchPartiesOK) IsSuccess

func (o *PartyPatchPartiesOK) IsSuccess() bool

IsSuccess returns true when this party patch parties o k response has a 2xx status code

func (*PartyPatchPartiesOK) String

func (o *PartyPatchPartiesOK) String() string

type PartyPatchPartiesParams

type PartyPatchPartiesParams struct {

	// Delta.
	Delta interface{}

	/* PartyID.

	   The PartyID of the Party you want to update

	   Format: int32
	*/
	PartyID int32

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

PartyPatchPartiesParams contains all the parameters to send to the API endpoint

for the party patch parties operation.

Typically these are written to a http.Request.

func NewPartyPatchPartiesParams

func NewPartyPatchPartiesParams() *PartyPatchPartiesParams

NewPartyPatchPartiesParams creates a new PartyPatchPartiesParams 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 NewPartyPatchPartiesParamsWithContext

func NewPartyPatchPartiesParamsWithContext(ctx context.Context) *PartyPatchPartiesParams

NewPartyPatchPartiesParamsWithContext creates a new PartyPatchPartiesParams object with the ability to set a context for a request.

func NewPartyPatchPartiesParamsWithHTTPClient

func NewPartyPatchPartiesParamsWithHTTPClient(client *http.Client) *PartyPatchPartiesParams

NewPartyPatchPartiesParamsWithHTTPClient creates a new PartyPatchPartiesParams object with the ability to set a custom HTTPClient for a request.

func NewPartyPatchPartiesParamsWithTimeout

func NewPartyPatchPartiesParamsWithTimeout(timeout time.Duration) *PartyPatchPartiesParams

NewPartyPatchPartiesParamsWithTimeout creates a new PartyPatchPartiesParams object with the ability to set a timeout on a request.

func (*PartyPatchPartiesParams) SetContext

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

SetContext adds the context to the party patch parties params

func (*PartyPatchPartiesParams) SetDefaults

func (o *PartyPatchPartiesParams) SetDefaults()

SetDefaults hydrates default values in the party patch parties params (not the query body).

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

func (*PartyPatchPartiesParams) SetDelta

func (o *PartyPatchPartiesParams) SetDelta(delta interface{})

SetDelta adds the delta to the party patch parties params

func (*PartyPatchPartiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the party patch parties params

func (*PartyPatchPartiesParams) SetPartyID

func (o *PartyPatchPartiesParams) SetPartyID(partyID int32)

SetPartyID adds the partyId to the party patch parties params

func (*PartyPatchPartiesParams) SetTimeout

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

SetTimeout adds the timeout to the party patch parties params

func (*PartyPatchPartiesParams) WithContext

WithContext adds the context to the party patch parties params

func (*PartyPatchPartiesParams) WithDefaults

WithDefaults hydrates default values in the party patch parties params (not the query body).

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

func (*PartyPatchPartiesParams) WithDelta

func (o *PartyPatchPartiesParams) WithDelta(delta interface{}) *PartyPatchPartiesParams

WithDelta adds the delta to the party patch parties params

func (*PartyPatchPartiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the party patch parties params

func (*PartyPatchPartiesParams) WithPartyID

func (o *PartyPatchPartiesParams) WithPartyID(partyID int32) *PartyPatchPartiesParams

WithPartyID adds the partyID to the party patch parties params

func (*PartyPatchPartiesParams) WithTimeout

WithTimeout adds the timeout to the party patch parties params

func (*PartyPatchPartiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PartyPatchPartiesReader

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

PartyPatchPartiesReader is a Reader for the PartyPatchParties structure.

func (*PartyPatchPartiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PartyPostPartyOK

type PartyPostPartyOK struct {
	Payload int32
}

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

Save a party

func NewPartyPostPartyOK

func NewPartyPostPartyOK() *PartyPostPartyOK

NewPartyPostPartyOK creates a PartyPostPartyOK with default headers values

func (*PartyPostPartyOK) Code

func (o *PartyPostPartyOK) Code() int

Code gets the status code for the party post party o k response

func (*PartyPostPartyOK) Error

func (o *PartyPostPartyOK) Error() string

func (*PartyPostPartyOK) GetPayload

func (o *PartyPostPartyOK) GetPayload() int32

func (*PartyPostPartyOK) IsClientError

func (o *PartyPostPartyOK) IsClientError() bool

IsClientError returns true when this party post party o k response has a 4xx status code

func (*PartyPostPartyOK) IsCode

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

IsCode returns true when this party post party o k response a status code equal to that given

func (*PartyPostPartyOK) IsRedirect

func (o *PartyPostPartyOK) IsRedirect() bool

IsRedirect returns true when this party post party o k response has a 3xx status code

func (*PartyPostPartyOK) IsServerError

func (o *PartyPostPartyOK) IsServerError() bool

IsServerError returns true when this party post party o k response has a 5xx status code

func (*PartyPostPartyOK) IsSuccess

func (o *PartyPostPartyOK) IsSuccess() bool

IsSuccess returns true when this party post party o k response has a 2xx status code

func (*PartyPostPartyOK) String

func (o *PartyPostPartyOK) String() string

type PartyPostPartyParams

type PartyPostPartyParams struct {

	// Party.
	Party *model.Party

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

PartyPostPartyParams contains all the parameters to send to the API endpoint

for the party post party operation.

Typically these are written to a http.Request.

func NewPartyPostPartyParams

func NewPartyPostPartyParams() *PartyPostPartyParams

NewPartyPostPartyParams creates a new PartyPostPartyParams 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 NewPartyPostPartyParamsWithContext

func NewPartyPostPartyParamsWithContext(ctx context.Context) *PartyPostPartyParams

NewPartyPostPartyParamsWithContext creates a new PartyPostPartyParams object with the ability to set a context for a request.

func NewPartyPostPartyParamsWithHTTPClient

func NewPartyPostPartyParamsWithHTTPClient(client *http.Client) *PartyPostPartyParams

NewPartyPostPartyParamsWithHTTPClient creates a new PartyPostPartyParams object with the ability to set a custom HTTPClient for a request.

func NewPartyPostPartyParamsWithTimeout

func NewPartyPostPartyParamsWithTimeout(timeout time.Duration) *PartyPostPartyParams

NewPartyPostPartyParamsWithTimeout creates a new PartyPostPartyParams object with the ability to set a timeout on a request.

func (*PartyPostPartyParams) SetContext

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

SetContext adds the context to the party post party params

func (*PartyPostPartyParams) SetDefaults

func (o *PartyPostPartyParams) SetDefaults()

SetDefaults hydrates default values in the party post party params (not the query body).

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

func (*PartyPostPartyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the party post party params

func (*PartyPostPartyParams) SetParty

func (o *PartyPostPartyParams) SetParty(party *model.Party)

SetParty adds the party to the party post party params

func (*PartyPostPartyParams) SetTimeout

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

SetTimeout adds the timeout to the party post party params

func (*PartyPostPartyParams) WithContext

WithContext adds the context to the party post party params

func (*PartyPostPartyParams) WithDefaults

func (o *PartyPostPartyParams) WithDefaults() *PartyPostPartyParams

WithDefaults hydrates default values in the party post party params (not the query body).

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

func (*PartyPostPartyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the party post party params

func (*PartyPostPartyParams) WithParty

func (o *PartyPostPartyParams) WithParty(party *model.Party) *PartyPostPartyParams

WithParty adds the party to the party post party params

func (*PartyPostPartyParams) WithTimeout

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

WithTimeout adds the timeout to the party post party params

func (*PartyPostPartyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PartyPostPartyReader

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

PartyPostPartyReader is a Reader for the PartyPostParty structure.

func (*PartyPostPartyReader) ReadResponse

func (o *PartyPostPartyReader) 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