client

package
v0.0.0-...-b9360c4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFirmwarePath

func AddFirmwarePath() string

AddFirmwarePath returns the URL path to the firmware service add HTTP endpoint.

func BuildAddPayload

func BuildAddPayload(firmwareAddBody string, firmwareAddAuth string) (*firmware.AddPayload, error)

BuildAddPayload builds the payload for the firmware add endpoint from CLI flags.

func BuildDeletePayload

func BuildDeletePayload(firmwareDeleteFirmwareID string, firmwareDeleteAuth string) (*firmware.DeletePayload, error)

BuildDeletePayload builds the payload for the firmware delete endpoint from CLI flags.

func BuildDownloadPayload

func BuildDownloadPayload(firmwareDownloadFirmwareID string) (*firmware.DownloadPayload, error)

BuildDownloadPayload builds the payload for the firmware download endpoint from CLI flags.

func BuildListPayload

func BuildListPayload(firmwareListModule string, firmwareListProfile string, firmwareListPageSize string, firmwareListPage string, firmwareListAuth string) (*firmware.ListPayload, error)

BuildListPayload builds the payload for the firmware list endpoint from CLI flags.

func DecodeAddResponse

func DecodeAddResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeAddResponse returns a decoder for responses returned by the firmware add endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAddResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeDeleteResponse

func DecodeDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDeleteResponse returns a decoder for responses returned by the firmware delete endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeDownloadResponse

func DecodeDownloadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDownloadResponse returns a decoder for responses returned by the firmware download endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDownloadResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DecodeListResponse

func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeListResponse returns a decoder for responses returned by the firmware list endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "not-found" (type *goa.ServiceError): http.StatusNotFound
  • "bad-request" (type *goa.ServiceError): http.StatusBadRequest
  • error: internal error

func DeleteFirmwarePath

func DeleteFirmwarePath(firmwareID int32) string

DeleteFirmwarePath returns the URL path to the firmware service delete HTTP endpoint.

func DownloadFirmwarePath

func DownloadFirmwarePath(firmwareID int32) string

DownloadFirmwarePath returns the URL path to the firmware service download HTTP endpoint.

func EncodeAddRequest

func EncodeAddRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeAddRequest returns an encoder for requests sent to the firmware add server.

func EncodeDeleteRequest

func EncodeDeleteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeDeleteRequest returns an encoder for requests sent to the firmware delete server.

func EncodeListRequest

func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeListRequest returns an encoder for requests sent to the firmware list server.

func ListFirmwarePath

func ListFirmwarePath() string

ListFirmwarePath returns the URL path to the firmware service list HTTP endpoint.

func NewAddBadRequest

func NewAddBadRequest(body *AddBadRequestResponseBody) *goa.ServiceError

NewAddBadRequest builds a firmware service add endpoint bad-request error.

func NewAddForbidden

func NewAddForbidden(body *AddForbiddenResponseBody) *goa.ServiceError

NewAddForbidden builds a firmware service add endpoint forbidden error.

func NewAddNotFound

func NewAddNotFound(body *AddNotFoundResponseBody) *goa.ServiceError

NewAddNotFound builds a firmware service add endpoint not-found error.

func NewAddUnauthorized

func NewAddUnauthorized(body *AddUnauthorizedResponseBody) *goa.ServiceError

NewAddUnauthorized builds a firmware service add endpoint unauthorized error.

func NewDeleteBadRequest

func NewDeleteBadRequest(body *DeleteBadRequestResponseBody) *goa.ServiceError

NewDeleteBadRequest builds a firmware service delete endpoint bad-request error.

func NewDeleteForbidden

func NewDeleteForbidden(body *DeleteForbiddenResponseBody) *goa.ServiceError

NewDeleteForbidden builds a firmware service delete endpoint forbidden error.

func NewDeleteNotFound

func NewDeleteNotFound(body *DeleteNotFoundResponseBody) *goa.ServiceError

NewDeleteNotFound builds a firmware service delete endpoint not-found error.

func NewDeleteUnauthorized

func NewDeleteUnauthorized(body *DeleteUnauthorizedResponseBody) *goa.ServiceError

NewDeleteUnauthorized builds a firmware service delete endpoint unauthorized error.

