object_categories

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: 12 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 object categories API

func (*Client) GetObjectCategories

func (a *Client) GetObjectCategories(params *GetObjectCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetObjectCategoriesOK, error)

GetObjectCategories this call will get information about object categories

Get all Object Categories

func (*Client) PostObjectCategories

func (a *Client) PostObjectCategories(params *PostObjectCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PostObjectCategoriesOK, error)

PostObjectCategories this call will create update information about object categories

Create/update Object Categories

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetObjectCategories(params *GetObjectCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetObjectCategoriesOK, error)

	PostObjectCategories(params *PostObjectCategoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PostObjectCategoriesOK, 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 object categories API client.

type GetObjectCategoriesBadRequest

type GetObjectCategoriesBadRequest struct {
}

GetObjectCategoriesBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetObjectCategoriesBadRequest

func NewGetObjectCategoriesBadRequest() *GetObjectCategoriesBadRequest

NewGetObjectCategoriesBadRequest creates a GetObjectCategoriesBadRequest with default headers values

func (*GetObjectCategoriesBadRequest) Error

type GetObjectCategoriesForbidden

type GetObjectCategoriesForbidden struct {
}

GetObjectCategoriesForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetObjectCategoriesForbidden

func NewGetObjectCategoriesForbidden() *GetObjectCategoriesForbidden

NewGetObjectCategoriesForbidden creates a GetObjectCategoriesForbidden with default headers values

func (*GetObjectCategoriesForbidden) Error

type GetObjectCategoriesGone

type GetObjectCategoriesGone struct {
}

GetObjectCategoriesGone handles this case with default header values.

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

func NewGetObjectCategoriesGone

func NewGetObjectCategoriesGone() *GetObjectCategoriesGone

NewGetObjectCategoriesGone creates a GetObjectCategoriesGone with default headers values

func (*GetObjectCategoriesGone) Error

func (o *GetObjectCategoriesGone) Error() string

type GetObjectCategoriesInternalServerError

type GetObjectCategoriesInternalServerError struct {
}

GetObjectCategoriesInternalServerError 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 NewGetObjectCategoriesInternalServerError

func NewGetObjectCategoriesInternalServerError() *GetObjectCategoriesInternalServerError

NewGetObjectCategoriesInternalServerError creates a GetObjectCategoriesInternalServerError with default headers values

func (*GetObjectCategoriesInternalServerError) Error

type GetObjectCategoriesMethodNotAllowed

type GetObjectCategoriesMethodNotAllowed struct {
}

GetObjectCategoriesMethodNotAllowed handles this case with default header values.

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

func NewGetObjectCategoriesMethodNotAllowed

func NewGetObjectCategoriesMethodNotAllowed() *GetObjectCategoriesMethodNotAllowed

NewGetObjectCategoriesMethodNotAllowed creates a GetObjectCategoriesMethodNotAllowed with default headers values

func (*GetObjectCategoriesMethodNotAllowed) Error

type GetObjectCategoriesNotFound

type GetObjectCategoriesNotFound struct {
}

GetObjectCategoriesNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetObjectCategoriesNotFound

func NewGetObjectCategoriesNotFound() *GetObjectCategoriesNotFound

NewGetObjectCategoriesNotFound creates a GetObjectCategoriesNotFound with default headers values

func (*GetObjectCategoriesNotFound) Error

type GetObjectCategoriesOK

type GetObjectCategoriesOK struct {
	Payload *GetObjectCategoriesOKBody
}

GetObjectCategoriesOK handles this case with default header values.

The above command returns results like this:

func NewGetObjectCategoriesOK

func NewGetObjectCategoriesOK() *GetObjectCategoriesOK

NewGetObjectCategoriesOK creates a GetObjectCategoriesOK with default headers values

func (*GetObjectCategoriesOK) Error

func (o *GetObjectCategoriesOK) Error() string

func (*GetObjectCategoriesOK) GetPayload

type GetObjectCategoriesOKBody

type GetObjectCategoriesOKBody struct {

	// limit
	Limit interface{} `json:"limit,omitempty"`

	// object categories
	ObjectCategories []*models.ObjectCategories `json:"object_categories"`

	// offset
	Offset interface{} `json:"offset,omitempty"`

	// total count
	TotalCount interface{} `json:"total_count,omitempty"`
}

GetObjectCategoriesOKBody get object categories o k body swagger:model GetObjectCategoriesOKBody

func (*GetObjectCategoriesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetObjectCategoriesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetObjectCategoriesOKBody) Validate

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

Validate validates this get object categories o k body

type GetObjectCategoriesParams

type GetObjectCategoriesParams struct {

	/*Name
	  filter by name (Added in v6.0.0)

	*/
	Name *string

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

GetObjectCategoriesParams contains all the parameters to send to the API endpoint for the get object categories operation typically these are written to a http.Request

func NewGetObjectCategoriesParams

func NewGetObjectCategoriesParams() *GetObjectCategoriesParams

NewGetObjectCategoriesParams creates a new GetObjectCategoriesParams object with the default values initialized.

func NewGetObjectCategoriesParamsWithContext

func NewGetObjectCategoriesParamsWithContext(ctx context.Context) *GetObjectCategoriesParams

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

func NewGetObjectCategoriesParamsWithHTTPClient

func NewGetObjectCategoriesParamsWithHTTPClient(client *http.Client) *GetObjectCategoriesParams

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

func NewGetObjectCategoriesParamsWithTimeout

func NewGetObjectCategoriesParamsWithTimeout(timeout time.Duration) *GetObjectCategoriesParams

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

func (*GetObjectCategoriesParams) SetContext

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

SetContext adds the context to the get object categories params

func (*GetObjectCategoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get object categories params

func (*GetObjectCategoriesParams) SetName

func (o *GetObjectCategoriesParams) SetName(name *string)

SetName adds the name to the get object categories params

func (*GetObjectCategoriesParams) SetTimeout

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

SetTimeout adds the timeout to the get object categories params

func (*GetObjectCategoriesParams) WithContext

WithContext adds the context to the get object categories params

func (*GetObjectCategoriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get object categories params

func (*GetObjectCategoriesParams) WithName

WithName adds the name to the get object categories params

func (*GetObjectCategoriesParams) WithTimeout

WithTimeout adds the timeout to the get object categories params

func (*GetObjectCategoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetObjectCategoriesReader

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

GetObjectCategoriesReader is a Reader for the GetObjectCategories structure.

func (*GetObjectCategoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetObjectCategoriesServiceUnavailable

type GetObjectCategoriesServiceUnavailable struct {
}

GetObjectCategoriesServiceUnavailable handles this case with default header values.

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

func NewGetObjectCategoriesServiceUnavailable

func NewGetObjectCategoriesServiceUnavailable() *GetObjectCategoriesServiceUnavailable

NewGetObjectCategoriesServiceUnavailable creates a GetObjectCategoriesServiceUnavailable with default headers values

func (*GetObjectCategoriesServiceUnavailable) Error

type GetObjectCategoriesUnauthorized

type GetObjectCategoriesUnauthorized struct {
}

GetObjectCategoriesUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetObjectCategoriesUnauthorized

func NewGetObjectCategoriesUnauthorized() *GetObjectCategoriesUnauthorized

NewGetObjectCategoriesUnauthorized creates a GetObjectCategoriesUnauthorized with default headers values

func (*GetObjectCategoriesUnauthorized) Error

type PostObjectCategoriesBadRequest

type PostObjectCategoriesBadRequest struct {
}

PostObjectCategoriesBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostObjectCategoriesBadRequest

func NewPostObjectCategoriesBadRequest() *PostObjectCategoriesBadRequest

NewPostObjectCategoriesBadRequest creates a PostObjectCategoriesBadRequest with default headers values

func (*PostObjectCategoriesBadRequest) Error

type PostObjectCategoriesForbidden

type PostObjectCategoriesForbidden struct {
}

PostObjectCategoriesForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostObjectCategoriesForbidden

func NewPostObjectCategoriesForbidden() *PostObjectCategoriesForbidden

NewPostObjectCategoriesForbidden creates a PostObjectCategoriesForbidden with default headers values

func (*PostObjectCategoriesForbidden) Error

type PostObjectCategoriesGone

type PostObjectCategoriesGone struct {
}

PostObjectCategoriesGone handles this case with default header values.

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

func NewPostObjectCategoriesGone

func NewPostObjectCategoriesGone() *PostObjectCategoriesGone

NewPostObjectCategoriesGone creates a PostObjectCategoriesGone with default headers values

func (*PostObjectCategoriesGone) Error

func (o *PostObjectCategoriesGone) Error() string

type PostObjectCategoriesInternalServerError

type PostObjectCategoriesInternalServerError struct {
}

PostObjectCategoriesInternalServerError 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 NewPostObjectCategoriesInternalServerError

func NewPostObjectCategoriesInternalServerError() *PostObjectCategoriesInternalServerError

NewPostObjectCategoriesInternalServerError creates a PostObjectCategoriesInternalServerError with default headers values

func (*PostObjectCategoriesInternalServerError) Error

type PostObjectCategoriesMethodNotAllowed

type PostObjectCategoriesMethodNotAllowed struct {
}

PostObjectCategoriesMethodNotAllowed handles this case with default header values.

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

func NewPostObjectCategoriesMethodNotAllowed

func NewPostObjectCategoriesMethodNotAllowed() *PostObjectCategoriesMethodNotAllowed

NewPostObjectCategoriesMethodNotAllowed creates a PostObjectCategoriesMethodNotAllowed with default headers values

func (*PostObjectCategoriesMethodNotAllowed) Error

type PostObjectCategoriesNotFound

type PostObjectCategoriesNotFound struct {
}

PostObjectCategoriesNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostObjectCategoriesNotFound

func NewPostObjectCategoriesNotFound() *PostObjectCategoriesNotFound

NewPostObjectCategoriesNotFound creates a PostObjectCategoriesNotFound with default headers values

func (*PostObjectCategoriesNotFound) Error

type PostObjectCategoriesOK

type PostObjectCategoriesOK struct {
	Payload *PostObjectCategoriesOKBody
}

PostObjectCategoriesOK handles this case with default header values.

The above command returns results like this:

func NewPostObjectCategoriesOK

func NewPostObjectCategoriesOK() *PostObjectCategoriesOK

NewPostObjectCategoriesOK creates a PostObjectCategoriesOK with default headers values

func (*PostObjectCategoriesOK) Error

func (o *PostObjectCategoriesOK) Error() string

func (*PostObjectCategoriesOK) GetPayload

type PostObjectCategoriesOKBody

type PostObjectCategoriesOKBody struct {

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

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

PostObjectCategoriesOKBody post object categories o k body swagger:model PostObjectCategoriesOKBody

func (*PostObjectCategoriesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostObjectCategoriesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostObjectCategoriesOKBody) Validate

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

Validate validates this post object categories o k body

type PostObjectCategoriesParams

type PostObjectCategoriesParams struct {

	/*Description
	  Description of object category

	*/
	Description *string
	/*Name
	  Name of object category to create/update

	*/
	Name string

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

PostObjectCategoriesParams contains all the parameters to send to the API endpoint for the post object categories operation typically these are written to a http.Request

func NewPostObjectCategoriesParams

func NewPostObjectCategoriesParams() *PostObjectCategoriesParams

NewPostObjectCategoriesParams creates a new PostObjectCategoriesParams object with the default values initialized.

func NewPostObjectCategoriesParamsWithContext

func NewPostObjectCategoriesParamsWithContext(ctx context.Context) *PostObjectCategoriesParams

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

func NewPostObjectCategoriesParamsWithHTTPClient

func NewPostObjectCategoriesParamsWithHTTPClient(client *http.Client) *PostObjectCategoriesParams

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

func NewPostObjectCategoriesParamsWithTimeout

func NewPostObjectCategoriesParamsWithTimeout(timeout time.Duration) *PostObjectCategoriesParams

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

func (*PostObjectCategoriesParams) SetContext

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

SetContext adds the context to the post object categories params

func (*PostObjectCategoriesParams) SetDescription

func (o *PostObjectCategoriesParams) SetDescription(description *string)

SetDescription adds the description to the post object categories params

func (*PostObjectCategoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post object categories params

func (*PostObjectCategoriesParams) SetName

func (o *PostObjectCategoriesParams) SetName(name string)

SetName adds the name to the post object categories params

func (*PostObjectCategoriesParams) SetTimeout

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

SetTimeout adds the timeout to the post object categories params

func (*PostObjectCategoriesParams) WithContext

WithContext adds the context to the post object categories params

func (*PostObjectCategoriesParams) WithDescription

func (o *PostObjectCategoriesParams) WithDescription(description *string) *PostObjectCategoriesParams

WithDescription adds the description to the post object categories params

func (*PostObjectCategoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post object categories params

func (*PostObjectCategoriesParams) WithName

WithName adds the name to the post object categories params

func (*PostObjectCategoriesParams) WithTimeout

WithTimeout adds the timeout to the post object categories params

func (*PostObjectCategoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostObjectCategoriesReader

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

PostObjectCategoriesReader is a Reader for the PostObjectCategories structure.

func (*PostObjectCategoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostObjectCategoriesServiceUnavailable

type PostObjectCategoriesServiceUnavailable struct {
}

PostObjectCategoriesServiceUnavailable handles this case with default header values.

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

func NewPostObjectCategoriesServiceUnavailable

func NewPostObjectCategoriesServiceUnavailable() *PostObjectCategoriesServiceUnavailable

NewPostObjectCategoriesServiceUnavailable creates a PostObjectCategoriesServiceUnavailable with default headers values

func (*PostObjectCategoriesServiceUnavailable) Error

type PostObjectCategoriesUnauthorized

type PostObjectCategoriesUnauthorized struct {
}

PostObjectCategoriesUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostObjectCategoriesUnauthorized

func NewPostObjectCategoriesUnauthorized() *PostObjectCategoriesUnauthorized

NewPostObjectCategoriesUnauthorized creates a PostObjectCategoriesUnauthorized with default headers values

func (*PostObjectCategoriesUnauthorized) Error

Jump to

Keyboard shortcuts

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