rest

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package rest 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"
	CookieAuthScopes = "cookieAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewBillingPortalLinkGetRequest

func NewBillingPortalLinkGetRequest(server string, tenant openapi_types.UUID) (*http.Request, error)

NewBillingPortalLinkGetRequest generates requests for BillingPortalLinkGet

func NewBuildGetRequest

func NewBuildGetRequest(server string, build openapi_types.UUID) (*http.Request, error)

NewBuildGetRequest generates requests for BuildGet

func NewBuildLogsListRequest

func NewBuildLogsListRequest(server string, build openapi_types.UUID) (*http.Request, error)

NewBuildLogsListRequest generates requests for BuildLogsList

func NewFeatureFlagsListRequest

func NewFeatureFlagsListRequest(server string, tenant openapi_types.UUID) (*http.Request, error)

NewFeatureFlagsListRequest generates requests for FeatureFlagsList

func NewGithubAppListBranchesRequest

func NewGithubAppListBranchesRequest(server string, ghInstallation openapi_types.UUID, ghRepoOwner string, ghRepoName string) (*http.Request, error)

NewGithubAppListBranchesRequest generates requests for GithubAppListBranches

func NewGithubAppListInstallationsRequest

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

NewGithubAppListInstallationsRequest generates requests for GithubAppListInstallations

func NewGithubAppListReposRequest

func NewGithubAppListReposRequest(server string, ghInstallation openapi_types.UUID) (*http.Request, error)

NewGithubAppListReposRequest generates requests for GithubAppListRepos

func NewGithubUpdateGlobalWebhookRequest

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

NewGithubUpdateGlobalWebhookRequest generates requests for GithubUpdateGlobalWebhook

func NewGithubUpdateTenantWebhookRequest

func NewGithubUpdateTenantWebhookRequest(server string, webhook openapi_types.UUID) (*http.Request, error)

NewGithubUpdateTenantWebhookRequest generates requests for GithubUpdateTenantWebhook

func NewIacLogsListRequest

func NewIacLogsListRequest(server string, managedWorker openapi_types.UUID, params *IacLogsListParams) (*http.Request, error)

NewIacLogsListRequest generates requests for IacLogsList

func NewInfraAsCodeCreateRequest

func NewInfraAsCodeCreateRequest(server string, infraAsCodeRequest openapi_types.UUID, body InfraAsCodeCreateJSONRequestBody) (*http.Request, error)

NewInfraAsCodeCreateRequest calls the generic InfraAsCodeCreate builder with application/json body

func NewInfraAsCodeCreateRequestWithBody

