operating_systems

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 operating systems API

func (*Client) DeleteDeviceOs

func (a *Client) DeleteDeviceOs(params *DeleteDeviceOsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeviceOsOK, error)

DeleteDeviceOs deletes operating system by o s ID

This API is used to delete the operating system with the operating system id supplied as the required argument.

func (*Client) DeleteOperatingSystems

func (a *Client) DeleteOperatingSystems(params *DeleteOperatingSystemsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteOperatingSystemsOK, error)

DeleteOperatingSystems deletes operating system

This API is used to delete the operating system with the operating system id supplied as the required argument.

func (*Client) GetDeviceOs

func (a *Client) GetDeviceOs(params *GetDeviceOsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceOsOK, error)

GetDeviceOs gets operating systems by devices

This call will get information about operating systems and the devices they’re discovered on.

func (*Client) GetOperatingSystems

func (a *Client) GetOperatingSystems(params *GetOperatingSystemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOperatingSystemsOK, error)

GetOperatingSystems this call will get information about operating systems

Get all operating systems

func (*Client) PostDeviceOs

func (a *Client) PostDeviceOs(params *PostDeviceOsParams, authInfo runtime.ClientAuthInfoWriter) (*PostDeviceOsOK, error)

PostDeviceOs this call will create or update operating systems and assign them to a device

Create/Update operating systems on devices

func (*Client) PostOperatingSystems

func (a *Client) PostOperatingSystems(params *PostOperatingSystemsParams, authInfo runtime.ClientAuthInfoWriter) (*PostOperatingSystemsOK, error)

PostOperatingSystems this call will create update information about operating systems

