deviceprofiles

package
v0.0.0-...-97f4547 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for deviceprofiles API

func (*Client) CreateDeviceProfile

func (a *Client) CreateDeviceProfile(params *CreateDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*CreateDeviceProfileOK, error)

CreateDeviceProfile creates a device profile

Create a device profile.

func (*Client) DeleteDeviceProfile

func (a *Client) DeleteDeviceProfile(params *DeleteDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeviceProfileOK, error)

DeleteDeviceProfile deletes a device profile

Delete a device profile by ID. Admin use only.

func (*Client) GetDeviceProfile

func (a *Client) GetDeviceProfile(params *GetDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceProfileOK, error)

GetDeviceProfile gs e t a device profile

GET a device profile.

func (*Client) ListDeviceProfiles

func (a *Client) ListDeviceProfiles(params *ListDeviceProfilesParams, authInfo runtime.ClientAuthInfoWriter) (*ListDeviceProfilesOK, error)

ListDeviceProfiles lists all device profiles for the authenticated user

List device profiles.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateDeviceProfile

func (a *Client) UpdateDeviceProfile(params *UpdateDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateDeviceProfileOK, error)

UpdateDeviceProfile updates a device profile

Update a device profile. The device profile has to be in development status

type ClientService

type ClientService interface {
	CreateDeviceProfile(params *CreateDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*CreateDeviceProfileOK, error)

	DeleteDeviceProfile(params *DeleteDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeviceProfileOK, error)

	GetDeviceProfile(params *GetDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceProfileOK, error)

	ListDeviceProfiles(params *ListDeviceProfilesParams, authInfo runtime.ClientAuthInfoWriter) (*ListDeviceProfilesOK, error)

	UpdateDeviceProfile(params *UpdateDeviceProfileParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateDeviceProfileOK, 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 deviceprofiles API client.

type CreateDeviceProfileBadRequest

type CreateDeviceProfileBadRequest struct {
	Payload *models.ErrorResponse
}

CreateDeviceProfileBadRequest handles this case with default header values.

Bad request

func NewCreateDeviceProfileBadRequest

func NewCreateDeviceProfileBadRequest() *CreateDeviceProfileBadRequest

NewCreateDeviceProfileBadRequest creates a CreateDeviceProfileBadRequest with default headers values

func (*CreateDeviceProfileBadRequest) Error

func (*CreateDeviceProfileBadRequest) GetPayload

type CreateDeviceProfileDefault

type CreateDeviceProfileDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

CreateDeviceProfileDefault handles this case with default header values.

Unexpected error

func NewCreateDeviceProfileDefault

func NewCreateDeviceProfileDefault(code int) *CreateDeviceProfileDefault

NewCreateDeviceProfileDefault creates a CreateDeviceProfileDefault with default headers values

func (*CreateDeviceProfileDefault) Code

func (o *CreateDeviceProfileDefault) Code() int

Code gets the status code for the create device profile default response

func (*CreateDeviceProfileDefault) Error

func (*CreateDeviceProfileDefault) GetPayload

type CreateDeviceProfileForbidden

type CreateDeviceProfileForbidden struct {
}

CreateDeviceProfileForbidden handles this case with default header values.

Forbidden

func NewCreateDeviceProfileForbidden

func NewCreateDeviceProfileForbidden() *CreateDeviceProfileForbidden

NewCreateDeviceProfileForbidden creates a CreateDeviceProfileForbidden with default headers values

func (*CreateDeviceProfileForbidden) Error

type CreateDeviceProfileOK

type CreateDeviceProfileOK struct {
	Payload *models.DeviceProfileResponse
}

CreateDeviceProfileOK handles this case with default header values.

The device profile.

func NewCreateDeviceProfileOK

func NewCreateDeviceProfileOK() *CreateDeviceProfileOK

NewCreateDeviceProfileOK creates a CreateDeviceProfileOK with default headers values

func (*CreateDeviceProfileOK) Error

func (o *CreateDeviceProfileOK) Error() string

func (*CreateDeviceProfileOK) GetPayload

type CreateDeviceProfileParams

type CreateDeviceProfileParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*Request
	  The device profile to be created.

	*/
	Request *models.CreateDeviceProfileRequest

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

CreateDeviceProfileParams contains all the parameters to send to the API endpoint for the create device profile operation typically these are written to a http.Request

func NewCreateDeviceProfileParams

func NewCreateDeviceProfileParams() *CreateDeviceProfileParams

NewCreateDeviceProfileParams creates a new CreateDeviceProfileParams object with the default values initialized.

func NewCreateDeviceProfileParamsWithContext

func NewCreateDeviceProfileParamsWithContext(ctx context.Context) *CreateDeviceProfileParams

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

func NewCreateDeviceProfileParamsWithHTTPClient

func NewCreateDeviceProfileParamsWithHTTPClient(client *http.Client) *CreateDeviceProfileParams

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

func NewCreateDeviceProfileParamsWithTimeout

func NewCreateDeviceProfileParamsWithTimeout(timeout time.Duration) *CreateDeviceProfileParams

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

func (*CreateDeviceProfileParams) SetAuthorization

func (o *CreateDeviceProfileParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the create device profile params

func (*CreateDeviceProfileParams) SetContext

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

SetContext adds the context to the create device profile params

func (*CreateDeviceProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create device profile params

func (*CreateDeviceProfileParams) SetRequest

SetRequest adds the request to the create device profile params

func (*CreateDeviceProfileParams) SetTimeout

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

SetTimeout adds the timeout to the create device profile params

func (*CreateDeviceProfileParams) WithAuthorization

func (o *CreateDeviceProfileParams) WithAuthorization(authorization string) *CreateDeviceProfileParams

WithAuthorization adds the authorization to the create device profile params

func (*CreateDeviceProfileParams) WithContext

WithContext adds the context to the create device profile params

func (*CreateDeviceProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create device profile params

func (*CreateDeviceProfileParams) WithRequest

WithRequest adds the request to the create device profile params

func (*CreateDeviceProfileParams) WithTimeout

WithTimeout adds the timeout to the create device profile params

func (*CreateDeviceProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDeviceProfileReader

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

CreateDeviceProfileReader is a Reader for the CreateDeviceProfile structure.

func (*CreateDeviceProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDeviceProfileTooManyRequests

type CreateDeviceProfileTooManyRequests struct {
	Payload *models.ErrorResponse
}

CreateDeviceProfileTooManyRequests handles this case with default header values.

Too many requests

func NewCreateDeviceProfileTooManyRequests

func NewCreateDeviceProfileTooManyRequests() *CreateDeviceProfileTooManyRequests

NewCreateDeviceProfileTooManyRequests creates a CreateDeviceProfileTooManyRequests with default headers values

func (*CreateDeviceProfileTooManyRequests) Error

func (*CreateDeviceProfileTooManyRequests) GetPayload

type CreateDeviceProfileUnauthorized

type CreateDeviceProfileUnauthorized struct {
}

CreateDeviceProfileUnauthorized handles this case with default header values.

Unauthorized

func NewCreateDeviceProfileUnauthorized

func NewCreateDeviceProfileUnauthorized() *CreateDeviceProfileUnauthorized

NewCreateDeviceProfileUnauthorized creates a CreateDeviceProfileUnauthorized with default headers values

func (*CreateDeviceProfileUnauthorized) Error

type DeleteDeviceProfileBadRequest

type DeleteDeviceProfileBadRequest struct {
	Payload *models.ErrorResponse
}

DeleteDeviceProfileBadRequest handles this case with default header values.

Bad request

func NewDeleteDeviceProfileBadRequest

func NewDeleteDeviceProfileBadRequest() *DeleteDeviceProfileBadRequest

NewDeleteDeviceProfileBadRequest creates a DeleteDeviceProfileBadRequest with default headers values

func (*DeleteDeviceProfileBadRequest) Error

func (*DeleteDeviceProfileBadRequest) GetPayload

type DeleteDeviceProfileDefault

type DeleteDeviceProfileDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

DeleteDeviceProfileDefault handles this case with default header values.

Unexpected error

func NewDeleteDeviceProfileDefault

func NewDeleteDeviceProfileDefault(code int) *DeleteDeviceProfileDefault

NewDeleteDeviceProfileDefault creates a DeleteDeviceProfileDefault with default headers values

func (*DeleteDeviceProfileDefault) Code

func (o *DeleteDeviceProfileDefault) Code() int

Code gets the status code for the delete device profile default response

func (*DeleteDeviceProfileDefault) Error

func (*DeleteDeviceProfileDefault) GetPayload

type DeleteDeviceProfileForbidden

type DeleteDeviceProfileForbidden struct {
}

DeleteDeviceProfileForbidden handles this case with default header values.

Forbidden

func NewDeleteDeviceProfileForbidden

func NewDeleteDeviceProfileForbidden() *DeleteDeviceProfileForbidden

NewDeleteDeviceProfileForbidden creates a DeleteDeviceProfileForbidden with default headers values

func (*DeleteDeviceProfileForbidden) Error

type DeleteDeviceProfileOK

type DeleteDeviceProfileOK struct {
	Payload models.DeleteDeviceProfileResponse
}

DeleteDeviceProfileOK handles this case with default header values.

Device profile deleted.

func NewDeleteDeviceProfileOK

func NewDeleteDeviceProfileOK() *DeleteDeviceProfileOK

NewDeleteDeviceProfileOK creates a DeleteDeviceProfileOK with default headers values

func (*DeleteDeviceProfileOK) Error

func (o *DeleteDeviceProfileOK) Error() string

func (*DeleteDeviceProfileOK) GetPayload

type DeleteDeviceProfileParams

type DeleteDeviceProfileParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*DeviceProfileID
	  the device profile ID

	*/
	DeviceProfileID string

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

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

func NewDeleteDeviceProfileParams

func NewDeleteDeviceProfileParams() *DeleteDeviceProfileParams

NewDeleteDeviceProfileParams creates a new DeleteDeviceProfileParams object with the default values initialized.

func NewDeleteDeviceProfileParamsWithContext

func NewDeleteDeviceProfileParamsWithContext(ctx context.Context) *DeleteDeviceProfileParams

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

func NewDeleteDeviceProfileParamsWithHTTPClient

func NewDeleteDeviceProfileParamsWithHTTPClient(client *http.Client) *DeleteDeviceProfileParams

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

func NewDeleteDeviceProfileParamsWithTimeout

func NewDeleteDeviceProfileParamsWithTimeout(timeout time.Duration) *DeleteDeviceProfileParams

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

func (*DeleteDeviceProfileParams) SetAuthorization

func (o *DeleteDeviceProfileParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the delete device profile params

func (*DeleteDeviceProfileParams) SetContext

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

SetContext adds the context to the delete device profile params

func (*DeleteDeviceProfileParams) SetDeviceProfileID

func (o *DeleteDeviceProfileParams) SetDeviceProfileID(deviceProfileID string)

SetDeviceProfileID adds the deviceProfileId to the delete device profile params

func (*DeleteDeviceProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete device profile params

func (*DeleteDeviceProfileParams) SetTimeout

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

SetTimeout adds the timeout to the delete device profile params

func (*DeleteDeviceProfileParams) WithAuthorization

func (o *DeleteDeviceProfileParams) WithAuthorization(authorization string) *DeleteDeviceProfileParams

WithAuthorization adds the authorization to the delete device profile params

func (*DeleteDeviceProfileParams) WithContext

WithContext adds the context to the delete device profile params

func (*DeleteDeviceProfileParams) WithDeviceProfileID

func (o *DeleteDeviceProfileParams) WithDeviceProfileID(deviceProfileID string) *DeleteDeviceProfileParams

WithDeviceProfileID adds the deviceProfileID to the delete device profile params

func (*DeleteDeviceProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete device profile params

func (*DeleteDeviceProfileParams) WithTimeout

WithTimeout adds the timeout to the delete device profile params

func (*DeleteDeviceProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDeviceProfileReader

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

DeleteDeviceProfileReader is a Reader for the DeleteDeviceProfile structure.

func (*DeleteDeviceProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDeviceProfileTooManyRequests

type DeleteDeviceProfileTooManyRequests struct {
	Payload *models.ErrorResponse
}

DeleteDeviceProfileTooManyRequests handles this case with default header values.

Too many requests

func NewDeleteDeviceProfileTooManyRequests

func NewDeleteDeviceProfileTooManyRequests() *DeleteDeviceProfileTooManyRequests

NewDeleteDeviceProfileTooManyRequests creates a DeleteDeviceProfileTooManyRequests with default headers values

func (*DeleteDeviceProfileTooManyRequests) Error

func (*DeleteDeviceProfileTooManyRequests) GetPayload

type DeleteDeviceProfileUnauthorized

type DeleteDeviceProfileUnauthorized struct {
}

DeleteDeviceProfileUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteDeviceProfileUnauthorized

func NewDeleteDeviceProfileUnauthorized() *DeleteDeviceProfileUnauthorized

NewDeleteDeviceProfileUnauthorized creates a DeleteDeviceProfileUnauthorized with default headers values

func (*DeleteDeviceProfileUnauthorized) Error

type GetDeviceProfileBadRequest

type GetDeviceProfileBadRequest struct {
	Payload *models.ErrorResponse
}

GetDeviceProfileBadRequest handles this case with default header values.

Bad request

func NewGetDeviceProfileBadRequest

func NewGetDeviceProfileBadRequest() *GetDeviceProfileBadRequest

NewGetDeviceProfileBadRequest creates a GetDeviceProfileBadRequest with default headers values

func (*GetDeviceProfileBadRequest) Error

func (*GetDeviceProfileBadRequest) GetPayload

type GetDeviceProfileDefault

type GetDeviceProfileDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

GetDeviceProfileDefault handles this case with default header values.

Unexpected error

func NewGetDeviceProfileDefault

func NewGetDeviceProfileDefault(code int) *GetDeviceProfileDefault

NewGetDeviceProfileDefault creates a GetDeviceProfileDefault with default headers values

func (*GetDeviceProfileDefault) Code

func (o *GetDeviceProfileDefault) Code() int

Code gets the status code for the get device profile default response

func (*GetDeviceProfileDefault) Error

func (o *GetDeviceProfileDefault) Error() string

func (*GetDeviceProfileDefault) GetPayload

func (o *GetDeviceProfileDefault) GetPayload() *models.ErrorResponse

type GetDeviceProfileForbidden

type GetDeviceProfileForbidden struct {
}

GetDeviceProfileForbidden handles this case with default header values.

Forbidden

func NewGetDeviceProfileForbidden

func NewGetDeviceProfileForbidden() *GetDeviceProfileForbidden

NewGetDeviceProfileForbidden creates a GetDeviceProfileForbidden with default headers values

func (*GetDeviceProfileForbidden) Error

func (o *GetDeviceProfileForbidden) Error() string

type GetDeviceProfileOK

type GetDeviceProfileOK struct {
	/*This header field describes the natural language(s) of the intended audience for the representation. This can have multiple values as per [RFC 7231, section 3.1.3.2](https://tools.ietf.org/html/rfc7231#section-3.1.3.2)
	 */
	ContentLanguage string

	Payload *models.DeviceProfileResponse
}

GetDeviceProfileOK handles this case with default header values.

A Device Profile

func NewGetDeviceProfileOK

func NewGetDeviceProfileOK() *GetDeviceProfileOK

NewGetDeviceProfileOK creates a GetDeviceProfileOK with default headers values

func (*GetDeviceProfileOK) Error

func (o *GetDeviceProfileOK) Error() string

func (*GetDeviceProfileOK) GetPayload

type GetDeviceProfileParams

type GetDeviceProfileParams struct {

	/*AcceptLanguage
	  Language header representing the client's preferred language. The format of the `Accept-Language` header follows what is defined in [RFC 7231, section 5.3.5](https://tools.ietf.org/html/rfc7231#section-5.3.5)

	*/
	AcceptLanguage *string
	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*DeviceProfileID
	  the device profile ID

	*/
	DeviceProfileID string

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

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

func NewGetDeviceProfileParams

func NewGetDeviceProfileParams() *GetDeviceProfileParams

NewGetDeviceProfileParams creates a new GetDeviceProfileParams object with the default values initialized.

func NewGetDeviceProfileParamsWithContext

func NewGetDeviceProfileParamsWithContext(ctx context.Context) *GetDeviceProfileParams

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

func NewGetDeviceProfileParamsWithHTTPClient

func NewGetDeviceProfileParamsWithHTTPClient(client *http.Client) *GetDeviceProfileParams

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

func NewGetDeviceProfileParamsWithTimeout

func NewGetDeviceProfileParamsWithTimeout(timeout time.Duration) *GetDeviceProfileParams

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

func (*GetDeviceProfileParams) SetAcceptLanguage

func (o *GetDeviceProfileParams) SetAcceptLanguage(acceptLanguage *string)

SetAcceptLanguage adds the acceptLanguage to the get device profile params

func (*GetDeviceProfileParams) SetAuthorization

func (o *GetDeviceProfileParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get device profile params

func (*GetDeviceProfileParams) SetContext

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

SetContext adds the context to the get device profile params

func (*GetDeviceProfileParams) SetDeviceProfileID

func (o *GetDeviceProfileParams) SetDeviceProfileID(deviceProfileID string)

SetDeviceProfileID adds the deviceProfileId to the get device profile params

func (*GetDeviceProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device profile params

func (*GetDeviceProfileParams) SetTimeout

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

SetTimeout adds the timeout to the get device profile params

func (*GetDeviceProfileParams) WithAcceptLanguage

func (o *GetDeviceProfileParams) WithAcceptLanguage(acceptLanguage *string) *GetDeviceProfileParams

WithAcceptLanguage adds the acceptLanguage to the get device profile params

func (*GetDeviceProfileParams) WithAuthorization

func (o *GetDeviceProfileParams) WithAuthorization(authorization string) *GetDeviceProfileParams

WithAuthorization adds the authorization to the get device profile params

func (*GetDeviceProfileParams) WithContext

WithContext adds the context to the get device profile params

func (*GetDeviceProfileParams) WithDeviceProfileID

func (o *GetDeviceProfileParams) WithDeviceProfileID(deviceProfileID string) *GetDeviceProfileParams

WithDeviceProfileID adds the deviceProfileID to the get device profile params

func (*GetDeviceProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get device profile params

func (*GetDeviceProfileParams) WithTimeout

WithTimeout adds the timeout to the get device profile params

func (*GetDeviceProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeviceProfileReader

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

GetDeviceProfileReader is a Reader for the GetDeviceProfile structure.

func (*GetDeviceProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeviceProfileTooManyRequests

type GetDeviceProfileTooManyRequests struct {
	Payload *models.ErrorResponse
}

GetDeviceProfileTooManyRequests handles this case with default header values.

Too many requests

func NewGetDeviceProfileTooManyRequests

func NewGetDeviceProfileTooManyRequests() *GetDeviceProfileTooManyRequests

NewGetDeviceProfileTooManyRequests creates a GetDeviceProfileTooManyRequests with default headers values

func (*GetDeviceProfileTooManyRequests) Error

func (*GetDeviceProfileTooManyRequests) GetPayload

type GetDeviceProfileUnauthorized

type GetDeviceProfileUnauthorized struct {
}

GetDeviceProfileUnauthorized handles this case with default header values.

Unauthorized

func NewGetDeviceProfileUnauthorized

func NewGetDeviceProfileUnauthorized() *GetDeviceProfileUnauthorized

NewGetDeviceProfileUnauthorized creates a GetDeviceProfileUnauthorized with default headers values

func (*GetDeviceProfileUnauthorized) Error

type ListDeviceProfilesBadRequest

type ListDeviceProfilesBadRequest struct {
	Payload *models.ErrorResponse
}

ListDeviceProfilesBadRequest handles this case with default header values.

Bad request

func NewListDeviceProfilesBadRequest

func NewListDeviceProfilesBadRequest() *ListDeviceProfilesBadRequest

NewListDeviceProfilesBadRequest creates a ListDeviceProfilesBadRequest with default headers values

func (*ListDeviceProfilesBadRequest) Error

func (*ListDeviceProfilesBadRequest) GetPayload

type ListDeviceProfilesDefault

type ListDeviceProfilesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListDeviceProfilesDefault handles this case with default header values.

Unexpected error

func NewListDeviceProfilesDefault

func NewListDeviceProfilesDefault(code int) *ListDeviceProfilesDefault

NewListDeviceProfilesDefault creates a ListDeviceProfilesDefault with default headers values

func (*ListDeviceProfilesDefault) Code

func (o *ListDeviceProfilesDefault) Code() int

Code gets the status code for the list device profiles default response

func (*ListDeviceProfilesDefault) Error

func (o *ListDeviceProfilesDefault) Error() string

func (*ListDeviceProfilesDefault) GetPayload

type ListDeviceProfilesForbidden

type ListDeviceProfilesForbidden struct {
}

ListDeviceProfilesForbidden handles this case with default header values.

Forbidden

func NewListDeviceProfilesForbidden

func NewListDeviceProfilesForbidden() *ListDeviceProfilesForbidden

NewListDeviceProfilesForbidden creates a ListDeviceProfilesForbidden with default headers values

func (*ListDeviceProfilesForbidden) Error

type ListDeviceProfilesOK

type ListDeviceProfilesOK struct {
	Payload *models.PagedDeviceProfiles
}

ListDeviceProfilesOK handles this case with default header values.

A list of the users device profiles.

func NewListDeviceProfilesOK

func NewListDeviceProfilesOK() *ListDeviceProfilesOK

NewListDeviceProfilesOK creates a ListDeviceProfilesOK with default headers values

func (*ListDeviceProfilesOK) Error

func (o *ListDeviceProfilesOK) Error() string

func (*ListDeviceProfilesOK) GetPayload

type ListDeviceProfilesParams

type ListDeviceProfilesParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*ProfileID
	  The device profiles IDs to filter the results by.


	*/
	ProfileID []string

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

ListDeviceProfilesParams contains all the parameters to send to the API endpoint for the list device profiles operation typically these are written to a http.Request

func NewListDeviceProfilesParams

func NewListDeviceProfilesParams() *ListDeviceProfilesParams

NewListDeviceProfilesParams creates a new ListDeviceProfilesParams object with the default values initialized.

func NewListDeviceProfilesParamsWithContext

func NewListDeviceProfilesParamsWithContext(ctx context.Context) *ListDeviceProfilesParams

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

func NewListDeviceProfilesParamsWithHTTPClient

func NewListDeviceProfilesParamsWithHTTPClient(client *http.Client) *ListDeviceProfilesParams

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

func NewListDeviceProfilesParamsWithTimeout

func NewListDeviceProfilesParamsWithTimeout(timeout time.Duration) *ListDeviceProfilesParams

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

func (*ListDeviceProfilesParams) SetAuthorization

func (o *ListDeviceProfilesParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the list device profiles params

func (*ListDeviceProfilesParams) SetContext

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

SetContext adds the context to the list device profiles params

func (*ListDeviceProfilesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list device profiles params

func (*ListDeviceProfilesParams) SetProfileID

func (o *ListDeviceProfilesParams) SetProfileID(profileID []string)

SetProfileID adds the profileId to the list device profiles params

func (*ListDeviceProfilesParams) SetTimeout

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

SetTimeout adds the timeout to the list device profiles params

func (*ListDeviceProfilesParams) WithAuthorization

func (o *ListDeviceProfilesParams) WithAuthorization(authorization string) *ListDeviceProfilesParams

WithAuthorization adds the authorization to the list device profiles params

func (*ListDeviceProfilesParams) WithContext

WithContext adds the context to the list device profiles params

func (*ListDeviceProfilesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list device profiles params

func (*ListDeviceProfilesParams) WithProfileID

func (o *ListDeviceProfilesParams) WithProfileID(profileID []string) *ListDeviceProfilesParams

WithProfileID adds the profileID to the list device profiles params

func (*ListDeviceProfilesParams) WithTimeout

WithTimeout adds the timeout to the list device profiles params

func (*ListDeviceProfilesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDeviceProfilesReader

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

ListDeviceProfilesReader is a Reader for the ListDeviceProfiles structure.

func (*ListDeviceProfilesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDeviceProfilesTooManyRequests

type ListDeviceProfilesTooManyRequests struct {
	Payload *models.ErrorResponse
}

ListDeviceProfilesTooManyRequests handles this case with default header values.

Too many requests

func NewListDeviceProfilesTooManyRequests

func NewListDeviceProfilesTooManyRequests() *ListDeviceProfilesTooManyRequests

NewListDeviceProfilesTooManyRequests creates a ListDeviceProfilesTooManyRequests with default headers values

func (*ListDeviceProfilesTooManyRequests) Error

func (*ListDeviceProfilesTooManyRequests) GetPayload

type ListDeviceProfilesUnauthorized

type ListDeviceProfilesUnauthorized struct {
}

ListDeviceProfilesUnauthorized handles this case with default header values.

Unauthorized

func NewListDeviceProfilesUnauthorized

func NewListDeviceProfilesUnauthorized() *ListDeviceProfilesUnauthorized

NewListDeviceProfilesUnauthorized creates a ListDeviceProfilesUnauthorized with default headers values

func (*ListDeviceProfilesUnauthorized) Error

type UpdateDeviceProfileBadRequest

type UpdateDeviceProfileBadRequest struct {
	Payload *models.ErrorResponse
}

UpdateDeviceProfileBadRequest handles this case with default header values.

Bad request

func NewUpdateDeviceProfileBadRequest

func NewUpdateDeviceProfileBadRequest() *UpdateDeviceProfileBadRequest

NewUpdateDeviceProfileBadRequest creates a UpdateDeviceProfileBadRequest with default headers values

func (*UpdateDeviceProfileBadRequest) Error

func (*UpdateDeviceProfileBadRequest) GetPayload

type UpdateDeviceProfileDefault

type UpdateDeviceProfileDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

UpdateDeviceProfileDefault handles this case with default header values.

Unexpected error

func NewUpdateDeviceProfileDefault

func NewUpdateDeviceProfileDefault(code int) *UpdateDeviceProfileDefault

NewUpdateDeviceProfileDefault creates a UpdateDeviceProfileDefault with default headers values

func (*UpdateDeviceProfileDefault) Code

func (o *UpdateDeviceProfileDefault) Code() int

Code gets the status code for the update device profile default response

func (*UpdateDeviceProfileDefault) Error

func (*UpdateDeviceProfileDefault) GetPayload

type UpdateDeviceProfileForbidden

type UpdateDeviceProfileForbidden struct {
}

UpdateDeviceProfileForbidden handles this case with default header values.

Forbidden

func NewUpdateDeviceProfileForbidden

func NewUpdateDeviceProfileForbidden() *UpdateDeviceProfileForbidden

NewUpdateDeviceProfileForbidden creates a UpdateDeviceProfileForbidden with default headers values

func (*UpdateDeviceProfileForbidden) Error

type UpdateDeviceProfileOK

type UpdateDeviceProfileOK struct {
	Payload *models.DeviceProfileResponse
}

UpdateDeviceProfileOK handles this case with default header values.

The device profile

func NewUpdateDeviceProfileOK

func NewUpdateDeviceProfileOK() *UpdateDeviceProfileOK

NewUpdateDeviceProfileOK creates a UpdateDeviceProfileOK with default headers values

func (*UpdateDeviceProfileOK) Error

func (o *UpdateDeviceProfileOK) Error() string

func (*UpdateDeviceProfileOK) GetPayload

type UpdateDeviceProfileParams

type UpdateDeviceProfileParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*DeviceProfileID
	  the device profile ID

	*/
	DeviceProfileID string
	/*Request
	  The device profile to be updated.

	*/
	Request *models.UpdateDeviceProfileRequest

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

UpdateDeviceProfileParams contains all the parameters to send to the API endpoint for the update device profile operation typically these are written to a http.Request

func NewUpdateDeviceProfileParams

func NewUpdateDeviceProfileParams() *UpdateDeviceProfileParams

NewUpdateDeviceProfileParams creates a new UpdateDeviceProfileParams object with the default values initialized.

func NewUpdateDeviceProfileParamsWithContext

func NewUpdateDeviceProfileParamsWithContext(ctx context.Context) *UpdateDeviceProfileParams

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

func NewUpdateDeviceProfileParamsWithHTTPClient

func NewUpdateDeviceProfileParamsWithHTTPClient(client *http.Client) *UpdateDeviceProfileParams

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

func NewUpdateDeviceProfileParamsWithTimeout

func NewUpdateDeviceProfileParamsWithTimeout(timeout time.Duration) *UpdateDeviceProfileParams

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

func (*UpdateDeviceProfileParams) SetAuthorization

func (o *UpdateDeviceProfileParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the update device profile params

func (*UpdateDeviceProfileParams) SetContext

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

SetContext adds the context to the update device profile params

func (*UpdateDeviceProfileParams) SetDeviceProfileID

func (o *UpdateDeviceProfileParams) SetDeviceProfileID(deviceProfileID string)

SetDeviceProfileID adds the deviceProfileId to the update device profile params

func (*UpdateDeviceProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update device profile params

func (*UpdateDeviceProfileParams) SetRequest

SetRequest adds the request to the update device profile params

func (*UpdateDeviceProfileParams) SetTimeout

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

SetTimeout adds the timeout to the update device profile params

func (*UpdateDeviceProfileParams) WithAuthorization

func (o *UpdateDeviceProfileParams) WithAuthorization(authorization string) *UpdateDeviceProfileParams

WithAuthorization adds the authorization to the update device profile params

func (*UpdateDeviceProfileParams) WithContext

WithContext adds the context to the update device profile params

func (*UpdateDeviceProfileParams) WithDeviceProfileID

func (o *UpdateDeviceProfileParams) WithDeviceProfileID(deviceProfileID string) *UpdateDeviceProfileParams

WithDeviceProfileID adds the deviceProfileID to the update device profile params

func (*UpdateDeviceProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update device profile params

func (*UpdateDeviceProfileParams) WithRequest

WithRequest adds the request to the update device profile params

func (*UpdateDeviceProfileParams) WithTimeout

WithTimeout adds the timeout to the update device profile params

func (*UpdateDeviceProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDeviceProfileReader

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

UpdateDeviceProfileReader is a Reader for the UpdateDeviceProfile structure.

func (*UpdateDeviceProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDeviceProfileTooManyRequests

type UpdateDeviceProfileTooManyRequests struct {
	Payload *models.ErrorResponse
}

UpdateDeviceProfileTooManyRequests handles this case with default header values.

Too many requests

func NewUpdateDeviceProfileTooManyRequests

func NewUpdateDeviceProfileTooManyRequests() *UpdateDeviceProfileTooManyRequests

NewUpdateDeviceProfileTooManyRequests creates a UpdateDeviceProfileTooManyRequests with default headers values

func (*UpdateDeviceProfileTooManyRequests) Error

func (*UpdateDeviceProfileTooManyRequests) GetPayload

type UpdateDeviceProfileUnauthorized

type UpdateDeviceProfileUnauthorized struct {
}

UpdateDeviceProfileUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateDeviceProfileUnauthorized

func NewUpdateDeviceProfileUnauthorized() *UpdateDeviceProfileUnauthorized

NewUpdateDeviceProfileUnauthorized creates a UpdateDeviceProfileUnauthorized with default headers values

func (*UpdateDeviceProfileUnauthorized) Error

Jump to

Keyboard shortcuts

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