cmaoapi

package
v0.0.0-...-d085fed Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cmaoapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewAssetCommentCreateRequest

func NewAssetCommentCreateRequest(server string, assetId AssetIdParam, body AssetCommentCreateJSONRequestBody) (*http.Request, error)

NewAssetCommentCreateRequest calls the generic AssetCommentCreate builder with application/json body

func NewAssetCommentCreateRequestWithBody

func NewAssetCommentCreateRequestWithBody(server string, assetId AssetIdParam, contentType string, body io.Reader) (*http.Request, error)

NewAssetCommentCreateRequestWithBody generates requests for AssetCommentCreate with any type of body

func NewAssetCommentDeleteRequest

func NewAssetCommentDeleteRequest(server string, assetId AssetIdParam, commentId CommentIdParam) (*http.Request, error)

NewAssetCommentDeleteRequest generates requests for AssetCommentDelete

func NewAssetCommentListRequest

func NewAssetCommentListRequest(server string, assetId AssetIdParam) (*http.Request, error)

NewAssetCommentListRequest generates requests for AssetCommentList

func NewAssetCommentUpdateRequest

func NewAssetCommentUpdateRequest(server string, assetId AssetIdParam, commentId CommentIdParam, body AssetCommentUpdateJSONRequestBody) (*http.Request, error)

NewAssetCommentUpdateRequest calls the generic AssetCommentUpdate builder with application/json body

func NewAssetCommentUpdateRequestWithBody

func NewAssetCommentUpdateRequestWithBody(server string, assetId AssetIdParam, commentId CommentIdParam, contentType string, body io.Reader) (*http.Request, error)

NewAssetCommentUpdateRequestWithBody generates requests for AssetCommentUpdate with any type of body

func NewAssetCreateRequest

func NewAssetCreateRequest(server string, projectId ProjectIdParam, body AssetCreateJSONRequestBody) (*http.Request, error)

NewAssetCreateRequest calls the generic AssetCreate builder with application/json body

func NewAssetCreateRequestWithBody

func NewAssetCreateRequestWithBody(server string, projectId ProjectIdParam, contentType string, body io.Reader) (*http.Request, error)

NewAssetCreateRequestWithBody generates requests for AssetCreate with any type of body

func NewAssetDeleteRequest

func NewAssetDeleteRequest(server string, assetId AssetIdParam) (*http.Request, error)

NewAssetDeleteRequest generates requests for AssetDelete

func NewAssetFilterRequest

func NewAssetFilterRequest(server string, projectId ProjectIdParam, params *AssetFilterParams) (*http.Request, error)

NewAssetFilterRequest generates requests for AssetFilter

func NewAssetGetRequest

func NewAssetGetRequest(server string, assetId AssetIdParam) (*http.Request, error)

NewAssetGetRequest generates requests for AssetGet

func NewItemCommentCreateRequest

func NewItemCommentCreateRequest(server string, itemId ItemIdParam, body ItemCommentCreateJSONRequestBody) (*http.Request, error)

NewItemCommentCreateRequest calls the generic ItemCommentCreate builder with application/json body

func NewItemCommentCreateRequestWithBody

func NewItemCommentCreateRequestWithBody(server string, itemId ItemIdParam, contentType string, body io.Reader) (*http.Request, error)

NewItemCommentCreateRequestWithBody generates requests for ItemCommentCreate with any type of body

func NewItemCommentDeleteRequest

func NewItemCommentDeleteRequest(server string, itemId ItemIdParam, commentId CommentIdParam) (*http.Request, error)

NewItemCommentDeleteRequest generates requests for ItemCommentDelete

func NewItemCommentListRequest

func NewItemCommentListRequest(server string, itemId ItemIdParam) (*http.Request, error)

NewItemCommentListRequest generates requests for ItemCommentList

func NewItemCommentUpdateRequest

func NewItemCommentUpdateRequest(server string, itemId ItemIdParam, commentId CommentIdParam, body ItemCommentUpdateJSONRequestBody) (*http.Request, error)

NewItemCommentUpdateRequest calls the generic ItemCommentUpdate builder with application/json body

func NewItemCommentUpdateRequestWithBody

func NewItemCommentUpdateRequestWithBody(server string, itemId ItemIdParam, commentId CommentIdParam, contentType string, body io.Reader) (*http.Request, error)

NewItemCommentUpdateRequestWithBody generates requests for ItemCommentUpdate with any type of body

func NewItemCreateRequest

func NewItemCreateRequest(server string, modelId ModelIdParam, body ItemCreateJSONRequestBody) (*http.Request, error)

NewItemCreateRequest calls the generic ItemCreate builder with application/json body

func NewItemCreateRequestWithBody

func NewItemCreateRequestWithBody(server string, modelId ModelIdParam, contentType string, body io.Reader) (*http.Request, error)

NewItemCreateRequestWithBody generates requests for ItemCreate with any type of body

func NewItemCreateWithProjectRequest

func NewItemCreateWithProjectRequest(server string, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, body ItemCreateWithProjectJSONRequestBody) (*http.Request, error)

NewItemCreateWithProjectRequest calls the generic ItemCreateWithProject builder with application/json body

func NewItemCreateWithProjectRequestWithBody

func NewItemCreateWithProjectRequestWithBody(server string, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, contentType string, body io.Reader) (*http.Request, error)

NewItemCreateWithProjectRequestWithBody generates requests for ItemCreateWithProject with any type of body

func NewItemDeleteRequest

func NewItemDeleteRequest(server string, itemId ItemIdParam) (*http.Request, error)

NewItemDeleteRequest generates requests for ItemDelete

func NewItemFilterRequest

func NewItemFilterRequest(server string, modelId ModelIdParam, params *ItemFilterParams) (*http.Request, error)

NewItemFilterRequest generates requests for ItemFilter

func NewItemFilterWithProjectRequest

func NewItemFilterWithProjectRequest(server string, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, params *ItemFilterWithProjectParams) (*http.Request, error)

NewItemFilterWithProjectRequest generates requests for ItemFilterWithProject

func NewItemGetRequest

func NewItemGetRequest(server string, itemId ItemIdParam, params *ItemGetParams) (*http.Request, error)

NewItemGetRequest generates requests for ItemGet

func NewItemUpdateRequest

func NewItemUpdateRequest(server string, itemId ItemIdParam, body ItemUpdateJSONRequestBody) (*http.Request, error)

NewItemUpdateRequest calls the generic ItemUpdate builder with application/json body

func NewItemUpdateRequestWithBody

func NewItemUpdateRequestWithBody(server string, itemId ItemIdParam, contentType string, body io.Reader) (*http.Request, error)

