Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAgreementReports(params *GetAgreementReportsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAgreementReportsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Update(params *UpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateOK, error)
- type ClientOption
- type ClientService
- type GetAgreementReportsOK
- type GetAgreementReportsParams
- func NewGetAgreementReportsParams() *GetAgreementReportsParams
- func NewGetAgreementReportsParamsWithContext(ctx context.Context) *GetAgreementReportsParams
- func NewGetAgreementReportsParamsWithHTTPClient(client *http.Client) *GetAgreementReportsParams
- func NewGetAgreementReportsParamsWithTimeout(timeout time.Duration) *GetAgreementReportsParams
- func (o *GetAgreementReportsParams) SetContext(ctx context.Context)
- func (o *GetAgreementReportsParams) SetDefaults()
- func (o *GetAgreementReportsParams) SetHTTPClient(client *http.Client)
- func (o *GetAgreementReportsParams) SetProductContainerID(productContainerID int32)
- func (o *GetAgreementReportsParams) SetTimeout(timeout time.Duration)
- func (o *GetAgreementReportsParams) WithContext(ctx context.Context) *GetAgreementReportsParams
- func (o *GetAgreementReportsParams) WithDefaults() *GetAgreementReportsParams
- func (o *GetAgreementReportsParams) WithHTTPClient(client *http.Client) *GetAgreementReportsParams
- func (o *GetAgreementReportsParams) WithProductContainerID(productContainerID int32) *GetAgreementReportsParams
- func (o *GetAgreementReportsParams) WithTimeout(timeout time.Duration) *GetAgreementReportsParams
- func (o *GetAgreementReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAgreementReportsReader
- type UpdateOK
- type UpdateParams
- func (o *UpdateParams) SetAgreementID(agreementID int32)
- func (o *UpdateParams) SetAgreementReport(agreementReport *models.AgreementReport)
- func (o *UpdateParams) SetContext(ctx context.Context)
- func (o *UpdateParams) SetDefaults()
- func (o *UpdateParams) SetHTTPClient(client *http.Client)
- func (o *UpdateParams) SetTimeout(timeout time.Duration)
- func (o *UpdateParams) WithAgreementID(agreementID int32) *UpdateParams
- func (o *UpdateParams) WithAgreementReport(agreementReport *models.AgreementReport) *UpdateParams
- func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
- func (o *UpdateParams) WithDefaults() *UpdateParams
- func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
- func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
- func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for agreement reports API
func (*Client) GetAgreementReports ¶
func (a *Client) GetAgreementReports(params *GetAgreementReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgreementReportsOK, error)
GetAgreementReports get agreement reports API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Update ¶
func (a *Client) Update(params *UpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOK, error)
Update update API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetAgreementReports(params *GetAgreementReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgreementReportsOK, error) Update(params *UpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOK, 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 agreement reports API client.
type GetAgreementReportsOK ¶
type GetAgreementReportsOK struct {
Payload *models.APICollectionOfAgreementReport
}
GetAgreementReportsOK describes a response with status code 200, with default header values.
Success
func NewGetAgreementReportsOK ¶
func NewGetAgreementReportsOK() *GetAgreementReportsOK
NewGetAgreementReportsOK creates a GetAgreementReportsOK with default headers values
func (*GetAgreementReportsOK) Error ¶
func (o *GetAgreementReportsOK) Error() string
func (*GetAgreementReportsOK) GetPayload ¶
func (o *GetAgreementReportsOK) GetPayload() *models.APICollectionOfAgreementReport
type GetAgreementReportsParams ¶
type GetAgreementReportsParams struct { // ProductContainerID. // // Format: int32 ProductContainerID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAgreementReportsParams contains all the parameters to send to the API endpoint
for the get agreement reports operation. Typically these are written to a http.Request.
func NewGetAgreementReportsParams ¶
func NewGetAgreementReportsParams() *GetAgreementReportsParams
NewGetAgreementReportsParams creates a new GetAgreementReportsParams 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 NewGetAgreementReportsParamsWithContext ¶
func NewGetAgreementReportsParamsWithContext(ctx context.Context) *GetAgreementReportsParams
NewGetAgreementReportsParamsWithContext creates a new GetAgreementReportsParams object with the ability to set a context for a request.
func NewGetAgreementReportsParamsWithHTTPClient ¶
func NewGetAgreementReportsParamsWithHTTPClient(client *http.Client) *GetAgreementReportsParams
NewGetAgreementReportsParamsWithHTTPClient creates a new GetAgreementReportsParams object with the ability to set a custom HTTPClient for a request.
func NewGetAgreementReportsParamsWithTimeout ¶
func NewGetAgreementReportsParamsWithTimeout(timeout time.Duration) *GetAgreementReportsParams
NewGetAgreementReportsParamsWithTimeout creates a new GetAgreementReportsParams object with the ability to set a timeout on a request.
func (*GetAgreementReportsParams) SetContext ¶
func (o *GetAgreementReportsParams) SetContext(ctx context.Context)
SetContext adds the context to the get agreement reports params
func (*GetAgreementReportsParams) SetDefaults ¶
func (o *GetAgreementReportsParams) SetDefaults()
SetDefaults hydrates default values in the get agreement reports params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgreementReportsParams) SetHTTPClient ¶
func (o *GetAgreementReportsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get agreement reports params
func (*GetAgreementReportsParams) SetProductContainerID ¶
func (o *GetAgreementReportsParams) SetProductContainerID(productContainerID int32)
SetProductContainerID adds the productContainerId to the get agreement reports params
func (*GetAgreementReportsParams) SetTimeout ¶
func (o *GetAgreementReportsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get agreement reports params
func (*GetAgreementReportsParams) WithContext ¶
func (o *GetAgreementReportsParams) WithContext(ctx context.Context) *GetAgreementReportsParams
WithContext adds the context to the get agreement reports params
func (*GetAgreementReportsParams) WithDefaults ¶
func (o *GetAgreementReportsParams) WithDefaults() *GetAgreementReportsParams
WithDefaults hydrates default values in the get agreement reports params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgreementReportsParams) WithHTTPClient ¶
func (o *GetAgreementReportsParams) WithHTTPClient(client *http.Client) *GetAgreementReportsParams
WithHTTPClient adds the HTTPClient to the get agreement reports params
func (*GetAgreementReportsParams) WithProductContainerID ¶
func (o *GetAgreementReportsParams) WithProductContainerID(productContainerID int32) *GetAgreementReportsParams
WithProductContainerID adds the productContainerID to the get agreement reports params
func (*GetAgreementReportsParams) WithTimeout ¶
func (o *GetAgreementReportsParams) WithTimeout(timeout time.Duration) *GetAgreementReportsParams
WithTimeout adds the timeout to the get agreement reports params
func (*GetAgreementReportsParams) WriteToRequest ¶
func (o *GetAgreementReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAgreementReportsReader ¶
type GetAgreementReportsReader struct {
// contains filtered or unexported fields
}
GetAgreementReportsReader is a Reader for the GetAgreementReports structure.
func (*GetAgreementReportsReader) ReadResponse ¶
func (o *GetAgreementReportsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateOK ¶
type UpdateOK struct {
Payload *models.AgreementReport
}
UpdateOK describes a response with status code 200, with default header values.
Success
func NewUpdateOK ¶
func NewUpdateOK() *UpdateOK
NewUpdateOK creates a UpdateOK with default headers values
func (*UpdateOK) GetPayload ¶
func (o *UpdateOK) GetPayload() *models.AgreementReport
type UpdateParams ¶
type UpdateParams struct { // AgreementID. // // Format: int32 AgreementID int32 // AgreementReport. AgreementReport *models.AgreementReport Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateParams contains all the parameters to send to the API endpoint
for the update operation. Typically these are written to a http.Request.
func NewUpdateParams ¶
func NewUpdateParams() *UpdateParams
NewUpdateParams creates a new UpdateParams 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 NewUpdateParamsWithContext ¶
func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams
NewUpdateParamsWithContext creates a new UpdateParams object with the ability to set a context for a request.
func NewUpdateParamsWithHTTPClient ¶
func NewUpdateParamsWithHTTPClient(client *http.Client) *UpdateParams
NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateParamsWithTimeout ¶
func NewUpdateParamsWithTimeout(timeout time.Duration) *UpdateParams
NewUpdateParamsWithTimeout creates a new UpdateParams object with the ability to set a timeout on a request.
func (*UpdateParams) SetAgreementID ¶
func (o *UpdateParams) SetAgreementID(agreementID int32)
SetAgreementID adds the agreementId to the update params
func (*UpdateParams) SetAgreementReport ¶
func (o *UpdateParams) SetAgreementReport(agreementReport *models.AgreementReport)
SetAgreementReport adds the agreementReport to the update params
func (*UpdateParams) SetContext ¶
func (o *UpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the update params
func (*UpdateParams) SetDefaults ¶
func (o *UpdateParams) SetDefaults()
SetDefaults hydrates default values in the update params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateParams) SetHTTPClient ¶
func (o *UpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) SetTimeout ¶
func (o *UpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update params
func (*UpdateParams) WithAgreementID ¶
func (o *UpdateParams) WithAgreementID(agreementID int32) *UpdateParams
WithAgreementID adds the agreementID to the update params
func (*UpdateParams) WithAgreementReport ¶
func (o *UpdateParams) WithAgreementReport(agreementReport *models.AgreementReport) *UpdateParams
WithAgreementReport adds the agreementReport to the update params
func (*UpdateParams) WithContext ¶
func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
WithContext adds the context to the update params
func (*UpdateParams) WithDefaults ¶
func (o *UpdateParams) WithDefaults() *UpdateParams
WithDefaults hydrates default values in the update params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateParams) WithHTTPClient ¶
func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
WithHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) WithTimeout ¶
func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
WithTimeout adds the timeout to the update params
func (*UpdateParams) WriteToRequest ¶
func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateReader ¶
type UpdateReader struct {
// contains filtered or unexported fields
}
UpdateReader is a Reader for the Update structure.
func (*UpdateReader) ReadResponse ¶
func (o *UpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.