contract

package
v0.0.0-...-b3f093e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 contract API

func (*Client) ContractAdd

func (a *Client) ContractAdd(params *ContractAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractAddOK, error)

ContractAdd adds a new contract s to the alfabet system this interface takes an arrary of contract documents

Add a new contract(s) to the Alfabet system. This interface takes an arrary of Contract documents.

func (*Client) ContractDeleteList

func (a *Client) ContractDeleteList(params *ContractDeleteListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractDeleteListOK, error)

ContractDeleteList deletes a list of contracts based on an array of contarct ids

Delete a list of contracts based on an array of contarct ids.

func (*Client) ContractFind

func (a *Client) ContractFind(params *ContractFindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractFindOK, error)

ContractFind retrieves a list of contracts based on query criteria if a system Id is passed the contract s for that system are returned if no query data is passed in all contracts for the current year are returned

Retrieve a list of contracts based on query criteria. If a SystemId is passed, the contract(s) for that system are returned. If no query data is passed in, all contracts for the current year are returned.

func (*Client) ContractUpdate

func (a *Client) ContractUpdate(params *ContractUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractUpdateOK, error)

ContractUpdate updates an array of contract s in the alfabet system this interface takes an arrary of contract documents if the input budgets only is set to false this interface will also update any associated contract deliverable records

Update an array of contract(s) in the Alfabet system. This interface takes an arrary of Contract documents. If the input budgetsOnly is set to false, this interface will also update any associated Contract Deliverable records.

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 is the option for Client methods

type ClientService