func NewDownloadBadRequest

func NewDownloadBadRequest(body *DownloadBadRequestResponseBody) *goa.ServiceError

NewDownloadBadRequest builds a firmware service download endpoint bad-request error.

func NewDownloadForbidden

func NewDownloadForbidden(body *DownloadForbiddenResponseBody) *goa.ServiceError

NewDownloadForbidden builds a firmware service download endpoint forbidden error.

func NewDownloadNotFound

func NewDownloadNotFound(body *DownloadNotFoundResponseBody) *goa.ServiceError

NewDownloadNotFound builds a firmware service download endpoint not-found error.

func NewDownloadResultOK

func NewDownloadResultOK(length int64, contentType string) *firmware.DownloadResult

NewDownloadResultOK builds a "firmware" service "download" endpoint result from a HTTP "OK" response.

func NewDownloadUnauthorized

func NewDownloadUnauthorized(body *DownloadUnauthorizedResponseBody) *goa.ServiceError

NewDownloadUnauthorized builds a firmware service download endpoint unauthorized error.

func NewListBadRequest

func NewListBadRequest(body *ListBadRequestResponseBody) *goa.ServiceError

NewListBadRequest builds a firmware service list endpoint bad-request error.

func NewListFirmwaresOK

func NewListFirmwaresOK(body *ListResponseBody) *firmwareviews.FirmwaresView

NewListFirmwaresOK builds a "firmware" service "list" endpoint result from a HTTP "OK" response.

func NewListForbidden

func NewListForbidden(body *ListForbiddenResponseBody) *goa.ServiceError

NewListForbidden builds a firmware service list endpoint forbidden error.

func NewListNotFound

func NewListNotFound(body *ListNotFoundResponseBody) *goa.ServiceError

NewListNotFound builds a firmware service list endpoint not-found error.

func NewListUnauthorized

func NewListUnauthorized(body *ListUnauthorizedResponseBody) *goa.ServiceError

NewListUnauthorized builds a firmware service list endpoint unauthorized error.

func ValidateAddBadRequestResponseBody

func ValidateAddBadRequestResponseBody(body *AddBadRequestResponseBody) (err error)

ValidateAddBadRequestResponseBody runs the validations defined on add_bad-request_response_body

func ValidateAddForbiddenResponseBody

func ValidateAddForbiddenResponseBody(body *AddForbiddenResponseBody) (err error)

ValidateAddForbiddenResponseBody runs the validations defined on add_forbidden_response_body

func ValidateAddNotFoundResponseBody

func ValidateAddNotFoundResponseBody(body *AddNotFoundResponseBody) (err error)

ValidateAddNotFoundResponseBody runs the validations defined on add_not-found_response_body

func ValidateAddUnauthorizedResponseBody

func ValidateAddUnauthorizedResponseBody(body *AddUnauthorizedResponseBody) (err error)

ValidateAddUnauthorizedResponseBody runs the validations defined on add_unauthorized_response_body

func ValidateDeleteBadRequestResponseBody

func ValidateDeleteBadRequestResponseBody(body *DeleteBadRequestResponseBody) (err error)

ValidateDeleteBadRequestResponseBody runs the validations defined on delete_bad-request_response_body

func ValidateDeleteForbiddenResponseBody

func ValidateDeleteForbiddenResponseBody(body *DeleteForbiddenResponseBody) (err error)

ValidateDeleteForbiddenResponseBody runs the validations defined on delete_forbidden_response_body

func ValidateDeleteNotFoundResponseBody

func ValidateDeleteNotFoundResponseBody(body *DeleteNotFoundResponseBody) (err error)

ValidateDeleteNotFoundResponseBody runs the validations defined on delete_not-found_response_body

func ValidateDeleteUnauthorizedResponseBody

func ValidateDeleteUnauthorizedResponseBody(body *DeleteUnauthorizedResponseBody) (err error)

ValidateDeleteUnauthorizedResponseBody runs the validations defined on delete_unauthorized_response_body

func ValidateDownloadBadRequestResponseBody

func ValidateDownloadBadRequestResponseBody(body *DownloadBadRequestResponseBody) (err error)

ValidateDownloadBadRequestResponseBody runs the validations defined on download_bad-request_response_body

