v20241221

package
v1.31.12 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActualVersion

type ActualVersion = string

ActualVersion Resolved API version

type EndingBefore

type EndingBefore = string

EndingBefore defines model for EndingBefore.

type Error

type Error struct {
	// Code An application-specific error code, expressed as a string value.
	Code *string `json:"code,omitempty"`

	// Detail A human-readable explanation specific to this occurrence of the problem.
	Detail string `json:"detail"`

	// Id A unique identifier for this particular occurrence of the problem.
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Links A link that leads to further details about this particular occurrance of the problem.
	Links  *ErrorLink              `json:"links,omitempty"`
	Meta   *map[string]interface{} `json:"meta,omitempty"`
	Source *struct {
		// Parameter A string indicating which URI query parameter caused the error.
		Parameter *string `json:"parameter,omitempty"`

		// Pointer A JSON Pointer [RFC6901] to the associated entity in the request document.
		Pointer *string `json:"pointer,omitempty"`
	} `json:"source,omitempty"`

	// Status The HTTP status code applicable to this problem, expressed as a string value.
	Status string `json:"status"`

	// Title A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	Title *string `json:"title,omitempty"`
}

Error defines model for Error.

type ErrorDocument

type ErrorDocument struct {
	Errors  []Error `json:"errors"`
	Jsonapi JsonApi `json:"jsonapi"`
}

ErrorDocument defines model for ErrorDocument.

type ErrorLink struct {
	About *LinkProperty `json:"about,omitempty"`
}

ErrorLink A link that leads to further details about this particular occurrance of the problem.

type JobAttributes

type JobAttributes struct {
	Status string `json:"status"`
}

JobAttributes defines model for JobAttributes.

type JobResource

type JobResource struct {
	Attributes JobAttributes      `json:"attributes"`
	Id         openapi_types.UUID `json:"id"`
	Links      SelfLink           `json:"links"`
	Type       JobResourceType    `json:"type"`
}

JobResource defines model for JobResource.

type JobResourceType

type JobResourceType string

JobResourceType defines model for JobResource.Type.

const (
	Job JobResourceType = "job"
)

Defines values for JobResourceType.

type JobResponse

type JobResponse struct {
	Data    *JobResource `json:"data,omitempty"`
	Jsonapi *JsonApi     `json:"jsonapi,omitempty"`
	Links   *SelfLink    `json:"links,omitempty"`
}

JobResponse defines model for JobResponse.

type JsonApi

type JsonApi struct {
	// Version Version of the JSON API specification this server supports.
	Version string `json:"version"`
}

JsonApi defines model for JsonApi.

type Limit

type Limit = int32

Limit defines model for Limit.

type LinkProperty

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

LinkProperty defines model for LinkProperty.

func (LinkProperty) AsLinkProperty0

func (t LinkProperty) AsLinkProperty0() (LinkProperty0, error)

AsLinkProperty0 returns the union data inside the LinkProperty as a LinkProperty0

func (LinkProperty) AsLinkProperty1

func (t LinkProperty) AsLinkProperty1() (LinkProperty1, error)

AsLinkProperty1 returns the union data inside the LinkProperty as a LinkProperty1

func (*LinkProperty) FromLinkProperty0

func (t *LinkProperty) FromLinkProperty0(v LinkProperty0) error

FromLinkProperty0 overwrites any union data inside the LinkProperty as the provided LinkProperty0

func (*LinkProperty) FromLinkProperty1

func (t *LinkProperty) FromLinkProperty1(v LinkProperty1) error

FromLinkProperty1 overwrites any union data inside the LinkProperty as the provided LinkProperty1

func (LinkProperty) MarshalJSON

func (t LinkProperty) MarshalJSON() ([]byte, error)

func (*LinkProperty) MergeLinkProperty0

func (t *LinkProperty) MergeLinkProperty0(v LinkProperty0) error

MergeLinkProperty0 performs a merge with any union data inside the LinkProperty, using the provided LinkProperty0

func (*LinkProperty) MergeLinkProperty1

func (t *LinkProperty) MergeLinkProperty1(v LinkProperty1) error

MergeLinkProperty1 performs a merge with any union data inside the LinkProperty, using the provided LinkProperty1

func (*LinkProperty) UnmarshalJSON

func (t *LinkProperty) UnmarshalJSON(b []byte) error

type LinkProperty0

type LinkProperty0 = string

LinkProperty0 A string containing the link’s URL.

type LinkProperty1

type LinkProperty1 struct {
	// Href A string containing the link’s URL.
	Href string `json:"href"`

	// Meta Free-form object that may contain non-standard information.
	Meta *Meta `json:"meta,omitempty"`
}

LinkProperty1 defines model for .

type Links struct {
	First   *LinkProperty `json:"first,omitempty"`
	Last    *LinkProperty `json:"last,omitempty"`
	Next    *LinkProperty `json:"next,omitempty"`
	Prev    *LinkProperty `json:"prev,omitempty"`
	Related *LinkProperty `json:"related,omitempty"`
	Self    *LinkProperty `json:"self,omitempty"`
}

Links defines model for Links.

type Meta

type Meta map[string]interface{}

Meta Free-form object that may contain non-standard information.

type MetaCount

type MetaCount string

MetaCount defines model for MetaCount.

const (
	Only MetaCount = "only"
	With MetaCount = "with"
)

Defines values for MetaCount.

type N202

type N202 = JobResponse

N202 defines model for 202.

type N303

type N303 = map[string]interface{}

N303 defines model for 303.

type N400

type N400 = ErrorDocument

N400 defines model for 400.

type N401

type N401 = ErrorDocument

N401 defines model for 401.

type N403

type N403 = ErrorDocument

N403 defines model for 403.

type N404

type N404 = ErrorDocument

N404 defines model for 404.

type N409

type N409 = ErrorDocument

N409 defines model for 409.

type N410

type N410 = ErrorDocument

N410 defines model for 410.

type N422

type N422 = ErrorDocument

N422 defines model for 422.

type N500

type N500 = ErrorDocument

N500 defines model for 500.

type PaginatedLinks struct {
	First *LinkProperty `json:"first,omitempty"`
	Last  *LinkProperty `json:"last,omitempty"`
	Next  *LinkProperty `json:"next,omitempty"`
	Prev  *LinkProperty `json:"prev,omitempty"`
	Self  *LinkProperty `json:"self,omitempty"`
}

PaginatedLinks defines model for PaginatedLinks.

type QueryVersion

type QueryVersion = string

QueryVersion Requested API version

type RelatedLink struct {
	Related *LinkProperty `json:"related,omitempty"`
}

RelatedLink defines model for RelatedLink.

type Relationship

type Relationship struct {
	Data struct {
		Id openapi_types.UUID `json:"id"`

		// Type Type of the related resource
		Type string `json:"type"`
	} `json:"data"`
	Links RelatedLink `json:"links"`

	// Meta Free-form object that may contain non-standard information.
	Meta *Meta `json:"meta,omitempty"`
}

Relationship defines model for Relationship.

type SelfLink struct {
	Self *LinkProperty `json:"self,omitempty"`
}

SelfLink defines model for SelfLink.

type StartingAfter

type StartingAfter = string

StartingAfter defines model for StartingAfter.

type Tag

type Tag struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Tag defines model for Tag.

type Types

type Types = string

Types defines model for Types.

type Version

type Version = QueryVersion

Version Requested API version

Jump to

Keyboard shortcuts

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