type ClientService interface {
	ContractAdd(params *ContractAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractAddOK, error)

	ContractDeleteList(params *ContractDeleteListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractDeleteListOK, error)

	ContractFind(params *ContractFindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractFindOK, error)

	ContractUpdate(params *ContractUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractUpdateOK, 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 contract API client.

type ContractAddBadRequest

type ContractAddBadRequest struct {
	Payload *models.Response
}

ContractAddBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewContractAddBadRequest

func NewContractAddBadRequest() *ContractAddBadRequest

NewContractAddBadRequest creates a ContractAddBadRequest with default headers values

func (*ContractAddBadRequest) Code

func (o *ContractAddBadRequest) Code() int

Code gets the status code for the contract add bad request response

func (*ContractAddBadRequest) Error

func (o *ContractAddBadRequest) Error() string

func (*ContractAddBadRequest) GetPayload

func (o *ContractAddBadRequest) GetPayload() *models.Response

func (*ContractAddBadRequest) IsClientError

func (o *ContractAddBadRequest) IsClientError() bool

IsClientError returns true when this contract add bad request response has a 4xx status code

func (*ContractAddBadRequest) IsCode

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

IsCode returns true when this contract add bad request response a status code equal to that given

func (*ContractAddBadRequest) IsRedirect

func (o *ContractAddBadRequest) IsRedirect() bool

IsRedirect returns true when this contract add bad request response has a 3xx status code

func (*ContractAddBadRequest) IsServerError

func (o *ContractAddBadRequest) IsServerError() bool

IsServerError returns true when this contract add bad request response has a 5xx status code

func (*ContractAddBadRequest) IsSuccess

func (o *ContractAddBadRequest) IsSuccess() bool

IsSuccess returns true when this contract add bad request response has a 2xx status code

func (*ContractAddBadRequest) String

func (o *ContractAddBadRequest) String() string

type ContractAddInternalServerError

type ContractAddInternalServerError struct {
	Payload *models.Response
}

ContractAddInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewContractAddInternalServerError

func NewContractAddInternalServerError() *ContractAddInternalServerError

NewContractAddInternalServerError creates a ContractAddInternalServerError with default headers values

func (*ContractAddInternalServerError) Code

Code gets the status code for the contract add internal server error response

func (*ContractAddInternalServerError) Error

func (*ContractAddInternalServerError) GetPayload

func (*ContractAddInternalServerError) IsClientError

func (o *ContractAddInternalServerError) IsClientError() bool

IsClientError returns true when this contract add internal server error response has a 4xx status code

func (*ContractAddInternalServerError) IsCode

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

IsCode returns true when this contract add internal server error response a status code equal to that given

func (*ContractAddInternalServerError) IsRedirect

func (o *ContractAddInternalServerError) IsRedirect() bool

IsRedirect returns true when this contract add internal server error response has a 3xx status code

func (*ContractAddInternalServerError) IsServerError

func (o *ContractAddInternalServerError) IsServerError() bool

IsServerError returns true when this contract add internal server error response has a 5xx status code

func (*ContractAddInternalServerError) IsSuccess

func (o *ContractAddInternalServerError) IsSuccess() bool

IsSuccess returns true when this contract add internal server error response has a 2xx status code

func (*ContractAddInternalServerError) String

type ContractAddOK

type ContractAddOK struct {
	Payload *models.Response
}

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

OK

func NewContractAddOK

func NewContractAddOK() *ContractAddOK

NewContractAddOK creates a ContractAddOK with default headers values

func (*ContractAddOK) Code

func (o *ContractAddOK) Code() int

Code gets the status code for the contract add o k response

func (*ContractAddOK) Error

func (o *ContractAddOK) Error() string

func (*ContractAddOK) GetPayload

func (o *ContractAddOK) GetPayload() *models.Response

func (*ContractAddOK) IsClientError

func (o *ContractAddOK) IsClientError() bool

IsClientError returns true when this contract add o k response has a 4xx status code

func (*ContractAddOK) IsCode

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

IsCode returns true when this contract add o k response a status code equal to that given

func (*ContractAddOK) IsRedirect

func (o *ContractAddOK) IsRedirect() bool

IsRedirect returns true when this contract add o k response has a 3xx status code

func (*ContractAddOK) IsServerError

func (o *ContractAddOK) IsServerError() bool

IsServerError returns true when this contract add o k response has a 5xx status code

func (*ContractAddOK) IsSuccess

func (o *ContractAddOK) IsSuccess() bool

IsSuccess returns true when this contract add o k response has a 2xx status code

func (*ContractAddOK) String

func (o *ContractAddOK) String() string

type ContractAddParams

type ContractAddParams struct {

	/* Body.

	   An array of Contracts to be added to CEDAR Alfabet.
	*/
	Body *models.ContractAddRequest

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

ContractAddParams contains all the parameters to send to the API endpoint

for the contract add operation.

Typically these are written to a http.Request.

func NewContractAddParams

func NewContractAddParams() *ContractAddParams

NewContractAddParams creates a new ContractAddParams 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 NewContractAddParamsWithContext

func NewContractAddParamsWithContext(ctx context.Context) *ContractAddParams

NewContractAddParamsWithContext creates a new ContractAddParams object with the ability to set a context for a request.

func NewContractAddParamsWithHTTPClient

func NewContractAddParamsWithHTTPClient(client *http.Client) *ContractAddParams

NewContractAddParamsWithHTTPClient creates a new ContractAddParams object with the ability to set a custom HTTPClient for a request.

func NewContractAddParamsWithTimeout

func NewContractAddParamsWithTimeout(timeout time.Duration) *ContractAddParams

NewContractAddParamsWithTimeout creates a new ContractAddParams object with the ability to set a timeout on a request.

func (*ContractAddParams) SetBody

func (o *ContractAddParams) SetBody(body *models.ContractAddRequest)

SetBody adds the body to the contract add params

func (*ContractAddParams) SetContext

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

SetContext adds the context to the contract add params

func (*ContractAddParams) SetDefaults

func (o *ContractAddParams) SetDefaults()

SetDefaults hydrates default values in the contract add params (not the query body).

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

func (*ContractAddParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contract add params

func (*ContractAddParams) SetTimeout

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

SetTimeout adds the timeout to the contract add params

func (*ContractAddParams) WithBody

WithBody adds the body to the contract add params

func (*ContractAddParams) WithContext

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

WithContext adds the context to the contract add params

func (*ContractAddParams) WithDefaults

func (o *ContractAddParams) WithDefaults() *ContractAddParams

WithDefaults hydrates default values in the contract add params (not the query body).

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

func (*ContractAddParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contract add params

func (*ContractAddParams) WithTimeout

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

WithTimeout adds the timeout to the contract add params

func (*ContractAddParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ContractAddReader

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

ContractAddReader is a Reader for the ContractAdd structure.

func (*ContractAddReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContractAddUnauthorized

type ContractAddUnauthorized struct {
	Payload *models.Response
}

ContractAddUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewContractAddUnauthorized

func NewContractAddUnauthorized() *ContractAddUnauthorized

NewContractAddUnauthorized creates a ContractAddUnauthorized with default headers values

func (*ContractAddUnauthorized) Code

func (o *ContractAddUnauthorized) Code() int

Code gets the status code for the contract add unauthorized response

func (*ContractAddUnauthorized) Error

func (o *ContractAddUnauthorized) Error() string

func (*ContractAddUnauthorized) GetPayload

func (o *ContractAddUnauthorized) GetPayload() *models.Response

func (*ContractAddUnauthorized) IsClientError

func (o *ContractAddUnauthorized) IsClientError() bool

IsClientError returns true when this contract add unauthorized response has a 4xx status code

func (*ContractAddUnauthorized) IsCode

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

IsCode returns true when this contract add unauthorized response a status code equal to that given

func (*ContractAddUnauthorized) IsRedirect

func (o *ContractAddUnauthorized) IsRedirect() bool

IsRedirect returns true when this contract add unauthorized response has a 3xx status code

func (*ContractAddUnauthorized) IsServerError

func (o *ContractAddUnauthorized) IsServerError() bool

IsServerError returns true when this contract add unauthorized response has a 5xx status code

func (*ContractAddUnauthorized) IsSuccess

func (o *ContractAddUnauthorized) IsSuccess() bool

IsSuccess returns true when this contract add unauthorized response has a 2xx status code

func (*ContractAddUnauthorized) String

func (o *ContractAddUnauthorized) String() string

type ContractDeleteListBadRequest

type ContractDeleteListBadRequest struct {
	Payload *models.Response
}

ContractDeleteListBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewContractDeleteListBadRequest

func NewContractDeleteListBadRequest() *ContractDeleteListBadRequest

NewContractDeleteListBadRequest creates a ContractDeleteListBadRequest with default headers values

func (*ContractDeleteListBadRequest) Code

Code gets the status code for the contract delete list bad request response

func (*ContractDeleteListBadRequest) Error

func (*ContractDeleteListBadRequest) GetPayload

func (o *ContractDeleteListBadRequest) GetPayload() *models.Response

func (*ContractDeleteListBadRequest) IsClientError

func (o *ContractDeleteListBadRequest) IsClientError() bool

IsClientError returns true when this contract delete list bad request response has a 4xx status code

func (*ContractDeleteListBadRequest) IsCode

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

IsCode returns true when this contract delete list bad request response a status code equal to that given

func (*ContractDeleteListBadRequest) IsRedirect

func (o *ContractDeleteListBadRequest) IsRedirect() bool

IsRedirect returns true when this contract delete list bad request response has a 3xx status code

func (*ContractDeleteListBadRequest) IsServerError

func (o *ContractDeleteListBadRequest) IsServerError() bool

IsServerError returns true when this contract delete list bad request response has a 5xx status code

func (*ContractDeleteListBadRequest) IsSuccess

func (o *ContractDeleteListBadRequest) IsSuccess() bool

IsSuccess returns true when this contract delete list bad request response has a 2xx status code

func (*ContractDeleteListBadRequest) String

type ContractDeleteListInternalServerError

type ContractDeleteListInternalServerError struct {
	Payload *models.Response
}

ContractDeleteListInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewContractDeleteListInternalServerError

func NewContractDeleteListInternalServerError() *ContractDeleteListInternalServerError

NewContractDeleteListInternalServerError creates a ContractDeleteListInternalServerError with default headers values

func (*ContractDeleteListInternalServerError) Code

Code gets the status code for the contract delete list internal server error response

func (*ContractDeleteListInternalServerError) Error

func (*ContractDeleteListInternalServerError) GetPayload

func (*ContractDeleteListInternalServerError) IsClientError

func (o *ContractDeleteListInternalServerError) IsClientError() bool

IsClientError returns true when this contract delete list internal server error response has a 4xx status code

func (*ContractDeleteListInternalServerError) IsCode

IsCode returns true when this contract delete list internal server error response a status code equal to that given

func (*ContractDeleteListInternalServerError) IsRedirect

IsRedirect returns true when this contract delete list internal server error response has a 3xx status code

func (*ContractDeleteListInternalServerError) IsServerError

func (o *ContractDeleteListInternalServerError) IsServerError() bool

IsServerError returns true when this contract delete list internal server error response has a 5xx status code

func (*ContractDeleteListInternalServerError) IsSuccess

IsSuccess returns true when this contract delete list internal server error response has a 2xx status code

func (*ContractDeleteListInternalServerError) String

type ContractDeleteListNotFound

type ContractDeleteListNotFound struct {
	Payload *models.Response
}

ContractDeleteListNotFound describes a response with status code 404, with default header values.

Not Found

func NewContractDeleteListNotFound

func NewContractDeleteListNotFound() *ContractDeleteListNotFound

NewContractDeleteListNotFound creates a ContractDeleteListNotFound with default headers values

func (*ContractDeleteListNotFound) Code

func (o *ContractDeleteListNotFound) Code() int

Code gets the status code for the contract delete list not found response

func (*ContractDeleteListNotFound) Error

func (*ContractDeleteListNotFound) GetPayload

func (o *ContractDeleteListNotFound) GetPayload() *models.Response

func (*ContractDeleteListNotFound) IsClientError

func (o *ContractDeleteListNotFound) IsClientError() bool

IsClientError returns true when this contract delete list not found response has a 4xx status code

func (*ContractDeleteListNotFound) IsCode

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

IsCode returns true when this contract delete list not found response a status code equal to that given

func (*ContractDeleteListNotFound) IsRedirect

func (o *ContractDeleteListNotFound) IsRedirect() bool

IsRedirect returns true when this contract delete list not found response has a 3xx status code

func (*ContractDeleteListNotFound) IsServerError

func (o *ContractDeleteListNotFound) IsServerError() bool

IsServerError returns true when this contract delete list not found response has a 5xx status code

func (*ContractDeleteListNotFound) IsSuccess

func (o *ContractDeleteListNotFound) IsSuccess() bool

IsSuccess returns true when this contract delete list not found response has a 2xx status code

func (*ContractDeleteListNotFound) String

func (o *ContractDeleteListNotFound) String() string

type ContractDeleteListOK

type ContractDeleteListOK struct {
	Payload *models.Response
}

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

OK

func NewContractDeleteListOK

func NewContractDeleteListOK() *ContractDeleteListOK

NewContractDeleteListOK creates a ContractDeleteListOK with default headers values

func (*ContractDeleteListOK) Code

func (o *ContractDeleteListOK) Code() int

Code gets the status code for the contract delete list o k response

func (*ContractDeleteListOK) Error

func (o *ContractDeleteListOK) Error() string

func (*ContractDeleteListOK) GetPayload

func (o *ContractDeleteListOK) GetPayload() *models.Response

func (*ContractDeleteListOK) IsClientError

func (o *ContractDeleteListOK) IsClientError() bool

IsClientError returns true when this contract delete list o k response has a 4xx status code

func (*ContractDeleteListOK) IsCode

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

IsCode returns true when this contract delete list o k response a status code equal to that given

func (*ContractDeleteListOK) IsRedirect

func (o *ContractDeleteListOK) IsRedirect() bool

IsRedirect returns true when this contract delete list o k response has a 3xx status code

func (*ContractDeleteListOK) IsServerError

func (o *ContractDeleteListOK) IsServerError() bool

IsServerError returns true when this contract delete list o k response has a 5xx status code

func (*ContractDeleteListOK) IsSuccess

func (o *ContractDeleteListOK) IsSuccess() bool

IsSuccess returns true when this contract delete list o k response has a 2xx status code

func (*ContractDeleteListOK) String

func (o *ContractDeleteListOK) String() string

type ContractDeleteListParams

type ContractDeleteListParams struct {

	/* ID.

	   An array of contract ids.
	*/
	ID []string

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

ContractDeleteListParams contains all the parameters to send to the API endpoint

for the contract delete list operation.

Typically these are written to a http.Request.

func NewContractDeleteListParams

func NewContractDeleteListParams() *ContractDeleteListParams

NewContractDeleteListParams creates a new ContractDeleteListParams 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 NewContractDeleteListParamsWithContext

func NewContractDeleteListParamsWithContext(ctx context.Context) *ContractDeleteListParams

NewContractDeleteListParamsWithContext creates a new ContractDeleteListParams object with the ability to set a context for a request.

func NewContractDeleteListParamsWithHTTPClient

func NewContractDeleteListParamsWithHTTPClient(client *http.Client) *ContractDeleteListParams

NewContractDeleteListParamsWithHTTPClient creates a new ContractDeleteListParams object with the ability to set a custom HTTPClient for a request.

func NewContractDeleteListParamsWithTimeout

func NewContractDeleteListParamsWithTimeout(timeout time.Duration) *ContractDeleteListParams

NewContractDeleteListParamsWithTimeout creates a new ContractDeleteListParams object with the ability to set a timeout on a request.

func (*ContractDeleteListParams) SetContext

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

SetContext adds the context to the contract delete list params

func (*ContractDeleteListParams) SetDefaults

func (o *ContractDeleteListParams) SetDefaults()

SetDefaults hydrates default values in the contract delete list params (not the query body).

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

func (*ContractDeleteListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contract delete list params

func (*ContractDeleteListParams) SetID

func (o *ContractDeleteListParams) SetID(id []string)

SetID adds the id to the contract delete list params

func (*ContractDeleteListParams) SetTimeout

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

SetTimeout adds the timeout to the contract delete list params

func (*ContractDeleteListParams) WithContext

WithContext adds the context to the contract delete list params

func (*ContractDeleteListParams) WithDefaults

WithDefaults hydrates default values in the contract delete list params (not the query body).

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

func (*ContractDeleteListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contract delete list params

func (*ContractDeleteListParams) WithID

WithID adds the id to the contract delete list params

func (*ContractDeleteListParams) WithTimeout

WithTimeout adds the timeout to the contract delete list params

func (*ContractDeleteListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ContractDeleteListReader

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

ContractDeleteListReader is a Reader for the ContractDeleteList structure.

func (*ContractDeleteListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContractDeleteListUnauthorized

type ContractDeleteListUnauthorized struct {
	Payload *models.Response
}

ContractDeleteListUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewContractDeleteListUnauthorized

func NewContractDeleteListUnauthorized() *ContractDeleteListUnauthorized

NewContractDeleteListUnauthorized creates a ContractDeleteListUnauthorized with default headers values

func (*ContractDeleteListUnauthorized) Code

Code gets the status code for the contract delete list unauthorized response

func (*ContractDeleteListUnauthorized) Error

func (*ContractDeleteListUnauthorized) GetPayload

func (*ContractDeleteListUnauthorized) IsClientError

func (o *ContractDeleteListUnauthorized) IsClientError() bool

IsClientError returns true when this contract delete list unauthorized response has a 4xx status code

func (*ContractDeleteListUnauthorized) IsCode

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

IsCode returns true when this contract delete list unauthorized response a status code equal to that given

func (*ContractDeleteListUnauthorized) IsRedirect

func (o *ContractDeleteListUnauthorized) IsRedirect() bool

IsRedirect returns true when this contract delete list unauthorized response has a 3xx status code

func (*ContractDeleteListUnauthorized) IsServerError

func (o *ContractDeleteListUnauthorized) IsServerError() bool

IsServerError returns true when this contract delete list unauthorized response has a 5xx status code

func (*ContractDeleteListUnauthorized) IsSuccess

func (o *ContractDeleteListUnauthorized) IsSuccess() bool

IsSuccess returns true when this contract delete list unauthorized response has a 2xx status code

func (*ContractDeleteListUnauthorized) String

type ContractFindBadRequest

type ContractFindBadRequest struct {
	Payload *models.Response
}

ContractFindBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewContractFindBadRequest

func NewContractFindBadRequest() *ContractFindBadRequest

NewContractFindBadRequest creates a ContractFindBadRequest with default headers values

func (*ContractFindBadRequest) Code

func (o *ContractFindBadRequest) Code() int

Code gets the status code for the contract find bad request response

func (*ContractFindBadRequest) Error

func (o *ContractFindBadRequest) Error() string

func (*ContractFindBadRequest) GetPayload

func (o *ContractFindBadRequest) GetPayload() *models.Response

func (*ContractFindBadRequest) IsClientError

func (o *ContractFindBadRequest) IsClientError() bool

IsClientError returns true when this contract find bad request response has a 4xx status code

func (*ContractFindBadRequest) IsCode

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

IsCode returns true when this contract find bad request response a status code equal to that given

func (*ContractFindBadRequest) IsRedirect

func (o *ContractFindBadRequest) IsRedirect() bool

IsRedirect returns true when this contract find bad request response has a 3xx status code

func (*ContractFindBadRequest) IsServerError

func (o *ContractFindBadRequest) IsServerError() bool

IsServerError returns true when this contract find bad request response has a 5xx status code

func (*ContractFindBadRequest) IsSuccess

func (o *ContractFindBadRequest) IsSuccess() bool

IsSuccess returns true when this contract find bad request response has a 2xx status code

func (*ContractFindBadRequest) String

func (o *ContractFindBadRequest) String() string

type ContractFindInternalServerError

type ContractFindInternalServerError struct {
	Payload *models.Response
}

ContractFindInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewContractFindInternalServerError

func NewContractFindInternalServerError() *ContractFindInternalServerError

NewContractFindInternalServerError creates a ContractFindInternalServerError with default headers values

func (*ContractFindInternalServerError) Code

Code gets the status code for the contract find internal server error response

func (*ContractFindInternalServerError) Error

func (*ContractFindInternalServerError) GetPayload

func (*ContractFindInternalServerError) IsClientError

func (o *ContractFindInternalServerError) IsClientError() bool

IsClientError returns true when this contract find internal server error response has a 4xx status code

func (*ContractFindInternalServerError) IsCode

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

IsCode returns true when this contract find internal server error response a status code equal to that given

func (*ContractFindInternalServerError) IsRedirect

func (o *ContractFindInternalServerError) IsRedirect() bool

IsRedirect returns true when this contract find internal server error response has a 3xx status code

func (*ContractFindInternalServerError) IsServerError

func (o *ContractFindInternalServerError) IsServerError() bool

IsServerError returns true when this contract find internal server error response has a 5xx status code

func (*ContractFindInternalServerError) IsSuccess

func (o *ContractFindInternalServerError) IsSuccess() bool

IsSuccess returns true when this contract find internal server error response has a 2xx status code

func (*ContractFindInternalServerError) String

type ContractFindOK

type ContractFindOK struct {
	Payload *models.ContractFindResponse
}

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

OK

func NewContractFindOK

func NewContractFindOK() *ContractFindOK

NewContractFindOK creates a ContractFindOK with default headers values

func (*ContractFindOK) Code

func (o *ContractFindOK) Code() int

Code gets the status code for the contract find o k response

func (*ContractFindOK) Error

func (o *ContractFindOK) Error() string

func (*ContractFindOK) GetPayload

func (o *ContractFindOK) GetPayload() *models.ContractFindResponse

func (*ContractFindOK) IsClientError

func (o *ContractFindOK) IsClientError() bool

IsClientError returns true when this contract find o k response has a 4xx status code

func (*ContractFindOK) IsCode

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

IsCode returns true when this contract find o k response a status code equal to that given

func (*ContractFindOK) IsRedirect

func (o *ContractFindOK) IsRedirect() bool

IsRedirect returns true when this contract find o k response has a 3xx status code

func (*ContractFindOK) IsServerError

func (o *ContractFindOK) IsServerError() bool

IsServerError returns true when this contract find o k response has a 5xx status code

func (*ContractFindOK) IsSuccess

func (o *ContractFindOK) IsSuccess() bool

IsSuccess returns true when this contract find o k response has a 2xx status code

func (*ContractFindOK) String

func (o *ContractFindOK) String() string

type ContractFindParams

type ContractFindParams struct {

	// POPEndDate.
	POPEndDate *string

	// POPStartDate.
	POPStartDate *string

	// ContractName.
	ContractName *string

	/* Keyword.

	   A keyword to be used in the query
	*/
	Keyword *string

	/* SystemID.

	   ID of the system that the contract is associated with
	*/
	SystemID *string

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

ContractFindParams contains all the parameters to send to the API endpoint

for the contract find operation.

Typically these are written to a http.Request.

func NewContractFindParams

func NewContractFindParams() *ContractFindParams

NewContractFindParams creates a new ContractFindParams 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 NewContractFindParamsWithContext

func NewContractFindParamsWithContext(ctx context.Context) *ContractFindParams

NewContractFindParamsWithContext creates a new ContractFindParams object with the ability to set a context for a request.

func NewContractFindParamsWithHTTPClient

func NewContractFindParamsWithHTTPClient(client *http.Client) *ContractFindParams

NewContractFindParamsWithHTTPClient creates a new ContractFindParams object with the ability to set a custom HTTPClient for a request.

func NewContractFindParamsWithTimeout

func NewContractFindParamsWithTimeout(timeout time.Duration) *ContractFindParams

NewContractFindParamsWithTimeout creates a new ContractFindParams object with the ability to set a timeout on a request.

func (*ContractFindParams) SetContext

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

SetContext adds the context to the contract find params

func (*ContractFindParams) SetContractName

func (o *ContractFindParams) SetContractName(contractName *string)

SetContractName adds the contractName to the contract find params

func (*ContractFindParams) SetDefaults

func (o *ContractFindParams) SetDefaults()

SetDefaults hydrates default values in the contract find params (not the query body).

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

func (*ContractFindParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contract find params

func (*ContractFindParams) SetKeyword

func (o *ContractFindParams) SetKeyword(keyword *string)

SetKeyword adds the keyword to the contract find params

func (*ContractFindParams) SetPOPEndDate

func (o *ContractFindParams) SetPOPEndDate(pOPEndDate *string)

SetPOPEndDate adds the pOPEndDate to the contract find params

func (*ContractFindParams) SetPOPStartDate

func (o *ContractFindParams) SetPOPStartDate(pOPStartDate *string)

SetPOPStartDate adds the pOPStartDate to the contract find params

func (*ContractFindParams) SetSystemID

func (o *ContractFindParams) SetSystemID(systemID *string)

SetSystemID adds the systemId to the contract find params

func (*ContractFindParams) SetTimeout

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

SetTimeout adds the timeout to the contract find params

func (*ContractFindParams) WithContext

WithContext adds the context to the contract find params

func (*ContractFindParams) WithContractName

func (o *ContractFindParams) WithContractName(contractName *string) *ContractFindParams

WithContractName adds the contractName to the contract find params

func (*ContractFindParams) WithDefaults

func (o *ContractFindParams) WithDefaults() *ContractFindParams

WithDefaults hydrates default values in the contract find params (not the query body).

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

func (*ContractFindParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contract find params

func (*ContractFindParams) WithKeyword

func (o *ContractFindParams) WithKeyword(keyword *string) *ContractFindParams

WithKeyword adds the keyword to the contract find params

func (*ContractFindParams) WithPOPEndDate

func (o *ContractFindParams) WithPOPEndDate(pOPEndDate *string) *ContractFindParams

WithPOPEndDate adds the pOPEndDate to the contract find params

func (*ContractFindParams) WithPOPStartDate

func (o *ContractFindParams) WithPOPStartDate(pOPStartDate *string) *ContractFindParams

WithPOPStartDate adds the pOPStartDate to the contract find params

func (*ContractFindParams) WithSystemID

func (o *ContractFindParams) WithSystemID(systemID *string) *ContractFindParams

WithSystemID adds the systemID to the contract find params

func (*ContractFindParams) WithTimeout

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

WithTimeout adds the timeout to the contract find params

func (*ContractFindParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ContractFindReader

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

ContractFindReader is a Reader for the ContractFind structure.

func (*ContractFindReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContractFindUnauthorized

type ContractFindUnauthorized struct {
	Payload *models.Response
}

ContractFindUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewContractFindUnauthorized

func NewContractFindUnauthorized() *ContractFindUnauthorized

NewContractFindUnauthorized creates a ContractFindUnauthorized with default headers values

func (*ContractFindUnauthorized) Code

func (o *ContractFindUnauthorized) Code() int

Code gets the status code for the contract find unauthorized response

func (*ContractFindUnauthorized) Error

func (o *ContractFindUnauthorized) Error() string

func (*ContractFindUnauthorized) GetPayload

func (o *ContractFindUnauthorized) GetPayload() *models.Response

func (*ContractFindUnauthorized) IsClientError

func (o *ContractFindUnauthorized) IsClientError() bool

IsClientError returns true when this contract find unauthorized response has a 4xx status code

func (*ContractFindUnauthorized) IsCode

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

IsCode returns true when this contract find unauthorized response a status code equal to that given

func (*ContractFindUnauthorized) IsRedirect

func (o *ContractFindUnauthorized) IsRedirect() bool

IsRedirect returns true when this contract find unauthorized response has a 3xx status code

func (*ContractFindUnauthorized) IsServerError

func (o *ContractFindUnauthorized) IsServerError() bool

IsServerError returns true when this contract find unauthorized response has a 5xx status code

func (*ContractFindUnauthorized) IsSuccess

func (o *ContractFindUnauthorized) IsSuccess() bool

IsSuccess returns true when this contract find unauthorized response has a 2xx status code

func (*ContractFindUnauthorized) String

func (o *ContractFindUnauthorized) String() string

type ContractUpdateBadRequest

type ContractUpdateBadRequest struct {
	Payload *models.Response
}

ContractUpdateBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewContractUpdateBadRequest

func NewContractUpdateBadRequest() *ContractUpdateBadRequest

NewContractUpdateBadRequest creates a ContractUpdateBadRequest with default headers values

func (*ContractUpdateBadRequest) Code

func (o *ContractUpdateBadRequest) Code() int

Code gets the status code for the contract update bad request response

func (*ContractUpdateBadRequest) Error

func (o *ContractUpdateBadRequest) Error() string

func (*ContractUpdateBadRequest) GetPayload

func (o *ContractUpdateBadRequest) GetPayload() *models.Response

func (*ContractUpdateBadRequest) IsClientError

func (o *ContractUpdateBadRequest) IsClientError() bool

IsClientError returns true when this contract update bad request response has a 4xx status code

func (*ContractUpdateBadRequest) IsCode

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

IsCode returns true when this contract update bad request response a status code equal to that given

func (*ContractUpdateBadRequest) IsRedirect

func (o *ContractUpdateBadRequest) IsRedirect() bool

IsRedirect returns true when this contract update bad request response has a 3xx status code

func (*ContractUpdateBadRequest) IsServerError

func (o *ContractUpdateBadRequest) IsServerError() bool

IsServerError returns true when this contract update bad request response has a 5xx status code

func (*ContractUpdateBadRequest) IsSuccess

func (o *ContractUpdateBadRequest) IsSuccess() bool

IsSuccess returns true when this contract update bad request response has a 2xx status code

func (*ContractUpdateBadRequest) String

func (o *ContractUpdateBadRequest) String() string

type ContractUpdateInternalServerError

type ContractUpdateInternalServerError struct {
	Payload *models.Response
}

ContractUpdateInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewContractUpdateInternalServerError

func NewContractUpdateInternalServerError() *ContractUpdateInternalServerError

NewContractUpdateInternalServerError creates a ContractUpdateInternalServerError with default headers values

func (*ContractUpdateInternalServerError) Code

Code gets the status code for the contract update internal server error response

func (*ContractUpdateInternalServerError) Error

func (*ContractUpdateInternalServerError) GetPayload

func (*ContractUpdateInternalServerError) IsClientError

func (o *ContractUpdateInternalServerError) IsClientError() bool

IsClientError returns true when this contract update internal server error response has a 4xx status code

func (*ContractUpdateInternalServerError) IsCode

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

IsCode returns true when this contract update internal server error response a status code equal to that given

func (*ContractUpdateInternalServerError) IsRedirect

func (o *ContractUpdateInternalServerError) IsRedirect() bool

IsRedirect returns true when this contract update internal server error response has a 3xx status code

func (*ContractUpdateInternalServerError) IsServerError

func (o *ContractUpdateInternalServerError) IsServerError() bool

IsServerError returns true when this contract update internal server error response has a 5xx status code

func (*ContractUpdateInternalServerError) IsSuccess

func (o *ContractUpdateInternalServerError) IsSuccess() bool

IsSuccess returns true when this contract update internal server error response has a 2xx status code

func (*ContractUpdateInternalServerError) String

type ContractUpdateOK

type ContractUpdateOK struct {
	Payload *models.Response
}

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

OK

func NewContractUpdateOK

func NewContractUpdateOK() *ContractUpdateOK

NewContractUpdateOK creates a ContractUpdateOK with default headers values

func (*ContractUpdateOK) Code

func (o *ContractUpdateOK) Code() int

Code gets the status code for the contract update o k response

func (*ContractUpdateOK) Error

func (o *ContractUpdateOK) Error() string

func (*ContractUpdateOK) GetPayload

func (o *ContractUpdateOK) GetPayload() *models.Response

func (*ContractUpdateOK) IsClientError

func (o *ContractUpdateOK) IsClientError() bool

IsClientError returns true when this contract update o k response has a 4xx status code

func (*ContractUpdateOK) IsCode

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

IsCode returns true when this contract update o k response a status code equal to that given

func (*ContractUpdateOK) IsRedirect

func (o *ContractUpdateOK) IsRedirect() bool

IsRedirect returns true when this contract update o k response has a 3xx status code

func (*ContractUpdateOK) IsServerError

func (o *ContractUpdateOK) IsServerError() bool

IsServerError returns true when this contract update o k response has a 5xx status code

func (*ContractUpdateOK) IsSuccess

func (o *ContractUpdateOK) IsSuccess() bool

IsSuccess returns true when this contract update o k response has a 2xx status code

func (*ContractUpdateOK) String

func (o *ContractUpdateOK) String() string

type ContractUpdateParams

type ContractUpdateParams struct {

	/* Body.

	   An array of contracts to be updated in Alfabet.
	*/
	Body *models.ContractUpdateRequest

	/* BudgetsOnly.

	   Whether only the budgets portion of the contract should be updated or if set to false, the Contract Deliverable records will also be updated.
	*/
	BudgetsOnly *bool

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

ContractUpdateParams contains all the parameters to send to the API endpoint

for the contract update operation.

Typically these are written to a http.Request.

func NewContractUpdateParams

func NewContractUpdateParams() *ContractUpdateParams

NewContractUpdateParams creates a new ContractUpdateParams 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 NewContractUpdateParamsWithContext

func NewContractUpdateParamsWithContext(ctx context.Context) *ContractUpdateParams

NewContractUpdateParamsWithContext creates a new ContractUpdateParams object with the ability to set a context for a request.

func NewContractUpdateParamsWithHTTPClient

func NewContractUpdateParamsWithHTTPClient(client *http.Client) *ContractUpdateParams

NewContractUpdateParamsWithHTTPClient creates a new ContractUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewContractUpdateParamsWithTimeout

func NewContractUpdateParamsWithTimeout(timeout time.Duration) *ContractUpdateParams

NewContractUpdateParamsWithTimeout creates a new ContractUpdateParams object with the ability to set a timeout on a request.

func (*ContractUpdateParams) SetBody

SetBody adds the body to the contract update params

func (*ContractUpdateParams) SetBudgetsOnly

func (o *ContractUpdateParams) SetBudgetsOnly(budgetsOnly *bool)

SetBudgetsOnly adds the budgetsOnly to the contract update params

func (*ContractUpdateParams) SetContext

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

SetContext adds the context to the contract update params

func (*ContractUpdateParams) SetDefaults

func (o *ContractUpdateParams) SetDefaults()

SetDefaults hydrates default values in the contract update params (not the query body).

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

func (*ContractUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contract update params

func (*ContractUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the contract update params

func (*ContractUpdateParams) WithBody

WithBody adds the body to the contract update params

func (*ContractUpdateParams) WithBudgetsOnly

func (o *ContractUpdateParams) WithBudgetsOnly(budgetsOnly *bool) *ContractUpdateParams

WithBudgetsOnly adds the budgetsOnly to the contract update params

func (*ContractUpdateParams) WithContext

WithContext adds the context to the contract update params

func (*ContractUpdateParams) WithDefaults

func (o *ContractUpdateParams) WithDefaults() *ContractUpdateParams

WithDefaults hydrates default values in the contract update params (not the query body).

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

func (*ContractUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the contract update params

func (*ContractUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the contract update params

func (*ContractUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ContractUpdateReader

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

ContractUpdateReader is a Reader for the ContractUpdate structure.

func (*ContractUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContractUpdateUnauthorized

type ContractUpdateUnauthorized struct {
	Payload *models.Response
}

ContractUpdateUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewContractUpdateUnauthorized

func NewContractUpdateUnauthorized() *ContractUpdateUnauthorized

NewContractUpdateUnauthorized creates a ContractUpdateUnauthorized with default headers values

func (*ContractUpdateUnauthorized) Code

func (o *ContractUpdateUnauthorized) Code() int

Code gets the status code for the contract update unauthorized response

func (*ContractUpdateUnauthorized) Error

func (*ContractUpdateUnauthorized) GetPayload

func (o *ContractUpdateUnauthorized) GetPayload() *models.Response

func (*ContractUpdateUnauthorized) IsClientError

func (o *ContractUpdateUnauthorized) IsClientError() bool

IsClientError returns true when this contract update unauthorized response has a 4xx status code

func (*ContractUpdateUnauthorized) IsCode

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

IsCode returns true when this contract update unauthorized response a status code equal to that given

func (*ContractUpdateUnauthorized) IsRedirect

func (o *ContractUpdateUnauthorized) IsRedirect() bool

IsRedirect returns true when this contract update unauthorized response has a 3xx status code

func (*ContractUpdateUnauthorized) IsServerError

func (o *ContractUpdateUnauthorized) IsServerError() bool

IsServerError returns true when this contract update unauthorized response has a 5xx status code

func (*ContractUpdateUnauthorized) IsSuccess

func (o *ContractUpdateUnauthorized) IsSuccess() bool

IsSuccess returns true when this contract update unauthorized response has a 2xx status code

func (*ContractUpdateUnauthorized) String

func (o *ContractUpdateUnauthorized) String() string

Jump to

Keyboard shortcuts

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