NewItemUpdateRequestWithBody generates requests for ItemUpdate with any type of body

func NewModelGetRequest

func NewModelGetRequest(server string, modelId ModelIdParam) (*http.Request, error)

NewModelGetRequest generates requests for ModelGet

func NewModelGetWithProjectRequest

func NewModelGetWithProjectRequest(server string, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam) (*http.Request, error)

NewModelGetWithProjectRequest generates requests for ModelGetWithProject

Types

type Asset

type Asset struct {
	ArchiveExtractionStatus *AssetArchiveExtractionStatus `json:"archiveExtractionStatus,omitempty"`
	ContentType             *string                       `json:"contentType,omitempty"`
	CreatedAt               time.Time                     `json:"createdAt"`
	File                    *File                         `json:"file,omitempty"`
	Id                      string                        `json:"id"`
	Name                    *string                       `json:"name,omitempty"`
	PreviewType             *AssetPreviewType             `json:"previewType,omitempty"`
	ProjectId               string                        `json:"projectId"`
	TotalSize               *float32                      `json:"totalSize,omitempty"`
	UpdatedAt               time.Time                     `json:"updatedAt"`
	Url                     string                        `json:"url"`
}

Asset defines model for asset.

type AssetArchiveExtractionStatus

type AssetArchiveExtractionStatus string

AssetArchiveExtractionStatus defines model for Asset.ArchiveExtractionStatus.

const (
	Done       AssetArchiveExtractionStatus = "done"
	Failed     AssetArchiveExtractionStatus = "failed"
	InProgress AssetArchiveExtractionStatus = "in_progress"
	Pending    AssetArchiveExtractionStatus = "pending"
)

Defines values for AssetArchiveExtractionStatus.

type AssetCommentCreateJSONBody

type AssetCommentCreateJSONBody struct {
	Content *string `json:"content,omitempty"`
}

AssetCommentCreateJSONBody defines parameters for AssetCommentCreate.

type AssetCommentCreateJSONRequestBody

type AssetCommentCreateJSONRequestBody AssetCommentCreateJSONBody

AssetCommentCreateJSONRequestBody defines body for AssetCommentCreate for application/json ContentType.

type AssetCommentCreateResponse

type AssetCommentCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Comment
}

func ParseAssetCommentCreateResponse

func ParseAssetCommentCreateResponse(rsp *http.Response) (*AssetCommentCreateResponse, error)

ParseAssetCommentCreateResponse parses an HTTP response from a AssetCommentCreateWithResponse call

func (AssetCommentCreateResponse) Status

Status returns HTTPResponse.Status

func (AssetCommentCreateResponse) StatusCode

func (r AssetCommentCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetCommentDeleteResponse

type AssetCommentDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id *string `json:"id,omitempty"`
	}
}

func ParseAssetCommentDeleteResponse

func ParseAssetCommentDeleteResponse(rsp *http.Response) (*AssetCommentDeleteResponse, error)

ParseAssetCommentDeleteResponse parses an HTTP response from a AssetCommentDeleteWithResponse call

func (AssetCommentDeleteResponse) Status

Status returns HTTPResponse.Status

func (AssetCommentDeleteResponse) StatusCode

func (r AssetCommentDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetCommentListResponse

type AssetCommentListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Comments *[]Comment `json:"comments,omitempty"`
	}
}

func ParseAssetCommentListResponse

func ParseAssetCommentListResponse(rsp *http.Response) (*AssetCommentListResponse, error)

ParseAssetCommentListResponse parses an HTTP response from a AssetCommentListWithResponse call

func (AssetCommentListResponse) Status

func (r AssetCommentListResponse) Status() string

Status returns HTTPResponse.Status

func (AssetCommentListResponse) StatusCode

func (r AssetCommentListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetCommentUpdateJSONBody

type AssetCommentUpdateJSONBody struct {
	Content *string `json:"content,omitempty"`
}

AssetCommentUpdateJSONBody defines parameters for AssetCommentUpdate.

type AssetCommentUpdateJSONRequestBody

type AssetCommentUpdateJSONRequestBody AssetCommentUpdateJSONBody

AssetCommentUpdateJSONRequestBody defines body for AssetCommentUpdate for application/json ContentType.

type AssetCommentUpdateResponse

type AssetCommentUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Comment
}

func ParseAssetCommentUpdateResponse

func ParseAssetCommentUpdateResponse(rsp *http.Response) (*AssetCommentUpdateResponse, error)

ParseAssetCommentUpdateResponse parses an HTTP response from a AssetCommentUpdateWithResponse call

func (AssetCommentUpdateResponse) Status

Status returns HTTPResponse.Status

func (AssetCommentUpdateResponse) StatusCode

func (r AssetCommentUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetCreateJSONBody

type AssetCreateJSONBody struct {
	SkipDecompression *bool   `json:"skipDecompression"`
	Url               *string `json:"url,omitempty"`
}

AssetCreateJSONBody defines parameters for AssetCreate.

type AssetCreateJSONRequestBody

type AssetCreateJSONRequestBody AssetCreateJSONBody

AssetCreateJSONRequestBody defines body for AssetCreate for application/json ContentType.

type AssetCreateMultipartBody

type AssetCreateMultipartBody struct {
	File              *openapi_types.File `json:"file,omitempty"`
	SkipDecompression *bool               `json:"skipDecompression,omitempty"`
}

AssetCreateMultipartBody defines parameters for AssetCreate.

type AssetCreateMultipartRequestBody

type AssetCreateMultipartRequestBody AssetCreateMultipartBody

AssetCreateMultipartRequestBody defines body for AssetCreate for multipart/form-data ContentType.

type AssetCreateResponse

type AssetCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Asset
}

func ParseAssetCreateResponse

func ParseAssetCreateResponse(rsp *http.Response) (*AssetCreateResponse, error)

ParseAssetCreateResponse parses an HTTP response from a AssetCreateWithResponse call

func (AssetCreateResponse) Status

func (r AssetCreateResponse) Status() string

Status returns HTTPResponse.Status

func (AssetCreateResponse) StatusCode

func (r AssetCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetDeleteResponse

type AssetDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id *string `json:"id,omitempty"`
	}
}

func ParseAssetDeleteResponse

func ParseAssetDeleteResponse(rsp *http.Response) (*AssetDeleteResponse, error)

ParseAssetDeleteResponse parses an HTTP response from a AssetDeleteWithResponse call

func (AssetDeleteResponse) Status