func ValidateDownloadForbiddenResponseBody

func ValidateDownloadForbiddenResponseBody(body *DownloadForbiddenResponseBody) (err error)

ValidateDownloadForbiddenResponseBody runs the validations defined on download_forbidden_response_body

func ValidateDownloadNotFoundResponseBody

func ValidateDownloadNotFoundResponseBody(body *DownloadNotFoundResponseBody) (err error)

ValidateDownloadNotFoundResponseBody runs the validations defined on download_not-found_response_body

func ValidateDownloadUnauthorizedResponseBody

func ValidateDownloadUnauthorizedResponseBody(body *DownloadUnauthorizedResponseBody) (err error)

ValidateDownloadUnauthorizedResponseBody runs the validations defined on download_unauthorized_response_body

func ValidateFirmwareSummaryCollectionResponseBody

func ValidateFirmwareSummaryCollectionResponseBody(body FirmwareSummaryCollectionResponseBody) (err error)

ValidateFirmwareSummaryCollectionResponseBody runs the validations defined on FirmwareSummaryCollectionResponseBody

func ValidateFirmwareSummaryResponseBody

func ValidateFirmwareSummaryResponseBody(body *FirmwareSummaryResponseBody) (err error)

ValidateFirmwareSummaryResponseBody runs the validations defined on FirmwareSummaryResponseBody

func ValidateListBadRequestResponseBody

func ValidateListBadRequestResponseBody(body *ListBadRequestResponseBody) (err error)

ValidateListBadRequestResponseBody runs the validations defined on list_bad-request_response_body

func ValidateListForbiddenResponseBody

func ValidateListForbiddenResponseBody(body *ListForbiddenResponseBody) (err error)

ValidateListForbiddenResponseBody runs the validations defined on list_forbidden_response_body

func ValidateListNotFoundResponseBody

func ValidateListNotFoundResponseBody(body *ListNotFoundResponseBody) (err error)

ValidateListNotFoundResponseBody runs the validations defined on list_not-found_response_body

func ValidateListUnauthorizedResponseBody

func ValidateListUnauthorizedResponseBody(body *ListUnauthorizedResponseBody) (err error)

ValidateListUnauthorizedResponseBody runs the validations defined on list_unauthorized_response_body

Types

type AddBadRequestResponseBody

type AddBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddBadRequestResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "bad-request" error.

type AddForbiddenResponseBody

type AddForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddForbiddenResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "forbidden" error.

type AddNotFoundResponseBody

type AddNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddNotFoundResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "not-found" error.

type AddRequestBody

type AddRequestBody struct {
	Etag           string `form:"etag" json:"etag" xml:"etag"`
	Module         string `form:"module" json:"module" xml:"module"`
	Profile        string `form:"profile" json:"profile" xml:"profile"`
	Version        string `form:"version" json:"version" xml:"version"`
	URL            string `form:"url" json:"url" xml:"url"`
	Meta           string `form:"meta" json:"meta" xml:"meta"`
	LogicalAddress *int64 `form:"logicalAddress,omitempty" json:"logicalAddress,omitempty" xml:"logicalAddress,omitempty"`
}

AddRequestBody is the type of the "firmware" service "add" endpoint HTTP request body.

func NewAddRequestBody

func NewAddRequestBody(p *firmware.AddPayload) *AddRequestBody

NewAddRequestBody builds the HTTP request body from the payload of the "add" endpoint of the "firmware" service.

type AddUnauthorizedResponseBody

type AddUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

AddUnauthorizedResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "unauthorized" error.

type Client

