Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteVendors(params *DeleteVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteVendorsOK, error)
- func (a *Client) GetVendors(params *GetVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*GetVendorsOK, error)
- func (a *Client) PostVendors(params *PostVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*PostVendorsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteVendorsBadRequest
- type DeleteVendorsForbidden
- type DeleteVendorsGone
- type DeleteVendorsInternalServerError
- type DeleteVendorsMethodNotAllowed
- type DeleteVendorsNotFound
- type DeleteVendorsOK
- type DeleteVendorsOKBody
- type DeleteVendorsParams
- func (o *DeleteVendorsParams) SetContext(ctx context.Context)
- func (o *DeleteVendorsParams) SetHTTPClient(client *http.Client)
- func (o *DeleteVendorsParams) SetID(id int64)
- func (o *DeleteVendorsParams) SetTimeout(timeout time.Duration)
- func (o *DeleteVendorsParams) WithContext(ctx context.Context) *DeleteVendorsParams
- func (o *DeleteVendorsParams) WithHTTPClient(client *http.Client) *DeleteVendorsParams
- func (o *DeleteVendorsParams) WithID(id int64) *DeleteVendorsParams
- func (o *DeleteVendorsParams) WithTimeout(timeout time.Duration) *DeleteVendorsParams
- func (o *DeleteVendorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteVendorsReader
- type DeleteVendorsServiceUnavailable
- type DeleteVendorsUnauthorized
- type GetVendorsBadRequest
- type GetVendorsForbidden
- type GetVendorsGone
- type GetVendorsInternalServerError
- type GetVendorsMethodNotAllowed
- type GetVendorsNotFound
- type GetVendorsOK
- type GetVendorsOKBody
- type GetVendorsParams
- func (o *GetVendorsParams) SetContext(ctx context.Context)
- func (o *GetVendorsParams) SetHTTPClient(client *http.Client)
- func (o *GetVendorsParams) SetTimeout(timeout time.Duration)
- func (o *GetVendorsParams) WithContext(ctx context.Context) *GetVendorsParams
- func (o *GetVendorsParams) WithHTTPClient(client *http.Client) *GetVendorsParams
- func (o *GetVendorsParams) WithTimeout(timeout time.Duration) *GetVendorsParams
- func (o *GetVendorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVendorsReader
- type GetVendorsServiceUnavailable
- type GetVendorsUnauthorized
- type PostVendorsBadRequest
- type PostVendorsForbidden
- type PostVendorsGone
- type PostVendorsInternalServerError
- type PostVendorsMethodNotAllowed
- type PostVendorsNotFound
- type PostVendorsOK
- type PostVendorsOKBody
- type PostVendorsParams
- func (o *PostVendorsParams) SetAccountNo(accountNo *string)
- func (o *PostVendorsParams) SetContactInfo(contactInfo *string)
- func (o *PostVendorsParams) SetContext(ctx context.Context)
- func (o *PostVendorsParams) SetEscalation1(escalation1 *string)
- func (o *PostVendorsParams) SetEscalation2(escalation2 *string)
- func (o *PostVendorsParams) SetGroups(groups *string)
- func (o *PostVendorsParams) SetHTTPClient(client *http.Client)
- func (o *PostVendorsParams) SetHomePage(homePage *string)
- func (o *PostVendorsParams) SetName(name string)
- func (o *PostVendorsParams) SetNotes(notes *string)
- func (o *PostVendorsParams) SetTimeout(timeout time.Duration)
- func (o *PostVendorsParams) WithAccountNo(accountNo *string) *PostVendorsParams
- func (o *PostVendorsParams) WithContactInfo(contactInfo *string) *PostVendorsParams
- func (o *PostVendorsParams) WithContext(ctx context.Context) *PostVendorsParams
- func (o *PostVendorsParams) WithEscalation1(escalation1 *string) *PostVendorsParams
- func (o *PostVendorsParams) WithEscalation2(escalation2 *string) *PostVendorsParams
- func (o *PostVendorsParams) WithGroups(groups *string) *PostVendorsParams
- func (o *PostVendorsParams) WithHTTPClient(client *http.Client) *PostVendorsParams
- func (o *PostVendorsParams) WithHomePage(homePage *string) *PostVendorsParams
- func (o *PostVendorsParams) WithName(name string) *PostVendorsParams
- func (o *PostVendorsParams) WithNotes(notes *string) *PostVendorsParams
- func (o *PostVendorsParams) WithTimeout(timeout time.Duration) *PostVendorsParams
- func (o *PostVendorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostVendorsReader
- type PostVendorsServiceUnavailable
- type PostVendorsUnauthorized
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 vendors API
func (*Client) DeleteVendors ¶
func (a *Client) DeleteVendors(params *DeleteVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteVendorsOK, error)
DeleteVendors deletes vendor
This API is used to delete the vendor with the vendor id supplied as the required argument.
func (*Client) GetVendors ¶
func (a *Client) GetVendors(params *GetVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*GetVendorsOK, error)
GetVendors gets all vendors
Get all Vendors
func (*Client) PostVendors ¶
func (a *Client) PostVendors(params *PostVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*PostVendorsOK, error)
PostVendors Create / Update Vendors
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteVendors(params *DeleteVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteVendorsOK, error) GetVendors(params *GetVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*GetVendorsOK, error) PostVendors(params *PostVendorsParams, authInfo runtime.ClientAuthInfoWriter) (*PostVendorsOK, 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 vendors API client.
type DeleteVendorsBadRequest ¶
type DeleteVendorsBadRequest struct { }
DeleteVendorsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewDeleteVendorsBadRequest ¶
func NewDeleteVendorsBadRequest() *DeleteVendorsBadRequest
NewDeleteVendorsBadRequest creates a DeleteVendorsBadRequest with default headers values
func (*DeleteVendorsBadRequest) Error ¶
func (o *DeleteVendorsBadRequest) Error() string
type DeleteVendorsForbidden ¶
type DeleteVendorsForbidden struct { }
DeleteVendorsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewDeleteVendorsForbidden ¶
func NewDeleteVendorsForbidden() *DeleteVendorsForbidden
NewDeleteVendorsForbidden creates a DeleteVendorsForbidden with default headers values
func (*DeleteVendorsForbidden) Error ¶
func (o *DeleteVendorsForbidden) Error() string
type DeleteVendorsGone ¶
type DeleteVendorsGone struct { }
DeleteVendorsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewDeleteVendorsGone ¶
func NewDeleteVendorsGone() *DeleteVendorsGone
NewDeleteVendorsGone creates a DeleteVendorsGone with default headers values
func (*DeleteVendorsGone) Error ¶
func (o *DeleteVendorsGone) Error() string
type DeleteVendorsInternalServerError ¶
type DeleteVendorsInternalServerError struct { }
DeleteVendorsInternalServerError 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 NewDeleteVendorsInternalServerError ¶
func NewDeleteVendorsInternalServerError() *DeleteVendorsInternalServerError
NewDeleteVendorsInternalServerError creates a DeleteVendorsInternalServerError with default headers values
func (*DeleteVendorsInternalServerError) Error ¶
func (o *DeleteVendorsInternalServerError) Error() string
type DeleteVendorsMethodNotAllowed ¶
type DeleteVendorsMethodNotAllowed struct { }
DeleteVendorsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewDeleteVendorsMethodNotAllowed ¶
func NewDeleteVendorsMethodNotAllowed() *DeleteVendorsMethodNotAllowed
NewDeleteVendorsMethodNotAllowed creates a DeleteVendorsMethodNotAllowed with default headers values
func (*DeleteVendorsMethodNotAllowed) Error ¶
func (o *DeleteVendorsMethodNotAllowed) Error() string
type DeleteVendorsNotFound ¶
type DeleteVendorsNotFound struct { }
DeleteVendorsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewDeleteVendorsNotFound ¶
func NewDeleteVendorsNotFound() *DeleteVendorsNotFound
NewDeleteVendorsNotFound creates a DeleteVendorsNotFound with default headers values
func (*DeleteVendorsNotFound) Error ¶
func (o *DeleteVendorsNotFound) Error() string
type DeleteVendorsOK ¶
type DeleteVendorsOK struct {
Payload *DeleteVendorsOKBody
}
DeleteVendorsOK handles this case with default header values.
The above command returns results like this:
func NewDeleteVendorsOK ¶
func NewDeleteVendorsOK() *DeleteVendorsOK
NewDeleteVendorsOK creates a DeleteVendorsOK with default headers values
func (*DeleteVendorsOK) Error ¶
func (o *DeleteVendorsOK) Error() string
func (*DeleteVendorsOK) GetPayload ¶
func (o *DeleteVendorsOK) GetPayload() *DeleteVendorsOKBody
type DeleteVendorsOKBody ¶
type DeleteVendorsOKBody struct { // deleted Deleted interface{} `json:"deleted,omitempty"` // id ID interface{} `json:"id,omitempty"` }
DeleteVendorsOKBody delete vendors o k body swagger:model DeleteVendorsOKBody
func (*DeleteVendorsOKBody) MarshalBinary ¶
func (o *DeleteVendorsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteVendorsOKBody) UnmarshalBinary ¶
func (o *DeleteVendorsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteVendorsParams ¶
type DeleteVendorsParams struct { /*ID IP Address id */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteVendorsParams contains all the parameters to send to the API endpoint for the delete vendors operation typically these are written to a http.Request
func NewDeleteVendorsParams ¶
func NewDeleteVendorsParams() *DeleteVendorsParams
NewDeleteVendorsParams creates a new DeleteVendorsParams object with the default values initialized.
func NewDeleteVendorsParamsWithContext ¶
func NewDeleteVendorsParamsWithContext(ctx context.Context) *DeleteVendorsParams
NewDeleteVendorsParamsWithContext creates a new DeleteVendorsParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteVendorsParamsWithHTTPClient ¶
func NewDeleteVendorsParamsWithHTTPClient(client *http.Client) *DeleteVendorsParams
NewDeleteVendorsParamsWithHTTPClient creates a new DeleteVendorsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteVendorsParamsWithTimeout ¶
func NewDeleteVendorsParamsWithTimeout(timeout time.Duration) *DeleteVendorsParams
NewDeleteVendorsParamsWithTimeout creates a new DeleteVendorsParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteVendorsParams) SetContext ¶
func (o *DeleteVendorsParams) SetContext(ctx context.Context)
SetContext adds the context to the delete vendors params
func (*DeleteVendorsParams) SetHTTPClient ¶
func (o *DeleteVendorsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete vendors params
func (*DeleteVendorsParams) SetID ¶
func (o *DeleteVendorsParams) SetID(id int64)
SetID adds the id to the delete vendors params
func (*DeleteVendorsParams) SetTimeout ¶
func (o *DeleteVendorsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete vendors params
func (*DeleteVendorsParams) WithContext ¶
func (o *DeleteVendorsParams) WithContext(ctx context.Context) *DeleteVendorsParams
WithContext adds the context to the delete vendors params
func (*DeleteVendorsParams) WithHTTPClient ¶
func (o *DeleteVendorsParams) WithHTTPClient(client *http.Client) *DeleteVendorsParams
WithHTTPClient adds the HTTPClient to the delete vendors params
func (*DeleteVendorsParams) WithID ¶
func (o *DeleteVendorsParams) WithID(id int64) *DeleteVendorsParams
WithID adds the id to the delete vendors params
func (*DeleteVendorsParams) WithTimeout ¶
func (o *DeleteVendorsParams) WithTimeout(timeout time.Duration) *DeleteVendorsParams
WithTimeout adds the timeout to the delete vendors params
func (*DeleteVendorsParams) WriteToRequest ¶
func (o *DeleteVendorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteVendorsReader ¶
type DeleteVendorsReader struct {
// contains filtered or unexported fields
}
DeleteVendorsReader is a Reader for the DeleteVendors structure.
func (*DeleteVendorsReader) ReadResponse ¶
func (o *DeleteVendorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteVendorsServiceUnavailable ¶
type DeleteVendorsServiceUnavailable struct { }
DeleteVendorsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewDeleteVendorsServiceUnavailable ¶
func NewDeleteVendorsServiceUnavailable() *DeleteVendorsServiceUnavailable
NewDeleteVendorsServiceUnavailable creates a DeleteVendorsServiceUnavailable with default headers values
func (*DeleteVendorsServiceUnavailable) Error ¶
func (o *DeleteVendorsServiceUnavailable) Error() string
type DeleteVendorsUnauthorized ¶
type DeleteVendorsUnauthorized struct { }
DeleteVendorsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewDeleteVendorsUnauthorized ¶
func NewDeleteVendorsUnauthorized() *DeleteVendorsUnauthorized
NewDeleteVendorsUnauthorized creates a DeleteVendorsUnauthorized with default headers values
func (*DeleteVendorsUnauthorized) Error ¶
func (o *DeleteVendorsUnauthorized) Error() string
type GetVendorsBadRequest ¶
type GetVendorsBadRequest struct { }
GetVendorsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetVendorsBadRequest ¶
func NewGetVendorsBadRequest() *GetVendorsBadRequest
NewGetVendorsBadRequest creates a GetVendorsBadRequest with default headers values
func (*GetVendorsBadRequest) Error ¶
func (o *GetVendorsBadRequest) Error() string
type GetVendorsForbidden ¶
type GetVendorsForbidden struct { }
GetVendorsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetVendorsForbidden ¶
func NewGetVendorsForbidden() *GetVendorsForbidden
NewGetVendorsForbidden creates a GetVendorsForbidden with default headers values
func (*GetVendorsForbidden) Error ¶
func (o *GetVendorsForbidden) Error() string
type GetVendorsGone ¶
type GetVendorsGone struct { }
GetVendorsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetVendorsGone ¶
func NewGetVendorsGone() *GetVendorsGone
NewGetVendorsGone creates a GetVendorsGone with default headers values
func (*GetVendorsGone) Error ¶
func (o *GetVendorsGone) Error() string
type GetVendorsInternalServerError ¶
type GetVendorsInternalServerError struct { }
GetVendorsInternalServerError 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 NewGetVendorsInternalServerError ¶
func NewGetVendorsInternalServerError() *GetVendorsInternalServerError
NewGetVendorsInternalServerError creates a GetVendorsInternalServerError with default headers values
func (*GetVendorsInternalServerError) Error ¶
func (o *GetVendorsInternalServerError) Error() string
type GetVendorsMethodNotAllowed ¶
type GetVendorsMethodNotAllowed struct { }
GetVendorsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetVendorsMethodNotAllowed ¶
func NewGetVendorsMethodNotAllowed() *GetVendorsMethodNotAllowed
NewGetVendorsMethodNotAllowed creates a GetVendorsMethodNotAllowed with default headers values
func (*GetVendorsMethodNotAllowed) Error ¶
func (o *GetVendorsMethodNotAllowed) Error() string
type GetVendorsNotFound ¶
type GetVendorsNotFound struct { }
GetVendorsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetVendorsNotFound ¶
func NewGetVendorsNotFound() *GetVendorsNotFound
NewGetVendorsNotFound creates a GetVendorsNotFound with default headers values
func (*GetVendorsNotFound) Error ¶
func (o *GetVendorsNotFound) Error() string
type GetVendorsOK ¶
type GetVendorsOK struct {
Payload *GetVendorsOKBody
}
GetVendorsOK handles this case with default header values.
The above command returns results like this:
func NewGetVendorsOK ¶
func NewGetVendorsOK() *GetVendorsOK
NewGetVendorsOK creates a GetVendorsOK with default headers values
func (*GetVendorsOK) Error ¶
func (o *GetVendorsOK) Error() string
func (*GetVendorsOK) GetPayload ¶
func (o *GetVendorsOK) GetPayload() *GetVendorsOKBody
type GetVendorsOKBody ¶
type GetVendorsOKBody struct { // vendors Vendors []*models.GetAllVendors `json:"vendors"` }
GetVendorsOKBody get vendors o k body swagger:model GetVendorsOKBody
func (*GetVendorsOKBody) MarshalBinary ¶
func (o *GetVendorsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetVendorsOKBody) UnmarshalBinary ¶
func (o *GetVendorsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetVendorsParams ¶
type GetVendorsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetVendorsParams contains all the parameters to send to the API endpoint for the get vendors operation typically these are written to a http.Request
func NewGetVendorsParams ¶
func NewGetVendorsParams() *GetVendorsParams
NewGetVendorsParams creates a new GetVendorsParams object with the default values initialized.
func NewGetVendorsParamsWithContext ¶
func NewGetVendorsParamsWithContext(ctx context.Context) *GetVendorsParams
NewGetVendorsParamsWithContext creates a new GetVendorsParams object with the default values initialized, and the ability to set a context for a request
func NewGetVendorsParamsWithHTTPClient ¶
func NewGetVendorsParamsWithHTTPClient(client *http.Client) *GetVendorsParams
NewGetVendorsParamsWithHTTPClient creates a new GetVendorsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetVendorsParamsWithTimeout ¶
func NewGetVendorsParamsWithTimeout(timeout time.Duration) *GetVendorsParams
NewGetVendorsParamsWithTimeout creates a new GetVendorsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetVendorsParams) SetContext ¶
func (o *GetVendorsParams) SetContext(ctx context.Context)
SetContext adds the context to the get vendors params
func (*GetVendorsParams) SetHTTPClient ¶
func (o *GetVendorsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get vendors params
func (*GetVendorsParams) SetTimeout ¶
func (o *GetVendorsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get vendors params
func (*GetVendorsParams) WithContext ¶
func (o *GetVendorsParams) WithContext(ctx context.Context) *GetVendorsParams
WithContext adds the context to the get vendors params
func (*GetVendorsParams) WithHTTPClient ¶
func (o *GetVendorsParams) WithHTTPClient(client *http.Client) *GetVendorsParams
WithHTTPClient adds the HTTPClient to the get vendors params
func (*GetVendorsParams) WithTimeout ¶
func (o *GetVendorsParams) WithTimeout(timeout time.Duration) *GetVendorsParams
WithTimeout adds the timeout to the get vendors params
func (*GetVendorsParams) WriteToRequest ¶
func (o *GetVendorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVendorsReader ¶
type GetVendorsReader struct {
// contains filtered or unexported fields
}
GetVendorsReader is a Reader for the GetVendors structure.
func (*GetVendorsReader) ReadResponse ¶
func (o *GetVendorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVendorsServiceUnavailable ¶
type GetVendorsServiceUnavailable struct { }
GetVendorsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetVendorsServiceUnavailable ¶
func NewGetVendorsServiceUnavailable() *GetVendorsServiceUnavailable
NewGetVendorsServiceUnavailable creates a GetVendorsServiceUnavailable with default headers values
func (*GetVendorsServiceUnavailable) Error ¶
func (o *GetVendorsServiceUnavailable) Error() string
type GetVendorsUnauthorized ¶
type GetVendorsUnauthorized struct { }
GetVendorsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetVendorsUnauthorized ¶
func NewGetVendorsUnauthorized() *GetVendorsUnauthorized
NewGetVendorsUnauthorized creates a GetVendorsUnauthorized with default headers values
func (*GetVendorsUnauthorized) Error ¶
func (o *GetVendorsUnauthorized) Error() string
type PostVendorsBadRequest ¶
type PostVendorsBadRequest struct { }
PostVendorsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPostVendorsBadRequest ¶
func NewPostVendorsBadRequest() *PostVendorsBadRequest
NewPostVendorsBadRequest creates a PostVendorsBadRequest with default headers values
func (*PostVendorsBadRequest) Error ¶
func (o *PostVendorsBadRequest) Error() string
type PostVendorsForbidden ¶
type PostVendorsForbidden struct { }
PostVendorsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPostVendorsForbidden ¶
func NewPostVendorsForbidden() *PostVendorsForbidden
NewPostVendorsForbidden creates a PostVendorsForbidden with default headers values
func (*PostVendorsForbidden) Error ¶
func (o *PostVendorsForbidden) Error() string
type PostVendorsGone ¶
type PostVendorsGone struct { }
PostVendorsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPostVendorsGone ¶
func NewPostVendorsGone() *PostVendorsGone
NewPostVendorsGone creates a PostVendorsGone with default headers values
func (*PostVendorsGone) Error ¶
func (o *PostVendorsGone) Error() string
type PostVendorsInternalServerError ¶
type PostVendorsInternalServerError struct { }
PostVendorsInternalServerError 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 NewPostVendorsInternalServerError ¶
func NewPostVendorsInternalServerError() *PostVendorsInternalServerError
NewPostVendorsInternalServerError creates a PostVendorsInternalServerError with default headers values
func (*PostVendorsInternalServerError) Error ¶
func (o *PostVendorsInternalServerError) Error() string
type PostVendorsMethodNotAllowed ¶
type PostVendorsMethodNotAllowed struct { }
PostVendorsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPostVendorsMethodNotAllowed ¶
func NewPostVendorsMethodNotAllowed() *PostVendorsMethodNotAllowed
NewPostVendorsMethodNotAllowed creates a PostVendorsMethodNotAllowed with default headers values
func (*PostVendorsMethodNotAllowed) Error ¶
func (o *PostVendorsMethodNotAllowed) Error() string
type PostVendorsNotFound ¶
type PostVendorsNotFound struct { }
PostVendorsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPostVendorsNotFound ¶
func NewPostVendorsNotFound() *PostVendorsNotFound
NewPostVendorsNotFound creates a PostVendorsNotFound with default headers values
func (*PostVendorsNotFound) Error ¶
func (o *PostVendorsNotFound) Error() string
type PostVendorsOK ¶
type PostVendorsOK struct {
Payload *PostVendorsOKBody
}
PostVendorsOK handles this case with default header values.
The above command returns results like this:
func NewPostVendorsOK ¶
func NewPostVendorsOK() *PostVendorsOK
NewPostVendorsOK creates a PostVendorsOK with default headers values
func (*PostVendorsOK) Error ¶
func (o *PostVendorsOK) Error() string
func (*PostVendorsOK) GetPayload ¶
func (o *PostVendorsOK) GetPayload() *PostVendorsOKBody
type PostVendorsOKBody ¶
type PostVendorsOKBody struct { // code Code interface{} `json:"code,omitempty"` // msg Msg interface{} `json:"msg,omitempty"` }
PostVendorsOKBody post vendors o k body swagger:model PostVendorsOKBody
func (*PostVendorsOKBody) MarshalBinary ¶
func (o *PostVendorsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostVendorsOKBody) UnmarshalBinary ¶
func (o *PostVendorsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostVendorsParams ¶
type PostVendorsParams struct { /*AccountNo*/ AccountNo *string /*ContactInfo*/ ContactInfo *string /*Escalation1 Text field. */ Escalation1 *string /*Escalation2 Text field. */ Escalation2 *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 /*HomePage Text field. */ HomePage *string /*Name Vendor name */ Name string /*Notes Any additional notes */ Notes *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostVendorsParams contains all the parameters to send to the API endpoint for the post vendors operation typically these are written to a http.Request
func NewPostVendorsParams ¶
func NewPostVendorsParams() *PostVendorsParams
NewPostVendorsParams creates a new PostVendorsParams object with the default values initialized.
func NewPostVendorsParamsWithContext ¶
func NewPostVendorsParamsWithContext(ctx context.Context) *PostVendorsParams
NewPostVendorsParamsWithContext creates a new PostVendorsParams object with the default values initialized, and the ability to set a context for a request
func NewPostVendorsParamsWithHTTPClient ¶
func NewPostVendorsParamsWithHTTPClient(client *http.Client) *PostVendorsParams
NewPostVendorsParamsWithHTTPClient creates a new PostVendorsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostVendorsParamsWithTimeout ¶
func NewPostVendorsParamsWithTimeout(timeout time.Duration) *PostVendorsParams
NewPostVendorsParamsWithTimeout creates a new PostVendorsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostVendorsParams) SetAccountNo ¶
func (o *PostVendorsParams) SetAccountNo(accountNo *string)
SetAccountNo adds the accountNo to the post vendors params
func (*PostVendorsParams) SetContactInfo ¶
func (o *PostVendorsParams) SetContactInfo(contactInfo *string)
SetContactInfo adds the contactInfo to the post vendors params
func (*PostVendorsParams) SetContext ¶
func (o *PostVendorsParams) SetContext(ctx context.Context)
SetContext adds the context to the post vendors params
func (*PostVendorsParams) SetEscalation1 ¶
func (o *PostVendorsParams) SetEscalation1(escalation1 *string)
SetEscalation1 adds the escalation1 to the post vendors params
func (*PostVendorsParams) SetEscalation2 ¶
func (o *PostVendorsParams) SetEscalation2(escalation2 *string)
SetEscalation2 adds the escalation2 to the post vendors params
func (*PostVendorsParams) SetGroups ¶
func (o *PostVendorsParams) SetGroups(groups *string)
SetGroups adds the groups to the post vendors params
func (*PostVendorsParams) SetHTTPClient ¶
func (o *PostVendorsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post vendors params
func (*PostVendorsParams) SetHomePage ¶
func (o *PostVendorsParams) SetHomePage(homePage *string)
SetHomePage adds the homePage to the post vendors params
func (*PostVendorsParams) SetName ¶
func (o *PostVendorsParams) SetName(name string)
SetName adds the name to the post vendors params
func (*PostVendorsParams) SetNotes ¶
func (o *PostVendorsParams) SetNotes(notes *string)
SetNotes adds the notes to the post vendors params
func (*PostVendorsParams) SetTimeout ¶
func (o *PostVendorsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post vendors params
func (*PostVendorsParams) WithAccountNo ¶
func (o *PostVendorsParams) WithAccountNo(accountNo *string) *PostVendorsParams
WithAccountNo adds the accountNo to the post vendors params
func (*PostVendorsParams) WithContactInfo ¶
func (o *PostVendorsParams) WithContactInfo(contactInfo *string) *PostVendorsParams
WithContactInfo adds the contactInfo to the post vendors params
func (*PostVendorsParams) WithContext ¶
func (o *PostVendorsParams) WithContext(ctx context.Context) *PostVendorsParams
WithContext adds the context to the post vendors params
func (*PostVendorsParams) WithEscalation1 ¶
func (o *PostVendorsParams) WithEscalation1(escalation1 *string) *PostVendorsParams
WithEscalation1 adds the escalation1 to the post vendors params
func (*PostVendorsParams) WithEscalation2 ¶
func (o *PostVendorsParams) WithEscalation2(escalation2 *string) *PostVendorsParams
WithEscalation2 adds the escalation2 to the post vendors params
func (*PostVendorsParams) WithGroups ¶
func (o *PostVendorsParams) WithGroups(groups *string) *PostVendorsParams
WithGroups adds the groups to the post vendors params
func (*PostVendorsParams) WithHTTPClient ¶
func (o *PostVendorsParams) WithHTTPClient(client *http.Client) *PostVendorsParams
WithHTTPClient adds the HTTPClient to the post vendors params
func (*PostVendorsParams) WithHomePage ¶
func (o *PostVendorsParams) WithHomePage(homePage *string) *PostVendorsParams
WithHomePage adds the homePage to the post vendors params
func (*PostVendorsParams) WithName ¶
func (o *PostVendorsParams) WithName(name string) *PostVendorsParams
WithName adds the name to the post vendors params
func (*PostVendorsParams) WithNotes ¶
func (o *PostVendorsParams) WithNotes(notes *string) *PostVendorsParams
WithNotes adds the notes to the post vendors params
func (*PostVendorsParams) WithTimeout ¶
func (o *PostVendorsParams) WithTimeout(timeout time.Duration) *PostVendorsParams
WithTimeout adds the timeout to the post vendors params
func (*PostVendorsParams) WriteToRequest ¶
func (o *PostVendorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostVendorsReader ¶
type PostVendorsReader struct {
// contains filtered or unexported fields
}
PostVendorsReader is a Reader for the PostVendors structure.
func (*PostVendorsReader) ReadResponse ¶
func (o *PostVendorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostVendorsServiceUnavailable ¶
type PostVendorsServiceUnavailable struct { }
PostVendorsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPostVendorsServiceUnavailable ¶
func NewPostVendorsServiceUnavailable() *PostVendorsServiceUnavailable
NewPostVendorsServiceUnavailable creates a PostVendorsServiceUnavailable with default headers values
func (*PostVendorsServiceUnavailable) Error ¶
func (o *PostVendorsServiceUnavailable) Error() string
type PostVendorsUnauthorized ¶
type PostVendorsUnauthorized struct { }
PostVendorsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPostVendorsUnauthorized ¶
func NewPostVendorsUnauthorized() *PostVendorsUnauthorized
NewPostVendorsUnauthorized creates a PostVendorsUnauthorized with default headers values
func (*PostVendorsUnauthorized) Error ¶
func (o *PostVendorsUnauthorized) Error() string