func (r AssetDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (AssetDeleteResponse) StatusCode

func (r AssetDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetEmbedding

type AssetEmbedding string

AssetEmbedding defines model for assetEmbedding.

const (
	All   AssetEmbedding = "all"
	False AssetEmbedding = "false"
	True  AssetEmbedding = "true"
)

Defines values for AssetEmbedding.

type AssetFilterParams

type AssetFilterParams struct {
	// Sort Used to define the order of the response list
	Sort *AssetFilterParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
	Dir *AssetFilterParamsDir `form:"dir,omitempty" json:"dir,omitempty"`

	// Page Used to select the page
	Page *PageParam `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Used to select the page
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

AssetFilterParams defines parameters for AssetFilter.

type AssetFilterParamsDir

type AssetFilterParamsDir string

AssetFilterParamsDir defines parameters for AssetFilter.

const (
	AssetFilterParamsDirAsc  AssetFilterParamsDir = "asc"
	AssetFilterParamsDirDesc AssetFilterParamsDir = "desc"
)

Defines values for AssetFilterParamsDir.

type AssetFilterParamsSort

type AssetFilterParamsSort string

AssetFilterParamsSort defines parameters for AssetFilter.

const (
	AssetFilterParamsSortCreatedAt AssetFilterParamsSort = "createdAt"
	AssetFilterParamsSortUpdatedAt AssetFilterParamsSort = "updatedAt"
)

Defines values for AssetFilterParamsSort.

type AssetFilterResponse

type AssetFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items      *[]Asset `json:"items,omitempty"`
		Page       *int     `json:"page,omitempty"`
		PerPage    *int     `json:"perPage,omitempty"`
		TotalCount *int     `json:"totalCount,omitempty"`
	}
}

func ParseAssetFilterResponse

func ParseAssetFilterResponse(rsp *http.Response) (*AssetFilterResponse, error)

ParseAssetFilterResponse parses an HTTP response from a AssetFilterWithResponse call

func (AssetFilterResponse) Status

func (r AssetFilterResponse) Status() string

Status returns HTTPResponse.Status

func (AssetFilterResponse) StatusCode

func (r AssetFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetGetResponse

type AssetGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Asset
}

func ParseAssetGetResponse

func ParseAssetGetResponse(rsp *http.Response) (*AssetGetResponse, error)

ParseAssetGetResponse parses an HTTP response from a AssetGetWithResponse call

func (AssetGetResponse) Status

func (r AssetGetResponse) Status() string

Status returns HTTPResponse.Status

func (AssetGetResponse) StatusCode

func (r AssetGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AssetIdParam

type AssetIdParam = string

AssetIdParam defines model for assetIdParam.

type AssetParam

type AssetParam = AssetEmbedding

AssetParam defines model for assetParam.

type AssetPreviewType

type AssetPreviewType string

AssetPreviewType defines model for Asset.PreviewType.

const (
	Geo        AssetPreviewType = "geo"
	Geo3dTiles AssetPreviewType = "geo_3d_Tiles"
	GeoMvt     AssetPreviewType = "geo_mvt"
	Image      AssetPreviewType = "image"
	ImageSvg   AssetPreviewType = "image_svg"
	Model3d    AssetPreviewType = "model_3d"
	Unknown    AssetPreviewType = "unknown"
)

Defines values for AssetPreviewType.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AssetCommentCreate

func (c *Client) AssetCommentCreate(ctx context.Context, assetId AssetIdParam, body AssetCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetCommentCreateWithBody

func (c *Client) AssetCommentCreateWithBody(ctx context.Context, assetId AssetIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetCommentDelete

func (c *Client) AssetCommentDelete(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetCommentList

func (c *Client) AssetCommentList(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetCommentUpdate

func (c *Client) AssetCommentUpdate(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, body AssetCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetCommentUpdateWithBody

func (c *Client) AssetCommentUpdateWithBody(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetCreate

func (c *Client) AssetCreate(ctx context.Context, projectId ProjectIdParam, body AssetCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetCreateWithBody

func (c *Client) AssetCreateWithBody(ctx context.Context, projectId ProjectIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetDelete

func (c *Client) AssetDelete(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetFilter

func (c *Client) AssetFilter(ctx context.Context, projectId ProjectIdParam, params *AssetFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssetGet

func (c *Client) AssetGet(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCommentCreate

func (c *Client) ItemCommentCreate(ctx context.Context, itemId ItemIdParam, body ItemCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCommentCreateWithBody

func (c *Client) ItemCommentCreateWithBody(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCommentDelete

func (c *Client) ItemCommentDelete(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCommentList

func (c *Client) ItemCommentList(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCommentUpdate

func (c *Client) ItemCommentUpdate(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, body ItemCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCommentUpdateWithBody

func (c *Client) ItemCommentUpdateWithBody(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCreate

func (c *Client) ItemCreate(ctx context.Context, modelId ModelIdParam, body ItemCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCreateWithBody

func (c *Client) ItemCreateWithBody(ctx context.Context, modelId ModelIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCreateWithProject

func (c *Client) ItemCreateWithProject(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, body ItemCreateWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemCreateWithProjectWithBody

func (c *Client) ItemCreateWithProjectWithBody(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemDelete

func (c *Client) ItemDelete(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemFilter

func (c *Client) ItemFilter(ctx context.Context, modelId ModelIdParam, params *ItemFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemFilterWithProject

func (c *Client) ItemFilterWithProject(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, params *ItemFilterWithProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemGet

func (c *Client) ItemGet(ctx context.Context, itemId ItemIdParam, params *ItemGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemUpdate

func (c *Client) ItemUpdate(ctx context.Context, itemId ItemIdParam, body ItemUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ItemUpdateWithBody

func (c *Client) ItemUpdateWithBody(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModelGet

func (c *Client) ModelGet(ctx context.Context, modelId ModelIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModelGetWithProject

func (c *Client) ModelGetWithProject(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// AssetDelete request
	AssetDelete(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssetGet request
	AssetGet(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssetCommentList request
	AssetCommentList(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssetCommentCreateWithBody request with any body
	AssetCommentCreateWithBody(ctx context.Context, assetId AssetIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AssetCommentCreate(ctx context.Context, assetId AssetIdParam, body AssetCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssetCommentDelete request
	AssetCommentDelete(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssetCommentUpdateWithBody request with any body
	AssetCommentUpdateWithBody(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AssetCommentUpdate(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, body AssetCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemDelete request
	ItemDelete(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemGet request
	ItemGet(ctx context.Context, itemId ItemIdParam, params *ItemGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemUpdateWithBody request with any body
	ItemUpdateWithBody(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ItemUpdate(ctx context.Context, itemId ItemIdParam, body ItemUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemCommentList request
	ItemCommentList(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemCommentCreateWithBody request with any body
	ItemCommentCreateWithBody(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ItemCommentCreate(ctx context.Context, itemId ItemIdParam, body ItemCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemCommentDelete request
	ItemCommentDelete(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemCommentUpdateWithBody request with any body
	ItemCommentUpdateWithBody(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ItemCommentUpdate(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, body ItemCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModelGet request
	ModelGet(ctx context.Context, modelId ModelIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemFilter request
	ItemFilter(ctx context.Context, modelId ModelIdParam, params *ItemFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemCreateWithBody request with any body
	ItemCreateWithBody(ctx context.Context, modelId ModelIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ItemCreate(ctx context.Context, modelId ModelIdParam, body ItemCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModelGetWithProject request
	ModelGetWithProject(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemFilterWithProject request
	ItemFilterWithProject(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, params *ItemFilterWithProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ItemCreateWithProjectWithBody request with any body
	ItemCreateWithProjectWithBody(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ItemCreateWithProject(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, body ItemCreateWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssetFilter request
	AssetFilter(ctx context.Context, projectId ProjectIdParam, params *AssetFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssetCreateWithBody request with any body
	AssetCreateWithBody(ctx context.Context, projectId ProjectIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AssetCreate(ctx context.Context, projectId ProjectIdParam, body AssetCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AssetCommentCreateWithBodyWithResponse

func (c *ClientWithResponses) AssetCommentCreateWithBodyWithResponse(ctx context.Context, assetId AssetIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssetCommentCreateResponse, error)

AssetCommentCreateWithBodyWithResponse request with arbitrary body returning *AssetCommentCreateResponse

func (*ClientWithResponses) AssetCommentCreateWithResponse

func (c *ClientWithResponses) AssetCommentCreateWithResponse(ctx context.Context, assetId AssetIdParam, body AssetCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AssetCommentCreateResponse, error)

func (*ClientWithResponses) AssetCommentDeleteWithResponse

func (c *ClientWithResponses) AssetCommentDeleteWithResponse(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*AssetCommentDeleteResponse, error)

AssetCommentDeleteWithResponse request returning *AssetCommentDeleteResponse

func (*ClientWithResponses) AssetCommentListWithResponse

func (c *ClientWithResponses) AssetCommentListWithResponse(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*AssetCommentListResponse, error)

AssetCommentListWithResponse request returning *AssetCommentListResponse

func (*ClientWithResponses) AssetCommentUpdateWithBodyWithResponse

func (c *ClientWithResponses) AssetCommentUpdateWithBodyWithResponse(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssetCommentUpdateResponse, error)

AssetCommentUpdateWithBodyWithResponse request with arbitrary body returning *AssetCommentUpdateResponse

func (*ClientWithResponses) AssetCommentUpdateWithResponse

func (c *ClientWithResponses) AssetCommentUpdateWithResponse(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, body AssetCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*AssetCommentUpdateResponse, error)

func (*ClientWithResponses) AssetCreateWithBodyWithResponse

func (c *ClientWithResponses) AssetCreateWithBodyWithResponse(ctx context.Context, projectId ProjectIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssetCreateResponse, error)

AssetCreateWithBodyWithResponse request with arbitrary body returning *AssetCreateResponse

func (*ClientWithResponses) AssetCreateWithResponse

func (c *ClientWithResponses) AssetCreateWithResponse(ctx context.Context, projectId ProjectIdParam, body AssetCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AssetCreateResponse, error)

func (*ClientWithResponses) AssetDeleteWithResponse

func (c *ClientWithResponses) AssetDeleteWithResponse(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*AssetDeleteResponse, error)

AssetDeleteWithResponse request returning *AssetDeleteResponse

func (*ClientWithResponses) AssetFilterWithResponse

func (c *ClientWithResponses) AssetFilterWithResponse(ctx context.Context, projectId ProjectIdParam, params *AssetFilterParams, reqEditors ...RequestEditorFn) (*AssetFilterResponse, error)

AssetFilterWithResponse request returning *AssetFilterResponse

func (*ClientWithResponses) AssetGetWithResponse

func (c *ClientWithResponses) AssetGetWithResponse(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*AssetGetResponse, error)

AssetGetWithResponse request returning *AssetGetResponse

func (*ClientWithResponses) ItemCommentCreateWithBodyWithResponse

func (c *ClientWithResponses) ItemCommentCreateWithBodyWithResponse(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCommentCreateResponse, error)

ItemCommentCreateWithBodyWithResponse request with arbitrary body returning *ItemCommentCreateResponse

func (*ClientWithResponses) ItemCommentCreateWithResponse

func (c *ClientWithResponses) ItemCommentCreateWithResponse(ctx context.Context, itemId ItemIdParam, body ItemCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCommentCreateResponse, error)

func (*ClientWithResponses) ItemCommentDeleteWithResponse

func (c *ClientWithResponses) ItemCommentDeleteWithResponse(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*ItemCommentDeleteResponse, error)

ItemCommentDeleteWithResponse request returning *ItemCommentDeleteResponse

func (*ClientWithResponses) ItemCommentListWithResponse

func (c *ClientWithResponses) ItemCommentListWithResponse(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*ItemCommentListResponse, error)

ItemCommentListWithResponse request returning *ItemCommentListResponse

func (*ClientWithResponses) ItemCommentUpdateWithBodyWithResponse

func (c *ClientWithResponses) ItemCommentUpdateWithBodyWithResponse(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCommentUpdateResponse, error)

ItemCommentUpdateWithBodyWithResponse request with arbitrary body returning *ItemCommentUpdateResponse

func (*ClientWithResponses) ItemCommentUpdateWithResponse

func (c *ClientWithResponses) ItemCommentUpdateWithResponse(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, body ItemCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCommentUpdateResponse, error)

func (*ClientWithResponses) ItemCreateWithBodyWithResponse

func (c *ClientWithResponses) ItemCreateWithBodyWithResponse(ctx context.Context, modelId ModelIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCreateResponse, error)

ItemCreateWithBodyWithResponse request with arbitrary body returning *ItemCreateResponse

func (*ClientWithResponses) ItemCreateWithProjectWithBodyWithResponse

func (c *ClientWithResponses) ItemCreateWithProjectWithBodyWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCreateWithProjectResponse, error)

ItemCreateWithProjectWithBodyWithResponse request with arbitrary body returning *ItemCreateWithProjectResponse

func (*ClientWithResponses) ItemCreateWithProjectWithResponse

func (c *ClientWithResponses) ItemCreateWithProjectWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, body ItemCreateWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCreateWithProjectResponse, error)

func (*ClientWithResponses) ItemCreateWithResponse

func (c *ClientWithResponses) ItemCreateWithResponse(ctx context.Context, modelId ModelIdParam, body ItemCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCreateResponse, error)

func (*ClientWithResponses) ItemDeleteWithResponse

func (c *ClientWithResponses) ItemDeleteWithResponse(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*ItemDeleteResponse, error)

ItemDeleteWithResponse request returning *ItemDeleteResponse

func (*ClientWithResponses) ItemFilterWithProjectWithResponse

func (c *ClientWithResponses) ItemFilterWithProjectWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, params *ItemFilterWithProjectParams, reqEditors ...RequestEditorFn) (*ItemFilterWithProjectResponse, error)

ItemFilterWithProjectWithResponse request returning *ItemFilterWithProjectResponse

func (*ClientWithResponses) ItemFilterWithResponse

func (c *ClientWithResponses) ItemFilterWithResponse(ctx context.Context, modelId ModelIdParam, params *ItemFilterParams, reqEditors ...RequestEditorFn) (*ItemFilterResponse, error)

ItemFilterWithResponse request returning *ItemFilterResponse

func (*ClientWithResponses) ItemGetWithResponse

func (c *ClientWithResponses) ItemGetWithResponse(ctx context.Context, itemId ItemIdParam, params *ItemGetParams, reqEditors ...RequestEditorFn) (*ItemGetResponse, error)

ItemGetWithResponse request returning *ItemGetResponse

func (*ClientWithResponses) ItemUpdateWithBodyWithResponse

func (c *ClientWithResponses) ItemUpdateWithBodyWithResponse(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemUpdateResponse, error)

ItemUpdateWithBodyWithResponse request with arbitrary body returning *ItemUpdateResponse

func (*ClientWithResponses) ItemUpdateWithResponse

func (c *ClientWithResponses) ItemUpdateWithResponse(ctx context.Context, itemId ItemIdParam, body ItemUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemUpdateResponse, error)

func (*ClientWithResponses) ModelGetWithProjectWithResponse

func (c *ClientWithResponses) ModelGetWithProjectWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, reqEditors ...RequestEditorFn) (*ModelGetWithProjectResponse, error)

ModelGetWithProjectWithResponse request returning *ModelGetWithProjectResponse

func (*ClientWithResponses) ModelGetWithResponse

func (c *ClientWithResponses) ModelGetWithResponse(ctx context.Context, modelId ModelIdParam, reqEditors ...RequestEditorFn) (*ModelGetResponse, error)

ModelGetWithResponse request returning *ModelGetResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AssetDeleteWithResponse request
	AssetDeleteWithResponse(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*AssetDeleteResponse, error)

	// AssetGetWithResponse request
	AssetGetWithResponse(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*AssetGetResponse, error)

	// AssetCommentListWithResponse request
	AssetCommentListWithResponse(ctx context.Context, assetId AssetIdParam, reqEditors ...RequestEditorFn) (*AssetCommentListResponse, error)

	// AssetCommentCreateWithBodyWithResponse request with any body
	AssetCommentCreateWithBodyWithResponse(ctx context.Context, assetId AssetIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssetCommentCreateResponse, error)

	AssetCommentCreateWithResponse(ctx context.Context, assetId AssetIdParam, body AssetCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AssetCommentCreateResponse, error)

	// AssetCommentDeleteWithResponse request
	AssetCommentDeleteWithResponse(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*AssetCommentDeleteResponse, error)

	// AssetCommentUpdateWithBodyWithResponse request with any body
	AssetCommentUpdateWithBodyWithResponse(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssetCommentUpdateResponse, error)

	AssetCommentUpdateWithResponse(ctx context.Context, assetId AssetIdParam, commentId CommentIdParam, body AssetCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*AssetCommentUpdateResponse, error)

	// ItemDeleteWithResponse request
	ItemDeleteWithResponse(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*ItemDeleteResponse, error)

	// ItemGetWithResponse request
	ItemGetWithResponse(ctx context.Context, itemId ItemIdParam, params *ItemGetParams, reqEditors ...RequestEditorFn) (*ItemGetResponse, error)

	// ItemUpdateWithBodyWithResponse request with any body
	ItemUpdateWithBodyWithResponse(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemUpdateResponse, error)

	ItemUpdateWithResponse(ctx context.Context, itemId ItemIdParam, body ItemUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemUpdateResponse, error)

	// ItemCommentListWithResponse request
	ItemCommentListWithResponse(ctx context.Context, itemId ItemIdParam, reqEditors ...RequestEditorFn) (*ItemCommentListResponse, error)

	// ItemCommentCreateWithBodyWithResponse request with any body
	ItemCommentCreateWithBodyWithResponse(ctx context.Context, itemId ItemIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCommentCreateResponse, error)

	ItemCommentCreateWithResponse(ctx context.Context, itemId ItemIdParam, body ItemCommentCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCommentCreateResponse, error)

	// ItemCommentDeleteWithResponse request
	ItemCommentDeleteWithResponse(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, reqEditors ...RequestEditorFn) (*ItemCommentDeleteResponse, error)

	// ItemCommentUpdateWithBodyWithResponse request with any body
	ItemCommentUpdateWithBodyWithResponse(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCommentUpdateResponse, error)

	ItemCommentUpdateWithResponse(ctx context.Context, itemId ItemIdParam, commentId CommentIdParam, body ItemCommentUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCommentUpdateResponse, error)

	// ModelGetWithResponse request
	ModelGetWithResponse(ctx context.Context, modelId ModelIdParam, reqEditors ...RequestEditorFn) (*ModelGetResponse, error)

	// ItemFilterWithResponse request
	ItemFilterWithResponse(ctx context.Context, modelId ModelIdParam, params *ItemFilterParams, reqEditors ...RequestEditorFn) (*ItemFilterResponse, error)

	// ItemCreateWithBodyWithResponse request with any body
	ItemCreateWithBodyWithResponse(ctx context.Context, modelId ModelIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCreateResponse, error)

	ItemCreateWithResponse(ctx context.Context, modelId ModelIdParam, body ItemCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCreateResponse, error)

	// ModelGetWithProjectWithResponse request
	ModelGetWithProjectWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, reqEditors ...RequestEditorFn) (*ModelGetWithProjectResponse, error)

	// ItemFilterWithProjectWithResponse request
	ItemFilterWithProjectWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, params *ItemFilterWithProjectParams, reqEditors ...RequestEditorFn) (*ItemFilterWithProjectResponse, error)

	// ItemCreateWithProjectWithBodyWithResponse request with any body
	ItemCreateWithProjectWithBodyWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ItemCreateWithProjectResponse, error)

	ItemCreateWithProjectWithResponse(ctx context.Context, projectIdOrAlias ProjectIdOrAliasParam, modelIdOrKey ModelIdOrKeyParam, body ItemCreateWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*ItemCreateWithProjectResponse, error)

	// AssetFilterWithResponse request
	AssetFilterWithResponse(ctx context.Context, projectId ProjectIdParam, params *AssetFilterParams, reqEditors ...RequestEditorFn) (*AssetFilterResponse, error)

	// AssetCreateWithBodyWithResponse request with any body
	AssetCreateWithBodyWithResponse(ctx context.Context, projectId ProjectIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssetCreateResponse, error)

	AssetCreateWithResponse(ctx context.Context, projectId ProjectIdParam, body AssetCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*AssetCreateResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Comment

type Comment struct {
	AuthorId   *string            `json:"authorId,omitempty"`
	AuthorType *CommentAuthorType `json:"authorType,omitempty"`
	Content    *string            `json:"content,omitempty"`
	CreatedAt  *time.Time         `json:"createdAt,omitempty"`
	Id         *string            `json:"id,omitempty"`
}

Comment defines model for comment.

type CommentAuthorType

type CommentAuthorType string

CommentAuthorType defines model for Comment.AuthorType.

const (
	Integrtaion CommentAuthorType = "integrtaion"
	User        CommentAuthorType = "user"
)

Defines values for CommentAuthorType.

type CommentIdParam

type CommentIdParam = string

CommentIdParam defines model for commentIdParam.

type Field

type Field struct {
	Group *string      `json:"group,omitempty"`
	Id    *string      `json:"id,omitempty"`
	Key   *string      `json:"key,omitempty"`
	Type  *ValueType   `json:"type,omitempty"`
	Value *interface{} `json:"value,omitempty"`
}

Field defines model for field.

type File

type File struct {
	Children    *[]File  `json:"children,omitempty"`
	ContentType *string  `json:"contentType,omitempty"`
	Name        *string  `json:"name,omitempty"`
	Path        *string  `json:"path,omitempty"`
	Size        *float32 `json:"size,omitempty"`
}

File defines model for file.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ItemCommentCreateJSONBody

type ItemCommentCreateJSONBody struct {
	Content *string `json:"content,omitempty"`
}

ItemCommentCreateJSONBody defines parameters for ItemCommentCreate.

type ItemCommentCreateJSONRequestBody

type ItemCommentCreateJSONRequestBody ItemCommentCreateJSONBody

ItemCommentCreateJSONRequestBody defines body for ItemCommentCreate for application/json ContentType.

type ItemCommentCreateResponse

type ItemCommentCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Comment
}

func ParseItemCommentCreateResponse

func ParseItemCommentCreateResponse(rsp *http.Response) (*ItemCommentCreateResponse, error)

ParseItemCommentCreateResponse parses an HTTP response from a ItemCommentCreateWithResponse call

func (ItemCommentCreateResponse) Status

func (r ItemCommentCreateResponse) Status() string

Status returns HTTPResponse.Status

func (ItemCommentCreateResponse) StatusCode

func (r ItemCommentCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemCommentDeleteResponse

type ItemCommentDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id *string `json:"id,omitempty"`
	}
}

func ParseItemCommentDeleteResponse

func ParseItemCommentDeleteResponse(rsp *http.Response) (*ItemCommentDeleteResponse, error)

ParseItemCommentDeleteResponse parses an HTTP response from a ItemCommentDeleteWithResponse call

func (ItemCommentDeleteResponse) Status

func (r ItemCommentDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (ItemCommentDeleteResponse) StatusCode

func (r ItemCommentDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemCommentListResponse

type ItemCommentListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Comments *[]Comment `json:"comments,omitempty"`
	}
}

func ParseItemCommentListResponse

func ParseItemCommentListResponse(rsp *http.Response) (*ItemCommentListResponse, error)

ParseItemCommentListResponse parses an HTTP response from a ItemCommentListWithResponse call

func (ItemCommentListResponse) Status

func (r ItemCommentListResponse) Status() string

Status returns HTTPResponse.Status

func (ItemCommentListResponse) StatusCode

func (r ItemCommentListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemCommentUpdateJSONBody

type ItemCommentUpdateJSONBody struct {
	Content *string `json:"content,omitempty"`
}

ItemCommentUpdateJSONBody defines parameters for ItemCommentUpdate.

type ItemCommentUpdateJSONRequestBody

type ItemCommentUpdateJSONRequestBody ItemCommentUpdateJSONBody

ItemCommentUpdateJSONRequestBody defines body for ItemCommentUpdate for application/json ContentType.

type ItemCommentUpdateResponse

type ItemCommentUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Comment
}

func ParseItemCommentUpdateResponse

func ParseItemCommentUpdateResponse(rsp *http.Response) (*ItemCommentUpdateResponse, error)

ParseItemCommentUpdateResponse parses an HTTP response from a ItemCommentUpdateWithResponse call

func (ItemCommentUpdateResponse) Status

func (r ItemCommentUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (ItemCommentUpdateResponse) StatusCode

func (r ItemCommentUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemCreateJSONBody

type ItemCreateJSONBody struct {
	Fields         *[]Field `json:"fields,omitempty"`
	MetadataFields *[]Field `json:"metadataFields,omitempty"`
}

ItemCreateJSONBody defines parameters for ItemCreate.

type ItemCreateJSONRequestBody

type ItemCreateJSONRequestBody ItemCreateJSONBody

ItemCreateJSONRequestBody defines body for ItemCreate for application/json ContentType.

type ItemCreateResponse

type ItemCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionedItem
}

func ParseItemCreateResponse

func ParseItemCreateResponse(rsp *http.Response) (*ItemCreateResponse, error)

ParseItemCreateResponse parses an HTTP response from a ItemCreateWithResponse call

func (ItemCreateResponse) Status

func (r ItemCreateResponse) Status() string

Status returns HTTPResponse.Status

func (ItemCreateResponse) StatusCode

func (r ItemCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemCreateWithProjectJSONBody

type ItemCreateWithProjectJSONBody struct {
	Fields         *[]Field `json:"fields,omitempty"`
	MetadataFields *[]Field `json:"metadataFields,omitempty"`
}

ItemCreateWithProjectJSONBody defines parameters for ItemCreateWithProject.

type ItemCreateWithProjectJSONRequestBody

type ItemCreateWithProjectJSONRequestBody ItemCreateWithProjectJSONBody

ItemCreateWithProjectJSONRequestBody defines body for ItemCreateWithProject for application/json ContentType.

type ItemCreateWithProjectResponse

type ItemCreateWithProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionedItem
}

func ParseItemCreateWithProjectResponse

func ParseItemCreateWithProjectResponse(rsp *http.Response) (*ItemCreateWithProjectResponse, error)

ParseItemCreateWithProjectResponse parses an HTTP response from a ItemCreateWithProjectWithResponse call

func (ItemCreateWithProjectResponse) Status

Status returns HTTPResponse.Status

func (ItemCreateWithProjectResponse) StatusCode

func (r ItemCreateWithProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemDeleteResponse

type ItemDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id *string `json:"id,omitempty"`
	}
}

func ParseItemDeleteResponse

func ParseItemDeleteResponse(rsp *http.Response) (*ItemDeleteResponse, error)

ParseItemDeleteResponse parses an HTTP response from a ItemDeleteWithResponse call

func (ItemDeleteResponse) Status

func (r ItemDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (ItemDeleteResponse) StatusCode

func (r ItemDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemFilterParams

type ItemFilterParams struct {
	// Sort Used to define the order of the response list
	Sort *ItemFilterParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
	Dir *ItemFilterParamsDir `form:"dir,omitempty" json:"dir,omitempty"`

	// Page Used to select the page
	Page *PageParam `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Used to select the page
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`

	// Ref Used to select a ref or ver
	Ref *ItemFilterParamsRef `form:"ref,omitempty" json:"ref,omitempty"`

	// Asset Specifies whether asset data are embedded in the results
	Asset *AssetParam `form:"asset,omitempty" json:"asset,omitempty"`
}

ItemFilterParams defines parameters for ItemFilter.

type ItemFilterParamsDir

type ItemFilterParamsDir string

ItemFilterParamsDir defines parameters for ItemFilter.

const (
	ItemFilterParamsDirAsc  ItemFilterParamsDir = "asc"
	ItemFilterParamsDirDesc ItemFilterParamsDir = "desc"
)

Defines values for ItemFilterParamsDir.

type ItemFilterParamsRef

type ItemFilterParamsRef string

ItemFilterParamsRef defines parameters for ItemFilter.

const (
	ItemFilterParamsRefLatest ItemFilterParamsRef = "latest"
	ItemFilterParamsRefPublic ItemFilterParamsRef = "public"
)

Defines values for ItemFilterParamsRef.

type ItemFilterParamsSort

type ItemFilterParamsSort string

ItemFilterParamsSort defines parameters for ItemFilter.

const (
	ItemFilterParamsSortCreatedAt ItemFilterParamsSort = "createdAt"
	ItemFilterParamsSortUpdatedAt ItemFilterParamsSort = "updatedAt"
)

Defines values for ItemFilterParamsSort.

type ItemFilterResponse

type ItemFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items      *[]VersionedItem `json:"items,omitempty"`
		Page       *int             `json:"page,omitempty"`
		PerPage    *int             `json:"perPage,omitempty"`
		TotalCount *int             `json:"totalCount,omitempty"`
	}
}

func ParseItemFilterResponse

func ParseItemFilterResponse(rsp *http.Response) (*ItemFilterResponse, error)

ParseItemFilterResponse parses an HTTP response from a ItemFilterWithResponse call

func (ItemFilterResponse) Status

func (r ItemFilterResponse) Status() string

Status returns HTTPResponse.Status

func (ItemFilterResponse) StatusCode

func (r ItemFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemFilterWithProjectParams

type ItemFilterWithProjectParams struct {
	// Sort Used to define the order of the response list
	Sort *ItemFilterWithProjectParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
	Dir *ItemFilterWithProjectParamsDir `form:"dir,omitempty" json:"dir,omitempty"`

	// Page Used to select the page
	Page *PageParam `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Used to select the page
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`

	// Ref Used to select a ref or ver
	Ref *ItemFilterWithProjectParamsRef `form:"ref,omitempty" json:"ref,omitempty"`

	// Asset Specifies whether asset data are embedded in the results
	Asset *AssetParam `form:"asset,omitempty" json:"asset,omitempty"`
}

ItemFilterWithProjectParams defines parameters for ItemFilterWithProject.

type ItemFilterWithProjectParamsDir

type ItemFilterWithProjectParamsDir string

ItemFilterWithProjectParamsDir defines parameters for ItemFilterWithProject.

const (
	ItemFilterWithProjectParamsDirAsc  ItemFilterWithProjectParamsDir = "asc"
	ItemFilterWithProjectParamsDirDesc ItemFilterWithProjectParamsDir = "desc"
)

Defines values for ItemFilterWithProjectParamsDir.

type ItemFilterWithProjectParamsRef

type ItemFilterWithProjectParamsRef string

ItemFilterWithProjectParamsRef defines parameters for ItemFilterWithProject.

const (
	ItemFilterWithProjectParamsRefLatest ItemFilterWithProjectParamsRef = "latest"
	ItemFilterWithProjectParamsRefPublic ItemFilterWithProjectParamsRef = "public"
)

Defines values for ItemFilterWithProjectParamsRef.

type ItemFilterWithProjectParamsSort

type ItemFilterWithProjectParamsSort string

ItemFilterWithProjectParamsSort defines parameters for ItemFilterWithProject.

const (
	ItemFilterWithProjectParamsSortCreatedAt ItemFilterWithProjectParamsSort = "createdAt"
	ItemFilterWithProjectParamsSortUpdatedAt ItemFilterWithProjectParamsSort = "updatedAt"
)

Defines values for ItemFilterWithProjectParamsSort.

type ItemFilterWithProjectResponse

type ItemFilterWithProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items      *[]VersionedItem `json:"items,omitempty"`
		Page       *int             `json:"page,omitempty"`
		PerPage    *int             `json:"perPage,omitempty"`
		TotalCount *int             `json:"totalCount,omitempty"`
	}
}

func ParseItemFilterWithProjectResponse

func ParseItemFilterWithProjectResponse(rsp *http.Response) (*ItemFilterWithProjectResponse, error)

ParseItemFilterWithProjectResponse parses an HTTP response from a ItemFilterWithProjectWithResponse call

func (ItemFilterWithProjectResponse) Status

Status returns HTTPResponse.Status

func (ItemFilterWithProjectResponse) StatusCode

func (r ItemFilterWithProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemGetParams

type ItemGetParams struct {
	// Ref Used to select a ref or ver
	Ref *ItemGetParamsRef `form:"ref,omitempty" json:"ref,omitempty"`

	// Asset Specifies whether asset data are embedded in the results
	Asset *AssetParam `form:"asset,omitempty" json:"asset,omitempty"`
}

ItemGetParams defines parameters for ItemGet.

type ItemGetParamsRef

type ItemGetParamsRef string

ItemGetParamsRef defines parameters for ItemGet.

const (
	ItemGetParamsRefLatest ItemGetParamsRef = "latest"
	ItemGetParamsRefPublic ItemGetParamsRef = "public"
)

Defines values for ItemGetParamsRef.

type ItemGetResponse

type ItemGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionedItem
}

func ParseItemGetResponse

func ParseItemGetResponse(rsp *http.Response) (*ItemGetResponse, error)

ParseItemGetResponse parses an HTTP response from a ItemGetWithResponse call

func (ItemGetResponse) Status

func (r ItemGetResponse) Status() string

Status returns HTTPResponse.Status

func (ItemGetResponse) StatusCode

func (r ItemGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ItemIdParam

type ItemIdParam = string

ItemIdParam defines model for itemIdParam.

type ItemUpdateJSONBody

type ItemUpdateJSONBody struct {
	Asset          *AssetEmbedding `json:"asset,omitempty"`
	Fields         *[]Field        `json:"fields,omitempty"`
	MetadataFields *[]Field        `json:"metadataFields,omitempty"`
}

ItemUpdateJSONBody defines parameters for ItemUpdate.

type ItemUpdateJSONRequestBody

type ItemUpdateJSONRequestBody ItemUpdateJSONBody

ItemUpdateJSONRequestBody defines body for ItemUpdate for application/json ContentType.

type ItemUpdateResponse

type ItemUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionedItem
}

func ParseItemUpdateResponse

func ParseItemUpdateResponse(rsp *http.Response) (*ItemUpdateResponse, error)

ParseItemUpdateResponse parses an HTTP response from a ItemUpdateWithResponse call

func (ItemUpdateResponse) Status

func (r ItemUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (ItemUpdateResponse) StatusCode

func (r ItemUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Model

type Model struct {
	CreatedAt        *time.Time `json:"createdAt,omitempty"`
	Description      *string    `json:"description,omitempty"`
	Id               *string    `json:"id,omitempty"`
	Key              *string    `json:"key,omitempty"`
	LastModified     *time.Time `json:"lastModified,omitempty"`
	MetadataSchemaId *string    `json:"metadataSchemaId,omitempty"`
	Name             *string    `json:"name,omitempty"`
	ProjectId        *string    `json:"projectId,omitempty"`
	Public           *bool      `json:"public,omitempty"`
	SchemaId         *string    `json:"schemaId,omitempty"`
	UpdatedAt        *time.Time `json:"updatedAt,omitempty"`
}

Model defines model for model.

type ModelGetResponse

type ModelGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Model
}

func ParseModelGetResponse

func ParseModelGetResponse(rsp *http.Response) (*ModelGetResponse, error)

ParseModelGetResponse parses an HTTP response from a ModelGetWithResponse call

func (ModelGetResponse) Status

func (r ModelGetResponse) Status() string

Status returns HTTPResponse.Status

func (ModelGetResponse) StatusCode

func (r ModelGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModelGetWithProjectResponse

type ModelGetWithProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Model
}

func ParseModelGetWithProjectResponse

func ParseModelGetWithProjectResponse(rsp *http.Response) (*ModelGetWithProjectResponse, error)

ParseModelGetWithProjectResponse parses an HTTP response from a ModelGetWithProjectWithResponse call

func (ModelGetWithProjectResponse) Status

Status returns HTTPResponse.Status

func (ModelGetWithProjectResponse) StatusCode

func (r ModelGetWithProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModelIdOrKeyParam

type ModelIdOrKeyParam = string

ModelIdOrKeyParam defines model for modelIdOrKeyParam.

type ModelIdParam

type ModelIdParam = string

ModelIdParam defines model for modelIdParam.

type PageParam

type PageParam = int

PageParam defines model for pageParam.

type PerPageParam

type PerPageParam = int

PerPageParam defines model for perPageParam.

type ProjectIdOrAliasParam

type ProjectIdOrAliasParam = string

ProjectIdOrAliasParam defines model for projectIdOrAliasParam.

type ProjectIdParam

type ProjectIdParam = interface{}

ProjectIdParam defines model for projectIdParam.

type RefParam

type RefParam string

RefParam defines model for refParam.

const (
	RefParamLatest RefParam = "latest"
	RefParamPublic RefParam = "public"
)

Defines values for RefParam.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type SortDirParam

type SortDirParam string

SortDirParam defines model for sortDirParam.

const (
	SortDirParamAsc  SortDirParam = "asc"
	SortDirParamDesc SortDirParam = "desc"
)

Defines values for SortDirParam.

type SortParam

type SortParam string

SortParam defines model for sortParam.

const (
	SortParamCreatedAt SortParam = "createdAt"
	SortParamUpdatedAt SortParam = "updatedAt"
)

Defines values for SortParam.

type ValueType

type ValueType string

ValueType defines model for valueType.

const (
	ValueTypeAsset     ValueType = "asset"
	ValueTypeBool      ValueType = "bool"
	ValueTypeDate      ValueType = "date"
	ValueTypeGroup     ValueType = "group"
	ValueTypeInteger   ValueType = "integer"
	ValueTypeMarkdown  ValueType = "markdown"
	ValueTypeReference ValueType = "reference"
	ValueTypeRichText  ValueType = "richText"
	ValueTypeSelect    ValueType = "select"
	ValueTypeTag       ValueType = "tag"
	ValueTypeText      ValueType = "text"
	ValueTypeTextArea  ValueType = "textArea"
	ValueTypeUrl       ValueType = "url"
)

Defines values for ValueType.

type VersionedItem

type VersionedItem struct {
	CreatedAt       *time.Time            `json:"createdAt,omitempty"`
	Fields          *[]Field              `json:"fields,omitempty"`
	Id              *string               `json:"id,omitempty"`
	MetadataFields  *[]Field              `json:"metadataFields,omitempty"`
	ModelId         *string               `json:"modelId,omitempty"`
	Parents         *[]openapi_types.UUID `json:"parents,omitempty"`
	ReferencedItems *[]VersionedItem      `json:"referencedItems,omitempty"`
	Refs            *[]string             `json:"refs,omitempty"`
	UpdatedAt       *time.Time            `json:"updatedAt,omitempty"`
	Version         *openapi_types.UUID   `json:"version,omitempty"`
}

VersionedItem defines model for versionedItem.

Jump to

Keyboard shortcuts

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