type Client struct {
	// Download Doer is the HTTP client used to make requests to the download
	// endpoint.
	DownloadDoer goahttp.Doer

	// Add Doer is the HTTP client used to make requests to the add endpoint.
	AddDoer goahttp.Doer

	// List Doer is the HTTP client used to make requests to the list endpoint.
	ListDoer goahttp.Doer

	// Delete Doer is the HTTP client used to make requests to the delete endpoint.
	DeleteDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the firmware service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the firmware service servers.

func (*Client) Add

func (c *Client) Add() goa.Endpoint

Add returns an endpoint that makes HTTP requests to the firmware service add server.

func (*Client) BuildAddRequest

func (c *Client) BuildAddRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildAddRequest instantiates a HTTP request object with method and path set to call the "firmware" service "add" endpoint

func (*Client) BuildDeleteRequest

func (c *Client) BuildDeleteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDeleteRequest instantiates a HTTP request object with method and path set to call the "firmware" service "delete" endpoint

func (*Client) BuildDownloadRequest

func (c *Client) BuildDownloadRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDownloadRequest instantiates a HTTP request object with method and path set to call the "firmware" service "download" endpoint

func (*Client) BuildListRequest

func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildListRequest instantiates a HTTP request object with method and path set to call the "firmware" service "list" endpoint

func (*Client) Delete

func (c *Client) Delete() goa.Endpoint

Delete returns an endpoint that makes HTTP requests to the firmware service delete server.

func (*Client) Download

func (c *Client) Download() goa.Endpoint

Download returns an endpoint that makes HTTP requests to the firmware service download server.

func (*Client) List

func (c *Client) List() goa.Endpoint

List returns an endpoint that makes HTTP requests to the firmware service list server.

type DeleteBadRequestResponseBody

type DeleteBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteBadRequestResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "bad-request" error.

type DeleteForbiddenResponseBody

type DeleteForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteForbiddenResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "forbidden" error.

type DeleteNotFoundResponseBody

type DeleteNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteNotFoundResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "not-found" error.

type DeleteUnauthorizedResponseBody

type DeleteUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DeleteUnauthorizedResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "unauthorized" error.

type DownloadBadRequestResponseBody

type DownloadBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DownloadBadRequestResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "bad-request" error.

type DownloadForbiddenResponseBody

type DownloadForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DownloadForbiddenResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "forbidden" error.

type DownloadNotFoundResponseBody

type DownloadNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DownloadNotFoundResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "not-found" error.

type DownloadUnauthorizedResponseBody

type DownloadUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

DownloadUnauthorizedResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "unauthorized" error.

type FirmwareSummaryCollectionResponseBody

type FirmwareSummaryCollectionResponseBody []*FirmwareSummaryResponseBody

FirmwareSummaryCollectionResponseBody is used to define fields on response body types.

type FirmwareSummaryResponseBody

type FirmwareSummaryResponseBody struct {
	ID             *int32                 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	Time           *string                `form:"time,omitempty" json:"time,omitempty" xml:"time,omitempty"`
	Etag           *string                `form:"etag,omitempty" json:"etag,omitempty" xml:"etag,omitempty"`
	Module         *string                `form:"module,omitempty" json:"module,omitempty" xml:"module,omitempty"`
	Profile        *string                `form:"profile,omitempty" json:"profile,omitempty" xml:"profile,omitempty"`
	Version        *string                `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"`
	URL            *string                `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"`
	Meta           map[string]interface{} `form:"meta,omitempty" json:"meta,omitempty" xml:"meta,omitempty"`
	BuildNumber    *int32                 `form:"buildNumber,omitempty" json:"buildNumber,omitempty" xml:"buildNumber,omitempty"`
	BuildTime      *int64                 `form:"buildTime,omitempty" json:"buildTime,omitempty" xml:"buildTime,omitempty"`
	LogicalAddress *int64                 `form:"logicalAddress,omitempty" json:"logicalAddress,omitempty" xml:"logicalAddress,omitempty"`
}

FirmwareSummaryResponseBody is used to define fields on response body types.

type ListBadRequestResponseBody

type ListBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ListBadRequestResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "bad-request" error.

type ListForbiddenResponseBody

type ListForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ListForbiddenResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "forbidden" error.

type ListNotFoundResponseBody

type ListNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ListNotFoundResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "not-found" error.

type ListResponseBody

type ListResponseBody struct {
	Firmwares FirmwareSummaryCollectionResponseBody `form:"firmwares,omitempty" json:"firmwares,omitempty" xml:"firmwares,omitempty"`
}

ListResponseBody is the type of the "firmware" service "list" endpoint HTTP response body.

type ListUnauthorizedResponseBody

type ListUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ListUnauthorizedResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "unauthorized" error.

Jump to

Keyboard shortcuts

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