folge

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	CookieAuthScopes = "cookieAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewApplicationsCreateRequest

func NewApplicationsCreateRequest(server string, body ApplicationsCreateJSONRequestBody) (*http.Request, error)

NewApplicationsCreateRequest calls the generic ApplicationsCreate builder with application/json body

func NewApplicationsCreateRequestWithBody

func NewApplicationsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsCreateRequestWithBody generates requests for ApplicationsCreate with any type of body

func NewApplicationsDataSourcesChecksCreateRequest

func NewApplicationsDataSourcesChecksCreateRequest(server string, applicationId int, sourceId int, body ApplicationsDataSourcesChecksCreateJSONRequestBody) (*http.Request, error)

NewApplicationsDataSourcesChecksCreateRequest calls the generic ApplicationsDataSourcesChecksCreate builder with application/json body

func NewApplicationsDataSourcesChecksCreateRequestWithBody

func NewApplicationsDataSourcesChecksCreateRequestWithBody(server string, applicationId int, sourceId int, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsDataSourcesChecksCreateRequestWithBody generates requests for ApplicationsDataSourcesChecksCreate with any type of body

func NewApplicationsDataSourcesChecksDestroyRequest

func NewApplicationsDataSourcesChecksDestroyRequest(server string, applicationId int, sourceId int, id int) (*http.Request, error)

NewApplicationsDataSourcesChecksDestroyRequest generates requests for ApplicationsDataSourcesChecksDestroy

func NewApplicationsDataSourcesChecksListRequest

func NewApplicationsDataSourcesChecksListRequest(server string, applicationId int, sourceId int) (*http.Request, error)

NewApplicationsDataSourcesChecksListRequest generates requests for ApplicationsDataSourcesChecksList

func NewApplicationsDataSourcesChecksRetrieveRequest

func NewApplicationsDataSourcesChecksRetrieveRequest(server string, applicationId int, sourceId int, id int) (*http.Request, error)

NewApplicationsDataSourcesChecksRetrieveRequest generates requests for ApplicationsDataSourcesChecksRetrieve

func NewApplicationsDataSourcesChecksUpdateRequest

func NewApplicationsDataSourcesChecksUpdateRequest(server string, applicationId int, sourceId int, id int, body ApplicationsDataSourcesChecksUpdateJSONRequestBody) (*http.Request, error)

NewApplicationsDataSourcesChecksUpdateRequest calls the generic ApplicationsDataSourcesChecksUpdate builder with application/json body

func NewApplicationsDataSourcesChecksUpdateRequestWithBody

func NewApplicationsDataSourcesChecksUpdateRequestWithBody(server string, applicationId int, sourceId int, id int, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsDataSourcesChecksUpdateRequestWithBody generates requests for ApplicationsDataSourcesChecksUpdate with any type of body

func NewApplicationsDataSourcesCreateRequest

func NewApplicationsDataSourcesCreateRequest(server string, applicationId int, body ApplicationsDataSourcesCreateJSONRequestBody) (*http.Request, error)

NewApplicationsDataSourcesCreateRequest calls the generic ApplicationsDataSourcesCreate builder with application/json body

func NewApplicationsDataSourcesCreateRequestWithBody

func NewApplicationsDataSourcesCreateRequestWithBody(server string, applicationId int, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsDataSourcesCreateRequestWithBody generates requests for ApplicationsDataSourcesCreate with any type of body

func NewApplicationsDataSourcesDestroyRequest

func NewApplicationsDataSourcesDestroyRequest(server string, applicationId int, id int) (*http.Request, error)

NewApplicationsDataSourcesDestroyRequest generates requests for ApplicationsDataSourcesDestroy

func NewApplicationsDataSourcesListRequest

func NewApplicationsDataSourcesListRequest(server string, applicationId int) (*http.Request, error)

NewApplicationsDataSourcesListRequest generates requests for ApplicationsDataSourcesList

func NewApplicationsDataSourcesRetrieveRequest

func NewApplicationsDataSourcesRetrieveRequest(server string, applicationId int, id int) (*http.Request, error)

NewApplicationsDataSourcesRetrieveRequest generates requests for ApplicationsDataSourcesRetrieve

func NewApplicationsDataSourcesUpdateRequest

func NewApplicationsDataSourcesUpdateRequest(server string, applicationId int, id int, body ApplicationsDataSourcesUpdateJSONRequestBody) (*http.Request, error)

NewApplicationsDataSourcesUpdateRequest calls the generic ApplicationsDataSourcesUpdate builder with application/json body

func NewApplicationsDataSourcesUpdateRequestWithBody

func NewApplicationsDataSourcesUpdateRequestWithBody(server string, applicationId int, id int, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsDataSourcesUpdateRequestWithBody generates requests for ApplicationsDataSourcesUpdate with any type of body

func NewApplicationsDestroyRequest

func NewApplicationsDestroyRequest(server string, id int) (*http.Request, error)

NewApplicationsDestroyRequest generates requests for ApplicationsDestroy

func NewApplicationsFormattedCreateRequest

func NewApplicationsFormattedCreateRequest(server string, format ApplicationsFormattedCreateParamsFormat, body ApplicationsFormattedCreateJSONRequestBody) (*http.Request, error)

NewApplicationsFormattedCreateRequest calls the generic ApplicationsFormattedCreate builder with application/json body

func NewApplicationsFormattedCreateRequestWithBody

func NewApplicationsFormattedCreateRequestWithBody(server string, format ApplicationsFormattedCreateParamsFormat, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsFormattedCreateRequestWithBody generates requests for ApplicationsFormattedCreate with any type of body

func NewApplicationsFormattedDestroyRequest

func NewApplicationsFormattedDestroyRequest(server string, id int, format ApplicationsFormattedDestroyParamsFormat) (*http.Request, error)

NewApplicationsFormattedDestroyRequest generates requests for ApplicationsFormattedDestroy

func NewApplicationsFormattedListRequest

func NewApplicationsFormattedListRequest(server string, format ApplicationsFormattedListParamsFormat) (*http.Request, error)

NewApplicationsFormattedListRequest generates requests for ApplicationsFormattedList

func NewApplicationsFormattedRetrieveRequest

func NewApplicationsFormattedRetrieveRequest(server string, id int, format ApplicationsFormattedRetrieveParamsFormat) (*http.Request, error)

NewApplicationsFormattedRetrieveRequest generates requests for ApplicationsFormattedRetrieve

func NewApplicationsFormattedUpdateRequest

func NewApplicationsFormattedUpdateRequest(server string, id int, format ApplicationsFormattedUpdateParamsFormat, body ApplicationsFormattedUpdateJSONRequestBody) (*http.Request, error)

NewApplicationsFormattedUpdateRequest calls the generic ApplicationsFormattedUpdate builder with application/json body

func NewApplicationsFormattedUpdateRequestWithBody

func NewApplicationsFormattedUpdateRequestWithBody(server string, id int, format ApplicationsFormattedUpdateParamsFormat, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsFormattedUpdateRequestWithBody generates requests for ApplicationsFormattedUpdate with any type of body

func NewApplicationsListRequest

func NewApplicationsListRequest(server string) (*http.Request, error)

NewApplicationsListRequest generates requests for ApplicationsList

func NewApplicationsRetrieveRequest

func NewApplicationsRetrieveRequest(server string, id int) (*http.Request, error)

NewApplicationsRetrieveRequest generates requests for ApplicationsRetrieve

func NewApplicationsUpdateRequest

func NewApplicationsUpdateRequest(server string, id int, body ApplicationsUpdateJSONRequestBody) (*http.Request, error)

NewApplicationsUpdateRequest calls the generic ApplicationsUpdate builder with application/json body

func NewApplicationsUpdateRequestWithBody

func NewApplicationsUpdateRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error)

NewApplicationsUpdateRequestWithBody generates requests for ApplicationsUpdate with any type of body

Types

type Application

type Application struct {
	Datasources *string             `json:"datasources,omitempty"`
	Id          *int                `json:"id,omitempty"`
	Identifier  *openapi_types.UUID `json:"identifier,omitempty"`
	Name        string              `json:"name"`
}

Application defines model for Application.

type ApplicationRequest

type ApplicationRequest struct {
	Name string `json:"name"`
}

ApplicationRequest defines model for ApplicationRequest.

type ApplicationsCreateJSONRequestBody

type ApplicationsCreateJSONRequestBody = ApplicationRequest

ApplicationsCreateJSONRequestBody defines body for ApplicationsCreate for application/json ContentType.

type ApplicationsCreateResponse

type ApplicationsCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Application
}

func ParseApplicationsCreateResponse

func ParseApplicationsCreateResponse(rsp *http.Response) (*ApplicationsCreateResponse, error)

ParseApplicationsCreateResponse parses an HTTP response from a ApplicationsCreateWithResponse call

func (ApplicationsCreateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsCreateResponse) StatusCode

func (r ApplicationsCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesChecksCreateJSONRequestBody

type ApplicationsDataSourcesChecksCreateJSONRequestBody = CheckRequest

ApplicationsDataSourcesChecksCreateJSONRequestBody defines body for ApplicationsDataSourcesChecksCreate for application/json ContentType.

type ApplicationsDataSourcesChecksCreateResponse

type ApplicationsDataSourcesChecksCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Check
}

func ParseApplicationsDataSourcesChecksCreateResponse

func ParseApplicationsDataSourcesChecksCreateResponse(rsp *http.Response) (*ApplicationsDataSourcesChecksCreateResponse, error)

ParseApplicationsDataSourcesChecksCreateResponse parses an HTTP response from a ApplicationsDataSourcesChecksCreateWithResponse call

func (ApplicationsDataSourcesChecksCreateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesChecksCreateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesChecksDestroyResponse

type ApplicationsDataSourcesChecksDestroyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseApplicationsDataSourcesChecksDestroyResponse

func ParseApplicationsDataSourcesChecksDestroyResponse(rsp *http.Response) (*ApplicationsDataSourcesChecksDestroyResponse, error)

ParseApplicationsDataSourcesChecksDestroyResponse parses an HTTP response from a ApplicationsDataSourcesChecksDestroyWithResponse call

func (ApplicationsDataSourcesChecksDestroyResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesChecksDestroyResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesChecksListResponse

type ApplicationsDataSourcesChecksListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Check
}

func ParseApplicationsDataSourcesChecksListResponse

func ParseApplicationsDataSourcesChecksListResponse(rsp *http.Response) (*ApplicationsDataSourcesChecksListResponse, error)

ParseApplicationsDataSourcesChecksListResponse parses an HTTP response from a ApplicationsDataSourcesChecksListWithResponse call

func (ApplicationsDataSourcesChecksListResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesChecksListResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesChecksRetrieveResponse

type ApplicationsDataSourcesChecksRetrieveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Check
}

func ParseApplicationsDataSourcesChecksRetrieveResponse

func ParseApplicationsDataSourcesChecksRetrieveResponse(rsp *http.Response) (*ApplicationsDataSourcesChecksRetrieveResponse, error)

ParseApplicationsDataSourcesChecksRetrieveResponse parses an HTTP response from a ApplicationsDataSourcesChecksRetrieveWithResponse call

func (ApplicationsDataSourcesChecksRetrieveResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesChecksRetrieveResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesChecksUpdateJSONRequestBody

type ApplicationsDataSourcesChecksUpdateJSONRequestBody = CheckRequest

ApplicationsDataSourcesChecksUpdateJSONRequestBody defines body for ApplicationsDataSourcesChecksUpdate for application/json ContentType.

type ApplicationsDataSourcesChecksUpdateResponse

type ApplicationsDataSourcesChecksUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Check
}

func ParseApplicationsDataSourcesChecksUpdateResponse

func ParseApplicationsDataSourcesChecksUpdateResponse(rsp *http.Response) (*ApplicationsDataSourcesChecksUpdateResponse, error)

ParseApplicationsDataSourcesChecksUpdateResponse parses an HTTP response from a ApplicationsDataSourcesChecksUpdateWithResponse call

func (ApplicationsDataSourcesChecksUpdateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesChecksUpdateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesCreateJSONRequestBody

type ApplicationsDataSourcesCreateJSONRequestBody = DataSourceRequest

ApplicationsDataSourcesCreateJSONRequestBody defines body for ApplicationsDataSourcesCreate for application/json ContentType.

type ApplicationsDataSourcesCreateResponse

type ApplicationsDataSourcesCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DataSource
}

func ParseApplicationsDataSourcesCreateResponse

func ParseApplicationsDataSourcesCreateResponse(rsp *http.Response) (*ApplicationsDataSourcesCreateResponse, error)

ParseApplicationsDataSourcesCreateResponse parses an HTTP response from a ApplicationsDataSourcesCreateWithResponse call

func (ApplicationsDataSourcesCreateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesCreateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesDestroyResponse

type ApplicationsDataSourcesDestroyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseApplicationsDataSourcesDestroyResponse

func ParseApplicationsDataSourcesDestroyResponse(rsp *http.Response) (*ApplicationsDataSourcesDestroyResponse, error)

ParseApplicationsDataSourcesDestroyResponse parses an HTTP response from a ApplicationsDataSourcesDestroyWithResponse call

func (ApplicationsDataSourcesDestroyResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesDestroyResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesListResponse

type ApplicationsDataSourcesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DataSource
}

func ParseApplicationsDataSourcesListResponse

func ParseApplicationsDataSourcesListResponse(rsp *http.Response) (*ApplicationsDataSourcesListResponse, error)

ParseApplicationsDataSourcesListResponse parses an HTTP response from a ApplicationsDataSourcesListWithResponse call

func (ApplicationsDataSourcesListResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesListResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesRetrieveResponse

type ApplicationsDataSourcesRetrieveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DataSource
}

func ParseApplicationsDataSourcesRetrieveResponse

func ParseApplicationsDataSourcesRetrieveResponse(rsp *http.Response) (*ApplicationsDataSourcesRetrieveResponse, error)

ParseApplicationsDataSourcesRetrieveResponse parses an HTTP response from a ApplicationsDataSourcesRetrieveWithResponse call

func (ApplicationsDataSourcesRetrieveResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesRetrieveResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDataSourcesUpdateJSONRequestBody

type ApplicationsDataSourcesUpdateJSONRequestBody = DataSourceRequest

ApplicationsDataSourcesUpdateJSONRequestBody defines body for ApplicationsDataSourcesUpdate for application/json ContentType.

type ApplicationsDataSourcesUpdateResponse

type ApplicationsDataSourcesUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DataSource
}

func ParseApplicationsDataSourcesUpdateResponse

func ParseApplicationsDataSourcesUpdateResponse(rsp *http.Response) (*ApplicationsDataSourcesUpdateResponse, error)

ParseApplicationsDataSourcesUpdateResponse parses an HTTP response from a ApplicationsDataSourcesUpdateWithResponse call

func (ApplicationsDataSourcesUpdateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDataSourcesUpdateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsDestroyResponse

type ApplicationsDestroyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseApplicationsDestroyResponse

func ParseApplicationsDestroyResponse(rsp *http.Response) (*ApplicationsDestroyResponse, error)

ParseApplicationsDestroyResponse parses an HTTP response from a ApplicationsDestroyWithResponse call

func (ApplicationsDestroyResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsDestroyResponse) StatusCode

func (r ApplicationsDestroyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApplicationsFormattedCreateJSONRequestBody

type ApplicationsFormattedCreateJSONRequestBody = ApplicationRequest

ApplicationsFormattedCreateJSONRequestBody defines body for ApplicationsFormattedCreate for application/json ContentType.

type ApplicationsFormattedCreateParamsFormat

type ApplicationsFormattedCreateParamsFormat string

ApplicationsFormattedCreateParamsFormat defines parameters for ApplicationsFormattedCreate.

const (
	DotJson ApplicationsFormattedCreateParamsFormat = ".json"
)

Defines values for ApplicationsFormattedCreateParamsFormat.

type ApplicationsFormattedCreateResponse

type ApplicationsFormattedCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Application
}

func ParseApplicationsFormattedCreateResponse

func ParseApplicationsFormattedCreateResponse(rsp *http.Response) (*ApplicationsFormattedCreateResponse, error)

ParseApplicationsFormattedCreateResponse parses an HTTP response from a ApplicationsFormattedCreateWithResponse call

func (ApplicationsFormattedCreateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsFormattedCreateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsFormattedDestroyParamsFormat

type ApplicationsFormattedDestroyParamsFormat string

ApplicationsFormattedDestroyParamsFormat defines parameters for ApplicationsFormattedDestroy.

const (
	ApplicationsFormattedDestroyParamsFormatDotJson ApplicationsFormattedDestroyParamsFormat = ".json"
)

Defines values for ApplicationsFormattedDestroyParamsFormat.

type ApplicationsFormattedDestroyResponse

type ApplicationsFormattedDestroyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseApplicationsFormattedDestroyResponse

func ParseApplicationsFormattedDestroyResponse(rsp *http.Response) (*ApplicationsFormattedDestroyResponse, error)

ParseApplicationsFormattedDestroyResponse parses an HTTP response from a ApplicationsFormattedDestroyWithResponse call

func (ApplicationsFormattedDestroyResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsFormattedDestroyResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsFormattedListParamsFormat

type ApplicationsFormattedListParamsFormat string

ApplicationsFormattedListParamsFormat defines parameters for ApplicationsFormattedList.

const (
	ApplicationsFormattedListParamsFormatDotJson ApplicationsFormattedListParamsFormat = ".json"
)

Defines values for ApplicationsFormattedListParamsFormat.

type ApplicationsFormattedListResponse

type ApplicationsFormattedListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Application
}

func ParseApplicationsFormattedListResponse

func ParseApplicationsFormattedListResponse(rsp *http.Response) (*ApplicationsFormattedListResponse, error)

ParseApplicationsFormattedListResponse parses an HTTP response from a ApplicationsFormattedListWithResponse call

func (ApplicationsFormattedListResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsFormattedListResponse) StatusCode

func (r ApplicationsFormattedListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApplicationsFormattedRetrieveParamsFormat

type ApplicationsFormattedRetrieveParamsFormat string

ApplicationsFormattedRetrieveParamsFormat defines parameters for ApplicationsFormattedRetrieve.

const (
	ApplicationsFormattedRetrieveParamsFormatDotJson ApplicationsFormattedRetrieveParamsFormat = ".json"
)

Defines values for ApplicationsFormattedRetrieveParamsFormat.

type ApplicationsFormattedRetrieveResponse

type ApplicationsFormattedRetrieveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Application
}

func ParseApplicationsFormattedRetrieveResponse

func ParseApplicationsFormattedRetrieveResponse(rsp *http.Response) (*ApplicationsFormattedRetrieveResponse, error)

ParseApplicationsFormattedRetrieveResponse parses an HTTP response from a ApplicationsFormattedRetrieveWithResponse call

func (ApplicationsFormattedRetrieveResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsFormattedRetrieveResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsFormattedUpdateJSONRequestBody

type ApplicationsFormattedUpdateJSONRequestBody = ApplicationRequest

ApplicationsFormattedUpdateJSONRequestBody defines body for ApplicationsFormattedUpdate for application/json ContentType.

type ApplicationsFormattedUpdateParamsFormat

type ApplicationsFormattedUpdateParamsFormat string

ApplicationsFormattedUpdateParamsFormat defines parameters for ApplicationsFormattedUpdate.

const (
	ApplicationsFormattedUpdateParamsFormatDotJson ApplicationsFormattedUpdateParamsFormat = ".json"
)

Defines values for ApplicationsFormattedUpdateParamsFormat.

type ApplicationsFormattedUpdateResponse

type ApplicationsFormattedUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Application
}

func ParseApplicationsFormattedUpdateResponse

func ParseApplicationsFormattedUpdateResponse(rsp *http.Response) (*ApplicationsFormattedUpdateResponse, error)

ParseApplicationsFormattedUpdateResponse parses an HTTP response from a ApplicationsFormattedUpdateWithResponse call

func (ApplicationsFormattedUpdateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsFormattedUpdateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ApplicationsListResponse

type ApplicationsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Application
}

func ParseApplicationsListResponse

func ParseApplicationsListResponse(rsp *http.Response) (*ApplicationsListResponse, error)

ParseApplicationsListResponse parses an HTTP response from a ApplicationsListWithResponse call

func (ApplicationsListResponse) Status

func (r ApplicationsListResponse) Status() string

Status returns HTTPResponse.Status

func (ApplicationsListResponse) StatusCode

func (r ApplicationsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApplicationsRetrieveResponse

type ApplicationsRetrieveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Application
}

func ParseApplicationsRetrieveResponse

func ParseApplicationsRetrieveResponse(rsp *http.Response) (*ApplicationsRetrieveResponse, error)

ParseApplicationsRetrieveResponse parses an HTTP response from a ApplicationsRetrieveWithResponse call

func (ApplicationsRetrieveResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsRetrieveResponse) StatusCode

func (r ApplicationsRetrieveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApplicationsUpdateJSONRequestBody

type ApplicationsUpdateJSONRequestBody = ApplicationRequest

ApplicationsUpdateJSONRequestBody defines body for ApplicationsUpdate for application/json ContentType.

type ApplicationsUpdateResponse

type ApplicationsUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Application
}

func ParseApplicationsUpdateResponse

func ParseApplicationsUpdateResponse(rsp *http.Response) (*ApplicationsUpdateResponse, error)

ParseApplicationsUpdateResponse parses an HTTP response from a ApplicationsUpdateWithResponse call

func (ApplicationsUpdateResponse) Status

Status returns HTTPResponse.Status

func (ApplicationsUpdateResponse) StatusCode

func (r ApplicationsUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Check

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

Check defines model for Check.

func (Check) AsHttpStatusCheckTyped

func (t Check) AsHttpStatusCheckTyped() (HttpStatusCheckTyped, error)

AsHttpStatusCheckTyped returns the union data inside the Check as a HttpStatusCheckTyped

func (Check) AsJsonDataCheckTyped

func (t Check) AsJsonDataCheckTyped() (JsonDataCheckTyped, error)

AsJsonDataCheckTyped returns the union data inside the Check as a JsonDataCheckTyped

func (Check) Discriminator

func (t Check) Discriminator() (string, error)

func (*Check) FromHttpStatusCheckTyped

func (t *Check) FromHttpStatusCheckTyped(v HttpStatusCheckTyped) error

FromHttpStatusCheckTyped overwrites any union data inside the Check as the provided HttpStatusCheckTyped

func (*Check) FromJsonDataCheckTyped

func (t *Check) FromJsonDataCheckTyped(v JsonDataCheckTyped) error

FromJsonDataCheckTyped overwrites any union data inside the Check as the provided JsonDataCheckTyped

func (Check) MarshalJSON

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

func (*Check) MergeHttpStatusCheckTyped

func (t *Check) MergeHttpStatusCheckTyped(v HttpStatusCheckTyped) error

MergeHttpStatusCheckTyped performs a merge with any union data inside the Check, using the provided HttpStatusCheckTyped

func (*Check) MergeJsonDataCheckTyped

func (t *Check) MergeJsonDataCheckTyped(v JsonDataCheckTyped) error

MergeJsonDataCheckTyped performs a merge with any union data inside the Check, using the provided JsonDataCheckTyped

func (*Check) UnmarshalJSON

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

func (Check) ValueByDiscriminator

func (t Check) ValueByDiscriminator() (interface{}, error)

type CheckRequest

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

CheckRequest defines model for CheckRequest.

func (CheckRequest) AsHttpStatusCheckTypedRequest

func (t CheckRequest) AsHttpStatusCheckTypedRequest() (HttpStatusCheckTypedRequest, error)

AsHttpStatusCheckTypedRequest returns the union data inside the CheckRequest as a HttpStatusCheckTypedRequest

func (CheckRequest) AsJsonDataCheckTypedRequest

func (t CheckRequest) AsJsonDataCheckTypedRequest() (JsonDataCheckTypedRequest, error)

AsJsonDataCheckTypedRequest returns the union data inside the CheckRequest as a JsonDataCheckTypedRequest

func (CheckRequest) Discriminator

func (t CheckRequest) Discriminator() (string, error)

func (*CheckRequest) FromHttpStatusCheckTypedRequest

func (t *CheckRequest) FromHttpStatusCheckTypedRequest(v HttpStatusCheckTypedRequest) error

FromHttpStatusCheckTypedRequest overwrites any union data inside the CheckRequest as the provided HttpStatusCheckTypedRequest

func (*CheckRequest) FromJsonDataCheckTypedRequest

func (t *CheckRequest) FromJsonDataCheckTypedRequest(v JsonDataCheckTypedRequest) error

FromJsonDataCheckTypedRequest overwrites any union data inside the CheckRequest as the provided JsonDataCheckTypedRequest

func (CheckRequest) MarshalJSON

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

func (*CheckRequest) MergeHttpStatusCheckTypedRequest

func (t *CheckRequest) MergeHttpStatusCheckTypedRequest(v HttpStatusCheckTypedRequest) error

MergeHttpStatusCheckTypedRequest performs a merge with any union data inside the CheckRequest, using the provided HttpStatusCheckTypedRequest

func (*CheckRequest) MergeJsonDataCheckTypedRequest

func (t *CheckRequest) MergeJsonDataCheckTypedRequest(v JsonDataCheckTypedRequest) error

MergeJsonDataCheckTypedRequest performs a merge with any union data inside the CheckRequest, using the provided JsonDataCheckTypedRequest

func (*CheckRequest) UnmarshalJSON

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

func (CheckRequest) ValueByDiscriminator

func (t CheckRequest) ValueByDiscriminator() (interface{}, error)

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) ApplicationsCreate

func (c *Client) ApplicationsCreate(ctx context.Context, body ApplicationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsCreateWithBody

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

func (*Client) ApplicationsDataSourcesChecksCreate

func (c *Client) ApplicationsDataSourcesChecksCreate(ctx context.Context, applicationId int, sourceId int, body ApplicationsDataSourcesChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesChecksCreateWithBody

func (c *Client) ApplicationsDataSourcesChecksCreateWithBody(ctx context.Context, applicationId int, sourceId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesChecksDestroy

func (c *Client) ApplicationsDataSourcesChecksDestroy(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesChecksList

func (c *Client) ApplicationsDataSourcesChecksList(ctx context.Context, applicationId int, sourceId int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesChecksRetrieve

func (c *Client) ApplicationsDataSourcesChecksRetrieve(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesChecksUpdate

func (c *Client) ApplicationsDataSourcesChecksUpdate(ctx context.Context, applicationId int, sourceId int, id int, body ApplicationsDataSourcesChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesChecksUpdateWithBody

func (c *Client) ApplicationsDataSourcesChecksUpdateWithBody(ctx context.Context, applicationId int, sourceId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesCreate

func (c *Client) ApplicationsDataSourcesCreate(ctx context.Context, applicationId int, body ApplicationsDataSourcesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesCreateWithBody

func (c *Client) ApplicationsDataSourcesCreateWithBody(ctx context.Context, applicationId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesDestroy

func (c *Client) ApplicationsDataSourcesDestroy(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesList

func (c *Client) ApplicationsDataSourcesList(ctx context.Context, applicationId int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesRetrieve

func (c *Client) ApplicationsDataSourcesRetrieve(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesUpdate

func (c *Client) ApplicationsDataSourcesUpdate(ctx context.Context, applicationId int, id int, body ApplicationsDataSourcesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDataSourcesUpdateWithBody

func (c *Client) ApplicationsDataSourcesUpdateWithBody(ctx context.Context, applicationId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsDestroy

func (c *Client) ApplicationsDestroy(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsFormattedCreateWithBody

func (c *Client) ApplicationsFormattedCreateWithBody(ctx context.Context, format ApplicationsFormattedCreateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsFormattedDestroy

func (c *Client) ApplicationsFormattedDestroy(ctx context.Context, id int, format ApplicationsFormattedDestroyParamsFormat, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsFormattedList

func (c *Client) ApplicationsFormattedList(ctx context.Context, format ApplicationsFormattedListParamsFormat, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsFormattedRetrieve

func (c *Client) ApplicationsFormattedRetrieve(ctx context.Context, id int, format ApplicationsFormattedRetrieveParamsFormat, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsFormattedUpdateWithBody

func (c *Client) ApplicationsFormattedUpdateWithBody(ctx context.Context, id int, format ApplicationsFormattedUpdateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsList

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

func (*Client) ApplicationsRetrieve

func (c *Client) ApplicationsRetrieve(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsUpdate

func (c *Client) ApplicationsUpdate(ctx context.Context, id int, body ApplicationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApplicationsUpdateWithBody

func (c *Client) ApplicationsUpdateWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

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

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

	ApplicationsCreate(ctx context.Context, body ApplicationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesList request
	ApplicationsDataSourcesList(ctx context.Context, applicationId int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesCreateWithBody request with any body
	ApplicationsDataSourcesCreateWithBody(ctx context.Context, applicationId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplicationsDataSourcesCreate(ctx context.Context, applicationId int, body ApplicationsDataSourcesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesDestroy request
	ApplicationsDataSourcesDestroy(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesRetrieve request
	ApplicationsDataSourcesRetrieve(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesUpdateWithBody request with any body
	ApplicationsDataSourcesUpdateWithBody(ctx context.Context, applicationId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplicationsDataSourcesUpdate(ctx context.Context, applicationId int, id int, body ApplicationsDataSourcesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesChecksList request
	ApplicationsDataSourcesChecksList(ctx context.Context, applicationId int, sourceId int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesChecksCreateWithBody request with any body
	ApplicationsDataSourcesChecksCreateWithBody(ctx context.Context, applicationId int, sourceId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplicationsDataSourcesChecksCreate(ctx context.Context, applicationId int, sourceId int, body ApplicationsDataSourcesChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesChecksDestroy request
	ApplicationsDataSourcesChecksDestroy(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesChecksRetrieve request
	ApplicationsDataSourcesChecksRetrieve(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDataSourcesChecksUpdateWithBody request with any body
	ApplicationsDataSourcesChecksUpdateWithBody(ctx context.Context, applicationId int, sourceId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplicationsDataSourcesChecksUpdate(ctx context.Context, applicationId int, sourceId int, id int, body ApplicationsDataSourcesChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsDestroy request
	ApplicationsDestroy(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsRetrieve request
	ApplicationsRetrieve(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsUpdateWithBody request with any body
	ApplicationsUpdateWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplicationsUpdate(ctx context.Context, id int, body ApplicationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsFormattedDestroy request
	ApplicationsFormattedDestroy(ctx context.Context, id int, format ApplicationsFormattedDestroyParamsFormat, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsFormattedRetrieve request
	ApplicationsFormattedRetrieve(ctx context.Context, id int, format ApplicationsFormattedRetrieveParamsFormat, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsFormattedUpdateWithBody request with any body
	ApplicationsFormattedUpdateWithBody(ctx context.Context, id int, format ApplicationsFormattedUpdateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplicationsFormattedUpdate(ctx context.Context, id int, format ApplicationsFormattedUpdateParamsFormat, body ApplicationsFormattedUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsFormattedList request
	ApplicationsFormattedList(ctx context.Context, format ApplicationsFormattedListParamsFormat, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplicationsFormattedCreateWithBody request with any body
	ApplicationsFormattedCreateWithBody(ctx context.Context, format ApplicationsFormattedCreateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ApplicationsFormattedCreate(ctx context.Context, format ApplicationsFormattedCreateParamsFormat, body ApplicationsFormattedCreateJSONRequestBody, 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) ApplicationsCreateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsCreateResponse, error)

ApplicationsCreateWithBodyWithResponse request with arbitrary body returning *ApplicationsCreateResponse

func (*ClientWithResponses) ApplicationsCreateWithResponse

func (c *ClientWithResponses) ApplicationsCreateWithResponse(ctx context.Context, body ApplicationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsCreateResponse, error)

func (*ClientWithResponses) ApplicationsDataSourcesChecksCreateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesChecksCreateWithBodyWithResponse(ctx context.Context, applicationId int, sourceId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksCreateResponse, error)

ApplicationsDataSourcesChecksCreateWithBodyWithResponse request with arbitrary body returning *ApplicationsDataSourcesChecksCreateResponse

func (*ClientWithResponses) ApplicationsDataSourcesChecksCreateWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesChecksCreateWithResponse(ctx context.Context, applicationId int, sourceId int, body ApplicationsDataSourcesChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksCreateResponse, error)

func (*ClientWithResponses) ApplicationsDataSourcesChecksDestroyWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesChecksDestroyWithResponse(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksDestroyResponse, error)

ApplicationsDataSourcesChecksDestroyWithResponse request returning *ApplicationsDataSourcesChecksDestroyResponse

func (*ClientWithResponses) ApplicationsDataSourcesChecksListWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesChecksListWithResponse(ctx context.Context, applicationId int, sourceId int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksListResponse, error)

ApplicationsDataSourcesChecksListWithResponse request returning *ApplicationsDataSourcesChecksListResponse

func (*ClientWithResponses) ApplicationsDataSourcesChecksRetrieveWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesChecksRetrieveWithResponse(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksRetrieveResponse, error)

ApplicationsDataSourcesChecksRetrieveWithResponse request returning *ApplicationsDataSourcesChecksRetrieveResponse

func (*ClientWithResponses) ApplicationsDataSourcesChecksUpdateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesChecksUpdateWithBodyWithResponse(ctx context.Context, applicationId int, sourceId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksUpdateResponse, error)

ApplicationsDataSourcesChecksUpdateWithBodyWithResponse request with arbitrary body returning *ApplicationsDataSourcesChecksUpdateResponse

func (*ClientWithResponses) ApplicationsDataSourcesChecksUpdateWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesChecksUpdateWithResponse(ctx context.Context, applicationId int, sourceId int, id int, body ApplicationsDataSourcesChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksUpdateResponse, error)

func (*ClientWithResponses) ApplicationsDataSourcesCreateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesCreateWithBodyWithResponse(ctx context.Context, applicationId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesCreateResponse, error)

ApplicationsDataSourcesCreateWithBodyWithResponse request with arbitrary body returning *ApplicationsDataSourcesCreateResponse

func (*ClientWithResponses) ApplicationsDataSourcesCreateWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesCreateWithResponse(ctx context.Context, applicationId int, body ApplicationsDataSourcesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesCreateResponse, error)

func (*ClientWithResponses) ApplicationsDataSourcesDestroyWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesDestroyWithResponse(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesDestroyResponse, error)

ApplicationsDataSourcesDestroyWithResponse request returning *ApplicationsDataSourcesDestroyResponse

func (*ClientWithResponses) ApplicationsDataSourcesListWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesListWithResponse(ctx context.Context, applicationId int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesListResponse, error)

ApplicationsDataSourcesListWithResponse request returning *ApplicationsDataSourcesListResponse

func (*ClientWithResponses) ApplicationsDataSourcesRetrieveWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesRetrieveWithResponse(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesRetrieveResponse, error)

ApplicationsDataSourcesRetrieveWithResponse request returning *ApplicationsDataSourcesRetrieveResponse

func (*ClientWithResponses) ApplicationsDataSourcesUpdateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesUpdateWithBodyWithResponse(ctx context.Context, applicationId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesUpdateResponse, error)

ApplicationsDataSourcesUpdateWithBodyWithResponse request with arbitrary body returning *ApplicationsDataSourcesUpdateResponse

func (*ClientWithResponses) ApplicationsDataSourcesUpdateWithResponse

func (c *ClientWithResponses) ApplicationsDataSourcesUpdateWithResponse(ctx context.Context, applicationId int, id int, body ApplicationsDataSourcesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesUpdateResponse, error)

func (*ClientWithResponses) ApplicationsDestroyWithResponse

func (c *ClientWithResponses) ApplicationsDestroyWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*ApplicationsDestroyResponse, error)

ApplicationsDestroyWithResponse request returning *ApplicationsDestroyResponse

func (*ClientWithResponses) ApplicationsFormattedCreateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsFormattedCreateWithBodyWithResponse(ctx context.Context, format ApplicationsFormattedCreateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsFormattedCreateResponse, error)

ApplicationsFormattedCreateWithBodyWithResponse request with arbitrary body returning *ApplicationsFormattedCreateResponse

func (*ClientWithResponses) ApplicationsFormattedDestroyWithResponse

func (c *ClientWithResponses) ApplicationsFormattedDestroyWithResponse(ctx context.Context, id int, format ApplicationsFormattedDestroyParamsFormat, reqEditors ...RequestEditorFn) (*ApplicationsFormattedDestroyResponse, error)

ApplicationsFormattedDestroyWithResponse request returning *ApplicationsFormattedDestroyResponse

func (*ClientWithResponses) ApplicationsFormattedListWithResponse

func (c *ClientWithResponses) ApplicationsFormattedListWithResponse(ctx context.Context, format ApplicationsFormattedListParamsFormat, reqEditors ...RequestEditorFn) (*ApplicationsFormattedListResponse, error)

ApplicationsFormattedListWithResponse request returning *ApplicationsFormattedListResponse

func (*ClientWithResponses) ApplicationsFormattedRetrieveWithResponse

func (c *ClientWithResponses) ApplicationsFormattedRetrieveWithResponse(ctx context.Context, id int, format ApplicationsFormattedRetrieveParamsFormat, reqEditors ...RequestEditorFn) (*ApplicationsFormattedRetrieveResponse, error)

ApplicationsFormattedRetrieveWithResponse request returning *ApplicationsFormattedRetrieveResponse

func (*ClientWithResponses) ApplicationsFormattedUpdateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsFormattedUpdateWithBodyWithResponse(ctx context.Context, id int, format ApplicationsFormattedUpdateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsFormattedUpdateResponse, error)

ApplicationsFormattedUpdateWithBodyWithResponse request with arbitrary body returning *ApplicationsFormattedUpdateResponse

func (*ClientWithResponses) ApplicationsListWithResponse

func (c *ClientWithResponses) ApplicationsListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ApplicationsListResponse, error)

ApplicationsListWithResponse request returning *ApplicationsListResponse

func (*ClientWithResponses) ApplicationsRetrieveWithResponse

func (c *ClientWithResponses) ApplicationsRetrieveWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*ApplicationsRetrieveResponse, error)

ApplicationsRetrieveWithResponse request returning *ApplicationsRetrieveResponse

func (*ClientWithResponses) ApplicationsUpdateWithBodyWithResponse

func (c *ClientWithResponses) ApplicationsUpdateWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsUpdateResponse, error)

ApplicationsUpdateWithBodyWithResponse request with arbitrary body returning *ApplicationsUpdateResponse

func (*ClientWithResponses) ApplicationsUpdateWithResponse

func (c *ClientWithResponses) ApplicationsUpdateWithResponse(ctx context.Context, id int, body ApplicationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsUpdateResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ApplicationsListWithResponse request
	ApplicationsListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ApplicationsListResponse, error)

	// ApplicationsCreateWithBodyWithResponse request with any body
	ApplicationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsCreateResponse, error)

	ApplicationsCreateWithResponse(ctx context.Context, body ApplicationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsCreateResponse, error)

	// ApplicationsDataSourcesListWithResponse request
	ApplicationsDataSourcesListWithResponse(ctx context.Context, applicationId int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesListResponse, error)

	// ApplicationsDataSourcesCreateWithBodyWithResponse request with any body
	ApplicationsDataSourcesCreateWithBodyWithResponse(ctx context.Context, applicationId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesCreateResponse, error)

	ApplicationsDataSourcesCreateWithResponse(ctx context.Context, applicationId int, body ApplicationsDataSourcesCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesCreateResponse, error)

	// ApplicationsDataSourcesDestroyWithResponse request
	ApplicationsDataSourcesDestroyWithResponse(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesDestroyResponse, error)

	// ApplicationsDataSourcesRetrieveWithResponse request
	ApplicationsDataSourcesRetrieveWithResponse(ctx context.Context, applicationId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesRetrieveResponse, error)

	// ApplicationsDataSourcesUpdateWithBodyWithResponse request with any body
	ApplicationsDataSourcesUpdateWithBodyWithResponse(ctx context.Context, applicationId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesUpdateResponse, error)

	ApplicationsDataSourcesUpdateWithResponse(ctx context.Context, applicationId int, id int, body ApplicationsDataSourcesUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesUpdateResponse, error)

	// ApplicationsDataSourcesChecksListWithResponse request
	ApplicationsDataSourcesChecksListWithResponse(ctx context.Context, applicationId int, sourceId int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksListResponse, error)

	// ApplicationsDataSourcesChecksCreateWithBodyWithResponse request with any body
	ApplicationsDataSourcesChecksCreateWithBodyWithResponse(ctx context.Context, applicationId int, sourceId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksCreateResponse, error)

	ApplicationsDataSourcesChecksCreateWithResponse(ctx context.Context, applicationId int, sourceId int, body ApplicationsDataSourcesChecksCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksCreateResponse, error)

	// ApplicationsDataSourcesChecksDestroyWithResponse request
	ApplicationsDataSourcesChecksDestroyWithResponse(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksDestroyResponse, error)

	// ApplicationsDataSourcesChecksRetrieveWithResponse request
	ApplicationsDataSourcesChecksRetrieveWithResponse(ctx context.Context, applicationId int, sourceId int, id int, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksRetrieveResponse, error)

	// ApplicationsDataSourcesChecksUpdateWithBodyWithResponse request with any body
	ApplicationsDataSourcesChecksUpdateWithBodyWithResponse(ctx context.Context, applicationId int, sourceId int, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksUpdateResponse, error)

	ApplicationsDataSourcesChecksUpdateWithResponse(ctx context.Context, applicationId int, sourceId int, id int, body ApplicationsDataSourcesChecksUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsDataSourcesChecksUpdateResponse, error)

	// ApplicationsDestroyWithResponse request
	ApplicationsDestroyWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*ApplicationsDestroyResponse, error)

	// ApplicationsRetrieveWithResponse request
	ApplicationsRetrieveWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*ApplicationsRetrieveResponse, error)

	// ApplicationsUpdateWithBodyWithResponse request with any body
	ApplicationsUpdateWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsUpdateResponse, error)

	ApplicationsUpdateWithResponse(ctx context.Context, id int, body ApplicationsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsUpdateResponse, error)

	// ApplicationsFormattedDestroyWithResponse request
	ApplicationsFormattedDestroyWithResponse(ctx context.Context, id int, format ApplicationsFormattedDestroyParamsFormat, reqEditors ...RequestEditorFn) (*ApplicationsFormattedDestroyResponse, error)

	// ApplicationsFormattedRetrieveWithResponse request
	ApplicationsFormattedRetrieveWithResponse(ctx context.Context, id int, format ApplicationsFormattedRetrieveParamsFormat, reqEditors ...RequestEditorFn) (*ApplicationsFormattedRetrieveResponse, error)

	// ApplicationsFormattedUpdateWithBodyWithResponse request with any body
	ApplicationsFormattedUpdateWithBodyWithResponse(ctx context.Context, id int, format ApplicationsFormattedUpdateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsFormattedUpdateResponse, error)

	ApplicationsFormattedUpdateWithResponse(ctx context.Context, id int, format ApplicationsFormattedUpdateParamsFormat, body ApplicationsFormattedUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsFormattedUpdateResponse, error)

	// ApplicationsFormattedListWithResponse request
	ApplicationsFormattedListWithResponse(ctx context.Context, format ApplicationsFormattedListParamsFormat, reqEditors ...RequestEditorFn) (*ApplicationsFormattedListResponse, error)

	// ApplicationsFormattedCreateWithBodyWithResponse request with any body
	ApplicationsFormattedCreateWithBodyWithResponse(ctx context.Context, format ApplicationsFormattedCreateParamsFormat, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplicationsFormattedCreateResponse, error)

	ApplicationsFormattedCreateWithResponse(ctx context.Context, format ApplicationsFormattedCreateParamsFormat, body ApplicationsFormattedCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplicationsFormattedCreateResponse, error)
}

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

type DataSource

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

DataSource defines model for DataSource.

func (DataSource) AsHttpDataSourceTyped

func (t DataSource) AsHttpDataSourceTyped() (HttpDataSourceTyped, error)

AsHttpDataSourceTyped returns the union data inside the DataSource as a HttpDataSourceTyped

func (DataSource) Discriminator

func (t DataSource) Discriminator() (string, error)

func (*DataSource) FromHttpDataSourceTyped

func (t *DataSource) FromHttpDataSourceTyped(v HttpDataSourceTyped) error

FromHttpDataSourceTyped overwrites any union data inside the DataSource as the provided HttpDataSourceTyped

func (DataSource) MarshalJSON

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

func (*DataSource) MergeHttpDataSourceTyped

func (t *DataSource) MergeHttpDataSourceTyped(v HttpDataSourceTyped) error

MergeHttpDataSourceTyped performs a merge with any union data inside the DataSource, using the provided HttpDataSourceTyped

func (*DataSource) UnmarshalJSON

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

func (DataSource) ValueByDiscriminator

func (t DataSource) ValueByDiscriminator() (interface{}, error)

type DataSourceRequest

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

DataSourceRequest defines model for DataSourceRequest.

func (DataSourceRequest) AsHttpDataSourceTypedRequest

func (t DataSourceRequest) AsHttpDataSourceTypedRequest() (HttpDataSourceTypedRequest, error)

AsHttpDataSourceTypedRequest returns the union data inside the DataSourceRequest as a HttpDataSourceTypedRequest

func (DataSourceRequest) Discriminator

func (t DataSourceRequest) Discriminator() (string, error)

func (*DataSourceRequest) FromHttpDataSourceTypedRequest

func (t *DataSourceRequest) FromHttpDataSourceTypedRequest(v HttpDataSourceTypedRequest) error

FromHttpDataSourceTypedRequest overwrites any union data inside the DataSourceRequest as the provided HttpDataSourceTypedRequest

func (DataSourceRequest) MarshalJSON

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

func (*DataSourceRequest) MergeHttpDataSourceTypedRequest

func (t *DataSourceRequest) MergeHttpDataSourceTypedRequest(v HttpDataSourceTypedRequest) error

MergeHttpDataSourceTypedRequest performs a merge with any union data inside the DataSourceRequest, using the provided HttpDataSourceTypedRequest

func (*DataSourceRequest) UnmarshalJSON

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

func (DataSourceRequest) ValueByDiscriminator

func (t DataSourceRequest) ValueByDiscriminator() (interface{}, error)

type DatatypeEnum

type DatatypeEnum string

DatatypeEnum * `bool` - Boolean * `int` - Integer * `str` - String * `datetime` - DateTime

const (
	Bool     DatatypeEnum = "bool"
	Datetime DatatypeEnum = "datetime"
	Int      DatatypeEnum = "int"
	Str      DatatypeEnum = "str"
)

Defines values for DatatypeEnum.

type HttpDataSource

type HttpDataSource struct {
	BasicAuthPassword *string `json:"basic_auth_password,omitempty"`
	BasicAuthUsername *string `json:"basic_auth_username,omitempty"`
	Checks            *string `json:"checks,omitempty"`
	Enabled           *bool   `json:"enabled,omitempty"`
	Id                *int    `json:"id,omitempty"`
	Label             *string `json:"label"`
	Url               string  `json:"url"`
}

HttpDataSource defines model for HttpDataSource.

type HttpDataSourceRequest

type HttpDataSourceRequest struct {
	BasicAuthPassword *string `json:"basic_auth_password,omitempty"`
	BasicAuthUsername *string `json:"basic_auth_username,omitempty"`
	Enabled           *bool   `json:"enabled,omitempty"`
	Label             *string `json:"label"`
	Url               string  `json:"url"`
}

HttpDataSourceRequest defines model for HttpDataSourceRequest.

type HttpDataSourceTyped

type HttpDataSourceTyped struct {
	BasicAuthPassword *string `json:"basic_auth_password,omitempty"`
	BasicAuthUsername *string `json:"basic_auth_username,omitempty"`
	Checks            *string `json:"checks,omitempty"`
	Enabled           *bool   `json:"enabled,omitempty"`
	Id                *int    `json:"id,omitempty"`
	Label             *string `json:"label"`
	Type              string  `json:"type"`
	Url               string  `json:"url"`
}

HttpDataSourceTyped defines model for HttpDataSourceTyped.

type HttpDataSourceTypedRequest

type HttpDataSourceTypedRequest struct {
	BasicAuthPassword *string `json:"basic_auth_password,omitempty"`
	BasicAuthUsername *string `json:"basic_auth_username,omitempty"`
	Enabled           *bool   `json:"enabled,omitempty"`
	Label             *string `json:"label"`
	Type              string  `json:"type"`
	Url               string  `json:"url"`
}

HttpDataSourceTypedRequest defines model for HttpDataSourceTypedRequest.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type HttpStatusCheck

type HttpStatusCheck struct {
	Enabled    *bool  `json:"enabled,omitempty"`
	Id         *int   `json:"id,omitempty"`
	Label      string `json:"label"`
	StatusCode int    `json:"status_code"`
}

HttpStatusCheck defines model for HttpStatusCheck.

type HttpStatusCheckRequest

type HttpStatusCheckRequest struct {
	Enabled    *bool  `json:"enabled,omitempty"`
	Label      string `json:"label"`
	StatusCode int    `json:"status_code"`
}

HttpStatusCheckRequest defines model for HttpStatusCheckRequest.

type HttpStatusCheckTyped

type HttpStatusCheckTyped struct {
	Enabled    *bool  `json:"enabled,omitempty"`
	Id         *int   `json:"id,omitempty"`
	Label      string `json:"label"`
	StatusCode int    `json:"status_code"`
	Type       string `json:"type"`
}

HttpStatusCheckTyped defines model for HttpStatusCheckTyped.

type HttpStatusCheckTypedRequest

type HttpStatusCheckTypedRequest struct {
	Enabled    *bool  `json:"enabled,omitempty"`
	Label      string `json:"label"`
	StatusCode int    `json:"status_code"`
	Type       string `json:"type"`
}

HttpStatusCheckTypedRequest defines model for HttpStatusCheckTypedRequest.

type JsonDataCheck

type JsonDataCheck struct {
	// Datatype * `bool` - Boolean
	// * `int` - Integer
	// * `str` - String
	// * `datetime` - DateTime
	Datatype DatatypeEnum `json:"datatype"`
	Enabled  *bool        `json:"enabled,omitempty"`
	Id       *int         `json:"id,omitempty"`
	Label    string       `json:"label"`

	// Operator * `lt` - Lower than
	// * `gt` - Greater then
	// * `eq` - Equals
	// * `neq` - Not Equal
	Operator OperatorEnum `json:"operator"`
	Path     string       `json:"path"`
	Value    string       `json:"value"`
}

JsonDataCheck defines model for JsonDataCheck.

type JsonDataCheckRequest

type JsonDataCheckRequest struct {
	// Datatype * `bool` - Boolean
	// * `int` - Integer
	// * `str` - String
	// * `datetime` - DateTime
	Datatype DatatypeEnum `json:"datatype"`
	Enabled  *bool        `json:"enabled,omitempty"`
	Label    string       `json:"label"`

	// Operator * `lt` - Lower than
	// * `gt` - Greater then
	// * `eq` - Equals
	// * `neq` - Not Equal
	Operator OperatorEnum `json:"operator"`
	Path     string       `json:"path"`
	Value    string       `json:"value"`
}

JsonDataCheckRequest defines model for JsonDataCheckRequest.

type JsonDataCheckTyped

type JsonDataCheckTyped struct {
	// Datatype * `bool` - Boolean
	// * `int` - Integer
	// * `str` - String
	// * `datetime` - DateTime
	Datatype DatatypeEnum `json:"datatype"`
	Enabled  *bool        `json:"enabled,omitempty"`
	Id       *int         `json:"id,omitempty"`
	Label    string       `json:"label"`

	// Operator * `lt` - Lower than
	// * `gt` - Greater then
	// * `eq` - Equals
	// * `neq` - Not Equal
	Operator OperatorEnum `json:"operator"`
	Path     string       `json:"path"`
	Type     string       `json:"type"`
	Value    string       `json:"value"`
}

JsonDataCheckTyped defines model for JsonDataCheckTyped.

type JsonDataCheckTypedRequest

type JsonDataCheckTypedRequest struct {
	// Datatype * `bool` - Boolean
	// * `int` - Integer
	// * `str` - String
	// * `datetime` - DateTime
	Datatype DatatypeEnum `json:"datatype"`
	Enabled  *bool        `json:"enabled,omitempty"`
	Label    string       `json:"label"`

	// Operator * `lt` - Lower than
	// * `gt` - Greater then
	// * `eq` - Equals
	// * `neq` - Not Equal
	Operator OperatorEnum `json:"operator"`
	Path     string       `json:"path"`
	Type     string       `json:"type"`
	Value    string       `json:"value"`
}

JsonDataCheckTypedRequest defines model for JsonDataCheckTypedRequest.

type OperatorEnum

type OperatorEnum string

OperatorEnum * `lt` - Lower than * `gt` - Greater then * `eq` - Equals * `neq` - Not Equal

const (
	Eq  OperatorEnum = "eq"
	Gt  OperatorEnum = "gt"
	Lt  OperatorEnum = "lt"
	Neq OperatorEnum = "neq"
)

Defines values for OperatorEnum.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

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