func NewInfraAsCodeCreateRequestWithBody(server string, infraAsCodeRequest openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewInfraAsCodeCreateRequestWithBody generates requests for InfraAsCodeCreate with any type of body

func NewLagoMessageCreateRequest

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

NewLagoMessageCreateRequest generates requests for LagoMessageCreate

func NewLogCreateRequest

func NewLogCreateRequest(server string, tenant openapi_types.UUID, body LogCreateJSONRequestBody) (*http.Request, error)

NewLogCreateRequest calls the generic LogCreate builder with application/json body

func NewLogCreateRequestWithBody

func NewLogCreateRequestWithBody(server string, tenant openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewLogCreateRequestWithBody generates requests for LogCreate with any type of body

func NewLogListRequest

func NewLogListRequest(server string, managedWorker openapi_types.UUID, params *LogListParams) (*http.Request, error)

NewLogListRequest generates requests for LogList

func NewManagedWorkerCreateRequest

func NewManagedWorkerCreateRequest(server string, tenant openapi_types.UUID, body ManagedWorkerCreateJSONRequestBody) (*http.Request, error)

NewManagedWorkerCreateRequest calls the generic ManagedWorkerCreate builder with application/json body

func NewManagedWorkerCreateRequestWithBody

func NewManagedWorkerCreateRequestWithBody(server string, tenant openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewManagedWorkerCreateRequestWithBody generates requests for ManagedWorkerCreate with any type of body

func NewManagedWorkerDeleteRequest

func NewManagedWorkerDeleteRequest(server string, managedWorker openapi_types.UUID) (*http.Request, error)

NewManagedWorkerDeleteRequest generates requests for ManagedWorkerDelete

func NewManagedWorkerEventsListRequest

func NewManagedWorkerEventsListRequest(server string, managedWorker openapi_types.UUID) (*http.Request, error)

NewManagedWorkerEventsListRequest generates requests for ManagedWorkerEventsList

func NewManagedWorkerGetRequest

func NewManagedWorkerGetRequest(server string, managedWorker openapi_types.UUID) (*http.Request, error)

NewManagedWorkerGetRequest generates requests for ManagedWorkerGet

func NewManagedWorkerInstancesListRequest

func NewManagedWorkerInstancesListRequest(server string, managedWorker openapi_types.UUID) (*http.Request, error)

NewManagedWorkerInstancesListRequest generates requests for ManagedWorkerInstancesList

func NewManagedWorkerListRequest

func NewManagedWorkerListRequest(server string, tenant openapi_types.UUID) (*http.Request, error)

NewManagedWorkerListRequest generates requests for ManagedWorkerList

func NewManagedWorkerUpdateRequest

func NewManagedWorkerUpdateRequest(server string, managedWorker openapi_types.UUID, body ManagedWorkerUpdateJSONRequestBody) (*http.Request, error)

NewManagedWorkerUpdateRequest calls the generic ManagedWorkerUpdate builder with application/json body

func NewManagedWorkerUpdateRequestWithBody

func NewManagedWorkerUpdateRequestWithBody(server string, managedWorker openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewManagedWorkerUpdateRequestWithBody generates requests for ManagedWorkerUpdate with any type of body

func NewMetadataGetRequest

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

NewMetadataGetRequest generates requests for MetadataGet

func NewMetricsCpuGetRequest

func NewMetricsCpuGetRequest(server string, managedWorker openapi_types.UUID, params *MetricsCpuGetParams) (*http.Request, error)

NewMetricsCpuGetRequest generates requests for MetricsCpuGet

func NewMetricsDiskGetRequest

func NewMetricsDiskGetRequest(server string, managedWorker openapi_types.UUID, params *MetricsDiskGetParams) (*http.Request, error)

NewMetricsDiskGetRequest generates requests for MetricsDiskGet

func NewMetricsMemoryGetRequest

func NewMetricsMemoryGetRequest(server string, managedWorker openapi_types.UUID, params *MetricsMemoryGetParams) (*http.Request, error)

NewMetricsMemoryGetRequest generates requests for MetricsMemoryGet

func NewRuntimeConfigListActionsRequest

func NewRuntimeConfigListActionsRequest(server string, runtimeConfig openapi_types.UUID) (*http.Request, error)

NewRuntimeConfigListActionsRequest generates requests for RuntimeConfigListActions

func NewSubscriptionUpsertRequest

func NewSubscriptionUpsertRequest(server string, tenant openapi_types.UUID, body SubscriptionUpsertJSONRequestBody) (*http.Request, error)

NewSubscriptionUpsertRequest calls the generic SubscriptionUpsert builder with application/json body

func NewSubscriptionUpsertRequestWithBody

func NewSubscriptionUpsertRequestWithBody(server string, tenant openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewSubscriptionUpsertRequestWithBody generates requests for SubscriptionUpsert with any type of body

func NewTenantBillingStateGetRequest

func NewTenantBillingStateGetRequest(server string, tenant openapi_types.UUID) (*http.Request, error)

NewTenantBillingStateGetRequest generates requests for TenantBillingStateGet

func NewUserUpdateGithubAppOauthCallbackRequest

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

NewUserUpdateGithubAppOauthCallbackRequest generates requests for UserUpdateGithubAppOauthCallback

func NewUserUpdateGithubAppOauthStartRequest

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

NewUserUpdateGithubAppOauthStartRequest generates requests for UserUpdateGithubAppOauthStart

func NewWorkflowRunEventsGetMetricsRequest

func NewWorkflowRunEventsGetMetricsRequest(server string, tenant openapi_types.UUID, params *WorkflowRunEventsGetMetricsParams) (*http.Request, error)

NewWorkflowRunEventsGetMetricsRequest generates requests for WorkflowRunEventsGetMetrics

Types

type APICloudMetadata

type APICloudMetadata struct {
	// CanBill whether the tenant can be billed
	CanBill *bool `json:"canBill,omitempty"`

	// CanLinkGithub whether the tenant can link to GitHub
	CanLinkGithub *bool `json:"canLinkGithub,omitempty"`

	// MetricsEnabled whether metrics are enabled for the tenant
	MetricsEnabled *bool `json:"metricsEnabled,omitempty"`
}

APICloudMetadata defines model for APICloudMetadata.

type APIError

type APIError = rest.APIError

APIError defines model for APIError.

type APIErrors

type APIErrors = rest.APIErrors

APIErrors defines model for APIErrors.

type APIResourceMeta

type APIResourceMeta = rest.APIResourceMeta

APIResourceMeta defines model for APIResourceMeta.

type BillingPortalLinkGetResponse

type BillingPortalLinkGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Url The url to the billing portal
		Url *string `json:"url,omitempty"`
	}
	JSON400 *APIErrors
	JSON403 *APIErrors
}

func ParseBillingPortalLinkGetResponse

func ParseBillingPortalLinkGetResponse(rsp *http.Response) (*BillingPortalLinkGetResponse, error)

ParseBillingPortalLinkGetResponse parses an HTTP response from a BillingPortalLinkGetWithResponse call

func (BillingPortalLinkGetResponse) Status

Status returns HTTPResponse.Status

func (BillingPortalLinkGetResponse) StatusCode

func (r BillingPortalLinkGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Build

type Build struct {
	BuildConfigId openapi_types.UUID `json:"buildConfigId"`
	CreateTime    time.Time          `json:"createTime"`
	FinishTime    *time.Time         `json:"finishTime,omitempty"`
	Metadata      *APIResourceMeta   `json:"metadata,omitempty"`
	StartTime     *time.Time         `json:"startTime,omitempty"`
	Status        string             `json:"status"`
	StatusDetail  *string            `json:"statusDetail,omitempty"`
}

Build defines model for Build.

type BuildGetResponse

type BuildGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Build
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseBuildGetResponse

func ParseBuildGetResponse(rsp *http.Response) (*BuildGetResponse, error)

ParseBuildGetResponse parses an HTTP response from a BuildGetWithResponse call

func (BuildGetResponse) Status

func (r BuildGetResponse) Status() string

Status returns HTTPResponse.Status

func (BuildGetResponse) StatusCode

func (r BuildGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BuildLogsListResponse

type BuildLogsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LogLineList
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseBuildLogsListResponse

func ParseBuildLogsListResponse(rsp *http.Response) (*BuildLogsListResponse, error)

ParseBuildLogsListResponse parses an HTTP response from a BuildLogsListWithResponse call

func (BuildLogsListResponse) Status

func (r BuildLogsListResponse) Status() string

Status returns HTTPResponse.Status

func (BuildLogsListResponse) StatusCode

func (r BuildLogsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BuildStep

type BuildStep struct {
	// BuildDir The relative path to the build directory
	BuildDir string `json:"buildDir"`

	// DockerfilePath The relative path from the build dir to the Dockerfile
	DockerfilePath string          `json:"dockerfilePath"`
	Metadata       APIResourceMeta `json:"metadata"`
}

BuildStep defines model for BuildStep.

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

func (c *Client) BillingPortalLinkGet(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BuildGet

func (c *Client) BuildGet(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BuildLogsList

func (c *Client) BuildLogsList(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FeatureFlagsList

func (c *Client) FeatureFlagsList(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GithubAppListBranches

func (c *Client) GithubAppListBranches(ctx context.Context, ghInstallation openapi_types.UUID, ghRepoOwner string, ghRepoName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GithubAppListInstallations

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

func (*Client) GithubAppListRepos

func (c *Client) GithubAppListRepos(ctx context.Context, ghInstallation openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GithubUpdateGlobalWebhook

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

func (*Client) GithubUpdateTenantWebhook

func (c *Client) GithubUpdateTenantWebhook(ctx context.Context, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) IacLogsList

func (c *Client) IacLogsList(ctx context.Context, managedWorker openapi_types.UUID, params *IacLogsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InfraAsCodeCreate

func (c *Client) InfraAsCodeCreate(ctx context.Context, infraAsCodeRequest openapi_types.UUID, body InfraAsCodeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InfraAsCodeCreateWithBody

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

func (*Client) LagoMessageCreate

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

func (*Client) LogCreate

func (c *Client) LogCreate(ctx context.Context, tenant openapi_types.UUID, body LogCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LogCreateWithBody

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

func (*Client) LogList

func (c *Client) LogList(ctx context.Context, managedWorker openapi_types.UUID, params *LogListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerCreate

func (c *Client) ManagedWorkerCreate(ctx context.Context, tenant openapi_types.UUID, body ManagedWorkerCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerCreateWithBody

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

func (*Client) ManagedWorkerDelete

func (c *Client) ManagedWorkerDelete(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerEventsList

func (c *Client) ManagedWorkerEventsList(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerGet

func (c *Client) ManagedWorkerGet(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerInstancesList

func (c *Client) ManagedWorkerInstancesList(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerList

func (c *Client) ManagedWorkerList(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerUpdate

func (c *Client) ManagedWorkerUpdate(ctx context.Context, managedWorker openapi_types.UUID, body ManagedWorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ManagedWorkerUpdateWithBody

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

func (*Client) MetadataGet

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

func (*Client) MetricsCpuGet

func (c *Client) MetricsCpuGet(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsCpuGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MetricsDiskGet

func (c *Client) MetricsDiskGet(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsDiskGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MetricsMemoryGet

func (c *Client) MetricsMemoryGet(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsMemoryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RuntimeConfigListActions

func (c *Client) RuntimeConfigListActions(ctx context.Context, runtimeConfig openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SubscriptionUpsert

func (c *Client) SubscriptionUpsert(ctx context.Context, tenant openapi_types.UUID, body SubscriptionUpsertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SubscriptionUpsertWithBody

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

func (*Client) TenantBillingStateGet

func (c *Client) TenantBillingStateGet(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UserUpdateGithubAppOauthCallback

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

func (*Client) UserUpdateGithubAppOauthStart

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

func (*Client) WorkflowRunEventsGetMetrics

func (c *Client) WorkflowRunEventsGetMetrics(ctx context.Context, tenant openapi_types.UUID, params *WorkflowRunEventsGetMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

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

	// TenantBillingStateGet request
	TenantBillingStateGet(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BillingPortalLinkGet request
	BillingPortalLinkGet(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	SubscriptionUpsert(ctx context.Context, tenant openapi_types.UUID, body SubscriptionUpsertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BuildGet request
	BuildGet(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BuildLogsList request
	BuildLogsList(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GithubAppListInstallations request
	GithubAppListInstallations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GithubAppListRepos request
	GithubAppListRepos(ctx context.Context, ghInstallation openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GithubAppListBranches request
	GithubAppListBranches(ctx context.Context, ghInstallation openapi_types.UUID, ghRepoOwner string, ghRepoName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GithubUpdateGlobalWebhook request
	GithubUpdateGlobalWebhook(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GithubUpdateTenantWebhook request
	GithubUpdateTenantWebhook(ctx context.Context, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	InfraAsCodeCreate(ctx context.Context, infraAsCodeRequest openapi_types.UUID, body InfraAsCodeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ManagedWorkerDelete request
	ManagedWorkerDelete(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ManagedWorkerGet request
	ManagedWorkerGet(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ManagedWorkerUpdate(ctx context.Context, managedWorker openapi_types.UUID, body ManagedWorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ManagedWorkerEventsList request
	ManagedWorkerEventsList(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// IacLogsList request
	IacLogsList(ctx context.Context, managedWorker openapi_types.UUID, params *IacLogsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ManagedWorkerInstancesList request
	ManagedWorkerInstancesList(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LogList request
	LogList(ctx context.Context, managedWorker openapi_types.UUID, params *LogListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MetricsCpuGet request
	MetricsCpuGet(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsCpuGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MetricsDiskGet request
	MetricsDiskGet(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsDiskGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MetricsMemoryGet request
	MetricsMemoryGet(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsMemoryGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MetadataGet request
	MetadataGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RuntimeConfigListActions request
	RuntimeConfigListActions(ctx context.Context, runtimeConfig openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FeatureFlagsList request
	FeatureFlagsList(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	LogCreate(ctx context.Context, tenant openapi_types.UUID, body LogCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ManagedWorkerList request
	ManagedWorkerList(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ManagedWorkerCreate(ctx context.Context, tenant openapi_types.UUID, body ManagedWorkerCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WorkflowRunEventsGetMetrics request
	WorkflowRunEventsGetMetrics(ctx context.Context, tenant openapi_types.UUID, params *WorkflowRunEventsGetMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserUpdateGithubAppOauthCallback request
	UserUpdateGithubAppOauthCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserUpdateGithubAppOauthStart request
	UserUpdateGithubAppOauthStart(ctx context.Context, 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) BillingPortalLinkGetWithResponse

func (c *ClientWithResponses) BillingPortalLinkGetWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*BillingPortalLinkGetResponse, error)

BillingPortalLinkGetWithResponse request returning *BillingPortalLinkGetResponse

func (*ClientWithResponses) BuildGetWithResponse

func (c *ClientWithResponses) BuildGetWithResponse(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*BuildGetResponse, error)

BuildGetWithResponse request returning *BuildGetResponse

func (*ClientWithResponses) BuildLogsListWithResponse

func (c *ClientWithResponses) BuildLogsListWithResponse(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*BuildLogsListResponse, error)

BuildLogsListWithResponse request returning *BuildLogsListResponse

func (*ClientWithResponses) FeatureFlagsListWithResponse

func (c *ClientWithResponses) FeatureFlagsListWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*FeatureFlagsListResponse, error)

FeatureFlagsListWithResponse request returning *FeatureFlagsListResponse

func (*ClientWithResponses) GithubAppListBranchesWithResponse

func (c *ClientWithResponses) GithubAppListBranchesWithResponse(ctx context.Context, ghInstallation openapi_types.UUID, ghRepoOwner string, ghRepoName string, reqEditors ...RequestEditorFn) (*GithubAppListBranchesResponse, error)

GithubAppListBranchesWithResponse request returning *GithubAppListBranchesResponse

func (*ClientWithResponses) GithubAppListInstallationsWithResponse

func (c *ClientWithResponses) GithubAppListInstallationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GithubAppListInstallationsResponse, error)

GithubAppListInstallationsWithResponse request returning *GithubAppListInstallationsResponse

func (*ClientWithResponses) GithubAppListReposWithResponse

func (c *ClientWithResponses) GithubAppListReposWithResponse(ctx context.Context, ghInstallation openapi_types.UUID, reqEditors ...RequestEditorFn) (*GithubAppListReposResponse, error)

GithubAppListReposWithResponse request returning *GithubAppListReposResponse

func (*ClientWithResponses) GithubUpdateGlobalWebhookWithResponse

func (c *ClientWithResponses) GithubUpdateGlobalWebhookWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GithubUpdateGlobalWebhookResponse, error)

GithubUpdateGlobalWebhookWithResponse request returning *GithubUpdateGlobalWebhookResponse

func (*ClientWithResponses) GithubUpdateTenantWebhookWithResponse

func (c *ClientWithResponses) GithubUpdateTenantWebhookWithResponse(ctx context.Context, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*GithubUpdateTenantWebhookResponse, error)

GithubUpdateTenantWebhookWithResponse request returning *GithubUpdateTenantWebhookResponse

func (*ClientWithResponses) IacLogsListWithResponse

func (c *ClientWithResponses) IacLogsListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *IacLogsListParams, reqEditors ...RequestEditorFn) (*IacLogsListResponse, error)

IacLogsListWithResponse request returning *IacLogsListResponse

func (*ClientWithResponses) InfraAsCodeCreateWithBodyWithResponse

func (c *ClientWithResponses) InfraAsCodeCreateWithBodyWithResponse(ctx context.Context, infraAsCodeRequest openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InfraAsCodeCreateResponse, error)

InfraAsCodeCreateWithBodyWithResponse request with arbitrary body returning *InfraAsCodeCreateResponse

func (*ClientWithResponses) InfraAsCodeCreateWithResponse

func (c *ClientWithResponses) InfraAsCodeCreateWithResponse(ctx context.Context, infraAsCodeRequest openapi_types.UUID, body InfraAsCodeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*InfraAsCodeCreateResponse, error)

func (*ClientWithResponses) LagoMessageCreateWithResponse

func (c *ClientWithResponses) LagoMessageCreateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LagoMessageCreateResponse, error)

LagoMessageCreateWithResponse request returning *LagoMessageCreateResponse

func (*ClientWithResponses) LogCreateWithBodyWithResponse

func (c *ClientWithResponses) LogCreateWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogCreateResponse, error)

LogCreateWithBodyWithResponse request with arbitrary body returning *LogCreateResponse

func (*ClientWithResponses) LogCreateWithResponse

func (c *ClientWithResponses) LogCreateWithResponse(ctx context.Context, tenant openapi_types.UUID, body LogCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*LogCreateResponse, error)

func (*ClientWithResponses) LogListWithResponse

func (c *ClientWithResponses) LogListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *LogListParams, reqEditors ...RequestEditorFn) (*LogListResponse, error)

LogListWithResponse request returning *LogListResponse

func (*ClientWithResponses) ManagedWorkerCreateWithBodyWithResponse

func (c *ClientWithResponses) ManagedWorkerCreateWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManagedWorkerCreateResponse, error)

ManagedWorkerCreateWithBodyWithResponse request with arbitrary body returning *ManagedWorkerCreateResponse

func (*ClientWithResponses) ManagedWorkerCreateWithResponse

func (c *ClientWithResponses) ManagedWorkerCreateWithResponse(ctx context.Context, tenant openapi_types.UUID, body ManagedWorkerCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ManagedWorkerCreateResponse, error)

func (*ClientWithResponses) ManagedWorkerDeleteWithResponse

func (c *ClientWithResponses) ManagedWorkerDeleteWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerDeleteResponse, error)

ManagedWorkerDeleteWithResponse request returning *ManagedWorkerDeleteResponse

func (*ClientWithResponses) ManagedWorkerEventsListWithResponse

func (c *ClientWithResponses) ManagedWorkerEventsListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerEventsListResponse, error)

ManagedWorkerEventsListWithResponse request returning *ManagedWorkerEventsListResponse

func (*ClientWithResponses) ManagedWorkerGetWithResponse

func (c *ClientWithResponses) ManagedWorkerGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerGetResponse, error)

ManagedWorkerGetWithResponse request returning *ManagedWorkerGetResponse

func (*ClientWithResponses) ManagedWorkerInstancesListWithResponse

func (c *ClientWithResponses) ManagedWorkerInstancesListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerInstancesListResponse, error)

ManagedWorkerInstancesListWithResponse request returning *ManagedWorkerInstancesListResponse

func (*ClientWithResponses) ManagedWorkerListWithResponse

func (c *ClientWithResponses) ManagedWorkerListWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerListResponse, error)

ManagedWorkerListWithResponse request returning *ManagedWorkerListResponse

func (*ClientWithResponses) ManagedWorkerUpdateWithBodyWithResponse

func (c *ClientWithResponses) ManagedWorkerUpdateWithBodyWithResponse(ctx context.Context, managedWorker openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManagedWorkerUpdateResponse, error)

ManagedWorkerUpdateWithBodyWithResponse request with arbitrary body returning *ManagedWorkerUpdateResponse

func (*ClientWithResponses) ManagedWorkerUpdateWithResponse

func (c *ClientWithResponses) ManagedWorkerUpdateWithResponse(ctx context.Context, managedWorker openapi_types.UUID, body ManagedWorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ManagedWorkerUpdateResponse, error)

func (*ClientWithResponses) MetadataGetWithResponse

func (c *ClientWithResponses) MetadataGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataGetResponse, error)

MetadataGetWithResponse request returning *MetadataGetResponse

func (*ClientWithResponses) MetricsCpuGetWithResponse

func (c *ClientWithResponses) MetricsCpuGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsCpuGetParams, reqEditors ...RequestEditorFn) (*MetricsCpuGetResponse, error)

MetricsCpuGetWithResponse request returning *MetricsCpuGetResponse

func (*ClientWithResponses) MetricsDiskGetWithResponse

func (c *ClientWithResponses) MetricsDiskGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsDiskGetParams, reqEditors ...RequestEditorFn) (*MetricsDiskGetResponse, error)

MetricsDiskGetWithResponse request returning *MetricsDiskGetResponse

func (*ClientWithResponses) MetricsMemoryGetWithResponse

func (c *ClientWithResponses) MetricsMemoryGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsMemoryGetParams, reqEditors ...RequestEditorFn) (*MetricsMemoryGetResponse, error)

MetricsMemoryGetWithResponse request returning *MetricsMemoryGetResponse

func (*ClientWithResponses) RuntimeConfigListActionsWithResponse

func (c *ClientWithResponses) RuntimeConfigListActionsWithResponse(ctx context.Context, runtimeConfig openapi_types.UUID, reqEditors ...RequestEditorFn) (*RuntimeConfigListActionsResponse, error)

RuntimeConfigListActionsWithResponse request returning *RuntimeConfigListActionsResponse

func (*ClientWithResponses) SubscriptionUpsertWithBodyWithResponse

func (c *ClientWithResponses) SubscriptionUpsertWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionUpsertResponse, error)

SubscriptionUpsertWithBodyWithResponse request with arbitrary body returning *SubscriptionUpsertResponse

func (*ClientWithResponses) SubscriptionUpsertWithResponse

func (c *ClientWithResponses) SubscriptionUpsertWithResponse(ctx context.Context, tenant openapi_types.UUID, body SubscriptionUpsertJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionUpsertResponse, error)

func (*ClientWithResponses) TenantBillingStateGetWithResponse

func (c *ClientWithResponses) TenantBillingStateGetWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenantBillingStateGetResponse, error)

TenantBillingStateGetWithResponse request returning *TenantBillingStateGetResponse

func (*ClientWithResponses) UserUpdateGithubAppOauthCallbackWithResponse

func (c *ClientWithResponses) UserUpdateGithubAppOauthCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserUpdateGithubAppOauthCallbackResponse, error)

UserUpdateGithubAppOauthCallbackWithResponse request returning *UserUpdateGithubAppOauthCallbackResponse

func (*ClientWithResponses) UserUpdateGithubAppOauthStartWithResponse

func (c *ClientWithResponses) UserUpdateGithubAppOauthStartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserUpdateGithubAppOauthStartResponse, error)

UserUpdateGithubAppOauthStartWithResponse request returning *UserUpdateGithubAppOauthStartResponse

func (*ClientWithResponses) WorkflowRunEventsGetMetricsWithResponse

func (c *ClientWithResponses) WorkflowRunEventsGetMetricsWithResponse(ctx context.Context, tenant openapi_types.UUID, params *WorkflowRunEventsGetMetricsParams, reqEditors ...RequestEditorFn) (*WorkflowRunEventsGetMetricsResponse, error)

WorkflowRunEventsGetMetricsWithResponse request returning *WorkflowRunEventsGetMetricsResponse

type ClientWithResponsesInterface

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

	// TenantBillingStateGetWithResponse request
	TenantBillingStateGetWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*TenantBillingStateGetResponse, error)

	// BillingPortalLinkGetWithResponse request
	BillingPortalLinkGetWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*BillingPortalLinkGetResponse, error)

	// SubscriptionUpsertWithBodyWithResponse request with any body
	SubscriptionUpsertWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubscriptionUpsertResponse, error)

	SubscriptionUpsertWithResponse(ctx context.Context, tenant openapi_types.UUID, body SubscriptionUpsertJSONRequestBody, reqEditors ...RequestEditorFn) (*SubscriptionUpsertResponse, error)

	// BuildGetWithResponse request
	BuildGetWithResponse(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*BuildGetResponse, error)

	// BuildLogsListWithResponse request
	BuildLogsListWithResponse(ctx context.Context, build openapi_types.UUID, reqEditors ...RequestEditorFn) (*BuildLogsListResponse, error)

	// GithubAppListInstallationsWithResponse request
	GithubAppListInstallationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GithubAppListInstallationsResponse, error)

	// GithubAppListReposWithResponse request
	GithubAppListReposWithResponse(ctx context.Context, ghInstallation openapi_types.UUID, reqEditors ...RequestEditorFn) (*GithubAppListReposResponse, error)

	// GithubAppListBranchesWithResponse request
	GithubAppListBranchesWithResponse(ctx context.Context, ghInstallation openapi_types.UUID, ghRepoOwner string, ghRepoName string, reqEditors ...RequestEditorFn) (*GithubAppListBranchesResponse, error)

	// GithubUpdateGlobalWebhookWithResponse request
	GithubUpdateGlobalWebhookWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GithubUpdateGlobalWebhookResponse, error)

	// GithubUpdateTenantWebhookWithResponse request
	GithubUpdateTenantWebhookWithResponse(ctx context.Context, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*GithubUpdateTenantWebhookResponse, error)

	// InfraAsCodeCreateWithBodyWithResponse request with any body
	InfraAsCodeCreateWithBodyWithResponse(ctx context.Context, infraAsCodeRequest openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InfraAsCodeCreateResponse, error)

	InfraAsCodeCreateWithResponse(ctx context.Context, infraAsCodeRequest openapi_types.UUID, body InfraAsCodeCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*InfraAsCodeCreateResponse, error)

	// ManagedWorkerDeleteWithResponse request
	ManagedWorkerDeleteWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerDeleteResponse, error)

	// ManagedWorkerGetWithResponse request
	ManagedWorkerGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerGetResponse, error)

	// ManagedWorkerUpdateWithBodyWithResponse request with any body
	ManagedWorkerUpdateWithBodyWithResponse(ctx context.Context, managedWorker openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManagedWorkerUpdateResponse, error)

	ManagedWorkerUpdateWithResponse(ctx context.Context, managedWorker openapi_types.UUID, body ManagedWorkerUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ManagedWorkerUpdateResponse, error)

	// ManagedWorkerEventsListWithResponse request
	ManagedWorkerEventsListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerEventsListResponse, error)

	// IacLogsListWithResponse request
	IacLogsListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *IacLogsListParams, reqEditors ...RequestEditorFn) (*IacLogsListResponse, error)

	// ManagedWorkerInstancesListWithResponse request
	ManagedWorkerInstancesListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerInstancesListResponse, error)

	// LogListWithResponse request
	LogListWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *LogListParams, reqEditors ...RequestEditorFn) (*LogListResponse, error)

	// MetricsCpuGetWithResponse request
	MetricsCpuGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsCpuGetParams, reqEditors ...RequestEditorFn) (*MetricsCpuGetResponse, error)

	// MetricsDiskGetWithResponse request
	MetricsDiskGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsDiskGetParams, reqEditors ...RequestEditorFn) (*MetricsDiskGetResponse, error)

	// MetricsMemoryGetWithResponse request
	MetricsMemoryGetWithResponse(ctx context.Context, managedWorker openapi_types.UUID, params *MetricsMemoryGetParams, reqEditors ...RequestEditorFn) (*MetricsMemoryGetResponse, error)

	// MetadataGetWithResponse request
	MetadataGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetadataGetResponse, error)

	// RuntimeConfigListActionsWithResponse request
	RuntimeConfigListActionsWithResponse(ctx context.Context, runtimeConfig openapi_types.UUID, reqEditors ...RequestEditorFn) (*RuntimeConfigListActionsResponse, error)

	// FeatureFlagsListWithResponse request
	FeatureFlagsListWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*FeatureFlagsListResponse, error)

	// LogCreateWithBodyWithResponse request with any body
	LogCreateWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogCreateResponse, error)

	LogCreateWithResponse(ctx context.Context, tenant openapi_types.UUID, body LogCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*LogCreateResponse, error)

	// ManagedWorkerListWithResponse request
	ManagedWorkerListWithResponse(ctx context.Context, tenant openapi_types.UUID, reqEditors ...RequestEditorFn) (*ManagedWorkerListResponse, error)

	// ManagedWorkerCreateWithBodyWithResponse request with any body
	ManagedWorkerCreateWithBodyWithResponse(ctx context.Context, tenant openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManagedWorkerCreateResponse, error)

	ManagedWorkerCreateWithResponse(ctx context.Context, tenant openapi_types.UUID, body ManagedWorkerCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ManagedWorkerCreateResponse, error)

	// WorkflowRunEventsGetMetricsWithResponse request
	WorkflowRunEventsGetMetricsWithResponse(ctx context.Context, tenant openapi_types.UUID, params *WorkflowRunEventsGetMetricsParams, reqEditors ...RequestEditorFn) (*WorkflowRunEventsGetMetricsResponse, error)

	// UserUpdateGithubAppOauthCallbackWithResponse request
	UserUpdateGithubAppOauthCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserUpdateGithubAppOauthCallbackResponse, error)

	// UserUpdateGithubAppOauthStartWithResponse request
	UserUpdateGithubAppOauthStartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UserUpdateGithubAppOauthStartResponse, error)
}

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

type Coupon

type Coupon struct {
	// AmountCents The amount off of the coupon.
	AmountCents *int `json:"amount_cents,omitempty"`

	// AmountCentsRemaining The amount remaining on the coupon.
	AmountCentsRemaining *int `json:"amount_cents_remaining,omitempty"`

	// AmountCurrency The currency of the coupon.
	AmountCurrency *string         `json:"amount_currency,omitempty"`
	Frequency      CouponFrequency `json:"frequency"`

	// FrequencyDuration The frequency duration of the coupon.
	FrequencyDuration *int `json:"frequency_duration,omitempty"`

	// FrequencyDurationRemaining The frequency duration remaining of the coupon.
	FrequencyDurationRemaining *int `json:"frequency_duration_remaining,omitempty"`

	// Name The name of the coupon.
	Name string `json:"name"`

	// Percent The percentage off of the coupon.
	Percent *float32 `json:"percent,omitempty"`
}

Coupon defines model for Coupon.

type CouponFrequency

type CouponFrequency string

CouponFrequency defines model for CouponFrequency.

const (
	Once      CouponFrequency = "once"
	Recurring CouponFrequency = "recurring"
)

Defines values for CouponFrequency.

type CreateBuildStepRequest

type CreateBuildStepRequest struct {
	// BuildDir The relative path to the build directory
	BuildDir string `json:"buildDir"`

	// DockerfilePath The relative path from the build dir to the Dockerfile
	DockerfilePath string `json:"dockerfilePath"`
}

CreateBuildStepRequest defines model for CreateBuildStepRequest.

type CreateManagedWorkerBuildConfigRequest

type CreateManagedWorkerBuildConfigRequest struct {
	GithubInstallationId   openapi_types.UUID       `json:"githubInstallationId"`
	GithubRepositoryBranch string                   `json:"githubRepositoryBranch"`
	GithubRepositoryName   string                   `json:"githubRepositoryName"`
	GithubRepositoryOwner  string                   `json:"githubRepositoryOwner"`
	Steps                  []CreateBuildStepRequest `json:"steps"`
}

CreateManagedWorkerBuildConfigRequest defines model for CreateManagedWorkerBuildConfigRequest.

type CreateManagedWorkerRequest

type CreateManagedWorkerRequest struct {
	BuildConfig CreateManagedWorkerBuildConfigRequest `json:"buildConfig"`

	// EnvVars A map of environment variables to set for the worker
	EnvVars       map[string]string                        `json:"envVars"`
	IsIac         bool                                     `json:"isIac"`
	Name          string                                   `json:"name" validate:"required,hatchetName,min=1,max=256"`
	RuntimeConfig *CreateManagedWorkerRuntimeConfigRequest `json:"runtimeConfig,omitempty"`
}

CreateManagedWorkerRequest defines model for CreateManagedWorkerRequest.

type CreateManagedWorkerRuntimeConfigRequest

type CreateManagedWorkerRuntimeConfigRequest struct {
	Actions *[]string `json:"actions,omitempty"`

	// CpuKind The kind of CPU to use for the worker
	CpuKind string `json:"cpuKind"`

	// Cpus The number of CPUs to use for the worker
	Cpus int `json:"cpus"`

	// GpuKind The kind of GPU to use for the worker
	GpuKind *CreateManagedWorkerRuntimeConfigRequestGpuKind `json:"gpuKind,omitempty"`

	// Gpus The number of GPUs to use for the worker
	Gpus *int `json:"gpus,omitempty"`

	// MemoryMb The amount of memory in MB to use for the worker
	MemoryMb    int `json:"memoryMb"`
	NumReplicas int `json:"numReplicas"`

	// Regions The region to deploy the worker to
	Regions *[]ManagedWorkerRegion `json:"regions,omitempty"`
	Slots   *int                   `json:"slots,omitempty"`
}

CreateManagedWorkerRuntimeConfigRequest defines model for CreateManagedWorkerRuntimeConfigRequest.

type CreateManagedWorkerRuntimeConfigRequestGpuKind

type CreateManagedWorkerRuntimeConfigRequestGpuKind string

CreateManagedWorkerRuntimeConfigRequestGpuKind The kind of GPU to use for the worker

Defines values for CreateManagedWorkerRuntimeConfigRequestGpuKind.

type EventObject

type EventObject struct {
	Event *struct {
		Provider *string `json:"provider,omitempty"`
	} `json:"event,omitempty"`
	Fly *struct {
		App *struct {
			Instance *string `json:"instance,omitempty"`
			Name     *string `json:"name,omitempty"`
		} `json:"app,omitempty"`
		Region *string `json:"region,omitempty"`
	} `json:"fly,omitempty"`
	Host *string `json:"host,omitempty"`
	Log  *struct {
		Level *string `json:"level,omitempty"`
	} `json:"log,omitempty"`
	Message   *string    `json:"message,omitempty"`
	Timestamp *time.Time `json:"timestamp,omitempty"`
}

EventObject defines model for EventObject.

type FeatureFlags

type FeatureFlags map[string]string

FeatureFlags a map of feature flags for the tenant

type FeatureFlagsListResponse

type FeatureFlagsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FeatureFlags
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseFeatureFlagsListResponse

func ParseFeatureFlagsListResponse(rsp *http.Response) (*FeatureFlagsListResponse, error)

ParseFeatureFlagsListResponse parses an HTTP response from a FeatureFlagsListWithResponse call

func (FeatureFlagsListResponse) Status

func (r FeatureFlagsListResponse) Status() string

Status returns HTTPResponse.Status

func (FeatureFlagsListResponse) StatusCode

func (r FeatureFlagsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FloatString

type FloatString = float32

FloatString defines model for FloatString.

type GithubAppInstallation

type GithubAppInstallation struct {
	AccountAvatarUrl        string          `json:"account_avatar_url"`
	AccountName             string          `json:"account_name"`
	InstallationSettingsUrl string          `json:"installation_settings_url"`
	Metadata                APIResourceMeta `json:"metadata"`
}

GithubAppInstallation defines model for GithubAppInstallation.

type GithubAppListBranchesResponse

type GithubAppListBranchesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListGithubBranchesResponse
	JSON400      *APIErrors
	JSON401      *APIErrors
	JSON405      *APIErrors
}

func ParseGithubAppListBranchesResponse

func ParseGithubAppListBranchesResponse(rsp *http.Response) (*GithubAppListBranchesResponse, error)

ParseGithubAppListBranchesResponse parses an HTTP response from a GithubAppListBranchesWithResponse call

func (GithubAppListBranchesResponse) Status

Status returns HTTPResponse.Status

func (GithubAppListBranchesResponse) StatusCode

func (r GithubAppListBranchesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GithubAppListInstallationsResponse

type GithubAppListInstallationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListGithubAppInstallationsResponse
	JSON400      *APIErrors
	JSON401      *APIErrors
	JSON405      *APIErrors
}

func ParseGithubAppListInstallationsResponse

func ParseGithubAppListInstallationsResponse(rsp *http.Response) (*GithubAppListInstallationsResponse, error)

ParseGithubAppListInstallationsResponse parses an HTTP response from a GithubAppListInstallationsWithResponse call

func (GithubAppListInstallationsResponse) Status

Status returns HTTPResponse.Status

func (GithubAppListInstallationsResponse) StatusCode

func (r GithubAppListInstallationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GithubAppListReposResponse

type GithubAppListReposResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListGithubReposResponse
	JSON400      *APIErrors
	JSON401      *APIErrors
	JSON405      *APIErrors
}

func ParseGithubAppListReposResponse

func ParseGithubAppListReposResponse(rsp *http.Response) (*GithubAppListReposResponse, error)

ParseGithubAppListReposResponse parses an HTTP response from a GithubAppListReposWithResponse call

func (GithubAppListReposResponse) Status

Status returns HTTPResponse.Status

func (GithubAppListReposResponse) StatusCode

func (r GithubAppListReposResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GithubBranch

type GithubBranch struct {
	BranchName string `json:"branch_name"`
	IsDefault  bool   `json:"is_default"`
}

GithubBranch defines model for GithubBranch.

type GithubRepo

type GithubRepo struct {
	RepoName  string `json:"repo_name"`
	RepoOwner string `json:"repo_owner"`
}

GithubRepo defines model for GithubRepo.

type GithubUpdateGlobalWebhookResponse

type GithubUpdateGlobalWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *APIErrors
	JSON401      *APIErrors
	JSON405      *APIErrors
}

func ParseGithubUpdateGlobalWebhookResponse

func ParseGithubUpdateGlobalWebhookResponse(rsp *http.Response) (*GithubUpdateGlobalWebhookResponse, error)

ParseGithubUpdateGlobalWebhookResponse parses an HTTP response from a GithubUpdateGlobalWebhookWithResponse call

func (GithubUpdateGlobalWebhookResponse) Status

Status returns HTTPResponse.Status

func (GithubUpdateGlobalWebhookResponse) StatusCode

func (r GithubUpdateGlobalWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GithubUpdateTenantWebhookResponse

type GithubUpdateTenantWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *APIErrors
	JSON401      *APIErrors
	JSON405      *APIErrors
}

func ParseGithubUpdateTenantWebhookResponse

func ParseGithubUpdateTenantWebhookResponse(rsp *http.Response) (*GithubUpdateTenantWebhookResponse, error)

ParseGithubUpdateTenantWebhookResponse parses an HTTP response from a GithubUpdateTenantWebhookWithResponse call

func (GithubUpdateTenantWebhookResponse) Status

Status returns HTTPResponse.Status

func (GithubUpdateTenantWebhookResponse) StatusCode

func (r GithubUpdateTenantWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HistogramBucket

type HistogramBucket struct {
	Boundaries *int32       `json:"boundaries,omitempty"`
	Count      *FloatString `json:"count,omitempty"`
	Lower      *FloatString `json:"lower,omitempty"`
	Upper      *FloatString `json:"upper,omitempty"`
}

HistogramBucket defines model for HistogramBucket.

type HistogramBuckets

type HistogramBuckets = []HistogramBucket

HistogramBuckets defines model for HistogramBuckets.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IacLogsListParams

type IacLogsListParams struct {
	// DeployKey The deploy key
	DeployKey string `form:"deployKey" json:"deployKey"`
}

IacLogsListParams defines parameters for IacLogsList.

type IacLogsListResponse

type IacLogsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LogLineList
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseIacLogsListResponse

func ParseIacLogsListResponse(rsp *http.Response) (*IacLogsListResponse, error)

ParseIacLogsListResponse parses an HTTP response from a IacLogsListWithResponse call

func (IacLogsListResponse) Status

func (r IacLogsListResponse) Status() string

Status returns HTTPResponse.Status

func (IacLogsListResponse) StatusCode

func (r IacLogsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InfraAsCodeCreateJSONRequestBody

type InfraAsCodeCreateJSONRequestBody = InfraAsCodeRequest

InfraAsCodeCreateJSONRequestBody defines body for InfraAsCodeCreate for application/json ContentType.

type InfraAsCodeCreateResponse

type InfraAsCodeCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseInfraAsCodeCreateResponse

func ParseInfraAsCodeCreateResponse(rsp *http.Response) (*InfraAsCodeCreateResponse, error)

ParseInfraAsCodeCreateResponse parses an HTTP response from a InfraAsCodeCreateWithResponse call

func (InfraAsCodeCreateResponse) Status

func (r InfraAsCodeCreateResponse) Status() string

Status returns HTTPResponse.Status

func (InfraAsCodeCreateResponse) StatusCode

func (r InfraAsCodeCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InfraAsCodeRequest

type InfraAsCodeRequest struct {
	RuntimeConfigs []CreateManagedWorkerRuntimeConfigRequest `json:"runtimeConfigs"`
}

InfraAsCodeRequest defines model for InfraAsCodeRequest.

type Instance

type Instance struct {
	CommitSha  string `json:"commitSha"`
	CpuKind    string `json:"cpuKind"`
	Cpus       int    `json:"cpus"`
	DiskGb     int    `json:"diskGb"`
	InstanceId string `json:"instanceId"`
	MemoryMb   int    `json:"memoryMb"`
	Name       string `json:"name"`
	Region     string `json:"region"`
	State      string `json:"state"`
}

Instance defines model for Instance.

type InstanceList

type InstanceList struct {
	Pagination *PaginationResponse `json:"pagination,omitempty"`
	Rows       *[]Instance         `json:"rows,omitempty"`
}

InstanceList defines model for InstanceList.

type LabelValue

type LabelValue = string

LabelValue defines model for LabelValue.

type LagoMessageCreateResponse

type LagoMessageCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseLagoMessageCreateResponse

func ParseLagoMessageCreateResponse(rsp *http.Response) (*LagoMessageCreateResponse, error)

ParseLagoMessageCreateResponse parses an HTTP response from a LagoMessageCreateWithResponse call

func (LagoMessageCreateResponse) Status

func (r LagoMessageCreateResponse) Status() string

Status returns HTTPResponse.Status

func (LagoMessageCreateResponse) StatusCode

func (r LagoMessageCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListGithubAppInstallationsResponse

type ListGithubAppInstallationsResponse struct {
	Pagination PaginationResponse      `json:"pagination"`
	Rows       []GithubAppInstallation `json:"rows"`
}

ListGithubAppInstallationsResponse defines model for ListGithubAppInstallationsResponse.

type ListGithubBranchesResponse

type ListGithubBranchesResponse = []GithubBranch

ListGithubBranchesResponse defines model for ListGithubBranchesResponse.

type ListGithubReposResponse

type ListGithubReposResponse = []GithubRepo

ListGithubReposResponse defines model for ListGithubReposResponse.

type LogCreateJSONRequestBody

type LogCreateJSONRequestBody = VectorPushRequest

LogCreateJSONRequestBody defines body for LogCreate for application/json ContentType.

type LogCreateResponse

type LogCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseLogCreateResponse

func ParseLogCreateResponse(rsp *http.Response) (*LogCreateResponse, error)

ParseLogCreateResponse parses an HTTP response from a LogCreateWithResponse call

func (LogCreateResponse) Status

func (r LogCreateResponse) Status() string

Status returns HTTPResponse.Status

func (LogCreateResponse) StatusCode

func (r LogCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogLine

type LogLine struct {
	Instance  string    `json:"instance"`
	Line      string    `json:"line"`
	Timestamp time.Time `json:"timestamp"`
}

LogLine defines model for LogLine.

type LogLineList

type LogLineList struct {
	Pagination *PaginationResponse `json:"pagination,omitempty"`
	Rows       *[]LogLine          `json:"rows,omitempty"`
}

LogLineList defines model for LogLineList.

type LogListParams

type LogListParams struct {
	// After When the logs should start
	After *time.Time `form:"after,omitempty" json:"after,omitempty"`

	// Before When the logs should end
	Before *time.Time `form:"before,omitempty" json:"before,omitempty"`

	// Search The search query to filter for
	Search *string `form:"search,omitempty" json:"search,omitempty"`

	// Direction The direction to sort the logs
	Direction *LogListParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`
}

LogListParams defines parameters for LogList.

type LogListParamsDirection

type LogListParamsDirection string

LogListParamsDirection defines parameters for LogList.

const (
	Backward LogListParamsDirection = "backward"
	Forward  LogListParamsDirection = "forward"
)

Defines values for LogListParamsDirection.

type LogListResponse

type LogListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LogLineList
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseLogListResponse

func ParseLogListResponse(rsp *http.Response) (*LogListResponse, error)

ParseLogListResponse parses an HTTP response from a LogListWithResponse call

func (LogListResponse) Status

func (r LogListResponse) Status() string

Status returns HTTPResponse.Status

func (LogListResponse) StatusCode

func (r LogListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ManagedWorker

type ManagedWorker struct {
	BuildConfig ManagedWorkerBuildConfig `json:"buildConfig"`

	// EnvVars A map of environment variables to set for the worker
	EnvVars        map[string]string             `json:"envVars"`
	IsIac          bool                          `json:"isIac"`
	Metadata       APIResourceMeta               `json:"metadata"`
	Name           string                        `json:"name"`
	RuntimeConfigs *[]ManagedWorkerRuntimeConfig `json:"runtimeConfigs,omitempty"`
}

ManagedWorker defines model for ManagedWorker.

type ManagedWorkerBuildConfig

type ManagedWorkerBuildConfig struct {
	GithubInstallationId   openapi_types.UUID `json:"githubInstallationId"`
	GithubRepository       GithubRepo         `json:"githubRepository"`
	GithubRepositoryBranch string             `json:"githubRepositoryBranch"`
	Metadata               APIResourceMeta    `json:"metadata"`
	Steps                  *[]BuildStep       `json:"steps,omitempty"`
}

ManagedWorkerBuildConfig defines model for ManagedWorkerBuildConfig.

type ManagedWorkerCreateJSONRequestBody

type ManagedWorkerCreateJSONRequestBody = CreateManagedWorkerRequest

ManagedWorkerCreateJSONRequestBody defines body for ManagedWorkerCreate for application/json ContentType.

type ManagedWorkerCreateResponse

type ManagedWorkerCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManagedWorker
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseManagedWorkerCreateResponse

func ParseManagedWorkerCreateResponse(rsp *http.Response) (*ManagedWorkerCreateResponse, error)

ParseManagedWorkerCreateResponse parses an HTTP response from a ManagedWorkerCreateWithResponse call

func (ManagedWorkerCreateResponse) Status

Status returns HTTPResponse.Status

func (ManagedWorkerCreateResponse) StatusCode

func (r ManagedWorkerCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ManagedWorkerDeleteResponse

type ManagedWorkerDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManagedWorker
	JSON400      *APIErrors
	JSON403      *APIErrors
	JSON404      *APIErrors
}

func ParseManagedWorkerDeleteResponse

func ParseManagedWorkerDeleteResponse(rsp *http.Response) (*ManagedWorkerDeleteResponse, error)

ParseManagedWorkerDeleteResponse parses an HTTP response from a ManagedWorkerDeleteWithResponse call

func (ManagedWorkerDeleteResponse) Status

Status returns HTTPResponse.Status

func (ManagedWorkerDeleteResponse) StatusCode

func (r ManagedWorkerDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ManagedWorkerEvent

type ManagedWorkerEvent struct {
	Data            map[string]interface{}   `json:"data"`
	Id              int                      `json:"id"`
	ManagedWorkerId string                   `json:"managedWorkerId"`
	Message         string                   `json:"message"`
	Status          ManagedWorkerEventStatus `json:"status"`
	TimeFirstSeen   time.Time                `json:"timeFirstSeen"`
	TimeLastSeen    time.Time                `json:"timeLastSeen"`
}

ManagedWorkerEvent defines model for ManagedWorkerEvent.

type ManagedWorkerEventList

type ManagedWorkerEventList struct {
	Pagination *PaginationResponse   `json:"pagination,omitempty"`
	Rows       *[]ManagedWorkerEvent `json:"rows,omitempty"`
}

ManagedWorkerEventList defines model for ManagedWorkerEventList.

type ManagedWorkerEventStatus

type ManagedWorkerEventStatus string

ManagedWorkerEventStatus defines model for ManagedWorkerEventStatus.

const (
	CANCELLED  ManagedWorkerEventStatus = "CANCELLED"
	FAILED     ManagedWorkerEventStatus = "FAILED"
	INPROGRESS ManagedWorkerEventStatus = "IN_PROGRESS"
	SUCCEEDED  ManagedWorkerEventStatus = "SUCCEEDED"
)

Defines values for ManagedWorkerEventStatus.

type ManagedWorkerEventsListResponse

type ManagedWorkerEventsListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManagedWorkerEventList
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseManagedWorkerEventsListResponse

func ParseManagedWorkerEventsListResponse(rsp *http.Response) (*ManagedWorkerEventsListResponse, error)

ParseManagedWorkerEventsListResponse parses an HTTP response from a ManagedWorkerEventsListWithResponse call

func (ManagedWorkerEventsListResponse) Status

Status returns HTTPResponse.Status

func (ManagedWorkerEventsListResponse) StatusCode

func (r ManagedWorkerEventsListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ManagedWorkerGetResponse

type ManagedWorkerGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManagedWorker
	JSON400      *APIErrors
	JSON403      *APIErrors
	JSON404      *APIErrors
}

func ParseManagedWorkerGetResponse

func ParseManagedWorkerGetResponse(rsp *http.Response) (*ManagedWorkerGetResponse, error)

ParseManagedWorkerGetResponse parses an HTTP response from a ManagedWorkerGetWithResponse call

func (ManagedWorkerGetResponse) Status

func (r ManagedWorkerGetResponse) Status() string

Status returns HTTPResponse.Status

func (ManagedWorkerGetResponse) StatusCode

func (r ManagedWorkerGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ManagedWorkerInstancesListResponse

type ManagedWorkerInstancesListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InstanceList
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseManagedWorkerInstancesListResponse

func ParseManagedWorkerInstancesListResponse(rsp *http.Response) (*ManagedWorkerInstancesListResponse, error)

ParseManagedWorkerInstancesListResponse parses an HTTP response from a ManagedWorkerInstancesListWithResponse call

func (ManagedWorkerInstancesListResponse) Status

Status returns HTTPResponse.Status

func (ManagedWorkerInstancesListResponse) StatusCode

func (r ManagedWorkerInstancesListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ManagedWorkerList

type ManagedWorkerList struct {
	Pagination *PaginationResponse `json:"pagination,omitempty"`
	Rows       *[]ManagedWorker    `json:"rows,omitempty"`
}

ManagedWorkerList defines model for ManagedWorkerList.

type ManagedWorkerListResponse

type ManagedWorkerListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManagedWorkerList
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseManagedWorkerListResponse

func ParseManagedWorkerListResponse(rsp *http.Response) (*ManagedWorkerListResponse, error)

ParseManagedWorkerListResponse parses an HTTP response from a ManagedWorkerListWithResponse call

func (ManagedWorkerListResponse) Status

func (r ManagedWorkerListResponse) Status() string

Status returns HTTPResponse.Status

func (ManagedWorkerListResponse) StatusCode

func (r ManagedWorkerListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ManagedWorkerRegion

type ManagedWorkerRegion string

ManagedWorkerRegion defines model for ManagedWorkerRegion.

const (
	Ams ManagedWorkerRegion = "ams"
	Arn ManagedWorkerRegion = "arn"
	Atl ManagedWorkerRegion = "atl"
	Bog ManagedWorkerRegion = "bog"
	Bos ManagedWorkerRegion = "bos"
	Cdg ManagedWorkerRegion = "cdg"
	Den ManagedWorkerRegion = "den"
	Dfw ManagedWorkerRegion = "dfw"
	Ewr ManagedWorkerRegion = "ewr"
	Eze ManagedWorkerRegion = "eze"
	Gdl ManagedWorkerRegion = "gdl"
	Gig ManagedWorkerRegion = "gig"
	Gru ManagedWorkerRegion = "gru"
	Hkg ManagedWorkerRegion = "hkg"
	Iad ManagedWorkerRegion = "iad"
	Jnb ManagedWorkerRegion = "jnb"
	Lax ManagedWorkerRegion = "lax"
	Lhr ManagedWorkerRegion = "lhr"
	Mad ManagedWorkerRegion = "mad"
	Mia ManagedWorkerRegion = "mia"
	Nrt ManagedWorkerRegion = "nrt"
	Ord ManagedWorkerRegion = "ord"
	Otp ManagedWorkerRegion = "otp"
	Phx ManagedWorkerRegion = "phx"
	Qro ManagedWorkerRegion = "qro"
	Scl ManagedWorkerRegion = "scl"
	Sea ManagedWorkerRegion = "sea"
	Sin ManagedWorkerRegion = "sin"
	Sjc ManagedWorkerRegion = "sjc"
	Syd ManagedWorkerRegion = "syd"
	Waw ManagedWorkerRegion = "waw"
	Yul ManagedWorkerRegion = "yul"
	Yyz ManagedWorkerRegion = "yyz"
)

Defines values for ManagedWorkerRegion.

type ManagedWorkerRuntimeConfig

type ManagedWorkerRuntimeConfig struct {
	// Actions A list of actions this runtime config corresponds to
	Actions *[]string `json:"actions,omitempty"`

	// CpuKind The kind of CPU to use for the worker
	CpuKind string `json:"cpuKind"`

	// Cpus The number of CPUs to use for the worker
	Cpus int `json:"cpus"`

	// MemoryMb The amount of memory in MB to use for the worker
	MemoryMb    int                 `json:"memoryMb"`
	Metadata    APIResourceMeta     `json:"metadata"`
	NumReplicas int                 `json:"numReplicas"`
	Region      ManagedWorkerRegion `json:"region"`
}

ManagedWorkerRuntimeConfig defines model for ManagedWorkerRuntimeConfig.

type ManagedWorkerUpdateJSONRequestBody

type ManagedWorkerUpdateJSONRequestBody = UpdateManagedWorkerRequest

ManagedWorkerUpdateJSONRequestBody defines body for ManagedWorkerUpdate for application/json ContentType.

type ManagedWorkerUpdateResponse

type ManagedWorkerUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ManagedWorker
	JSON400      *APIErrors
	JSON403      *APIErrors
	JSON404      *APIErrors
}

func ParseManagedWorkerUpdateResponse

func ParseManagedWorkerUpdateResponse(rsp *http.Response) (*ManagedWorkerUpdateResponse, error)

ParseManagedWorkerUpdateResponse parses an HTTP response from a ManagedWorkerUpdateWithResponse call

func (ManagedWorkerUpdateResponse) Status

Status returns HTTPResponse.Status

func (ManagedWorkerUpdateResponse) StatusCode

func (r ManagedWorkerUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Matrix

type Matrix = []SampleStream

Matrix defines model for Matrix.

type MetadataGetResponse

type MetadataGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *APICloudMetadata
	JSON400      *APIErrors
}

func ParseMetadataGetResponse

func ParseMetadataGetResponse(rsp *http.Response) (*MetadataGetResponse, error)

ParseMetadataGetResponse parses an HTTP response from a MetadataGetWithResponse call

func (MetadataGetResponse) Status

func (r MetadataGetResponse) Status() string

Status returns HTTPResponse.Status

func (MetadataGetResponse) StatusCode

func (r MetadataGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Metric

type Metric map[string]LabelValue

Metric defines model for Metric.

type MetricsCpuGetParams

type MetricsCpuGetParams struct {
	// After When the metrics should start
	After *time.Time `form:"after,omitempty" json:"after,omitempty"`

	// Before When the metrics should end
	Before *time.Time `form:"before,omitempty" json:"before,omitempty"`
}

MetricsCpuGetParams defines parameters for MetricsCpuGet.

type MetricsCpuGetResponse

type MetricsCpuGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Matrix
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseMetricsCpuGetResponse

func ParseMetricsCpuGetResponse(rsp *http.Response) (*MetricsCpuGetResponse, error)

ParseMetricsCpuGetResponse parses an HTTP response from a MetricsCpuGetWithResponse call

func (MetricsCpuGetResponse) Status

func (r MetricsCpuGetResponse) Status() string

Status returns HTTPResponse.Status

func (MetricsCpuGetResponse) StatusCode

func (r MetricsCpuGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MetricsDiskGetParams

type MetricsDiskGetParams struct {
	// After When the metrics should start
	After *time.Time `form:"after,omitempty" json:"after,omitempty"`

	// Before When the metrics should end
	Before *time.Time `form:"before,omitempty" json:"before,omitempty"`
}

MetricsDiskGetParams defines parameters for MetricsDiskGet.

type MetricsDiskGetResponse

type MetricsDiskGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Matrix
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseMetricsDiskGetResponse

func ParseMetricsDiskGetResponse(rsp *http.Response) (*MetricsDiskGetResponse, error)

ParseMetricsDiskGetResponse parses an HTTP response from a MetricsDiskGetWithResponse call

func (MetricsDiskGetResponse) Status

func (r MetricsDiskGetResponse) Status() string

Status returns HTTPResponse.Status

func (MetricsDiskGetResponse) StatusCode

func (r MetricsDiskGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MetricsMemoryGetParams

type MetricsMemoryGetParams struct {
	// After When the metrics should start
	After *time.Time `form:"after,omitempty" json:"after,omitempty"`

	// Before When the metrics should end
	Before *time.Time `form:"before,omitempty" json:"before,omitempty"`
}

MetricsMemoryGetParams defines parameters for MetricsMemoryGet.

type MetricsMemoryGetResponse

type MetricsMemoryGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Matrix
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseMetricsMemoryGetResponse

func ParseMetricsMemoryGetResponse(rsp *http.Response) (*MetricsMemoryGetResponse, error)

ParseMetricsMemoryGetResponse parses an HTTP response from a MetricsMemoryGetWithResponse call

func (MetricsMemoryGetResponse) Status

func (r MetricsMemoryGetResponse) Status() string

Status returns HTTPResponse.Status

func (MetricsMemoryGetResponse) StatusCode

func (r MetricsMemoryGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PaginationResponse

type PaginationResponse = rest.PaginationResponse

PaginationResponse defines model for PaginationResponse.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RuntimeConfigActionsResponse

type RuntimeConfigActionsResponse struct {
	Actions []string `json:"actions"`
}

RuntimeConfigActionsResponse defines model for RuntimeConfigActionsResponse.

type RuntimeConfigListActionsResponse

type RuntimeConfigListActionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RuntimeConfigActionsResponse
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseRuntimeConfigListActionsResponse

func ParseRuntimeConfigListActionsResponse(rsp *http.Response) (*RuntimeConfigListActionsResponse, error)

ParseRuntimeConfigListActionsResponse parses an HTTP response from a RuntimeConfigListActionsWithResponse call

func (RuntimeConfigListActionsResponse) Status

Status returns HTTPResponse.Status

func (RuntimeConfigListActionsResponse) StatusCode

func (r RuntimeConfigListActionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SampleHistogram

type SampleHistogram struct {
	Buckets *HistogramBuckets `json:"buckets,omitempty"`
	Count   *FloatString      `json:"count,omitempty"`
	Sum     *FloatString      `json:"sum,omitempty"`
}

SampleHistogram defines model for SampleHistogram.

type SampleHistogramPair

type SampleHistogramPair struct {
	Histogram *SampleHistogram `json:"histogram,omitempty"`
	Timestamp *Time            `json:"timestamp,omitempty"`
}

SampleHistogramPair defines model for SampleHistogramPair.

type SamplePair

type SamplePair = []interface{}

SamplePair defines model for SamplePair.

type SampleStream

type SampleStream struct {
	Histograms *[]SampleHistogramPair `json:"histograms,omitempty"`
	Metric     *Metric                `json:"metric,omitempty"`
	Values     *[]SamplePair          `json:"values,omitempty"`
}

SampleStream defines model for SampleStream.

type SubscriptionPlan

type SubscriptionPlan struct {
	// AmountCents The price of the plan.
	AmountCents int `json:"amount_cents"`

	// Description The description of the plan.
	Description string `json:"description"`

	// Name The name of the plan.
	Name string `json:"name"`

	// Period The period of the plan.
	Period *string `json:"period,omitempty"`

	// PlanCode The code of the plan.
	PlanCode string `json:"plan_code"`
}

SubscriptionPlan defines model for SubscriptionPlan.

type SubscriptionUpsertJSONRequestBody

type SubscriptionUpsertJSONRequestBody = UpdateTenantSubscription

SubscriptionUpsertJSONRequestBody defines body for SubscriptionUpsert for application/json ContentType.

type SubscriptionUpsertResponse

type SubscriptionUpsertResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TenantSubscription
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseSubscriptionUpsertResponse

func ParseSubscriptionUpsertResponse(rsp *http.Response) (*SubscriptionUpsertResponse, error)

ParseSubscriptionUpsertResponse parses an HTTP response from a SubscriptionUpsertWithResponse call

func (SubscriptionUpsertResponse) Status

Status returns HTTPResponse.Status

func (SubscriptionUpsertResponse) StatusCode

func (r SubscriptionUpsertResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TenantBillingState

type TenantBillingState struct {
	// Coupons A list of coupons applied to the tenant.
	Coupons        *[]Coupon              `json:"coupons,omitempty"`
	PaymentMethods *[]TenantPaymentMethod `json:"paymentMethods,omitempty"`

	// Plans A list of plans available for the tenant.
	Plans        *[]SubscriptionPlan `json:"plans,omitempty"`
	Subscription TenantSubscription  `json:"subscription"`
}

TenantBillingState defines model for TenantBillingState.

type TenantBillingStateGetResponse

type TenantBillingStateGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TenantBillingState
	JSON400      *APIErrors
	JSON403      *APIError
	JSON405      *APIErrors
}

func ParseTenantBillingStateGetResponse

func ParseTenantBillingStateGetResponse(rsp *http.Response) (*TenantBillingStateGetResponse, error)

ParseTenantBillingStateGetResponse parses an HTTP response from a TenantBillingStateGetWithResponse call

func (TenantBillingStateGetResponse) Status

Status returns HTTPResponse.Status

func (TenantBillingStateGetResponse) StatusCode

func (r TenantBillingStateGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TenantPaymentMethod

type TenantPaymentMethod struct {
	// Brand The brand of the payment method.
	Brand string `json:"brand"`

	// Description The description of the payment method.
	Description *string `json:"description,omitempty"`

	// Expiration The expiration date of the card.
	Expiration *string `json:"expiration,omitempty"`

	// Last4 The last 4 digits of the card.
	Last4 *string `json:"last4,omitempty"`
}

TenantPaymentMethod defines model for TenantPaymentMethod.

type TenantSubscription

type TenantSubscription struct {
	// Note A note associated with the tenant subscription.
	Note *string `json:"note,omitempty"`

	// Period The period associated with the tenant subscription.
	Period *string `json:"period,omitempty"`

	// Plan The plan code associated with the tenant subscription.
	Plan   *string                   `json:"plan,omitempty"`
	Status *TenantSubscriptionStatus `json:"status,omitempty"`
}

TenantSubscription defines model for TenantSubscription.

type TenantSubscriptionStatus

type TenantSubscriptionStatus string

TenantSubscriptionStatus defines model for TenantSubscriptionStatus.

const (
	Active     TenantSubscriptionStatus = "active"
	Canceled   TenantSubscriptionStatus = "canceled"
	Pending    TenantSubscriptionStatus = "pending"
	Terminated TenantSubscriptionStatus = "terminated"
)

Defines values for TenantSubscriptionStatus.

type Time

type Time = int

Time defines model for Time.

type UpdateManagedWorkerRequest

type UpdateManagedWorkerRequest struct {
	BuildConfig *CreateManagedWorkerBuildConfigRequest `json:"buildConfig,omitempty"`

	// EnvVars A map of environment variables to set for the worker
	EnvVars       *map[string]string                       `json:"envVars,omitempty"`
	IsIac         *bool                                    `json:"isIac,omitempty"`
	Name          *string                                  `json:"name,omitempty" validate:"required,hatchetName,min=1,max=256"`
	RuntimeConfig *CreateManagedWorkerRuntimeConfigRequest `json:"runtimeConfig,omitempty"`
}

UpdateManagedWorkerRequest defines model for UpdateManagedWorkerRequest.

type UpdateTenantSubscription

type UpdateTenantSubscription struct {
	// Period The period of the plan.
	Period *string `json:"period,omitempty"`

	// Plan The code of the plan.
	Plan *string `json:"plan,omitempty"`
}

UpdateTenantSubscription defines model for UpdateTenantSubscription.

type UserUpdateGithubAppOauthCallbackResponse

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

func ParseUserUpdateGithubAppOauthCallbackResponse

func ParseUserUpdateGithubAppOauthCallbackResponse(rsp *http.Response) (*UserUpdateGithubAppOauthCallbackResponse, error)

ParseUserUpdateGithubAppOauthCallbackResponse parses an HTTP response from a UserUpdateGithubAppOauthCallbackWithResponse call

func (UserUpdateGithubAppOauthCallbackResponse) Status

Status returns HTTPResponse.Status

func (UserUpdateGithubAppOauthCallbackResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UserUpdateGithubAppOauthStartResponse

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

func ParseUserUpdateGithubAppOauthStartResponse

func ParseUserUpdateGithubAppOauthStartResponse(rsp *http.Response) (*UserUpdateGithubAppOauthStartResponse, error)

ParseUserUpdateGithubAppOauthStartResponse parses an HTTP response from a UserUpdateGithubAppOauthStartWithResponse call

func (UserUpdateGithubAppOauthStartResponse) Status

Status returns HTTPResponse.Status

func (UserUpdateGithubAppOauthStartResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type VectorPushRequest

type VectorPushRequest = []EventObject

VectorPushRequest defines model for VectorPushRequest.

type WorkflowRunEventsGetMetricsParams

type WorkflowRunEventsGetMetricsParams struct {
	// CreatedAfter The time after the workflow run was created
	CreatedAfter *time.Time `form:"createdAfter,omitempty" json:"createdAfter,omitempty"`

	// FinishedBefore The time before the workflow run was completed
	FinishedBefore *time.Time `form:"finishedBefore,omitempty" json:"finishedBefore,omitempty"`
}

WorkflowRunEventsGetMetricsParams defines parameters for WorkflowRunEventsGetMetrics.

type WorkflowRunEventsGetMetricsResponse

type WorkflowRunEventsGetMetricsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WorkflowRunEventsMetricsCounts
	JSON400      *APIErrors
	JSON403      *APIErrors
}

func ParseWorkflowRunEventsGetMetricsResponse

func ParseWorkflowRunEventsGetMetricsResponse(rsp *http.Response) (*WorkflowRunEventsGetMetricsResponse, error)

ParseWorkflowRunEventsGetMetricsResponse parses an HTTP response from a WorkflowRunEventsGetMetricsWithResponse call

func (WorkflowRunEventsGetMetricsResponse) Status

Status returns HTTPResponse.Status

func (WorkflowRunEventsGetMetricsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type WorkflowRunEventsMetric

type WorkflowRunEventsMetric struct {
	FAILED    int       `json:"FAILED"`
	PENDING   int       `json:"PENDING"`
	QUEUED    int       `json:"QUEUED"`
	RUNNING   int       `json:"RUNNING"`
	SUCCEEDED int       `json:"SUCCEEDED"`
	Time      time.Time `json:"time"`
}

WorkflowRunEventsMetric defines model for WorkflowRunEventsMetric.

type WorkflowRunEventsMetricsCounts

type WorkflowRunEventsMetricsCounts struct {
	Results *[]WorkflowRunEventsMetric `json:"results,omitempty"`
}

WorkflowRunEventsMetricsCounts defines model for WorkflowRunEventsMetricsCounts.

Jump to

Keyboard shortcuts

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