agreement_reports

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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

WithContext adds the context to the get agreement reports params

func (*GetAgreementReportsParams) WithDefaults

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

WithTimeout adds the timeout to the get agreement reports params

func (*GetAgreementReportsParams) WriteToRequest

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) Error

func (o *UpdateOK) Error() string

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.

Jump to

Keyboard shortcuts

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