purchasing

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT 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 purchasing API

func (*Client) DeletePurchases

func (a *Client) DeletePurchases(params *DeletePurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePurchasesOK, error)

DeletePurchases deletes purchase

This API is used to delete the purchase order with the purchase order id supplied as the required argument.

func (*Client) GetPurchases

func (a *Client) GetPurchases(params *GetPurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*GetPurchasesOK, error)

GetPurchases gs e t method retrieves all purchases

Get All Purchases

func (*Client) PostPurchases

func (a *Client) PostPurchases(params *PostPurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*PostPurchasesOK, error)

PostPurchases creates update purchases

Create / Update Purchases. Required parameters: <ul><li>order_no <b>OR</b> purchase_id</li>

func (*Client) PutCustomFieldPurchases

func (a *Client) PutCustomFieldPurchases(params *PutCustomFieldPurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPurchasesOK, error)

PutCustomFieldPurchases creates update custom fields for purchases

Custom Fields

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeletePurchases(params *DeletePurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePurchasesOK, error)

	GetPurchases(params *GetPurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*GetPurchasesOK, error)

	PostPurchases(params *PostPurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*PostPurchasesOK, error)

	PutCustomFieldPurchases(params *PutCustomFieldPurchasesParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPurchasesOK, 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 purchasing API client.

type DeletePurchasesBadRequest

type DeletePurchasesBadRequest struct {
}

DeletePurchasesBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewDeletePurchasesBadRequest

func NewDeletePurchasesBadRequest() *DeletePurchasesBadRequest

NewDeletePurchasesBadRequest creates a DeletePurchasesBadRequest with default headers values

func (*DeletePurchasesBadRequest) Error

func (o *DeletePurchasesBadRequest) Error() string

type DeletePurchasesForbidden

type DeletePurchasesForbidden struct {
}

DeletePurchasesForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewDeletePurchasesForbidden

func NewDeletePurchasesForbidden() *DeletePurchasesForbidden

NewDeletePurchasesForbidden creates a DeletePurchasesForbidden with default headers values

func (*DeletePurchasesForbidden) Error

func (o *DeletePurchasesForbidden) Error() string

type DeletePurchasesGone

type DeletePurchasesGone struct {
}

DeletePurchasesGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewDeletePurchasesGone

func NewDeletePurchasesGone() *DeletePurchasesGone

NewDeletePurchasesGone creates a DeletePurchasesGone with default headers values

func (*DeletePurchasesGone) Error

func (o *DeletePurchasesGone) Error() string

type DeletePurchasesInternalServerError

type DeletePurchasesInternalServerError struct {
}

DeletePurchasesInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewDeletePurchasesInternalServerError

func NewDeletePurchasesInternalServerError() *DeletePurchasesInternalServerError

NewDeletePurchasesInternalServerError creates a DeletePurchasesInternalServerError with default headers values

func (*DeletePurchasesInternalServerError) Error

type DeletePurchasesMethodNotAllowed

type DeletePurchasesMethodNotAllowed struct {
}

DeletePurchasesMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewDeletePurchasesMethodNotAllowed

func NewDeletePurchasesMethodNotAllowed() *DeletePurchasesMethodNotAllowed

NewDeletePurchasesMethodNotAllowed creates a DeletePurchasesMethodNotAllowed with default headers values

func (*DeletePurchasesMethodNotAllowed) Error

type DeletePurchasesNotFound

type DeletePurchasesNotFound struct {
}

DeletePurchasesNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewDeletePurchasesNotFound

func NewDeletePurchasesNotFound() *DeletePurchasesNotFound

NewDeletePurchasesNotFound creates a DeletePurchasesNotFound with default headers values

func (*DeletePurchasesNotFound) Error

func (o *DeletePurchasesNotFound) Error() string

type DeletePurchasesOK

type DeletePurchasesOK struct {
	Payload *DeletePurchasesOKBody
}

DeletePurchasesOK handles this case with default header values.

The above command returns results like this:

func NewDeletePurchasesOK

func NewDeletePurchasesOK() *DeletePurchasesOK

NewDeletePurchasesOK creates a DeletePurchasesOK with default headers values

func (*DeletePurchasesOK) Error

func (o *DeletePurchasesOK) Error() string

func (*DeletePurchasesOK) GetPayload

func (o *DeletePurchasesOK) GetPayload() *DeletePurchasesOKBody

type DeletePurchasesOKBody

type DeletePurchasesOKBody struct {

	// deleted
	Deleted interface{} `json:"deleted,omitempty"`

	// id
	ID interface{} `json:"id,omitempty"`
}

DeletePurchasesOKBody delete purchases o k body swagger:model DeletePurchasesOKBody

func (*DeletePurchasesOKBody) MarshalBinary

func (o *DeletePurchasesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeletePurchasesOKBody) UnmarshalBinary

func (o *DeletePurchasesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeletePurchasesOKBody) Validate

func (o *DeletePurchasesOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete purchases o k body

type DeletePurchasesParams

type DeletePurchasesParams struct {

	/*ID
	  purchase id

	*/
	ID int64

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

DeletePurchasesParams contains all the parameters to send to the API endpoint for the delete purchases operation typically these are written to a http.Request

func NewDeletePurchasesParams

func NewDeletePurchasesParams() *DeletePurchasesParams

NewDeletePurchasesParams creates a new DeletePurchasesParams object with the default values initialized.

func NewDeletePurchasesParamsWithContext

func NewDeletePurchasesParamsWithContext(ctx context.Context) *DeletePurchasesParams

NewDeletePurchasesParamsWithContext creates a new DeletePurchasesParams object with the default values initialized, and the ability to set a context for a request

func NewDeletePurchasesParamsWithHTTPClient

func NewDeletePurchasesParamsWithHTTPClient(client *http.Client) *DeletePurchasesParams

NewDeletePurchasesParamsWithHTTPClient creates a new DeletePurchasesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeletePurchasesParamsWithTimeout

func NewDeletePurchasesParamsWithTimeout(timeout time.Duration) *DeletePurchasesParams

NewDeletePurchasesParamsWithTimeout creates a new DeletePurchasesParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeletePurchasesParams) SetContext

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

SetContext adds the context to the delete purchases params

func (*DeletePurchasesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete purchases params

func (*DeletePurchasesParams) SetID

func (o *DeletePurchasesParams) SetID(id int64)

SetID adds the id to the delete purchases params

func (*DeletePurchasesParams) SetTimeout

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

SetTimeout adds the timeout to the delete purchases params

func (*DeletePurchasesParams) WithContext

WithContext adds the context to the delete purchases params

func (*DeletePurchasesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete purchases params

func (*DeletePurchasesParams) WithID

WithID adds the id to the delete purchases params

func (*DeletePurchasesParams) WithTimeout

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

WithTimeout adds the timeout to the delete purchases params

func (*DeletePurchasesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePurchasesReader

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

DeletePurchasesReader is a Reader for the DeletePurchases structure.

func (*DeletePurchasesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePurchasesServiceUnavailable

type DeletePurchasesServiceUnavailable struct {
}

DeletePurchasesServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewDeletePurchasesServiceUnavailable

func NewDeletePurchasesServiceUnavailable() *DeletePurchasesServiceUnavailable

NewDeletePurchasesServiceUnavailable creates a DeletePurchasesServiceUnavailable with default headers values

func (*DeletePurchasesServiceUnavailable) Error

type DeletePurchasesUnauthorized

type DeletePurchasesUnauthorized struct {
}

DeletePurchasesUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewDeletePurchasesUnauthorized

func NewDeletePurchasesUnauthorized() *DeletePurchasesUnauthorized

NewDeletePurchasesUnauthorized creates a DeletePurchasesUnauthorized with default headers values

func (*DeletePurchasesUnauthorized) Error

type GetPurchasesBadRequest

type GetPurchasesBadRequest struct {
}

GetPurchasesBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetPurchasesBadRequest

func NewGetPurchasesBadRequest() *GetPurchasesBadRequest

NewGetPurchasesBadRequest creates a GetPurchasesBadRequest with default headers values

func (*GetPurchasesBadRequest) Error

func (o *GetPurchasesBadRequest) Error() string

type GetPurchasesForbidden

type GetPurchasesForbidden struct {
}

GetPurchasesForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetPurchasesForbidden

func NewGetPurchasesForbidden() *GetPurchasesForbidden

NewGetPurchasesForbidden creates a GetPurchasesForbidden with default headers values

func (*GetPurchasesForbidden) Error

func (o *GetPurchasesForbidden) Error() string

type GetPurchasesGone

type GetPurchasesGone struct {
}

GetPurchasesGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetPurchasesGone

func NewGetPurchasesGone() *GetPurchasesGone

NewGetPurchasesGone creates a GetPurchasesGone with default headers values

func (*GetPurchasesGone) Error

func (o *GetPurchasesGone) Error() string

type GetPurchasesInternalServerError

type GetPurchasesInternalServerError struct {
}

GetPurchasesInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewGetPurchasesInternalServerError

func NewGetPurchasesInternalServerError() *GetPurchasesInternalServerError

NewGetPurchasesInternalServerError creates a GetPurchasesInternalServerError with default headers values

func (*GetPurchasesInternalServerError) Error

type GetPurchasesMethodNotAllowed

type GetPurchasesMethodNotAllowed struct {
}

GetPurchasesMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetPurchasesMethodNotAllowed

func NewGetPurchasesMethodNotAllowed() *GetPurchasesMethodNotAllowed

NewGetPurchasesMethodNotAllowed creates a GetPurchasesMethodNotAllowed with default headers values

func (*GetPurchasesMethodNotAllowed) Error

type GetPurchasesNotFound

type GetPurchasesNotFound struct {
}

GetPurchasesNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetPurchasesNotFound

func NewGetPurchasesNotFound() *GetPurchasesNotFound

NewGetPurchasesNotFound creates a GetPurchasesNotFound with default headers values

func (*GetPurchasesNotFound) Error

func (o *GetPurchasesNotFound) Error() string

type GetPurchasesOK

type GetPurchasesOK struct {
	Payload *models.Purchases
}

GetPurchasesOK handles this case with default header values.

The above command returns results like this:

func NewGetPurchasesOK

func NewGetPurchasesOK() *GetPurchasesOK

NewGetPurchasesOK creates a GetPurchasesOK with default headers values

func (*GetPurchasesOK) Error

func (o *GetPurchasesOK) Error() string

func (*GetPurchasesOK) GetPayload

func (o *GetPurchasesOK) GetPayload() *models.Purchases

type GetPurchasesParams

type GetPurchasesParams struct {

	/*Building
	  Associated building

	*/
	Building *string
	/*Completed
	  Line Item is completed

	*/
	Completed *string
	/*CostCenter
	  Cost Center

	*/
	CostCenter *string
	/*OrderNo
	  Order number

	*/
	OrderNo *string
	/*PurchaseID
	  Device42 Purchase ID

	*/
	PurchaseID *string
	/*Vendor
	  Vendor name

	*/
	Vendor *string

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

GetPurchasesParams contains all the parameters to send to the API endpoint for the get purchases operation typically these are written to a http.Request

func NewGetPurchasesParams

func NewGetPurchasesParams() *GetPurchasesParams

NewGetPurchasesParams creates a new GetPurchasesParams object with the default values initialized.

func NewGetPurchasesParamsWithContext

func NewGetPurchasesParamsWithContext(ctx context.Context) *GetPurchasesParams

NewGetPurchasesParamsWithContext creates a new GetPurchasesParams object with the default values initialized, and the ability to set a context for a request

func NewGetPurchasesParamsWithHTTPClient

func NewGetPurchasesParamsWithHTTPClient(client *http.Client) *GetPurchasesParams

NewGetPurchasesParamsWithHTTPClient creates a new GetPurchasesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPurchasesParamsWithTimeout

func NewGetPurchasesParamsWithTimeout(timeout time.Duration) *GetPurchasesParams

NewGetPurchasesParamsWithTimeout creates a new GetPurchasesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPurchasesParams) SetBuilding

func (o *GetPurchasesParams) SetBuilding(building *string)

SetBuilding adds the building to the get purchases params

func (*GetPurchasesParams) SetCompleted

func (o *GetPurchasesParams) SetCompleted(completed *string)

SetCompleted adds the completed to the get purchases params

func (*GetPurchasesParams) SetContext

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

SetContext adds the context to the get purchases params

func (*GetPurchasesParams) SetCostCenter

func (o *GetPurchasesParams) SetCostCenter(costCenter *string)

SetCostCenter adds the costCenter to the get purchases params

func (*GetPurchasesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get purchases params

func (*GetPurchasesParams) SetOrderNo

func (o *GetPurchasesParams) SetOrderNo(orderNo *string)

SetOrderNo adds the orderNo to the get purchases params

func (*GetPurchasesParams) SetPurchaseID

func (o *GetPurchasesParams) SetPurchaseID(purchaseID *string)

SetPurchaseID adds the purchaseId to the get purchases params

func (*GetPurchasesParams) SetTimeout

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

SetTimeout adds the timeout to the get purchases params

func (*GetPurchasesParams) SetVendor

func (o *GetPurchasesParams) SetVendor(vendor *string)

SetVendor adds the vendor to the get purchases params

func (*GetPurchasesParams) WithBuilding

func (o *GetPurchasesParams) WithBuilding(building *string) *GetPurchasesParams

WithBuilding adds the building to the get purchases params

func (*GetPurchasesParams) WithCompleted

func (o *GetPurchasesParams) WithCompleted(completed *string) *GetPurchasesParams

WithCompleted adds the completed to the get purchases params

func (*GetPurchasesParams) WithContext

WithContext adds the context to the get purchases params

func (*GetPurchasesParams) WithCostCenter

func (o *GetPurchasesParams) WithCostCenter(costCenter *string) *GetPurchasesParams

WithCostCenter adds the costCenter to the get purchases params

func (*GetPurchasesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get purchases params

func (*GetPurchasesParams) WithOrderNo

func (o *GetPurchasesParams) WithOrderNo(orderNo *string) *GetPurchasesParams

WithOrderNo adds the orderNo to the get purchases params

func (*GetPurchasesParams) WithPurchaseID

func (o *GetPurchasesParams) WithPurchaseID(purchaseID *string) *GetPurchasesParams

WithPurchaseID adds the purchaseID to the get purchases params

func (*GetPurchasesParams) WithTimeout

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

WithTimeout adds the timeout to the get purchases params

func (*GetPurchasesParams) WithVendor

func (o *GetPurchasesParams) WithVendor(vendor *string) *GetPurchasesParams

WithVendor adds the vendor to the get purchases params

func (*GetPurchasesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPurchasesReader

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

GetPurchasesReader is a Reader for the GetPurchases structure.

func (*GetPurchasesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPurchasesServiceUnavailable

type GetPurchasesServiceUnavailable struct {
}

GetPurchasesServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetPurchasesServiceUnavailable

func NewGetPurchasesServiceUnavailable() *GetPurchasesServiceUnavailable

NewGetPurchasesServiceUnavailable creates a GetPurchasesServiceUnavailable with default headers values

func (*GetPurchasesServiceUnavailable) Error

type GetPurchasesUnauthorized

type GetPurchasesUnauthorized struct {
}

GetPurchasesUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetPurchasesUnauthorized

func NewGetPurchasesUnauthorized() *GetPurchasesUnauthorized

NewGetPurchasesUnauthorized creates a GetPurchasesUnauthorized with default headers values

func (*GetPurchasesUnauthorized) Error

func (o *GetPurchasesUnauthorized) Error() string

type PostPurchasesBadRequest

type PostPurchasesBadRequest struct {
}

PostPurchasesBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostPurchasesBadRequest

func NewPostPurchasesBadRequest() *PostPurchasesBadRequest

NewPostPurchasesBadRequest creates a PostPurchasesBadRequest with default headers values

func (*PostPurchasesBadRequest) Error

func (o *PostPurchasesBadRequest) Error() string

type PostPurchasesForbidden

type PostPurchasesForbidden struct {
}

PostPurchasesForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostPurchasesForbidden

func NewPostPurchasesForbidden() *PostPurchasesForbidden

NewPostPurchasesForbidden creates a PostPurchasesForbidden with default headers values

func (*PostPurchasesForbidden) Error

func (o *PostPurchasesForbidden) Error() string

type PostPurchasesGone

type PostPurchasesGone struct {
}

PostPurchasesGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostPurchasesGone

func NewPostPurchasesGone() *PostPurchasesGone

NewPostPurchasesGone creates a PostPurchasesGone with default headers values

func (*PostPurchasesGone) Error

func (o *PostPurchasesGone) Error() string

type PostPurchasesInternalServerError

type PostPurchasesInternalServerError struct {
}

PostPurchasesInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewPostPurchasesInternalServerError

func NewPostPurchasesInternalServerError() *PostPurchasesInternalServerError

NewPostPurchasesInternalServerError creates a PostPurchasesInternalServerError with default headers values

func (*PostPurchasesInternalServerError) Error

type PostPurchasesMethodNotAllowed

type PostPurchasesMethodNotAllowed struct {
}

PostPurchasesMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostPurchasesMethodNotAllowed

func NewPostPurchasesMethodNotAllowed() *PostPurchasesMethodNotAllowed

NewPostPurchasesMethodNotAllowed creates a PostPurchasesMethodNotAllowed with default headers values

func (*PostPurchasesMethodNotAllowed) Error

type PostPurchasesNotFound

type PostPurchasesNotFound struct {
}

PostPurchasesNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostPurchasesNotFound

func NewPostPurchasesNotFound() *PostPurchasesNotFound

NewPostPurchasesNotFound creates a PostPurchasesNotFound with default headers values

func (*PostPurchasesNotFound) Error

func (o *PostPurchasesNotFound) Error() string

type PostPurchasesOK

type PostPurchasesOK struct {
	Payload *PostPurchasesOKBody
}

PostPurchasesOK handles this case with default header values.

The above command returns results like this:

func NewPostPurchasesOK

func NewPostPurchasesOK() *PostPurchasesOK

NewPostPurchasesOK creates a PostPurchasesOK with default headers values

func (*PostPurchasesOK) Error

func (o *PostPurchasesOK) Error() string

func (*PostPurchasesOK) GetPayload

func (o *PostPurchasesOK) GetPayload() *PostPurchasesOKBody

type PostPurchasesOKBody

type PostPurchasesOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostPurchasesOKBody post purchases o k body swagger:model PostPurchasesOKBody

func (*PostPurchasesOKBody) MarshalBinary

func (o *PostPurchasesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPurchasesOKBody) UnmarshalBinary

func (o *PostPurchasesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPurchasesOKBody) Validate

func (o *PostPurchasesOKBody) Validate(formats strfmt.Registry) error

Validate validates this post purchases o k body

type PostPurchasesParams

type PostPurchasesParams struct {

	/*Completed*/
	Completed *string
	/*Cost*/
	Cost *string
	/*CostCenter*/
	CostCenter *string
	/*Groups
	  If multitenancy is on, admin groups that have access to this object are specified here, e.g. Prod_East:no,Corp:yes specifies that the admin groups for this object are Prod_East with view only permission and Corp with change permission. If this parameter is present with no value, all groups are deleted.

	*/
	Groups *string
	/*LineAssetIds
	  Comma separated asset_id. Only applicable if line_item_type is asset.

	*/
	LineAssetIds *string
	/*LineBuildingIds
	  D42 ID for the building(s)

	*/
	LineBuildingIds *string
	/*LineCancelPolicy*/
	LineCancelPolicy *string
	/*LineCertificateIds
	  D42 ID for the certificate(s)

	*/
	LineCertificateIds *string
	/*LineCircuitIds
	  D42 ID for the circuit(s)

	*/
	LineCircuitIds *string
	/*LineCircuits
	  circuit ID name

	*/
	LineCircuits *string
	/*LineCompleted*/
	LineCompleted *string
	/*LineContractID
	  (added in v9.0.2)

	*/
	LineContractID *string
	/*LineContractType*/
	LineContractType *string
	/*LineCost
	  cost for single object / item.

	*/
	LineCost *string
	/*LineCostCenter*/
	LineCostCenter *string
	/*LineCustomer*/
	LineCustomer *string
	/*LineDeviceAssetNos
	  Comma separated asset numbers. Only applicable if line_item_type is device. Will only work on existing asset numbers.

	*/
	LineDeviceAssetNos *string
	/*LineDeviceOsIds
	  D42 ID for the Device OS

	*/
	LineDeviceOsIds *string
	/*LineDeviceSerialNos
	  Comma separated serial numbers. Only applicable if line_item_type is device. Will only work on existing serial numbers.

	*/
	LineDeviceSerialNos *string
	/*LineDevices
	  Comma separated device names. Only applicable if line_item_type is device. Will create new devices if device with name specific here does not exist.

	*/
	LineDevices *string
	/*LineEndDate
	  Date in YYYY-MM-DD format

	*/
	LineEndDate *string
	/*LineFrequency*/
	LineFrequency *string
	/*LineItemType
	  Default is device.

	*/
	LineItemType *string
	/*LineName*/
	LineName *string
	/*LineNo
	  required for existing line items, use existing line # to change existing line item.

	*/
	LineNo *string
	/*LineNotes*/
	LineNotes *string
	/*LinePartIds
	  D42 ID for the part(s)

	*/
	LinePartIds *string
	/*LineQuantity
	  can be calculated automatically from # of objects associated

	*/
	LineQuantity *string
	/*LineRackIds
	  D42 ID for the rack(s)

	*/
	LineRackIds *string
	/*LineRenewDate
	  Date in YYYY-MM-DD format

	*/
	LineRenewDate *string
	/*LineRoomIds
	  D42 ID for the room(s)

	*/
	LineRoomIds *string
	/*LineServiceType
	  new service type will be created, if it doesn’t exist (added in v9.0.2)

	*/
	LineServiceType *string
	/*LineSoftwareIds
	  D42 ID for the software

	*/
	LineSoftwareIds *string
	/*LineStartDate
	  Date in YYYY-MM-DD format

	*/
	LineStartDate *string
	/*LineType
	  required for any new line being added for both device or contract.

	*/
	LineType *string
	/*Notes
	  Any additional notes

	*/
	Notes *string
	/*OrderNo
	  order number / name for the purchase. Can be new or existing.

	*/
	OrderNo *string
	/*PoDate*/
	PoDate *string
	/*PurchaseID
	  Can be used instead of order_no to update existing purchase

	*/
	PurchaseID *string
	/*Vendor
	  The cloud vendor

	*/
	Vendor *string

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

PostPurchasesParams contains all the parameters to send to the API endpoint for the post purchases operation typically these are written to a http.Request

func NewPostPurchasesParams

func NewPostPurchasesParams() *PostPurchasesParams

NewPostPurchasesParams creates a new PostPurchasesParams object with the default values initialized.

func NewPostPurchasesParamsWithContext

func NewPostPurchasesParamsWithContext(ctx context.Context) *PostPurchasesParams

NewPostPurchasesParamsWithContext creates a new PostPurchasesParams object with the default values initialized, and the ability to set a context for a request

func NewPostPurchasesParamsWithHTTPClient

func NewPostPurchasesParamsWithHTTPClient(client *http.Client) *PostPurchasesParams

NewPostPurchasesParamsWithHTTPClient creates a new PostPurchasesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostPurchasesParamsWithTimeout

func NewPostPurchasesParamsWithTimeout(timeout time.Duration) *PostPurchasesParams

NewPostPurchasesParamsWithTimeout creates a new PostPurchasesParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostPurchasesParams) SetCompleted

func (o *PostPurchasesParams) SetCompleted(completed *string)

SetCompleted adds the completed to the post purchases params

func (*PostPurchasesParams) SetContext

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

SetContext adds the context to the post purchases params

func (*PostPurchasesParams) SetCost

func (o *PostPurchasesParams) SetCost(cost *string)

SetCost adds the cost to the post purchases params

func (*PostPurchasesParams) SetCostCenter

func (o *PostPurchasesParams) SetCostCenter(costCenter *string)

SetCostCenter adds the costCenter to the post purchases params

func (*PostPurchasesParams) SetGroups

func (o *PostPurchasesParams) SetGroups(groups *string)

SetGroups adds the groups to the post purchases params

func (*PostPurchasesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post purchases params

func (*PostPurchasesParams) SetLineAssetIds

func (o *PostPurchasesParams) SetLineAssetIds(lineAssetIds *string)

SetLineAssetIds adds the lineAssetIds to the post purchases params

func (*PostPurchasesParams) SetLineBuildingIds

func (o *PostPurchasesParams) SetLineBuildingIds(lineBuildingIds *string)

SetLineBuildingIds adds the lineBuildingIds to the post purchases params

func (*PostPurchasesParams) SetLineCancelPolicy

func (o *PostPurchasesParams) SetLineCancelPolicy(lineCancelPolicy *string)

SetLineCancelPolicy adds the lineCancelPolicy to the post purchases params

func (*PostPurchasesParams) SetLineCertificateIds

func (o *PostPurchasesParams) SetLineCertificateIds(lineCertificateIds *string)

SetLineCertificateIds adds the lineCertificateIds to the post purchases params

func (*PostPurchasesParams) SetLineCircuitIds

func (o *PostPurchasesParams) SetLineCircuitIds(lineCircuitIds *string)

SetLineCircuitIds adds the lineCircuitIds to the post purchases params

func (*PostPurchasesParams) SetLineCircuits

func (o *PostPurchasesParams) SetLineCircuits(lineCircuits *string)

SetLineCircuits adds the lineCircuits to the post purchases params

func (*PostPurchasesParams) SetLineCompleted

func (o *PostPurchasesParams) SetLineCompleted(lineCompleted *string)

SetLineCompleted adds the lineCompleted to the post purchases params

func (*PostPurchasesParams) SetLineContractID

func (o *PostPurchasesParams) SetLineContractID(lineContractID *string)

SetLineContractID adds the lineContractId to the post purchases params

func (*PostPurchasesParams) SetLineContractType

func (o *PostPurchasesParams) SetLineContractType(lineContractType *string)

SetLineContractType adds the lineContractType to the post purchases params

func (*PostPurchasesParams) SetLineCost

func (o *PostPurchasesParams) SetLineCost(lineCost *string)

SetLineCost adds the lineCost to the post purchases params

func (*PostPurchasesParams) SetLineCostCenter

func (o *PostPurchasesParams) SetLineCostCenter(lineCostCenter *string)

SetLineCostCenter adds the lineCostCenter to the post purchases params

func (*PostPurchasesParams) SetLineCustomer

func (o *PostPurchasesParams) SetLineCustomer(lineCustomer *string)

SetLineCustomer adds the lineCustomer to the post purchases params

func (*PostPurchasesParams) SetLineDeviceAssetNos

func (o *PostPurchasesParams) SetLineDeviceAssetNos(lineDeviceAssetNos *string)

SetLineDeviceAssetNos adds the lineDeviceAssetNos to the post purchases params

func (*PostPurchasesParams) SetLineDeviceOsIds

func (o *PostPurchasesParams) SetLineDeviceOsIds(lineDeviceOsIds *string)

SetLineDeviceOsIds adds the lineDeviceOsIds to the post purchases params

func (*PostPurchasesParams) SetLineDeviceSerialNos

func (o *PostPurchasesParams) SetLineDeviceSerialNos(lineDeviceSerialNos *string)

SetLineDeviceSerialNos adds the lineDeviceSerialNos to the post purchases params

func (*PostPurchasesParams) SetLineDevices

func (o *PostPurchasesParams) SetLineDevices(lineDevices *string)

SetLineDevices adds the lineDevices to the post purchases params

func (*PostPurchasesParams) SetLineEndDate

func (o *PostPurchasesParams) SetLineEndDate(lineEndDate *string)

SetLineEndDate adds the lineEndDate to the post purchases params

func (*PostPurchasesParams) SetLineFrequency

func (o *PostPurchasesParams) SetLineFrequency(lineFrequency *string)

SetLineFrequency adds the lineFrequency to the post purchases params

func (*PostPurchasesParams) SetLineItemType

func (o *PostPurchasesParams) SetLineItemType(lineItemType *string)

SetLineItemType adds the lineItemType to the post purchases params

func (*PostPurchasesParams) SetLineName

func (o *PostPurchasesParams) SetLineName(lineName *string)

SetLineName adds the lineName to the post purchases params

func (*PostPurchasesParams) SetLineNo

func (o *PostPurchasesParams) SetLineNo(lineNo *string)

SetLineNo adds the lineNo to the post purchases params

func (*PostPurchasesParams) SetLineNotes

func (o *PostPurchasesParams) SetLineNotes(lineNotes *string)

SetLineNotes adds the lineNotes to the post purchases params

func (*PostPurchasesParams) SetLinePartIds

func (o *PostPurchasesParams) SetLinePartIds(linePartIds *string)

SetLinePartIds adds the linePartIds to the post purchases params

func (*PostPurchasesParams) SetLineQuantity

func (o *PostPurchasesParams) SetLineQuantity(lineQuantity *string)

SetLineQuantity adds the lineQuantity to the post purchases params

func (*PostPurchasesParams) SetLineRackIds

func (o *PostPurchasesParams) SetLineRackIds(lineRackIds *string)

SetLineRackIds adds the lineRackIds to the post purchases params

func (*PostPurchasesParams) SetLineRenewDate

func (o *PostPurchasesParams) SetLineRenewDate(lineRenewDate *string)

SetLineRenewDate adds the lineRenewDate to the post purchases params

func (*PostPurchasesParams) SetLineRoomIds

func (o *PostPurchasesParams) SetLineRoomIds(lineRoomIds *string)

SetLineRoomIds adds the lineRoomIds to the post purchases params

func (*PostPurchasesParams) SetLineServiceType

func (o *PostPurchasesParams) SetLineServiceType(lineServiceType *string)

SetLineServiceType adds the lineServiceType to the post purchases params

func (*PostPurchasesParams) SetLineSoftwareIds

func (o *PostPurchasesParams) SetLineSoftwareIds(lineSoftwareIds *string)

SetLineSoftwareIds adds the lineSoftwareIds to the post purchases params

func (*PostPurchasesParams) SetLineStartDate

func (o *PostPurchasesParams) SetLineStartDate(lineStartDate *string)

SetLineStartDate adds the lineStartDate to the post purchases params

func (*PostPurchasesParams) SetLineType

func (o *PostPurchasesParams) SetLineType(lineType *string)

SetLineType adds the lineType to the post purchases params

func (*PostPurchasesParams) SetNotes

func (o *PostPurchasesParams) SetNotes(notes *string)

SetNotes adds the notes to the post purchases params

func (*PostPurchasesParams) SetOrderNo

func (o *PostPurchasesParams) SetOrderNo(orderNo *string)

SetOrderNo adds the orderNo to the post purchases params

func (*PostPurchasesParams) SetPoDate

func (o *PostPurchasesParams) SetPoDate(poDate *string)

SetPoDate adds the poDate to the post purchases params

func (*PostPurchasesParams) SetPurchaseID

func (o *PostPurchasesParams) SetPurchaseID(purchaseID *string)

SetPurchaseID adds the purchaseId to the post purchases params

func (*PostPurchasesParams) SetTimeout

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

SetTimeout adds the timeout to the post purchases params

func (*PostPurchasesParams) SetVendor

func (o *PostPurchasesParams) SetVendor(vendor *string)

SetVendor adds the vendor to the post purchases params

func (*PostPurchasesParams) WithCompleted

func (o *PostPurchasesParams) WithCompleted(completed *string) *PostPurchasesParams

WithCompleted adds the completed to the post purchases params

func (*PostPurchasesParams) WithContext

WithContext adds the context to the post purchases params

func (*PostPurchasesParams) WithCost

func (o *PostPurchasesParams) WithCost(cost *string) *PostPurchasesParams

WithCost adds the cost to the post purchases params

func (*PostPurchasesParams) WithCostCenter

func (o *PostPurchasesParams) WithCostCenter(costCenter *string) *PostPurchasesParams

WithCostCenter adds the costCenter to the post purchases params

func (*PostPurchasesParams) WithGroups

func (o *PostPurchasesParams) WithGroups(groups *string) *PostPurchasesParams

WithGroups adds the groups to the post purchases params

func (*PostPurchasesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post purchases params

func (*PostPurchasesParams) WithLineAssetIds

func (o *PostPurchasesParams) WithLineAssetIds(lineAssetIds *string) *PostPurchasesParams

WithLineAssetIds adds the lineAssetIds to the post purchases params

func (*PostPurchasesParams) WithLineBuildingIds

func (o *PostPurchasesParams) WithLineBuildingIds(lineBuildingIds *string) *PostPurchasesParams

WithLineBuildingIds adds the lineBuildingIds to the post purchases params

func (*PostPurchasesParams) WithLineCancelPolicy

func (o *PostPurchasesParams) WithLineCancelPolicy(lineCancelPolicy *string) *PostPurchasesParams

WithLineCancelPolicy adds the lineCancelPolicy to the post purchases params

func (*PostPurchasesParams) WithLineCertificateIds

func (o *PostPurchasesParams) WithLineCertificateIds(lineCertificateIds *string) *PostPurchasesParams

WithLineCertificateIds adds the lineCertificateIds to the post purchases params

func (*PostPurchasesParams) WithLineCircuitIds

func (o *PostPurchasesParams) WithLineCircuitIds(lineCircuitIds *string) *PostPurchasesParams

WithLineCircuitIds adds the lineCircuitIds to the post purchases params

func (*PostPurchasesParams) WithLineCircuits

func (o *PostPurchasesParams) WithLineCircuits(lineCircuits *string) *PostPurchasesParams

WithLineCircuits adds the lineCircuits to the post purchases params

func (*PostPurchasesParams) WithLineCompleted

func (o *PostPurchasesParams) WithLineCompleted(lineCompleted *string) *PostPurchasesParams

WithLineCompleted adds the lineCompleted to the post purchases params

func (*PostPurchasesParams) WithLineContractID

func (o *PostPurchasesParams) WithLineContractID(lineContractID *string) *PostPurchasesParams

WithLineContractID adds the lineContractID to the post purchases params

func (*PostPurchasesParams) WithLineContractType

func (o *PostPurchasesParams) WithLineContractType(lineContractType *string) *PostPurchasesParams

WithLineContractType adds the lineContractType to the post purchases params

func (*PostPurchasesParams) WithLineCost

func (o *PostPurchasesParams) WithLineCost(lineCost *string) *PostPurchasesParams

WithLineCost adds the lineCost to the post purchases params

func (*PostPurchasesParams) WithLineCostCenter

func (o *PostPurchasesParams) WithLineCostCenter(lineCostCenter *string) *PostPurchasesParams

WithLineCostCenter adds the lineCostCenter to the post purchases params

func (*PostPurchasesParams) WithLineCustomer

func (o *PostPurchasesParams) WithLineCustomer(lineCustomer *string) *PostPurchasesParams

WithLineCustomer adds the lineCustomer to the post purchases params

func (*PostPurchasesParams) WithLineDeviceAssetNos

func (o *PostPurchasesParams) WithLineDeviceAssetNos(lineDeviceAssetNos *string) *PostPurchasesParams

WithLineDeviceAssetNos adds the lineDeviceAssetNos to the post purchases params

func (*PostPurchasesParams) WithLineDeviceOsIds

func (o *PostPurchasesParams) WithLineDeviceOsIds(lineDeviceOsIds *string) *PostPurchasesParams

WithLineDeviceOsIds adds the lineDeviceOsIds to the post purchases params

func (*PostPurchasesParams) WithLineDeviceSerialNos

func (o *PostPurchasesParams) WithLineDeviceSerialNos(lineDeviceSerialNos *string) *PostPurchasesParams

WithLineDeviceSerialNos adds the lineDeviceSerialNos to the post purchases params

func (*PostPurchasesParams) WithLineDevices

func (o *PostPurchasesParams) WithLineDevices(lineDevices *string) *PostPurchasesParams

WithLineDevices adds the lineDevices to the post purchases params

func (*PostPurchasesParams) WithLineEndDate

func (o *PostPurchasesParams) WithLineEndDate(lineEndDate *string) *PostPurchasesParams

WithLineEndDate adds the lineEndDate to the post purchases params

func (*PostPurchasesParams) WithLineFrequency

func (o *PostPurchasesParams) WithLineFrequency(lineFrequency *string) *PostPurchasesParams

WithLineFrequency adds the lineFrequency to the post purchases params

func (*PostPurchasesParams) WithLineItemType

func (o *PostPurchasesParams) WithLineItemType(lineItemType *string) *PostPurchasesParams

WithLineItemType adds the lineItemType to the post purchases params

func (*PostPurchasesParams) WithLineName

func (o *PostPurchasesParams) WithLineName(lineName *string) *PostPurchasesParams

WithLineName adds the lineName to the post purchases params

func (*PostPurchasesParams) WithLineNo

func (o *PostPurchasesParams) WithLineNo(lineNo *string) *PostPurchasesParams

WithLineNo adds the lineNo to the post purchases params

func (*PostPurchasesParams) WithLineNotes

func (o *PostPurchasesParams) WithLineNotes(lineNotes *string) *PostPurchasesParams

WithLineNotes adds the lineNotes to the post purchases params

func (*PostPurchasesParams) WithLinePartIds

func (o *PostPurchasesParams) WithLinePartIds(linePartIds *string) *PostPurchasesParams

WithLinePartIds adds the linePartIds to the post purchases params

func (*PostPurchasesParams) WithLineQuantity

func (o *PostPurchasesParams) WithLineQuantity(lineQuantity *string) *PostPurchasesParams

WithLineQuantity adds the lineQuantity to the post purchases params

func (*PostPurchasesParams) WithLineRackIds

func (o *PostPurchasesParams) WithLineRackIds(lineRackIds *string) *PostPurchasesParams

WithLineRackIds adds the lineRackIds to the post purchases params

func (*PostPurchasesParams) WithLineRenewDate

func (o *PostPurchasesParams) WithLineRenewDate(lineRenewDate *string) *PostPurchasesParams

WithLineRenewDate adds the lineRenewDate to the post purchases params

func (*PostPurchasesParams) WithLineRoomIds

func (o *PostPurchasesParams) WithLineRoomIds(lineRoomIds *string) *PostPurchasesParams

WithLineRoomIds adds the lineRoomIds to the post purchases params

func (*PostPurchasesParams) WithLineServiceType

func (o *PostPurchasesParams) WithLineServiceType(lineServiceType *string) *PostPurchasesParams

WithLineServiceType adds the lineServiceType to the post purchases params

func (*PostPurchasesParams) WithLineSoftwareIds

func (o *PostPurchasesParams) WithLineSoftwareIds(lineSoftwareIds *string) *PostPurchasesParams

WithLineSoftwareIds adds the lineSoftwareIds to the post purchases params

func (*PostPurchasesParams) WithLineStartDate

func (o *PostPurchasesParams) WithLineStartDate(lineStartDate *string) *PostPurchasesParams

WithLineStartDate adds the lineStartDate to the post purchases params

func (*PostPurchasesParams) WithLineType

func (o *PostPurchasesParams) WithLineType(lineType *string) *PostPurchasesParams

WithLineType adds the lineType to the post purchases params

func (*PostPurchasesParams) WithNotes

func (o *PostPurchasesParams) WithNotes(notes *string) *PostPurchasesParams

WithNotes adds the notes to the post purchases params

func (*PostPurchasesParams) WithOrderNo

func (o *PostPurchasesParams) WithOrderNo(orderNo *string) *PostPurchasesParams

WithOrderNo adds the orderNo to the post purchases params

func (*PostPurchasesParams) WithPoDate

func (o *PostPurchasesParams) WithPoDate(poDate *string) *PostPurchasesParams

WithPoDate adds the poDate to the post purchases params

func (*PostPurchasesParams) WithPurchaseID

func (o *PostPurchasesParams) WithPurchaseID(purchaseID *string) *PostPurchasesParams

WithPurchaseID adds the purchaseID to the post purchases params

func (*PostPurchasesParams) WithTimeout

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

WithTimeout adds the timeout to the post purchases params

func (*PostPurchasesParams) WithVendor

func (o *PostPurchasesParams) WithVendor(vendor *string) *PostPurchasesParams

WithVendor adds the vendor to the post purchases params

func (*PostPurchasesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostPurchasesReader

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

PostPurchasesReader is a Reader for the PostPurchases structure.

func (*PostPurchasesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostPurchasesServiceUnavailable

type PostPurchasesServiceUnavailable struct {
}

PostPurchasesServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostPurchasesServiceUnavailable

func NewPostPurchasesServiceUnavailable() *PostPurchasesServiceUnavailable

NewPostPurchasesServiceUnavailable creates a PostPurchasesServiceUnavailable with default headers values

func (*PostPurchasesServiceUnavailable) Error

type PostPurchasesUnauthorized

type PostPurchasesUnauthorized struct {
}

PostPurchasesUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostPurchasesUnauthorized

func NewPostPurchasesUnauthorized() *PostPurchasesUnauthorized

NewPostPurchasesUnauthorized creates a PostPurchasesUnauthorized with default headers values

func (*PostPurchasesUnauthorized) Error

func (o *PostPurchasesUnauthorized) Error() string

type PutCustomFieldPurchasesBadRequest

type PutCustomFieldPurchasesBadRequest struct {
}

PutCustomFieldPurchasesBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPutCustomFieldPurchasesBadRequest

func NewPutCustomFieldPurchasesBadRequest() *PutCustomFieldPurchasesBadRequest

NewPutCustomFieldPurchasesBadRequest creates a PutCustomFieldPurchasesBadRequest with default headers values

func (*PutCustomFieldPurchasesBadRequest) Error

type PutCustomFieldPurchasesForbidden

type PutCustomFieldPurchasesForbidden struct {
}

PutCustomFieldPurchasesForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPutCustomFieldPurchasesForbidden

func NewPutCustomFieldPurchasesForbidden() *PutCustomFieldPurchasesForbidden

NewPutCustomFieldPurchasesForbidden creates a PutCustomFieldPurchasesForbidden with default headers values

func (*PutCustomFieldPurchasesForbidden) Error

type PutCustomFieldPurchasesGone

type PutCustomFieldPurchasesGone struct {
}

PutCustomFieldPurchasesGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPutCustomFieldPurchasesGone

func NewPutCustomFieldPurchasesGone() *PutCustomFieldPurchasesGone

NewPutCustomFieldPurchasesGone creates a PutCustomFieldPurchasesGone with default headers values

func (*PutCustomFieldPurchasesGone) Error

type PutCustomFieldPurchasesInternalServerError

type PutCustomFieldPurchasesInternalServerError struct {
}

PutCustomFieldPurchasesInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewPutCustomFieldPurchasesInternalServerError

func NewPutCustomFieldPurchasesInternalServerError() *PutCustomFieldPurchasesInternalServerError

NewPutCustomFieldPurchasesInternalServerError creates a PutCustomFieldPurchasesInternalServerError with default headers values

func (*PutCustomFieldPurchasesInternalServerError) Error

type PutCustomFieldPurchasesMethodNotAllowed

type PutCustomFieldPurchasesMethodNotAllowed struct {
}

PutCustomFieldPurchasesMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPutCustomFieldPurchasesMethodNotAllowed

func NewPutCustomFieldPurchasesMethodNotAllowed() *PutCustomFieldPurchasesMethodNotAllowed

NewPutCustomFieldPurchasesMethodNotAllowed creates a PutCustomFieldPurchasesMethodNotAllowed with default headers values

func (*PutCustomFieldPurchasesMethodNotAllowed) Error

type PutCustomFieldPurchasesNotFound

type PutCustomFieldPurchasesNotFound struct {
}

PutCustomFieldPurchasesNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPutCustomFieldPurchasesNotFound

func NewPutCustomFieldPurchasesNotFound() *PutCustomFieldPurchasesNotFound

NewPutCustomFieldPurchasesNotFound creates a PutCustomFieldPurchasesNotFound with default headers values

func (*PutCustomFieldPurchasesNotFound) Error

type PutCustomFieldPurchasesOK

type PutCustomFieldPurchasesOK struct {
	Payload *PutCustomFieldPurchasesOKBody
}

PutCustomFieldPurchasesOK handles this case with default header values.

The above command returns results like this:

func NewPutCustomFieldPurchasesOK

func NewPutCustomFieldPurchasesOK() *PutCustomFieldPurchasesOK

NewPutCustomFieldPurchasesOK creates a PutCustomFieldPurchasesOK with default headers values

func (*PutCustomFieldPurchasesOK) Error

func (o *PutCustomFieldPurchasesOK) Error() string

func (*PutCustomFieldPurchasesOK) GetPayload

type PutCustomFieldPurchasesOKBody

type PutCustomFieldPurchasesOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PutCustomFieldPurchasesOKBody put custom field purchases o k body swagger:model PutCustomFieldPurchasesOKBody

func (*PutCustomFieldPurchasesOKBody) MarshalBinary

func (o *PutCustomFieldPurchasesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutCustomFieldPurchasesOKBody) UnmarshalBinary

func (o *PutCustomFieldPurchasesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutCustomFieldPurchasesOKBody) Validate

func (o *PutCustomFieldPurchasesOKBody) Validate(formats strfmt.Registry) error

Validate validates this put custom field purchases o k body

type PutCustomFieldPurchasesParams

type PutCustomFieldPurchasesParams struct {

	/*AddToPicklist
	  Comma separated values to add to picklist. If type is picklist and custom field is new, this is a required field. Duplicates will be ignored.

	*/
	AddToPicklist *string
	/*BulkFields
	  comma separated key value pairs, with key and value separated by colon. e.g.key1:value1, key2:value2

	*/
	BulkFields *string
	/*ClearValue
	  yes to clear existing value for that field

	*/
	ClearValue *string
	/*Key
	  Can be new or existing. This is the custom field name.

	*/
	Key string
	/*Notes
	  Any additional notes

	*/
	Notes *string
	/*OrderNo
	  order number / name for the purchase. Can be new or existing.

	*/
	OrderNo string
	/*RelatedFieldName
	  Required if type = related field.

	*/
	RelatedFieldName *string
	/*Type
	  this is the custom field type. If left blank, default is text. Date should be formatted as YYYY-MM-DD

	*/
	Type *string
	/*Value
	  This will set the value of the custom field for the specific object.

	*/
	Value *string

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

PutCustomFieldPurchasesParams contains all the parameters to send to the API endpoint for the put custom field purchases operation typically these are written to a http.Request

func NewPutCustomFieldPurchasesParams

func NewPutCustomFieldPurchasesParams() *PutCustomFieldPurchasesParams

NewPutCustomFieldPurchasesParams creates a new PutCustomFieldPurchasesParams object with the default values initialized.

func NewPutCustomFieldPurchasesParamsWithContext

func NewPutCustomFieldPurchasesParamsWithContext(ctx context.Context) *PutCustomFieldPurchasesParams

NewPutCustomFieldPurchasesParamsWithContext creates a new PutCustomFieldPurchasesParams object with the default values initialized, and the ability to set a context for a request

func NewPutCustomFieldPurchasesParamsWithHTTPClient

func NewPutCustomFieldPurchasesParamsWithHTTPClient(client *http.Client) *PutCustomFieldPurchasesParams

NewPutCustomFieldPurchasesParamsWithHTTPClient creates a new PutCustomFieldPurchasesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutCustomFieldPurchasesParamsWithTimeout

func NewPutCustomFieldPurchasesParamsWithTimeout(timeout time.Duration) *PutCustomFieldPurchasesParams

NewPutCustomFieldPurchasesParamsWithTimeout creates a new PutCustomFieldPurchasesParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutCustomFieldPurchasesParams) SetAddToPicklist

func (o *PutCustomFieldPurchasesParams) SetAddToPicklist(addToPicklist *string)

SetAddToPicklist adds the addToPicklist to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetBulkFields

func (o *PutCustomFieldPurchasesParams) SetBulkFields(bulkFields *string)

SetBulkFields adds the bulkFields to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetClearValue

func (o *PutCustomFieldPurchasesParams) SetClearValue(clearValue *string)

SetClearValue adds the clearValue to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetContext

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

SetContext adds the context to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetKey

func (o *PutCustomFieldPurchasesParams) SetKey(key string)

SetKey adds the key to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetNotes

func (o *PutCustomFieldPurchasesParams) SetNotes(notes *string)

SetNotes adds the notes to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetOrderNo

func (o *PutCustomFieldPurchasesParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetRelatedFieldName

func (o *PutCustomFieldPurchasesParams) SetRelatedFieldName(relatedFieldName *string)

SetRelatedFieldName adds the relatedFieldName to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetTimeout

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

SetTimeout adds the timeout to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetType

func (o *PutCustomFieldPurchasesParams) SetType(typeVar *string)

SetType adds the type to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) SetValue

func (o *PutCustomFieldPurchasesParams) SetValue(value *string)

SetValue adds the value to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithAddToPicklist

func (o *PutCustomFieldPurchasesParams) WithAddToPicklist(addToPicklist *string) *PutCustomFieldPurchasesParams

WithAddToPicklist adds the addToPicklist to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithBulkFields

func (o *PutCustomFieldPurchasesParams) WithBulkFields(bulkFields *string) *PutCustomFieldPurchasesParams

WithBulkFields adds the bulkFields to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithClearValue

func (o *PutCustomFieldPurchasesParams) WithClearValue(clearValue *string) *PutCustomFieldPurchasesParams

WithClearValue adds the clearValue to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithContext

WithContext adds the context to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithKey

WithKey adds the key to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithNotes

WithNotes adds the notes to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithOrderNo

WithOrderNo adds the orderNo to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithRelatedFieldName

func (o *PutCustomFieldPurchasesParams) WithRelatedFieldName(relatedFieldName *string) *PutCustomFieldPurchasesParams

WithRelatedFieldName adds the relatedFieldName to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithTimeout

WithTimeout adds the timeout to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithType

WithType adds the typeVar to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WithValue

WithValue adds the value to the put custom field purchases params

func (*PutCustomFieldPurchasesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutCustomFieldPurchasesReader

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

PutCustomFieldPurchasesReader is a Reader for the PutCustomFieldPurchases structure.

func (*PutCustomFieldPurchasesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutCustomFieldPurchasesServiceUnavailable

type PutCustomFieldPurchasesServiceUnavailable struct {
}

PutCustomFieldPurchasesServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPutCustomFieldPurchasesServiceUnavailable

func NewPutCustomFieldPurchasesServiceUnavailable() *PutCustomFieldPurchasesServiceUnavailable

NewPutCustomFieldPurchasesServiceUnavailable creates a PutCustomFieldPurchasesServiceUnavailable with default headers values

func (*PutCustomFieldPurchasesServiceUnavailable) Error

type PutCustomFieldPurchasesUnauthorized

type PutCustomFieldPurchasesUnauthorized struct {
}

PutCustomFieldPurchasesUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPutCustomFieldPurchasesUnauthorized

func NewPutCustomFieldPurchasesUnauthorized() *PutCustomFieldPurchasesUnauthorized

NewPutCustomFieldPurchasesUnauthorized creates a PutCustomFieldPurchasesUnauthorized with default headers values

func (*PutCustomFieldPurchasesUnauthorized) Error

Jump to

Keyboard shortcuts

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