Create/update OS

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteDeviceOs(params *DeleteDeviceOsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeviceOsOK, error)

	DeleteOperatingSystems(params *DeleteOperatingSystemsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteOperatingSystemsOK, error)

	GetDeviceOs(params *GetDeviceOsParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceOsOK, error)

	GetOperatingSystems(params *GetOperatingSystemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOperatingSystemsOK, error)

	PostDeviceOs(params *PostDeviceOsParams, authInfo runtime.ClientAuthInfoWriter) (*PostDeviceOsOK, error)

	PostOperatingSystems(params *PostOperatingSystemsParams, authInfo runtime.ClientAuthInfoWriter) (*PostOperatingSystemsOK, 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 operating systems API client.

type DeleteDeviceOsBadRequest

type DeleteDeviceOsBadRequest struct {
}

DeleteDeviceOsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewDeleteDeviceOsBadRequest

func NewDeleteDeviceOsBadRequest() *DeleteDeviceOsBadRequest

NewDeleteDeviceOsBadRequest creates a DeleteDeviceOsBadRequest with default headers values

func (*DeleteDeviceOsBadRequest) Error

func (o *DeleteDeviceOsBadRequest) Error() string

type DeleteDeviceOsForbidden

type DeleteDeviceOsForbidden struct {
}

DeleteDeviceOsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewDeleteDeviceOsForbidden

func NewDeleteDeviceOsForbidden() *DeleteDeviceOsForbidden

NewDeleteDeviceOsForbidden creates a DeleteDeviceOsForbidden with default headers values

func (*DeleteDeviceOsForbidden) Error

func (o *DeleteDeviceOsForbidden) Error() string

type DeleteDeviceOsGone

type DeleteDeviceOsGone struct {
}

DeleteDeviceOsGone handles this case with default header values.

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

func NewDeleteDeviceOsGone

func NewDeleteDeviceOsGone() *DeleteDeviceOsGone

NewDeleteDeviceOsGone creates a DeleteDeviceOsGone with default headers values

func (*DeleteDeviceOsGone) Error

func (o *DeleteDeviceOsGone) Error() string

type DeleteDeviceOsInternalServerError

type DeleteDeviceOsInternalServerError struct {
}

DeleteDeviceOsInternalServerError 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 NewDeleteDeviceOsInternalServerError

func NewDeleteDeviceOsInternalServerError() *DeleteDeviceOsInternalServerError

NewDeleteDeviceOsInternalServerError creates a DeleteDeviceOsInternalServerError with default headers values

func (*DeleteDeviceOsInternalServerError) Error

type DeleteDeviceOsMethodNotAllowed

type DeleteDeviceOsMethodNotAllowed struct {
}

DeleteDeviceOsMethodNotAllowed handles this case with default header values.

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

func NewDeleteDeviceOsMethodNotAllowed

func NewDeleteDeviceOsMethodNotAllowed() *DeleteDeviceOsMethodNotAllowed

NewDeleteDeviceOsMethodNotAllowed creates a DeleteDeviceOsMethodNotAllowed with default headers values

func (*DeleteDeviceOsMethodNotAllowed) Error

type DeleteDeviceOsNotFound

type DeleteDeviceOsNotFound struct {
}

DeleteDeviceOsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewDeleteDeviceOsNotFound

func NewDeleteDeviceOsNotFound() *DeleteDeviceOsNotFound

NewDeleteDeviceOsNotFound creates a DeleteDeviceOsNotFound with default headers values

func (*DeleteDeviceOsNotFound) Error

func (o *DeleteDeviceOsNotFound) Error() string

type DeleteDeviceOsOK

type DeleteDeviceOsOK struct {
	Payload *DeleteDeviceOsOKBody
}

DeleteDeviceOsOK handles this case with default header values.

The above command returns results like this:

func NewDeleteDeviceOsOK

func NewDeleteDeviceOsOK() *DeleteDeviceOsOK

NewDeleteDeviceOsOK creates a DeleteDeviceOsOK with default headers values

func (*DeleteDeviceOsOK) Error

func (o *DeleteDeviceOsOK) Error() string

func (*DeleteDeviceOsOK) GetPayload

func (o *DeleteDeviceOsOK) GetPayload() *DeleteDeviceOsOKBody

type DeleteDeviceOsOKBody

type DeleteDeviceOsOKBody struct {

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

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

DeleteDeviceOsOKBody delete device os o k body swagger:model DeleteDeviceOsOKBody

func (*DeleteDeviceOsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteDeviceOsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteDeviceOsOKBody) Validate

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

Validate validates this delete device os o k body

type DeleteDeviceOsParams

type DeleteDeviceOsParams struct {

	/*DeviceOsID
	  ID of specific operating system

	*/
	DeviceOsID int64

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

DeleteDeviceOsParams contains all the parameters to send to the API endpoint for the delete device os operation typically these are written to a http.Request

func NewDeleteDeviceOsParams

func NewDeleteDeviceOsParams() *DeleteDeviceOsParams

NewDeleteDeviceOsParams creates a new DeleteDeviceOsParams object with the default values initialized.

func NewDeleteDeviceOsParamsWithContext

func NewDeleteDeviceOsParamsWithContext(ctx context.Context) *DeleteDeviceOsParams

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

func NewDeleteDeviceOsParamsWithHTTPClient

func NewDeleteDeviceOsParamsWithHTTPClient(client *http.Client) *DeleteDeviceOsParams

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

func NewDeleteDeviceOsParamsWithTimeout

func NewDeleteDeviceOsParamsWithTimeout(timeout time.Duration) *DeleteDeviceOsParams

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

func (*DeleteDeviceOsParams) SetContext

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

SetContext adds the context to the delete device os params

func (*DeleteDeviceOsParams) SetDeviceOsID

func (o *DeleteDeviceOsParams) SetDeviceOsID(deviceOsID int64)

SetDeviceOsID adds the deviceOsId to the delete device os params

func (*DeleteDeviceOsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete device os params

func (*DeleteDeviceOsParams) SetTimeout

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

SetTimeout adds the timeout to the delete device os params

func (*DeleteDeviceOsParams) WithContext

WithContext adds the context to the delete device os params

func (*DeleteDeviceOsParams) WithDeviceOsID

func (o *DeleteDeviceOsParams) WithDeviceOsID(deviceOsID int64) *DeleteDeviceOsParams

WithDeviceOsID adds the deviceOsID to the delete device os params

func (*DeleteDeviceOsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete device os params

func (*DeleteDeviceOsParams) WithTimeout

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

WithTimeout adds the timeout to the delete device os params

func (*DeleteDeviceOsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteDeviceOsReader

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

DeleteDeviceOsReader is a Reader for the DeleteDeviceOs structure.

func (*DeleteDeviceOsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDeviceOsServiceUnavailable

type DeleteDeviceOsServiceUnavailable struct {
}

DeleteDeviceOsServiceUnavailable handles this case with default header values.

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

func NewDeleteDeviceOsServiceUnavailable

func NewDeleteDeviceOsServiceUnavailable() *DeleteDeviceOsServiceUnavailable

NewDeleteDeviceOsServiceUnavailable creates a DeleteDeviceOsServiceUnavailable with default headers values

func (*DeleteDeviceOsServiceUnavailable) Error

type DeleteDeviceOsUnauthorized

type DeleteDeviceOsUnauthorized struct {
}

DeleteDeviceOsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewDeleteDeviceOsUnauthorized

func NewDeleteDeviceOsUnauthorized() *DeleteDeviceOsUnauthorized

NewDeleteDeviceOsUnauthorized creates a DeleteDeviceOsUnauthorized with default headers values

func (*DeleteDeviceOsUnauthorized) Error

type DeleteOperatingSystemsBadRequest

type DeleteOperatingSystemsBadRequest struct {
}

DeleteOperatingSystemsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewDeleteOperatingSystemsBadRequest

func NewDeleteOperatingSystemsBadRequest() *DeleteOperatingSystemsBadRequest

NewDeleteOperatingSystemsBadRequest creates a DeleteOperatingSystemsBadRequest with default headers values

func (*DeleteOperatingSystemsBadRequest) Error

type DeleteOperatingSystemsForbidden

type DeleteOperatingSystemsForbidden struct {
}

DeleteOperatingSystemsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewDeleteOperatingSystemsForbidden

func NewDeleteOperatingSystemsForbidden() *DeleteOperatingSystemsForbidden

NewDeleteOperatingSystemsForbidden creates a DeleteOperatingSystemsForbidden with default headers values

func (*DeleteOperatingSystemsForbidden) Error

type DeleteOperatingSystemsGone

type DeleteOperatingSystemsGone struct {
}

DeleteOperatingSystemsGone handles this case with default header values.

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

func NewDeleteOperatingSystemsGone

func NewDeleteOperatingSystemsGone() *DeleteOperatingSystemsGone

NewDeleteOperatingSystemsGone creates a DeleteOperatingSystemsGone with default headers values

func (*DeleteOperatingSystemsGone) Error

type DeleteOperatingSystemsInternalServerError

type DeleteOperatingSystemsInternalServerError struct {
}

DeleteOperatingSystemsInternalServerError 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 NewDeleteOperatingSystemsInternalServerError

func NewDeleteOperatingSystemsInternalServerError() *DeleteOperatingSystemsInternalServerError

NewDeleteOperatingSystemsInternalServerError creates a DeleteOperatingSystemsInternalServerError with default headers values

func (*DeleteOperatingSystemsInternalServerError) Error

type DeleteOperatingSystemsMethodNotAllowed

type DeleteOperatingSystemsMethodNotAllowed struct {
}

DeleteOperatingSystemsMethodNotAllowed handles this case with default header values.

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

func NewDeleteOperatingSystemsMethodNotAllowed

func NewDeleteOperatingSystemsMethodNotAllowed() *DeleteOperatingSystemsMethodNotAllowed

NewDeleteOperatingSystemsMethodNotAllowed creates a DeleteOperatingSystemsMethodNotAllowed with default headers values

func (*DeleteOperatingSystemsMethodNotAllowed) Error

type DeleteOperatingSystemsNotFound

type DeleteOperatingSystemsNotFound struct {
}

DeleteOperatingSystemsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewDeleteOperatingSystemsNotFound

func NewDeleteOperatingSystemsNotFound() *DeleteOperatingSystemsNotFound

NewDeleteOperatingSystemsNotFound creates a DeleteOperatingSystemsNotFound with default headers values

func (*DeleteOperatingSystemsNotFound) Error

type DeleteOperatingSystemsOK

type DeleteOperatingSystemsOK struct {
	Payload *DeleteOperatingSystemsOKBody
}

DeleteOperatingSystemsOK handles this case with default header values.

The above command returns results like this:

func NewDeleteOperatingSystemsOK

func NewDeleteOperatingSystemsOK() *DeleteOperatingSystemsOK

NewDeleteOperatingSystemsOK creates a DeleteOperatingSystemsOK with default headers values

func (*DeleteOperatingSystemsOK) Error

func (o *DeleteOperatingSystemsOK) Error() string

func (*DeleteOperatingSystemsOK) GetPayload

type DeleteOperatingSystemsOKBody

type DeleteOperatingSystemsOKBody struct {

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

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

DeleteOperatingSystemsOKBody delete operating systems o k body swagger:model DeleteOperatingSystemsOKBody

func (*DeleteOperatingSystemsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteOperatingSystemsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteOperatingSystemsOKBody) Validate

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

Validate validates this delete operating systems o k body

type DeleteOperatingSystemsParams

type DeleteOperatingSystemsParams struct {

	/*ID
	  opearting system id

	*/
	ID int64

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

DeleteOperatingSystemsParams contains all the parameters to send to the API endpoint for the delete operating systems operation typically these are written to a http.Request

func NewDeleteOperatingSystemsParams

func NewDeleteOperatingSystemsParams() *DeleteOperatingSystemsParams

NewDeleteOperatingSystemsParams creates a new DeleteOperatingSystemsParams object with the default values initialized.

func NewDeleteOperatingSystemsParamsWithContext

func NewDeleteOperatingSystemsParamsWithContext(ctx context.Context) *DeleteOperatingSystemsParams

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

func NewDeleteOperatingSystemsParamsWithHTTPClient

func NewDeleteOperatingSystemsParamsWithHTTPClient(client *http.Client) *DeleteOperatingSystemsParams

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

func NewDeleteOperatingSystemsParamsWithTimeout

func NewDeleteOperatingSystemsParamsWithTimeout(timeout time.Duration) *DeleteOperatingSystemsParams

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

func (*DeleteOperatingSystemsParams) SetContext

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

SetContext adds the context to the delete operating systems params

func (*DeleteOperatingSystemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete operating systems params

func (*DeleteOperatingSystemsParams) SetID

func (o *DeleteOperatingSystemsParams) SetID(id int64)

SetID adds the id to the delete operating systems params

func (*DeleteOperatingSystemsParams) SetTimeout

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

SetTimeout adds the timeout to the delete operating systems params

func (*DeleteOperatingSystemsParams) WithContext

WithContext adds the context to the delete operating systems params

func (*DeleteOperatingSystemsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete operating systems params

func (*DeleteOperatingSystemsParams) WithID

WithID adds the id to the delete operating systems params

func (*DeleteOperatingSystemsParams) WithTimeout

WithTimeout adds the timeout to the delete operating systems params

func (*DeleteOperatingSystemsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteOperatingSystemsReader

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

DeleteOperatingSystemsReader is a Reader for the DeleteOperatingSystems structure.

func (*DeleteOperatingSystemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteOperatingSystemsServiceUnavailable

type DeleteOperatingSystemsServiceUnavailable struct {
}

DeleteOperatingSystemsServiceUnavailable handles this case with default header values.

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

func NewDeleteOperatingSystemsServiceUnavailable

func NewDeleteOperatingSystemsServiceUnavailable() *DeleteOperatingSystemsServiceUnavailable

NewDeleteOperatingSystemsServiceUnavailable creates a DeleteOperatingSystemsServiceUnavailable with default headers values

func (*DeleteOperatingSystemsServiceUnavailable) Error

type DeleteOperatingSystemsUnauthorized

type DeleteOperatingSystemsUnauthorized struct {
}

DeleteOperatingSystemsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewDeleteOperatingSystemsUnauthorized

func NewDeleteOperatingSystemsUnauthorized() *DeleteOperatingSystemsUnauthorized

NewDeleteOperatingSystemsUnauthorized creates a DeleteOperatingSystemsUnauthorized with default headers values

func (*DeleteOperatingSystemsUnauthorized) Error

type GetDeviceOsBadRequest

type GetDeviceOsBadRequest struct {
}

GetDeviceOsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetDeviceOsBadRequest

func NewGetDeviceOsBadRequest() *GetDeviceOsBadRequest

NewGetDeviceOsBadRequest creates a GetDeviceOsBadRequest with default headers values

func (*GetDeviceOsBadRequest) Error

func (o *GetDeviceOsBadRequest) Error() string

type GetDeviceOsForbidden

type GetDeviceOsForbidden struct {
}

GetDeviceOsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetDeviceOsForbidden

func NewGetDeviceOsForbidden() *GetDeviceOsForbidden

NewGetDeviceOsForbidden creates a GetDeviceOsForbidden with default headers values

func (*GetDeviceOsForbidden) Error

func (o *GetDeviceOsForbidden) Error() string

type GetDeviceOsGone

type GetDeviceOsGone struct {
}

GetDeviceOsGone handles this case with default header values.

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

func NewGetDeviceOsGone

func NewGetDeviceOsGone() *GetDeviceOsGone

NewGetDeviceOsGone creates a GetDeviceOsGone with default headers values

func (*GetDeviceOsGone) Error

func (o *GetDeviceOsGone) Error() string

type GetDeviceOsInternalServerError

type GetDeviceOsInternalServerError struct {
}

GetDeviceOsInternalServerError 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 NewGetDeviceOsInternalServerError

func NewGetDeviceOsInternalServerError() *GetDeviceOsInternalServerError

NewGetDeviceOsInternalServerError creates a GetDeviceOsInternalServerError with default headers values

func (*GetDeviceOsInternalServerError) Error

type GetDeviceOsMethodNotAllowed

type GetDeviceOsMethodNotAllowed struct {
}

GetDeviceOsMethodNotAllowed handles this case with default header values.

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

func NewGetDeviceOsMethodNotAllowed

func NewGetDeviceOsMethodNotAllowed() *GetDeviceOsMethodNotAllowed

NewGetDeviceOsMethodNotAllowed creates a GetDeviceOsMethodNotAllowed with default headers values

func (*GetDeviceOsMethodNotAllowed) Error

type GetDeviceOsNotFound

type GetDeviceOsNotFound struct {
}

GetDeviceOsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetDeviceOsNotFound

func NewGetDeviceOsNotFound() *GetDeviceOsNotFound

NewGetDeviceOsNotFound creates a GetDeviceOsNotFound with default headers values

func (*GetDeviceOsNotFound) Error

func (o *GetDeviceOsNotFound) Error() string

type GetDeviceOsOK

type GetDeviceOsOK struct {
	Payload *GetDeviceOsOKBody
}

GetDeviceOsOK handles this case with default header values.

The above command returns results like this:

func NewGetDeviceOsOK

func NewGetDeviceOsOK() *GetDeviceOsOK

NewGetDeviceOsOK creates a GetDeviceOsOK with default headers values

func (*GetDeviceOsOK) Error

func (o *GetDeviceOsOK) Error() string

func (*GetDeviceOsOK) GetPayload

func (o *GetDeviceOsOK) GetPayload() *GetDeviceOsOKBody

type GetDeviceOsOKBody

type GetDeviceOsOKBody struct {

	// device os
	DeviceOs []*models.DeviceOs `json:"device_os"`
}

GetDeviceOsOKBody get device os o k body swagger:model GetDeviceOsOKBody

func (*GetDeviceOsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDeviceOsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDeviceOsOKBody) Validate

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

Validate validates this get device os o k body

type GetDeviceOsParams

type GetDeviceOsParams struct {

	/*Os
	  filter by OS name (added in v8.3.0)

	*/
	Os *string
	/*OsID
	  Operating system ID

	*/
	OsID *string

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

GetDeviceOsParams contains all the parameters to send to the API endpoint for the get device os operation typically these are written to a http.Request

func NewGetDeviceOsParams

func NewGetDeviceOsParams() *GetDeviceOsParams

NewGetDeviceOsParams creates a new GetDeviceOsParams object with the default values initialized.

func NewGetDeviceOsParamsWithContext

func NewGetDeviceOsParamsWithContext(ctx context.Context) *GetDeviceOsParams

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

func NewGetDeviceOsParamsWithHTTPClient

func NewGetDeviceOsParamsWithHTTPClient(client *http.Client) *GetDeviceOsParams

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

func NewGetDeviceOsParamsWithTimeout

func NewGetDeviceOsParamsWithTimeout(timeout time.Duration) *GetDeviceOsParams

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

func (*GetDeviceOsParams) SetContext

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

SetContext adds the context to the get device os params

func (*GetDeviceOsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device os params

func (*GetDeviceOsParams) SetOs

func (o *GetDeviceOsParams) SetOs(os *string)

SetOs adds the os to the get device os params

func (*GetDeviceOsParams) SetOsID

func (o *GetDeviceOsParams) SetOsID(osID *string)

SetOsID adds the osId to the get device os params

func (*GetDeviceOsParams) SetTimeout

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

SetTimeout adds the timeout to the get device os params

func (*GetDeviceOsParams) WithContext

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

WithContext adds the context to the get device os params

func (*GetDeviceOsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get device os params

func (*GetDeviceOsParams) WithOs

func (o *GetDeviceOsParams) WithOs(os *string) *GetDeviceOsParams

WithOs adds the os to the get device os params

func (*GetDeviceOsParams) WithOsID

func (o *GetDeviceOsParams) WithOsID(osID *string) *GetDeviceOsParams

WithOsID adds the osID to the get device os params

func (*GetDeviceOsParams) WithTimeout

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

WithTimeout adds the timeout to the get device os params

func (*GetDeviceOsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDeviceOsReader

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

GetDeviceOsReader is a Reader for the GetDeviceOs structure.

func (*GetDeviceOsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeviceOsServiceUnavailable

type GetDeviceOsServiceUnavailable struct {
}

GetDeviceOsServiceUnavailable handles this case with default header values.

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

func NewGetDeviceOsServiceUnavailable

func NewGetDeviceOsServiceUnavailable() *GetDeviceOsServiceUnavailable

NewGetDeviceOsServiceUnavailable creates a GetDeviceOsServiceUnavailable with default headers values

func (*GetDeviceOsServiceUnavailable) Error

type GetDeviceOsUnauthorized

type GetDeviceOsUnauthorized struct {
}

GetDeviceOsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetDeviceOsUnauthorized

func NewGetDeviceOsUnauthorized() *GetDeviceOsUnauthorized

NewGetDeviceOsUnauthorized creates a GetDeviceOsUnauthorized with default headers values

func (*GetDeviceOsUnauthorized) Error

func (o *GetDeviceOsUnauthorized) Error() string

type GetOperatingSystemsBadRequest

type GetOperatingSystemsBadRequest struct {
}

GetOperatingSystemsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetOperatingSystemsBadRequest

func NewGetOperatingSystemsBadRequest() *GetOperatingSystemsBadRequest

NewGetOperatingSystemsBadRequest creates a GetOperatingSystemsBadRequest with default headers values

func (*GetOperatingSystemsBadRequest) Error

type GetOperatingSystemsForbidden

type GetOperatingSystemsForbidden struct {
}

GetOperatingSystemsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetOperatingSystemsForbidden

func NewGetOperatingSystemsForbidden() *GetOperatingSystemsForbidden

NewGetOperatingSystemsForbidden creates a GetOperatingSystemsForbidden with default headers values

func (*GetOperatingSystemsForbidden) Error

type GetOperatingSystemsGone

type GetOperatingSystemsGone struct {
}

GetOperatingSystemsGone handles this case with default header values.

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

func NewGetOperatingSystemsGone

func NewGetOperatingSystemsGone() *GetOperatingSystemsGone

NewGetOperatingSystemsGone creates a GetOperatingSystemsGone with default headers values

func (*GetOperatingSystemsGone) Error

func (o *GetOperatingSystemsGone) Error() string

type GetOperatingSystemsInternalServerError

type GetOperatingSystemsInternalServerError struct {
}

GetOperatingSystemsInternalServerError 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 NewGetOperatingSystemsInternalServerError

func NewGetOperatingSystemsInternalServerError() *GetOperatingSystemsInternalServerError

NewGetOperatingSystemsInternalServerError creates a GetOperatingSystemsInternalServerError with default headers values

func (*GetOperatingSystemsInternalServerError) Error

type GetOperatingSystemsMethodNotAllowed

type GetOperatingSystemsMethodNotAllowed struct {
}

GetOperatingSystemsMethodNotAllowed handles this case with default header values.

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

func NewGetOperatingSystemsMethodNotAllowed

func NewGetOperatingSystemsMethodNotAllowed() *GetOperatingSystemsMethodNotAllowed

NewGetOperatingSystemsMethodNotAllowed creates a GetOperatingSystemsMethodNotAllowed with default headers values

func (*GetOperatingSystemsMethodNotAllowed) Error

type GetOperatingSystemsNotFound

type GetOperatingSystemsNotFound struct {
}

GetOperatingSystemsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetOperatingSystemsNotFound

func NewGetOperatingSystemsNotFound() *GetOperatingSystemsNotFound

NewGetOperatingSystemsNotFound creates a GetOperatingSystemsNotFound with default headers values

func (*GetOperatingSystemsNotFound) Error

type GetOperatingSystemsOK

type GetOperatingSystemsOK struct {
	Payload *GetOperatingSystemsOKBody
}

GetOperatingSystemsOK handles this case with default header values.

The above command returns results like this:

func NewGetOperatingSystemsOK

func NewGetOperatingSystemsOK() *GetOperatingSystemsOK

NewGetOperatingSystemsOK creates a GetOperatingSystemsOK with default headers values

func (*GetOperatingSystemsOK) Error

func (o *GetOperatingSystemsOK) Error() string

func (*GetOperatingSystemsOK) GetPayload

type GetOperatingSystemsOKBody

type GetOperatingSystemsOKBody struct {

	// operatingsystems
	Operatingsystems []*models.OperatingSystems `json:"operatingsystems"`
}

GetOperatingSystemsOKBody get operating systems o k body swagger:model GetOperatingSystemsOKBody

func (*GetOperatingSystemsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetOperatingSystemsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetOperatingSystemsOKBody) Validate

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

Validate validates this get operating systems o k body

type GetOperatingSystemsParams

type GetOperatingSystemsParams struct {

	/*Category
	  Filter by OS category (ie: Linux, Windows)

	*/
	Category *string
	/*LicensedCount
	  Number of licensed instances of operating system

	*/
	LicensedCount *string
	/*NotLicensedCount
	  Number of discovered instances of operating system not set to licensed

	*/
	NotLicensedCount *string
	/*TotalCount
	  Count of IPs returned (use with offset as max results are limited to 1000)

	*/
	TotalCount *string

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

GetOperatingSystemsParams contains all the parameters to send to the API endpoint for the get operating systems operation typically these are written to a http.Request

func NewGetOperatingSystemsParams

func NewGetOperatingSystemsParams() *GetOperatingSystemsParams

NewGetOperatingSystemsParams creates a new GetOperatingSystemsParams object with the default values initialized.

func NewGetOperatingSystemsParamsWithContext

func NewGetOperatingSystemsParamsWithContext(ctx context.Context) *GetOperatingSystemsParams

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

func NewGetOperatingSystemsParamsWithHTTPClient

func NewGetOperatingSystemsParamsWithHTTPClient(client *http.Client) *GetOperatingSystemsParams

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

func NewGetOperatingSystemsParamsWithTimeout

func NewGetOperatingSystemsParamsWithTimeout(timeout time.Duration) *GetOperatingSystemsParams

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

func (*GetOperatingSystemsParams) SetCategory

func (o *GetOperatingSystemsParams) SetCategory(category *string)

SetCategory adds the category to the get operating systems params

func (*GetOperatingSystemsParams) SetContext

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

SetContext adds the context to the get operating systems params

func (*GetOperatingSystemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get operating systems params

func (*GetOperatingSystemsParams) SetLicensedCount

func (o *GetOperatingSystemsParams) SetLicensedCount(licensedCount *string)

SetLicensedCount adds the licensedCount to the get operating systems params

func (*GetOperatingSystemsParams) SetNotLicensedCount

func (o *GetOperatingSystemsParams) SetNotLicensedCount(notLicensedCount *string)

SetNotLicensedCount adds the notLicensedCount to the get operating systems params

func (*GetOperatingSystemsParams) SetTimeout

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

SetTimeout adds the timeout to the get operating systems params

func (*GetOperatingSystemsParams) SetTotalCount

func (o *GetOperatingSystemsParams) SetTotalCount(totalCount *string)

SetTotalCount adds the totalCount to the get operating systems params

func (*GetOperatingSystemsParams) WithCategory

func (o *GetOperatingSystemsParams) WithCategory(category *string) *GetOperatingSystemsParams

WithCategory adds the category to the get operating systems params

func (*GetOperatingSystemsParams) WithContext

WithContext adds the context to the get operating systems params

func (*GetOperatingSystemsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get operating systems params

func (*GetOperatingSystemsParams) WithLicensedCount

func (o *GetOperatingSystemsParams) WithLicensedCount(licensedCount *string) *GetOperatingSystemsParams

WithLicensedCount adds the licensedCount to the get operating systems params

func (*GetOperatingSystemsParams) WithNotLicensedCount

func (o *GetOperatingSystemsParams) WithNotLicensedCount(notLicensedCount *string) *GetOperatingSystemsParams

WithNotLicensedCount adds the notLicensedCount to the get operating systems params

func (*GetOperatingSystemsParams) WithTimeout

WithTimeout adds the timeout to the get operating systems params

func (*GetOperatingSystemsParams) WithTotalCount

func (o *GetOperatingSystemsParams) WithTotalCount(totalCount *string) *GetOperatingSystemsParams

WithTotalCount adds the totalCount to the get operating systems params

func (*GetOperatingSystemsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOperatingSystemsReader

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

GetOperatingSystemsReader is a Reader for the GetOperatingSystems structure.

func (*GetOperatingSystemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOperatingSystemsServiceUnavailable

type GetOperatingSystemsServiceUnavailable struct {
}

GetOperatingSystemsServiceUnavailable handles this case with default header values.

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

func NewGetOperatingSystemsServiceUnavailable

func NewGetOperatingSystemsServiceUnavailable() *GetOperatingSystemsServiceUnavailable

NewGetOperatingSystemsServiceUnavailable creates a GetOperatingSystemsServiceUnavailable with default headers values

func (*GetOperatingSystemsServiceUnavailable) Error

type GetOperatingSystemsUnauthorized

type GetOperatingSystemsUnauthorized struct {
}

GetOperatingSystemsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetOperatingSystemsUnauthorized

func NewGetOperatingSystemsUnauthorized() *GetOperatingSystemsUnauthorized

NewGetOperatingSystemsUnauthorized creates a GetOperatingSystemsUnauthorized with default headers values

func (*GetOperatingSystemsUnauthorized) Error

type PostDeviceOsBadRequest

type PostDeviceOsBadRequest struct {
}

PostDeviceOsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostDeviceOsBadRequest

func NewPostDeviceOsBadRequest() *PostDeviceOsBadRequest

NewPostDeviceOsBadRequest creates a PostDeviceOsBadRequest with default headers values

func (*PostDeviceOsBadRequest) Error

func (o *PostDeviceOsBadRequest) Error() string

type PostDeviceOsForbidden

type PostDeviceOsForbidden struct {
}

PostDeviceOsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostDeviceOsForbidden

func NewPostDeviceOsForbidden() *PostDeviceOsForbidden

NewPostDeviceOsForbidden creates a PostDeviceOsForbidden with default headers values

func (*PostDeviceOsForbidden) Error

func (o *PostDeviceOsForbidden) Error() string

type PostDeviceOsGone

type PostDeviceOsGone struct {
}

PostDeviceOsGone handles this case with default header values.

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

func NewPostDeviceOsGone

func NewPostDeviceOsGone() *PostDeviceOsGone

NewPostDeviceOsGone creates a PostDeviceOsGone with default headers values

func (*PostDeviceOsGone) Error

func (o *PostDeviceOsGone) Error() string

type PostDeviceOsInternalServerError

type PostDeviceOsInternalServerError struct {
}

PostDeviceOsInternalServerError 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 NewPostDeviceOsInternalServerError

func NewPostDeviceOsInternalServerError() *PostDeviceOsInternalServerError

NewPostDeviceOsInternalServerError creates a PostDeviceOsInternalServerError with default headers values

func (*PostDeviceOsInternalServerError) Error

type PostDeviceOsMethodNotAllowed

type PostDeviceOsMethodNotAllowed struct {
}

PostDeviceOsMethodNotAllowed handles this case with default header values.

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

func NewPostDeviceOsMethodNotAllowed

func NewPostDeviceOsMethodNotAllowed() *PostDeviceOsMethodNotAllowed

NewPostDeviceOsMethodNotAllowed creates a PostDeviceOsMethodNotAllowed with default headers values

func (*PostDeviceOsMethodNotAllowed) Error

type PostDeviceOsNotFound

type PostDeviceOsNotFound struct {
}

PostDeviceOsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostDeviceOsNotFound

func NewPostDeviceOsNotFound() *PostDeviceOsNotFound

NewPostDeviceOsNotFound creates a PostDeviceOsNotFound with default headers values

func (*PostDeviceOsNotFound) Error

func (o *PostDeviceOsNotFound) Error() string

type PostDeviceOsOK

type PostDeviceOsOK struct {
	Payload *PostDeviceOsOKBody
}

PostDeviceOsOK handles this case with default header values.

The above command returns results like this:

func NewPostDeviceOsOK

func NewPostDeviceOsOK() *PostDeviceOsOK

NewPostDeviceOsOK creates a PostDeviceOsOK with default headers values

func (*PostDeviceOsOK) Error

func (o *PostDeviceOsOK) Error() string

func (*PostDeviceOsOK) GetPayload

func (o *PostDeviceOsOK) GetPayload() *PostDeviceOsOKBody

type PostDeviceOsOKBody

type PostDeviceOsOKBody struct {

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

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

PostDeviceOsOKBody post device os o k body swagger:model PostDeviceOsOKBody

func (*PostDeviceOsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostDeviceOsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostDeviceOsOKBody) Validate

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

Validate validates this post device os o k body

type PostDeviceOsParams

type PostDeviceOsParams struct {

	/*CountInLicensing
	  Whether or not to count OS in licensing

	*/
	CountInLicensing *string
	/*DeviceID
	  ID of the device OS is assigned to

	*/
	DeviceID string
	/*DeviceOsID
	  ID of specific operating system

	*/
	DeviceOsID string
	/*LicenseKey
	  OS license key

	*/
	LicenseKey *string
	/*Os
	  Operating system name

	*/
	Os *string
	/*Osver
	  Operating system version name

	*/
	Osver *string
	/*Osverno
	  Operating system version number

	*/
	Osverno *string

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

PostDeviceOsParams contains all the parameters to send to the API endpoint for the post device os operation typically these are written to a http.Request

func NewPostDeviceOsParams

func NewPostDeviceOsParams() *PostDeviceOsParams

NewPostDeviceOsParams creates a new PostDeviceOsParams object with the default values initialized.

func NewPostDeviceOsParamsWithContext

func NewPostDeviceOsParamsWithContext(ctx context.Context) *PostDeviceOsParams

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

func NewPostDeviceOsParamsWithHTTPClient

func NewPostDeviceOsParamsWithHTTPClient(client *http.Client) *PostDeviceOsParams

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

func NewPostDeviceOsParamsWithTimeout

func NewPostDeviceOsParamsWithTimeout(timeout time.Duration) *PostDeviceOsParams

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

func (*PostDeviceOsParams) SetContext

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

SetContext adds the context to the post device os params

func (*PostDeviceOsParams) SetCountInLicensing

func (o *PostDeviceOsParams) SetCountInLicensing(countInLicensing *string)

SetCountInLicensing adds the countInLicensing to the post device os params

func (*PostDeviceOsParams) SetDeviceID

func (o *PostDeviceOsParams) SetDeviceID(deviceID string)

SetDeviceID adds the deviceId to the post device os params

func (*PostDeviceOsParams) SetDeviceOsID

func (o *PostDeviceOsParams) SetDeviceOsID(deviceOsID string)

SetDeviceOsID adds the deviceOsId to the post device os params

func (*PostDeviceOsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post device os params

func (*PostDeviceOsParams) SetLicenseKey

func (o *PostDeviceOsParams) SetLicenseKey(licenseKey *string)

SetLicenseKey adds the licenseKey to the post device os params

func (*PostDeviceOsParams) SetOs

func (o *PostDeviceOsParams) SetOs(os *string)

SetOs adds the os to the post device os params

func (*PostDeviceOsParams) SetOsver

func (o *PostDeviceOsParams) SetOsver(osver *string)

SetOsver adds the osver to the post device os params

func (*PostDeviceOsParams) SetOsverno

func (o *PostDeviceOsParams) SetOsverno(osverno *string)

SetOsverno adds the osverno to the post device os params

func (*PostDeviceOsParams) SetTimeout

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

SetTimeout adds the timeout to the post device os params

func (*PostDeviceOsParams) WithContext

WithContext adds the context to the post device os params

func (*PostDeviceOsParams) WithCountInLicensing

func (o *PostDeviceOsParams) WithCountInLicensing(countInLicensing *string) *PostDeviceOsParams

WithCountInLicensing adds the countInLicensing to the post device os params

func (*PostDeviceOsParams) WithDeviceID

func (o *PostDeviceOsParams) WithDeviceID(deviceID string) *PostDeviceOsParams

WithDeviceID adds the deviceID to the post device os params

func (*PostDeviceOsParams) WithDeviceOsID

func (o *PostDeviceOsParams) WithDeviceOsID(deviceOsID string) *PostDeviceOsParams

WithDeviceOsID adds the deviceOsID to the post device os params

func (*PostDeviceOsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post device os params

func (*PostDeviceOsParams) WithLicenseKey

func (o *PostDeviceOsParams) WithLicenseKey(licenseKey *string) *PostDeviceOsParams

WithLicenseKey adds the licenseKey to the post device os params

func (*PostDeviceOsParams) WithOs

WithOs adds the os to the post device os params

func (*PostDeviceOsParams) WithOsver

func (o *PostDeviceOsParams) WithOsver(osver *string) *PostDeviceOsParams

WithOsver adds the osver to the post device os params

func (*PostDeviceOsParams) WithOsverno

func (o *PostDeviceOsParams) WithOsverno(osverno *string) *PostDeviceOsParams

WithOsverno adds the osverno to the post device os params

func (*PostDeviceOsParams) WithTimeout

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

WithTimeout adds the timeout to the post device os params

func (*PostDeviceOsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostDeviceOsReader

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

PostDeviceOsReader is a Reader for the PostDeviceOs structure.

func (*PostDeviceOsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDeviceOsServiceUnavailable

type PostDeviceOsServiceUnavailable struct {
}

PostDeviceOsServiceUnavailable handles this case with default header values.

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

func NewPostDeviceOsServiceUnavailable

func NewPostDeviceOsServiceUnavailable() *PostDeviceOsServiceUnavailable

NewPostDeviceOsServiceUnavailable creates a PostDeviceOsServiceUnavailable with default headers values

func (*PostDeviceOsServiceUnavailable) Error

type PostDeviceOsUnauthorized

type PostDeviceOsUnauthorized struct {
}

PostDeviceOsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostDeviceOsUnauthorized

func NewPostDeviceOsUnauthorized() *PostDeviceOsUnauthorized

NewPostDeviceOsUnauthorized creates a PostDeviceOsUnauthorized with default headers values

func (*PostDeviceOsUnauthorized) Error

func (o *PostDeviceOsUnauthorized) Error() string

type PostOperatingSystemsBadRequest

type PostOperatingSystemsBadRequest struct {
}

PostOperatingSystemsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostOperatingSystemsBadRequest

func NewPostOperatingSystemsBadRequest() *PostOperatingSystemsBadRequest

NewPostOperatingSystemsBadRequest creates a PostOperatingSystemsBadRequest with default headers values

func (*PostOperatingSystemsBadRequest) Error

type PostOperatingSystemsForbidden

type PostOperatingSystemsForbidden struct {
}

PostOperatingSystemsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostOperatingSystemsForbidden

func NewPostOperatingSystemsForbidden() *PostOperatingSystemsForbidden

NewPostOperatingSystemsForbidden creates a PostOperatingSystemsForbidden with default headers values

func (*PostOperatingSystemsForbidden) Error

type PostOperatingSystemsGone

type PostOperatingSystemsGone struct {
}

PostOperatingSystemsGone handles this case with default header values.

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

func NewPostOperatingSystemsGone

func NewPostOperatingSystemsGone() *PostOperatingSystemsGone

NewPostOperatingSystemsGone creates a PostOperatingSystemsGone with default headers values

func (*PostOperatingSystemsGone) Error

func (o *PostOperatingSystemsGone) Error() string

type PostOperatingSystemsInternalServerError

type PostOperatingSystemsInternalServerError struct {
}

PostOperatingSystemsInternalServerError 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 NewPostOperatingSystemsInternalServerError

func NewPostOperatingSystemsInternalServerError() *PostOperatingSystemsInternalServerError

NewPostOperatingSystemsInternalServerError creates a PostOperatingSystemsInternalServerError with default headers values

func (*PostOperatingSystemsInternalServerError) Error

type PostOperatingSystemsMethodNotAllowed

type PostOperatingSystemsMethodNotAllowed struct {
}

PostOperatingSystemsMethodNotAllowed handles this case with default header values.

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

func NewPostOperatingSystemsMethodNotAllowed

func NewPostOperatingSystemsMethodNotAllowed() *PostOperatingSystemsMethodNotAllowed

NewPostOperatingSystemsMethodNotAllowed creates a PostOperatingSystemsMethodNotAllowed with default headers values

func (*PostOperatingSystemsMethodNotAllowed) Error

type PostOperatingSystemsNotFound

type PostOperatingSystemsNotFound struct {
}

PostOperatingSystemsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostOperatingSystemsNotFound

func NewPostOperatingSystemsNotFound() *PostOperatingSystemsNotFound

NewPostOperatingSystemsNotFound creates a PostOperatingSystemsNotFound with default headers values

func (*PostOperatingSystemsNotFound) Error

type PostOperatingSystemsOK

type PostOperatingSystemsOK struct {
	Payload *PostOperatingSystemsOKBody
}

PostOperatingSystemsOK handles this case with default header values.

The above command returns results like this:

func NewPostOperatingSystemsOK

func NewPostOperatingSystemsOK() *PostOperatingSystemsOK

NewPostOperatingSystemsOK creates a PostOperatingSystemsOK with default headers values

func (*PostOperatingSystemsOK) Error

func (o *PostOperatingSystemsOK) Error() string

func (*PostOperatingSystemsOK) GetPayload

type PostOperatingSystemsOKBody

type PostOperatingSystemsOKBody struct {

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

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

PostOperatingSystemsOKBody post operating systems o k body swagger:model PostOperatingSystemsOKBody

func (*PostOperatingSystemsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostOperatingSystemsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostOperatingSystemsOKBody) Validate

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

Validate validates this post operating systems o k body

type PostOperatingSystemsParams

type PostOperatingSystemsParams struct {

	/*Category
	  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.

	*/
	Category *string
	/*LicensedCount
	  Number of licensed instances of operating system

	*/
	LicensedCount *string
	/*LicensingModel*/
	LicensingModel *string
	/*Manufacturer
	  name of the hardware/software manufacturer.

	*/
	Manufacturer *string
	/*Name
	  name of the OS

	*/
	Name *string
	/*Notes
	  Any additional notes

	*/
	Notes *string

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

PostOperatingSystemsParams contains all the parameters to send to the API endpoint for the post operating systems operation typically these are written to a http.Request

func NewPostOperatingSystemsParams

func NewPostOperatingSystemsParams() *PostOperatingSystemsParams

NewPostOperatingSystemsParams creates a new PostOperatingSystemsParams object with the default values initialized.

func NewPostOperatingSystemsParamsWithContext

func NewPostOperatingSystemsParamsWithContext(ctx context.Context) *PostOperatingSystemsParams

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

func NewPostOperatingSystemsParamsWithHTTPClient

func NewPostOperatingSystemsParamsWithHTTPClient(client *http.Client) *PostOperatingSystemsParams

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

func NewPostOperatingSystemsParamsWithTimeout

func NewPostOperatingSystemsParamsWithTimeout(timeout time.Duration) *PostOperatingSystemsParams

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

func (*PostOperatingSystemsParams) SetCategory

func (o *PostOperatingSystemsParams) SetCategory(category *string)

SetCategory adds the category to the post operating systems params

func (*PostOperatingSystemsParams) SetContext

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

SetContext adds the context to the post operating systems params

func (*PostOperatingSystemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post operating systems params

func (*PostOperatingSystemsParams) SetLicensedCount

func (o *PostOperatingSystemsParams) SetLicensedCount(licensedCount *string)

SetLicensedCount adds the licensedCount to the post operating systems params

func (*PostOperatingSystemsParams) SetLicensingModel

func (o *PostOperatingSystemsParams) SetLicensingModel(licensingModel *string)

SetLicensingModel adds the licensingModel to the post operating systems params

func (*PostOperatingSystemsParams) SetManufacturer

func (o *PostOperatingSystemsParams) SetManufacturer(manufacturer *string)

SetManufacturer adds the manufacturer to the post operating systems params

func (*PostOperatingSystemsParams) SetName

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

SetName adds the name to the post operating systems params

func (*PostOperatingSystemsParams) SetNotes

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

SetNotes adds the notes to the post operating systems params

func (*PostOperatingSystemsParams) SetTimeout

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

SetTimeout adds the timeout to the post operating systems params

func (*PostOperatingSystemsParams) WithCategory

func (o *PostOperatingSystemsParams) WithCategory(category *string) *PostOperatingSystemsParams

WithCategory adds the category to the post operating systems params

func (*PostOperatingSystemsParams) WithContext

WithContext adds the context to the post operating systems params

func (*PostOperatingSystemsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post operating systems params

func (*PostOperatingSystemsParams) WithLicensedCount

func (o *PostOperatingSystemsParams) WithLicensedCount(licensedCount *string) *PostOperatingSystemsParams

WithLicensedCount adds the licensedCount to the post operating systems params

func (*PostOperatingSystemsParams) WithLicensingModel

func (o *PostOperatingSystemsParams) WithLicensingModel(licensingModel *string) *PostOperatingSystemsParams

WithLicensingModel adds the licensingModel to the post operating systems params

func (*PostOperatingSystemsParams) WithManufacturer

func (o *PostOperatingSystemsParams) WithManufacturer(manufacturer *string) *PostOperatingSystemsParams

WithManufacturer adds the manufacturer to the post operating systems params

func (*PostOperatingSystemsParams) WithName

WithName adds the name to the post operating systems params

func (*PostOperatingSystemsParams) WithNotes

WithNotes adds the notes to the post operating systems params

func (*PostOperatingSystemsParams) WithTimeout

WithTimeout adds the timeout to the post operating systems params

func (*PostOperatingSystemsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostOperatingSystemsReader

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

PostOperatingSystemsReader is a Reader for the PostOperatingSystems structure.

func (*PostOperatingSystemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostOperatingSystemsServiceUnavailable

type PostOperatingSystemsServiceUnavailable struct {
}

PostOperatingSystemsServiceUnavailable handles this case with default header values.

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

func NewPostOperatingSystemsServiceUnavailable

func NewPostOperatingSystemsServiceUnavailable() *PostOperatingSystemsServiceUnavailable

NewPostOperatingSystemsServiceUnavailable creates a PostOperatingSystemsServiceUnavailable with default headers values

func (*PostOperatingSystemsServiceUnavailable) Error

type PostOperatingSystemsUnauthorized

type PostOperatingSystemsUnauthorized struct {
}

PostOperatingSystemsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostOperatingSystemsUnauthorized

func NewPostOperatingSystemsUnauthorized() *PostOperatingSystemsUnauthorized

NewPostOperatingSystemsUnauthorized creates a PostOperatingSystemsUnauthorized with default headers values

func (*PostOperatingSystemsUnauthorized) Error

Jump to

Keyboard shortcuts

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