Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Package client is the typed, generated client for the Dexaflow (Airflow-compatible) /api/v2 surface. It is the single control-plane client shared by the CLI, the MCP server, and the smoke tests (ADR 0050 D8) — no component hand-rolls HTTP against /api/v2, and nothing here imports internal/ packages.
client.gen.go is generated from docs/api/openapi.yaml. Do not edit it by hand; run `make pkg-client` from the repo root after changing the spec (the oapi-codegen config's output path is repo-root-relative, so generation must run from there, not via `go generate` in this package). CI catches drift with `make pkg-client-check`.
Index ¶
- func NewClearTaskInstancesRequest(server string, dagId DagID, body ClearTaskInstancesJSONRequestBody) (*http.Request, error)
- func NewClearTaskInstancesRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateConnectionRequest(server string, body CreateConnectionJSONRequestBody) (*http.Request, error)
- func NewCreateConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
- func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateVariableRequest(server string, body CreateVariableJSONRequestBody) (*http.Request, error)
- func NewCreateVariableRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteConnectionRequest(server string, connectionId ConnectionID) (*http.Request, error)
- func NewDeleteVariableRequest(server string, variableKey VariableKey) (*http.Request, error)
- func NewGetConnectionRequest(server string, connectionId ConnectionID) (*http.Request, error)
- func NewGetDagRequest(server string, dagId DagID) (*http.Request, error)
- func NewGetDagRunRequest(server string, dagId DagID, dagRunId DagRunID) (*http.Request, error)
- func NewGetDagSourceRequest(server string, dagId DagID) (*http.Request, error)
- func NewGetDagSpecRequest(server string, dagId DagID) (*http.Request, error)
- func NewGetDagVersionRequest(server string, dagId DagID, versionNumber int) (*http.Request, error)
- func NewGetHealthzRequest(server string) (*http.Request, error)
- func NewGetMonitorExecutorRequest(server string) (*http.Request, error)
- func NewGetMonitorHealthRequest(server string) (*http.Request, error)
- func NewGetReadyzRequest(server string) (*http.Request, error)
- func NewGetTaskInstanceRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID) (*http.Request, error)
- func NewGetTaskLogsRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int) (*http.Request, error)
- func NewGetVariableRequest(server string, variableKey VariableKey) (*http.Request, error)
- func NewGetVersionRequest(server string) (*http.Request, error)
- func NewGetXcomEntryRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, key string) (*http.Request, error)
- func NewIssueTokenRequest(server string, body IssueTokenJSONRequestBody) (*http.Request, error)
- func NewIssueTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListConnectionsRequest(server string, params *ListConnectionsParams) (*http.Request, error)
- func NewListDagRunsRequest(server string, dagId DagID, params *ListDagRunsParams) (*http.Request, error)
- func NewListDagVersionsRequest(server string, dagId DagID) (*http.Request, error)
- func NewListDagsRequest(server string, params *ListDagsParams) (*http.Request, error)
- func NewListTaskInstancesRequest(server string, dagId DagID, dagRunId DagRunID) (*http.Request, error)
- func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
- func NewListVariablesRequest(server string, params *ListVariablesParams) (*http.Request, error)
- func NewRenewTokenRequest(server string) (*http.Request, error)
- func NewTriggerDagRunRequest(server string, dagId DagID, body TriggerDagRunJSONRequestBody) (*http.Request, error)
- func NewTriggerDagRunRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateConnectionRequest(server string, connectionId ConnectionID, body UpdateConnectionJSONRequestBody) (*http.Request, error)
- func NewUpdateConnectionRequestWithBody(server string, connectionId ConnectionID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateDagRequest(server string, dagId DagID, body UpdateDagJSONRequestBody) (*http.Request, error)
- func NewUpdateDagRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
- type ClearTaskInstancesJSONRequestBody
- type ClearTaskInstancesRequest
- type ClearTaskInstancesResponse
- type Client
- func (c *Client) ClearTaskInstances(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ClearTaskInstancesWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateVariable(ctx context.Context, body CreateVariableJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateVariableWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteConnection(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteVariable(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetConnection(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDag(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDagRun(ctx context.Context, dagId DagID, dagRunId DagRunID, ...) (*http.Response, error)
- func (c *Client) GetDagSource(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDagSpec(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDagVersion(ctx context.Context, dagId DagID, versionNumber int, ...) (*http.Response, error)
- func (c *Client) GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorExecutor(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMonitorHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTaskInstance(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, ...) (*http.Response, error)
- func (c *Client) GetTaskLogs(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, ...) (*http.Response, error)
- func (c *Client) GetVariable(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetXcomEntry(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, ...) (*http.Response, error)
- func (c *Client) IssueToken(ctx context.Context, body IssueTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) IssueTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListConnections(ctx context.Context, params *ListConnectionsParams, ...) (*http.Response, error)
- func (c *Client) ListDagRuns(ctx context.Context, dagId DagID, params *ListDagRunsParams, ...) (*http.Response, error)
- func (c *Client) ListDagVersions(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListDags(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTaskInstances(ctx context.Context, dagId DagID, dagRunId DagRunID, ...) (*http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListVariables(ctx context.Context, params *ListVariablesParams, ...) (*http.Response, error)
- func (c *Client) RenewToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TriggerDagRun(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TriggerDagRunWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateConnection(ctx context.Context, connectionId ConnectionID, ...) (*http.Response, error)
- func (c *Client) UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionID, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateDag(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateDagWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ClearTaskInstancesWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, ...) (*ClearTaskInstancesResponse, error)
- func (c *ClientWithResponses) ClearTaskInstancesWithResponse(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, ...) (*ClearTaskInstancesResponse, error)
- func (c *ClientWithResponses) CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateConnectionResponse, error)
- func (c *ClientWithResponses) CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, ...) (*CreateConnectionResponse, error)
- func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateVariableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateVariableResponse, error)
- func (c *ClientWithResponses) CreateVariableWithResponse(ctx context.Context, body CreateVariableJSONRequestBody, ...) (*CreateVariableResponse, error)
- func (c *ClientWithResponses) DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*DeleteConnectionResponse, error)
- func (c *ClientWithResponses) DeleteVariableWithResponse(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*DeleteVariableResponse, error)
- func (c *ClientWithResponses) GetConnectionWithResponse(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)
- func (c *ClientWithResponses) GetDagRunWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, ...) (*GetDagRunResponse, error)
- func (c *ClientWithResponses) GetDagSourceWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSourceResponse, error)
- func (c *ClientWithResponses) GetDagSpecWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSpecResponse, error)
- func (c *ClientWithResponses) GetDagVersionWithResponse(ctx context.Context, dagId DagID, versionNumber int, ...) (*GetDagVersionResponse, error)
- func (c *ClientWithResponses) GetDagWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagResponse, error)
- func (c *ClientWithResponses) GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzResponse, error)
- func (c *ClientWithResponses) GetMonitorExecutorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorExecutorResponse, error)
- func (c *ClientWithResponses) GetMonitorHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorHealthResponse, error)
- func (c *ClientWithResponses) GetReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyzResponse, error)
- func (c *ClientWithResponses) GetTaskInstanceWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, ...) (*GetTaskInstanceResponse, error)
- func (c *ClientWithResponses) GetTaskLogsWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, ...) (*GetTaskLogsResponse, error)
- func (c *ClientWithResponses) GetVariableWithResponse(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*GetVariableResponse, error)
- func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
- func (c *ClientWithResponses) GetXcomEntryWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, ...) (*GetXcomEntryResponse, error)
- func (c *ClientWithResponses) IssueTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IssueTokenResponse, error)
- func (c *ClientWithResponses) IssueTokenWithResponse(ctx context.Context, body IssueTokenJSONRequestBody, ...) (*IssueTokenResponse, error)
- func (c *ClientWithResponses) ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, ...) (*ListConnectionsResponse, error)
- func (c *ClientWithResponses) ListDagRunsWithResponse(ctx context.Context, dagId DagID, params *ListDagRunsParams, ...) (*ListDagRunsResponse, error)
- func (c *ClientWithResponses) ListDagVersionsWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*ListDagVersionsResponse, error)
- func (c *ClientWithResponses) ListDagsWithResponse(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*ListDagsResponse, error)
- func (c *ClientWithResponses) ListTaskInstancesWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, ...) (*ListTaskInstancesResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) ListVariablesWithResponse(ctx context.Context, params *ListVariablesParams, ...) (*ListVariablesResponse, error)
- func (c *ClientWithResponses) RenewTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RenewTokenResponse, error)
- func (c *ClientWithResponses) TriggerDagRunWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, ...) (*TriggerDagRunResponse, error)
- func (c *ClientWithResponses) TriggerDagRunWithResponse(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, ...) (*TriggerDagRunResponse, error)
- func (c *ClientWithResponses) UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionID, contentType string, ...) (*UpdateConnectionResponse, error)
- func (c *ClientWithResponses) UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionID, ...) (*UpdateConnectionResponse, error)
- func (c *ClientWithResponses) UpdateDagWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, ...) (*UpdateDagResponse, error)
- func (c *ClientWithResponses) UpdateDagWithResponse(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, ...) (*UpdateDagResponse, error)
- type ClientWithResponsesInterface
- type ComponentHealth
- type Connection
- type ConnectionBody
- type ConnectionCollection
- type ConnectionID
- type CreateConnectionJSONRequestBody
- type CreateConnectionResponse
- func (r CreateConnectionResponse) ContentType() string
- func (r CreateConnectionResponse) GetBody() []byte
- func (r CreateConnectionResponse) GetJSON201() *Connection
- func (r CreateConnectionResponse) GetJSON400() *Error
- func (r CreateConnectionResponse) GetJSON401() *Unauthorized
- func (r CreateConnectionResponse) GetJSON503() *EncryptionUnavailable
- func (r CreateConnectionResponse) Status() string
- func (r CreateConnectionResponse) StatusCode() int
- type CreateUserJSONRequestBody
- type CreateUserRequest
- type CreateUserResponse
- func (r CreateUserResponse) ContentType() string
- func (r CreateUserResponse) GetBody() []byte
- func (r CreateUserResponse) GetJSON201() *User
- func (r CreateUserResponse) GetJSON400() *Error
- func (r CreateUserResponse) GetJSON401() *Unauthorized
- func (r CreateUserResponse) GetJSON409() *Error
- func (r CreateUserResponse) Status() string
- func (r CreateUserResponse) StatusCode() int
- type CreateVariableJSONRequestBody
- type CreateVariableResponse
- func (r CreateVariableResponse) ContentType() string
- func (r CreateVariableResponse) GetBody() []byte
- func (r CreateVariableResponse) GetJSON201() *Variable
- func (r CreateVariableResponse) GetJSON400() *Error
- func (r CreateVariableResponse) GetJSON401() *Unauthorized
- func (r CreateVariableResponse) Status() string
- func (r CreateVariableResponse) StatusCode() int
- type DAG
- type DAGCollection
- type DAGRun
- type DAGRunCollection
- type DAGRunCreate
- type DAGRunRunType
- type DAGRunState
- type DAGUpdate
- type DagID
- type DagRunID
- type DagSource
- type DagVersion
- type DagVersionCollection
- type DeleteConnectionResponse
- func (r DeleteConnectionResponse) ContentType() string
- func (r DeleteConnectionResponse) GetBody() []byte
- func (r DeleteConnectionResponse) GetJSON401() *Unauthorized
- func (r DeleteConnectionResponse) GetJSON404() *NotFound
- func (r DeleteConnectionResponse) Status() string
- func (r DeleteConnectionResponse) StatusCode() int
- type DeleteVariableResponse
- func (r DeleteVariableResponse) ContentType() string
- func (r DeleteVariableResponse) GetBody() []byte
- func (r DeleteVariableResponse) GetJSON401() *Unauthorized
- func (r DeleteVariableResponse) GetJSON404() *NotFound
- func (r DeleteVariableResponse) Status() string
- func (r DeleteVariableResponse) StatusCode() int
- type EncryptionUnavailable
- type Error
- type ExecutorInfo
- type GetConnectionResponse
- func (r GetConnectionResponse) ContentType() string
- func (r GetConnectionResponse) GetBody() []byte
- func (r GetConnectionResponse) GetJSON200() *Connection
- func (r GetConnectionResponse) GetJSON401() *Unauthorized
- func (r GetConnectionResponse) GetJSON404() *NotFound
- func (r GetConnectionResponse) Status() string
- func (r GetConnectionResponse) StatusCode() int
- type GetDagResponse
- type GetDagRunResponse
- type GetDagSourceResponse
- type GetDagSpecResponse
- type GetDagVersionResponse
- func (r GetDagVersionResponse) ContentType() string
- func (r GetDagVersionResponse) GetBody() []byte
- func (r GetDagVersionResponse) GetJSON200() *DagVersion
- func (r GetDagVersionResponse) GetJSON404() *NotFound
- func (r GetDagVersionResponse) Status() string
- func (r GetDagVersionResponse) StatusCode() int
- type GetHealthzResponse
- type GetMonitorExecutorResponse
- type GetMonitorHealthResponse
- type GetReadyzResponse
- type GetTaskInstanceResponse
- type GetTaskLogsResponse
- type GetVariableResponse
- func (r GetVariableResponse) ContentType() string
- func (r GetVariableResponse) GetBody() []byte
- func (r GetVariableResponse) GetJSON200() *Variable
- func (r GetVariableResponse) GetJSON401() *Unauthorized
- func (r GetVariableResponse) GetJSON404() *NotFound
- func (r GetVariableResponse) Status() string
- func (r GetVariableResponse) StatusCode() int
- type GetVersionResponse
- type GetXcomEntryResponse
- type HealthInfo
- type HttpRequestDoer
- type IssueTokenJSONRequestBody
- type IssueTokenResponse
- type IssueTokenResponse200Headers
- type Limit
- type ListConnectionsParams
- type ListConnectionsResponse
- func (r ListConnectionsResponse) ContentType() string
- func (r ListConnectionsResponse) GetBody() []byte
- func (r ListConnectionsResponse) GetJSON200() *ConnectionCollection
- func (r ListConnectionsResponse) GetJSON401() *Unauthorized
- func (r ListConnectionsResponse) Status() string
- func (r ListConnectionsResponse) StatusCode() int
- type ListDagRunsParams
- type ListDagRunsParamsState
- type ListDagRunsResponse
- type ListDagVersionsResponse
- type ListDagsParams
- type ListDagsResponse
- type ListTaskInstancesResponse
- type ListUsersParams
- type ListUsersResponse
- type ListVariablesParams
- type ListVariablesResponse
- func (r ListVariablesResponse) ContentType() string
- func (r ListVariablesResponse) GetBody() []byte
- func (r ListVariablesResponse) GetJSON200() *VariableCollection
- func (r ListVariablesResponse) GetJSON401() *Unauthorized
- func (r ListVariablesResponse) Status() string
- func (r ListVariablesResponse) StatusCode() int
- type NotFound
- type Offset
- type RenewTokenResponse
- type RequestEditorFn
- type TaskID
- type TaskInstance
- type TaskInstanceCollection
- type TaskInstanceState
- type TokenRequest
- type TokenResponse
- type TriggerDagRunJSONRequestBody
- type TriggerDagRunResponse
- type Unauthorized
- type UpdateConnectionJSONRequestBody
- type UpdateConnectionResponse
- func (r UpdateConnectionResponse) ContentType() string
- func (r UpdateConnectionResponse) GetBody() []byte
- func (r UpdateConnectionResponse) GetJSON200() *Connection
- func (r UpdateConnectionResponse) GetJSON400() *Error
- func (r UpdateConnectionResponse) GetJSON401() *Unauthorized
- func (r UpdateConnectionResponse) GetJSON404() *NotFound
- func (r UpdateConnectionResponse) GetJSON503() *EncryptionUnavailable
- func (r UpdateConnectionResponse) Status() string
- func (r UpdateConnectionResponse) StatusCode() int
- type UpdateDagJSONRequestBody
- type UpdateDagResponse
- type User
- type UserCollection
- type UserListItem
- type Variable
- type VariableBody
- type VariableCollection
- type VariableKey
- type VersionInfo
- type XComEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClearTaskInstancesRequest ¶
func NewClearTaskInstancesRequest(server string, dagId DagID, body ClearTaskInstancesJSONRequestBody) (*http.Request, error)
NewClearTaskInstancesRequest calls the generic ClearTaskInstances builder with application/json body
func NewClearTaskInstancesRequestWithBody ¶
func NewClearTaskInstancesRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
NewClearTaskInstancesRequestWithBody constructs an http.Request for the ClearTaskInstances method, with any body, and a specified content type
func NewCreateConnectionRequest ¶
func NewCreateConnectionRequest(server string, body CreateConnectionJSONRequestBody) (*http.Request, error)
NewCreateConnectionRequest calls the generic CreateConnection builder with application/json body
func NewCreateConnectionRequestWithBody ¶
func NewCreateConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateConnectionRequestWithBody constructs an http.Request for the CreateConnection method, with any body, and a specified content type
func NewCreateUserRequest ¶
func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
NewCreateUserRequest calls the generic CreateUser builder with application/json body
func NewCreateUserRequestWithBody ¶
func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateUserRequestWithBody constructs an http.Request for the CreateUser method, with any body, and a specified content type
func NewCreateVariableRequest ¶
func NewCreateVariableRequest(server string, body CreateVariableJSONRequestBody) (*http.Request, error)
NewCreateVariableRequest calls the generic CreateVariable builder with application/json body
func NewCreateVariableRequestWithBody ¶
func NewCreateVariableRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateVariableRequestWithBody constructs an http.Request for the CreateVariable method, with any body, and a specified content type
func NewDeleteConnectionRequest ¶
func NewDeleteConnectionRequest(server string, connectionId ConnectionID) (*http.Request, error)
NewDeleteConnectionRequest constructs an http.Request for the DeleteConnection method
func NewDeleteVariableRequest ¶
func NewDeleteVariableRequest(server string, variableKey VariableKey) (*http.Request, error)
NewDeleteVariableRequest constructs an http.Request for the DeleteVariable method
func NewGetConnectionRequest ¶
func NewGetConnectionRequest(server string, connectionId ConnectionID) (*http.Request, error)
NewGetConnectionRequest constructs an http.Request for the GetConnection method
func NewGetDagRequest ¶
NewGetDagRequest constructs an http.Request for the GetDag method
func NewGetDagRunRequest ¶
NewGetDagRunRequest constructs an http.Request for the GetDagRun method
func NewGetDagSourceRequest ¶
NewGetDagSourceRequest constructs an http.Request for the GetDagSource method
func NewGetDagSpecRequest ¶
NewGetDagSpecRequest constructs an http.Request for the GetDagSpec method
func NewGetDagVersionRequest ¶
NewGetDagVersionRequest constructs an http.Request for the GetDagVersion method
func NewGetHealthzRequest ¶
NewGetHealthzRequest constructs an http.Request for the GetHealthz method
func NewGetMonitorExecutorRequest ¶
NewGetMonitorExecutorRequest constructs an http.Request for the GetMonitorExecutor method
func NewGetMonitorHealthRequest ¶
NewGetMonitorHealthRequest constructs an http.Request for the GetMonitorHealth method
func NewGetReadyzRequest ¶
NewGetReadyzRequest constructs an http.Request for the GetReadyz method
func NewGetTaskInstanceRequest ¶
func NewGetTaskInstanceRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID) (*http.Request, error)
NewGetTaskInstanceRequest constructs an http.Request for the GetTaskInstance method
func NewGetTaskLogsRequest ¶
func NewGetTaskLogsRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int) (*http.Request, error)
NewGetTaskLogsRequest constructs an http.Request for the GetTaskLogs method
func NewGetVariableRequest ¶
func NewGetVariableRequest(server string, variableKey VariableKey) (*http.Request, error)
NewGetVariableRequest constructs an http.Request for the GetVariable method
func NewGetVersionRequest ¶
NewGetVersionRequest constructs an http.Request for the GetVersion method
func NewGetXcomEntryRequest ¶
func NewGetXcomEntryRequest(server string, dagId DagID, dagRunId DagRunID, taskId TaskID, key string) (*http.Request, error)
NewGetXcomEntryRequest constructs an http.Request for the GetXcomEntry method
func NewIssueTokenRequest ¶
func NewIssueTokenRequest(server string, body IssueTokenJSONRequestBody) (*http.Request, error)
NewIssueTokenRequest calls the generic IssueToken builder with application/json body
func NewIssueTokenRequestWithBody ¶
func NewIssueTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIssueTokenRequestWithBody constructs an http.Request for the IssueToken method, with any body, and a specified content type
func NewListConnectionsRequest ¶
func NewListConnectionsRequest(server string, params *ListConnectionsParams) (*http.Request, error)
NewListConnectionsRequest constructs an http.Request for the ListConnections method
func NewListDagRunsRequest ¶
func NewListDagRunsRequest(server string, dagId DagID, params *ListDagRunsParams) (*http.Request, error)
NewListDagRunsRequest constructs an http.Request for the ListDagRuns method
func NewListDagVersionsRequest ¶
NewListDagVersionsRequest constructs an http.Request for the ListDagVersions method
func NewListDagsRequest ¶
func NewListDagsRequest(server string, params *ListDagsParams) (*http.Request, error)
NewListDagsRequest constructs an http.Request for the ListDags method
func NewListTaskInstancesRequest ¶
func NewListTaskInstancesRequest(server string, dagId DagID, dagRunId DagRunID) (*http.Request, error)
NewListTaskInstancesRequest constructs an http.Request for the ListTaskInstances method
func NewListUsersRequest ¶
func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
NewListUsersRequest constructs an http.Request for the ListUsers method
func NewListVariablesRequest ¶
func NewListVariablesRequest(server string, params *ListVariablesParams) (*http.Request, error)
NewListVariablesRequest constructs an http.Request for the ListVariables method
func NewRenewTokenRequest ¶
NewRenewTokenRequest constructs an http.Request for the RenewToken method
func NewTriggerDagRunRequest ¶
func NewTriggerDagRunRequest(server string, dagId DagID, body TriggerDagRunJSONRequestBody) (*http.Request, error)
NewTriggerDagRunRequest calls the generic TriggerDagRun builder with application/json body
func NewTriggerDagRunRequestWithBody ¶
func NewTriggerDagRunRequestWithBody(server string, dagId DagID, contentType string, body io.Reader) (*http.Request, error)
NewTriggerDagRunRequestWithBody constructs an http.Request for the TriggerDagRun method, with any body, and a specified content type
func NewUpdateConnectionRequest ¶
func NewUpdateConnectionRequest(server string, connectionId ConnectionID, body UpdateConnectionJSONRequestBody) (*http.Request, error)
NewUpdateConnectionRequest calls the generic UpdateConnection builder with application/json body
func NewUpdateConnectionRequestWithBody ¶
func NewUpdateConnectionRequestWithBody(server string, connectionId ConnectionID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateConnectionRequestWithBody constructs an http.Request for the UpdateConnection method, with any body, and a specified content type
func NewUpdateDagRequest ¶
func NewUpdateDagRequest(server string, dagId DagID, body UpdateDagJSONRequestBody) (*http.Request, error)
NewUpdateDagRequest calls the generic UpdateDag builder with application/json body
Types ¶
type ClearTaskInstancesJSONRequestBody ¶
type ClearTaskInstancesJSONRequestBody = ClearTaskInstancesRequest
ClearTaskInstancesJSONRequestBody defines body for ClearTaskInstances for application/json ContentType.
type ClearTaskInstancesRequest ¶
type ClearTaskInstancesRequest struct {
DagRunId *string `json:"dag_run_id,omitempty"`
// DryRun Return the task instances that WOULD be cleared, without clearing them. Defaults to true, matching Apache Airflow, so a request that names no flags never destroys state. Send false to execute.
DryRun *bool `json:"dry_run,omitempty"`
IncludeDownstream *bool `json:"include_downstream,omitempty"`
IncludeFuture *bool `json:"include_future,omitempty"`
IncludePast *bool `json:"include_past,omitempty"`
IncludeUpstream *bool `json:"include_upstream,omitempty"`
// OnlyFailed Restrict the clear to task instances in a failed state, matching Apache Airflow. false widens it to every task instance named by the request, including ones that succeeded.
OnlyFailed *bool `json:"only_failed,omitempty"`
// OnlyRunning Not supported. Sending true is refused with 400. leoflow has no path that clears a running task instance (Apache Airflow sets it to RESTARTING and kills it), and honoring the only_failed=false that Airflow requires alongside it would widen the clear to every task instance named by the request, including ones that succeeded.
OnlyRunning *bool `json:"only_running,omitempty"`
// ResetDagRuns Re-open the run so the scheduler looks at it again. Without it a terminal run stays terminal and the cleared task instance is never scheduled.
ResetDagRuns *bool `json:"reset_dag_runs,omitempty"`
// RunOnLatestVersion Which version the re-run executes. false (the default, matching Apache Airflow) keeps the version the run was created with, so the re-run executes the image that produced the original attempt. true re-binds the run to the DAG's current registered version, so the re-run picks up the newest image and config — use it to re-run a failed task against a fix without creating a new run.
RunOnLatestVersion *bool `json:"run_on_latest_version,omitempty"`
TaskIds *[]string `json:"task_ids,omitempty"`
}
ClearTaskInstancesRequest defines model for ClearTaskInstancesRequest.
type ClearTaskInstancesResponse ¶
type ClearTaskInstancesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskInstanceCollection
}
func ParseClearTaskInstancesResponse ¶
func ParseClearTaskInstancesResponse(rsp *http.Response) (*ClearTaskInstancesResponse, error)
ParseClearTaskInstancesResponse parses an HTTP response from a ClearTaskInstancesWithResponse call
func (ClearTaskInstancesResponse) ContentType ¶
func (r ClearTaskInstancesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClearTaskInstancesResponse) GetBody ¶
func (r ClearTaskInstancesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClearTaskInstancesResponse) GetJSON200 ¶
func (r ClearTaskInstancesResponse) GetJSON200() *TaskInstanceCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClearTaskInstancesResponse) Status ¶
func (r ClearTaskInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (ClearTaskInstancesResponse) StatusCode ¶
func (r ClearTaskInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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) ClearTaskInstances ¶
func (c *Client) ClearTaskInstances(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ClearTaskInstances Clear task instances (queue them for re-run)
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*Client) ClearTaskInstancesWithBody ¶
func (c *Client) ClearTaskInstancesWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ClearTaskInstancesWithBody Clear task instances (queue them for re-run)
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*Client) CreateConnection ¶
func (c *Client) CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateConnection Create or replace a connection (upsert)
Upserts a connection: creates it, or replaces an existing one with the same connection_id. The password is write-only and never returned. Requires the write:connection permission and a configured encryption key.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
func (*Client) CreateConnectionWithBody ¶
func (c *Client) CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateConnectionWithBody Create or replace a connection (upsert)
Upserts a connection: creates it, or replaces an existing one with the same connection_id. The password is write-only and never returned. Requires the write:connection permission and a configured encryption key.
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUser Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*Client) CreateUserWithBody ¶
func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUserWithBody Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*Client) CreateVariable ¶
func (c *Client) CreateVariable(ctx context.Context, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVariable Create or replace a variable (upsert)
Upserts a variable: creates it, or replaces an existing one with the same key. Requires the write:variable permission.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
func (*Client) CreateVariableWithBody ¶
func (c *Client) CreateVariableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVariableWithBody Create or replace a variable (upsert)
Upserts a variable: creates it, or replaces an existing one with the same key. Requires the write:variable permission.
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
func (*Client) DeleteConnection ¶
func (c *Client) DeleteConnection(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteConnection Delete a connection
Corresponds with DELETE /api/v2/connections/{connection_id} (the `DeleteConnection` operationId).
func (*Client) DeleteVariable ¶
func (c *Client) DeleteVariable(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteVariable Delete a variable
Corresponds with DELETE /api/v2/variables/{variable_key} (the `DeleteVariable` operationId).
func (*Client) GetConnection ¶
func (c *Client) GetConnection(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetConnection Get a connection
Corresponds with GET /api/v2/connections/{connection_id} (the `GetConnection` operationId).
func (*Client) GetDag ¶
func (c *Client) GetDag(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDag Get a DAG
Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
func (*Client) GetDagRun ¶
func (c *Client) GetDagRun(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagRun Get a DAG run
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
func (*Client) GetDagSource ¶
func (c *Client) GetDagSource(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagSource Get a DAG's source (the dag.py text)
Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
func (*Client) GetDagSpec ¶
func (c *Client) GetDagSpec(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagSpec Get a DAG's compiled spec (the dag.json artifact)
Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
func (*Client) GetDagVersion ¶
func (c *Client) GetDagVersion(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDagVersion Get a specific registered DAG version
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
func (*Client) GetHealthz ¶
func (c *Client) GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHealthz Liveness probe
Corresponds with GET /healthz (the `GetHealthz` operationId).
func (*Client) GetMonitorExecutor ¶
func (c *Client) GetMonitorExecutor(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMonitorExecutor Executor capability and configuration
Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
func (*Client) GetMonitorHealth ¶
func (c *Client) GetMonitorHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMonitorHealth Control-plane health (Airflow HealthInfoResponse shape)
Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
func (*Client) GetReadyz ¶
func (c *Client) GetReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetReadyz Readiness probe
Corresponds with GET /readyz (the `GetReadyz` operationId).
func (*Client) GetTaskInstance ¶
func (c *Client) GetTaskInstance(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTaskInstance Get a task instance
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
func (*Client) GetTaskLogs ¶
func (c *Client) GetTaskLogs(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTaskLogs Get task logs
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
func (*Client) GetVariable ¶
func (c *Client) GetVariable(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*http.Response, error)
GetVariable Get a variable
Corresponds with GET /api/v2/variables/{variable_key} (the `GetVariable` operationId).
func (*Client) GetVersion ¶
func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetVersion Control-plane version (Airflow VersionInfo shape)
Corresponds with GET /api/v2/version (the `GetVersion` operationId).
func (*Client) GetXcomEntry ¶
func (c *Client) GetXcomEntry(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetXcomEntry Read XCom value (read-only proxy for the Redis backend)
Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
func (*Client) IssueToken ¶
func (c *Client) IssueToken(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueToken Issue a JWT for username/password credentials
Takes a body of the `application/json` content type.
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*Client) IssueTokenWithBody ¶
func (c *Client) IssueTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IssueTokenWithBody Issue a JWT for username/password credentials
Takes any type of body and a specified content type.
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*Client) ListConnections ¶
func (c *Client) ListConnections(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListConnections List connections
Lists the tenant's Airflow-style connections. Passwords are write-only and never returned; secret-bearing keys inside `extra` are masked server-side. Requires the read:connection permission.
Corresponds with GET /api/v2/connections (the `ListConnections` operationId).
func (*Client) ListDagRuns ¶
func (c *Client) ListDagRuns(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDagRuns List DAG runs
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
func (*Client) ListDagVersions ¶
func (c *Client) ListDagVersions(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDagVersions List a DAG's registered versions
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
func (*Client) ListDags ¶
func (c *Client) ListDags(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDags List DAGs
Corresponds with GET /api/v2/dags (the `ListDags` operationId).
func (*Client) ListTaskInstances ¶
func (c *Client) ListTaskInstances(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
ListTaskInstances List task instances of a DAG run
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
func (*Client) ListUsers ¶
func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUsers List users
Lists the tenant's control-plane accounts, newest first. Each entry carries the full set of roles the user holds; the password and its hash are write-only and never returned. Requires the read:user permission.
Corresponds with GET /api/v2/users (the `ListUsers` operationId).
func (*Client) ListVariables ¶
func (c *Client) ListVariables(ctx context.Context, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListVariables List variables
Lists the tenant's Airflow-style variables. Values of secret-ish keys are masked server-side. Requires the read:variable permission.
Corresponds with GET /api/v2/variables (the `ListVariables` operationId).
func (*Client) RenewToken ¶
func (c *Client) RenewToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
RenewToken Renew a still-valid JWT into a fresh short-lived token
Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
func (*Client) TriggerDagRun ¶
func (c *Client) TriggerDagRun(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TriggerDagRun Trigger a DAG run
Takes a body of the `application/json` content type.
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*Client) TriggerDagRunWithBody ¶
func (c *Client) TriggerDagRunWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TriggerDagRunWithBody Trigger a DAG run
Takes any type of body and a specified content type.
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*Client) UpdateConnection ¶
func (c *Client) UpdateConnection(ctx context.Context, connectionId ConnectionID, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateConnection Update a connection
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
func (*Client) UpdateConnectionWithBody ¶
func (c *Client) UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateConnectionWithBody Update a connection
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
func (*Client) UpdateDag ¶
func (c *Client) UpdateDag(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDag Update DAG (typically pause/unpause)
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
func (*Client) UpdateDagWithBody ¶
func (c *Client) UpdateDagWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDagWithBody Update DAG (typically pause/unpause)
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
type ClientInterface ¶
type ClientInterface interface {
// RenewToken Renew a still-valid JWT into a fresh short-lived token
//
// Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
//
// Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
RenewToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConnections List connections
//
// Lists the tenant's Airflow-style connections. Passwords are write-only and
// never returned; secret-bearing keys inside `extra` are masked server-side.
// Requires the read:connection permission.
//
// Corresponds with GET /api/v2/connections (the `ListConnections` operationId).
ListConnections(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateConnectionWithBody Create or replace a connection (upsert)
//
// Upserts a connection: creates it, or replaces an existing one with the same
// connection_id. The password is write-only and never returned. Requires the
// write:connection permission and a configured encryption key.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
CreateConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateConnection Create or replace a connection (upsert)
//
// Upserts a connection: creates it, or replaces an existing one with the same
// connection_id. The password is write-only and never returned. Requires the
// write:connection permission and a configured encryption key.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
CreateConnection(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteConnection Delete a connection
//
// Corresponds with DELETE /api/v2/connections/{connection_id} (the `DeleteConnection` operationId).
DeleteConnection(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetConnection Get a connection
//
// Corresponds with GET /api/v2/connections/{connection_id} (the `GetConnection` operationId).
GetConnection(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateConnectionWithBody Update a connection
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnectionWithBody(ctx context.Context, connectionId ConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateConnection Update a connection
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnection(ctx context.Context, connectionId ConnectionID, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagSource Get a DAG's source (the dag.py text)
//
// Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
GetDagSource(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDags List DAGs
//
// Corresponds with GET /api/v2/dags (the `ListDags` operationId).
ListDags(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDag Get a DAG
//
// Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
GetDag(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDagWithBody Update DAG (typically pause/unpause)
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDagWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDag Update DAG (typically pause/unpause)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDag(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClearTaskInstancesWithBody Clear task instances (queue them for re-run)
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstancesWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClearTaskInstances Clear task instances (queue them for re-run)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstances(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDagRuns List DAG runs
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
ListDagRuns(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TriggerDagRunWithBody Trigger a DAG run
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRunWithBody(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// TriggerDagRun Trigger a DAG run
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRun(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagRun Get a DAG run
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
GetDagRun(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTaskInstances List task instances of a DAG run
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
ListTaskInstances(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTaskInstance Get a task instance
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
GetTaskInstance(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTaskLogs Get task logs
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
GetTaskLogs(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDagVersions List a DAG's registered versions
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
ListDagVersions(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagVersion Get a specific registered DAG version
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
GetDagVersion(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDagSpec Get a DAG's compiled spec (the dag.json artifact)
//
// Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
GetDagSpec(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMonitorExecutor Executor capability and configuration
//
// Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
GetMonitorExecutor(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMonitorHealth Control-plane health (Airflow HealthInfoResponse shape)
//
// Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
GetMonitorHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsers List users
//
// Lists the tenant's control-plane accounts, newest first. Each entry
// carries the full set of roles the user holds; the password and its hash
// are write-only and never returned. Requires the read:user permission.
//
// Corresponds with GET /api/v2/users (the `ListUsers` operationId).
ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUserWithBody Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUser Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListVariables List variables
//
// Lists the tenant's Airflow-style variables. Values of secret-ish keys are
// masked server-side. Requires the read:variable permission.
//
// Corresponds with GET /api/v2/variables (the `ListVariables` operationId).
ListVariables(ctx context.Context, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVariableWithBody Create or replace a variable (upsert)
//
// Upserts a variable: creates it, or replaces an existing one with the same
// key. Requires the write:variable permission.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
CreateVariableWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVariable Create or replace a variable (upsert)
//
// Upserts a variable: creates it, or replaces an existing one with the same
// key. Requires the write:variable permission.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
CreateVariable(ctx context.Context, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVariable Delete a variable
//
// Corresponds with DELETE /api/v2/variables/{variable_key} (the `DeleteVariable` operationId).
DeleteVariable(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVariable Get a variable
//
// Corresponds with GET /api/v2/variables/{variable_key} (the `GetVariable` operationId).
GetVariable(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVersion Control-plane version (Airflow VersionInfo shape)
//
// Corresponds with GET /api/v2/version (the `GetVersion` operationId).
GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetXcomEntry Read XCom value (read-only proxy for the Redis backend)
//
// Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
GetXcomEntry(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueTokenWithBody Issue a JWT for username/password credentials
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssueToken Issue a JWT for username/password credentials
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueToken(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealthz Liveness probe
//
// Corresponds with GET /healthz (the `GetHealthz` operationId).
GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetReadyz Readiness probe
//
// Corresponds with GET /readyz (the `GetReadyz` operationId).
GetReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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 New ¶
func New(baseURL, token string, opts ...ClientOption) (*ClientWithResponses, error)
New builds a typed /api/v2 client for the control plane at baseURL (an origin such as "http://localhost:8080", with or without a trailing slash). When token is non-empty every request carries "Authorization: Bearer <token>"; the MCP and CLI pass the caller's JWT through unchanged and never mint one (ADR 0050 D9). An empty token leaves requests unauthenticated, for dev/loopback use. Extra ClientOptions (e.g. WithHTTPClient) are applied after the auth editor.
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ClearTaskInstancesWithBodyWithResponse ¶
func (c *ClientWithResponses) ClearTaskInstancesWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
ClearTaskInstancesWithBodyWithResponse Clear task instances (queue them for re-run)
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*ClientWithResponses) ClearTaskInstancesWithResponse ¶
func (c *ClientWithResponses) ClearTaskInstancesWithResponse(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
ClearTaskInstancesWithResponse Clear task instances (queue them for re-run)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
func (*ClientWithResponses) CreateConnectionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
CreateConnectionWithBodyWithResponse Create or replace a connection (upsert)
Upserts a connection: creates it, or replaces an existing one with the same connection_id. The password is write-only and never returned. Requires the write:connection permission and a configured encryption key.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
func (*ClientWithResponses) CreateConnectionWithResponse ¶
func (c *ClientWithResponses) CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
CreateConnectionWithResponse Create or replace a connection (upsert)
Upserts a connection: creates it, or replaces an existing one with the same connection_id. The password is write-only and never returned. Requires the write:connection permission and a configured encryption key.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
func (*ClientWithResponses) CreateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithBodyWithResponse Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*ClientWithResponses) CreateUserWithResponse ¶
func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithResponse Create a user
Admin-only. Creates a control-plane account with the given email and password and grants the requested roles. The password is write-only and is never returned. Requires the write:user permission.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/users (the `CreateUser` operationId).
func (*ClientWithResponses) CreateVariableWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateVariableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableResponse, error)
CreateVariableWithBodyWithResponse Create or replace a variable (upsert)
Upserts a variable: creates it, or replaces an existing one with the same key. Requires the write:variable permission.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
func (*ClientWithResponses) CreateVariableWithResponse ¶
func (c *ClientWithResponses) CreateVariableWithResponse(ctx context.Context, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableResponse, error)
CreateVariableWithResponse Create or replace a variable (upsert)
Upserts a variable: creates it, or replaces an existing one with the same key. Requires the write:variable permission.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
func (*ClientWithResponses) DeleteConnectionWithResponse ¶
func (c *ClientWithResponses) DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*DeleteConnectionResponse, error)
DeleteConnectionWithResponse Delete a connection
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v2/connections/{connection_id} (the `DeleteConnection` operationId).
func (*ClientWithResponses) DeleteVariableWithResponse ¶
func (c *ClientWithResponses) DeleteVariableWithResponse(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*DeleteVariableResponse, error)
DeleteVariableWithResponse Delete a variable
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v2/variables/{variable_key} (the `DeleteVariable` operationId).
func (*ClientWithResponses) GetConnectionWithResponse ¶
func (c *ClientWithResponses) GetConnectionWithResponse(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)
GetConnectionWithResponse Get a connection
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/connections/{connection_id} (the `GetConnection` operationId).
func (*ClientWithResponses) GetDagRunWithResponse ¶
func (c *ClientWithResponses) GetDagRunWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*GetDagRunResponse, error)
GetDagRunWithResponse Get a DAG run
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
func (*ClientWithResponses) GetDagSourceWithResponse ¶
func (c *ClientWithResponses) GetDagSourceWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSourceResponse, error)
GetDagSourceWithResponse Get a DAG's source (the dag.py text)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
func (*ClientWithResponses) GetDagSpecWithResponse ¶
func (c *ClientWithResponses) GetDagSpecWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSpecResponse, error)
GetDagSpecWithResponse Get a DAG's compiled spec (the dag.json artifact)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
func (*ClientWithResponses) GetDagVersionWithResponse ¶
func (c *ClientWithResponses) GetDagVersionWithResponse(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*GetDagVersionResponse, error)
GetDagVersionWithResponse Get a specific registered DAG version
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
func (*ClientWithResponses) GetDagWithResponse ¶
func (c *ClientWithResponses) GetDagWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagResponse, error)
GetDagWithResponse Get a DAG
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
func (*ClientWithResponses) GetHealthzWithResponse ¶
func (c *ClientWithResponses) GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzResponse, error)
GetHealthzWithResponse Liveness probe
Returns a wrapper object for the known response body format(s).
Corresponds with GET /healthz (the `GetHealthz` operationId).
func (*ClientWithResponses) GetMonitorExecutorWithResponse ¶
func (c *ClientWithResponses) GetMonitorExecutorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorExecutorResponse, error)
GetMonitorExecutorWithResponse Executor capability and configuration
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
func (*ClientWithResponses) GetMonitorHealthWithResponse ¶
func (c *ClientWithResponses) GetMonitorHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorHealthResponse, error)
GetMonitorHealthWithResponse Control-plane health (Airflow HealthInfoResponse shape)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
func (*ClientWithResponses) GetReadyzWithResponse ¶
func (c *ClientWithResponses) GetReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyzResponse, error)
GetReadyzWithResponse Readiness probe
Returns a wrapper object for the known response body format(s).
Corresponds with GET /readyz (the `GetReadyz` operationId).
func (*ClientWithResponses) GetTaskInstanceWithResponse ¶
func (c *ClientWithResponses) GetTaskInstanceWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*GetTaskInstanceResponse, error)
GetTaskInstanceWithResponse Get a task instance
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
func (*ClientWithResponses) GetTaskLogsWithResponse ¶
func (c *ClientWithResponses) GetTaskLogsWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*GetTaskLogsResponse, error)
GetTaskLogsWithResponse Get task logs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
func (*ClientWithResponses) GetVariableWithResponse ¶
func (c *ClientWithResponses) GetVariableWithResponse(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*GetVariableResponse, error)
GetVariableWithResponse Get a variable
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/variables/{variable_key} (the `GetVariable` operationId).
func (*ClientWithResponses) GetVersionWithResponse ¶
func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
GetVersionWithResponse Control-plane version (Airflow VersionInfo shape)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/version (the `GetVersion` operationId).
func (*ClientWithResponses) GetXcomEntryWithResponse ¶
func (c *ClientWithResponses) GetXcomEntryWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*GetXcomEntryResponse, error)
GetXcomEntryWithResponse Read XCom value (read-only proxy for the Redis backend)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
func (*ClientWithResponses) IssueTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) IssueTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
IssueTokenWithBodyWithResponse Issue a JWT for username/password credentials
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*ClientWithResponses) IssueTokenWithResponse ¶
func (c *ClientWithResponses) IssueTokenWithResponse(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
IssueTokenWithResponse Issue a JWT for username/password credentials
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/token (the `IssueToken` operationId).
func (*ClientWithResponses) ListConnectionsWithResponse ¶
func (c *ClientWithResponses) ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*ListConnectionsResponse, error)
ListConnectionsWithResponse List connections
Lists the tenant's Airflow-style connections. Passwords are write-only and never returned; secret-bearing keys inside `extra` are masked server-side. Requires the read:connection permission.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/connections (the `ListConnections` operationId).
func (*ClientWithResponses) ListDagRunsWithResponse ¶
func (c *ClientWithResponses) ListDagRunsWithResponse(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*ListDagRunsResponse, error)
ListDagRunsWithResponse List DAG runs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
func (*ClientWithResponses) ListDagVersionsWithResponse ¶
func (c *ClientWithResponses) ListDagVersionsWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*ListDagVersionsResponse, error)
ListDagVersionsWithResponse List a DAG's registered versions
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
func (*ClientWithResponses) ListDagsWithResponse ¶
func (c *ClientWithResponses) ListDagsWithResponse(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*ListDagsResponse, error)
ListDagsWithResponse List DAGs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags (the `ListDags` operationId).
func (*ClientWithResponses) ListTaskInstancesWithResponse ¶
func (c *ClientWithResponses) ListTaskInstancesWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*ListTaskInstancesResponse, error)
ListTaskInstancesWithResponse List task instances of a DAG run
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
func (*ClientWithResponses) ListUsersWithResponse ¶
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse List users
Lists the tenant's control-plane accounts, newest first. Each entry carries the full set of roles the user holds; the password and its hash are write-only and never returned. Requires the read:user permission.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/users (the `ListUsers` operationId).
func (*ClientWithResponses) ListVariablesWithResponse ¶
func (c *ClientWithResponses) ListVariablesWithResponse(ctx context.Context, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesResponse, error)
ListVariablesWithResponse List variables
Lists the tenant's Airflow-style variables. Values of secret-ish keys are masked server-side. Requires the read:variable permission.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v2/variables (the `ListVariables` operationId).
func (*ClientWithResponses) RenewTokenWithResponse ¶
func (c *ClientWithResponses) RenewTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RenewTokenResponse, error)
RenewTokenWithResponse Renew a still-valid JWT into a fresh short-lived token
Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
func (*ClientWithResponses) TriggerDagRunWithBodyWithResponse ¶
func (c *ClientWithResponses) TriggerDagRunWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
TriggerDagRunWithBodyWithResponse Trigger a DAG run
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*ClientWithResponses) TriggerDagRunWithResponse ¶
func (c *ClientWithResponses) TriggerDagRunWithResponse(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
TriggerDagRunWithResponse Trigger a DAG run
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
func (*ClientWithResponses) UpdateConnectionWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
UpdateConnectionWithBodyWithResponse Update a connection
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
func (*ClientWithResponses) UpdateConnectionWithResponse ¶
func (c *ClientWithResponses) UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionID, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
UpdateConnectionWithResponse Update a connection
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
func (*ClientWithResponses) UpdateDagWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDagWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
UpdateDagWithBodyWithResponse Update DAG (typically pause/unpause)
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
func (*ClientWithResponses) UpdateDagWithResponse ¶
func (c *ClientWithResponses) UpdateDagWithResponse(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
UpdateDagWithResponse Update DAG (typically pause/unpause)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// RenewTokenWithResponse Renew a still-valid JWT into a fresh short-lived token
//
// Transparent renewal: given a still-valid user bearer, re-mints the same identity with a fresh short TTL, bounded by a server-side max_lifetime measured from first login. Lets a long CLI/dev session avoid re-logging in every token TTL while keeping the access token short-lived. Returns 401 when the presented token is invalid, expired, or past max_lifetime, in which case the client must log in again.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/auth/token/renew (the `RenewToken` operationId).
RenewTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RenewTokenResponse, error)
// ListConnectionsWithResponse List connections
//
// Lists the tenant's Airflow-style connections. Passwords are write-only and
// never returned; secret-bearing keys inside `extra` are masked server-side.
// Requires the read:connection permission.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/connections (the `ListConnections` operationId).
ListConnectionsWithResponse(ctx context.Context, params *ListConnectionsParams, reqEditors ...RequestEditorFn) (*ListConnectionsResponse, error)
// CreateConnectionWithBodyWithResponse Create or replace a connection (upsert)
//
// Upserts a connection: creates it, or replaces an existing one with the same
// connection_id. The password is write-only and never returned. Requires the
// write:connection permission and a configured encryption key.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
CreateConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
// CreateConnectionWithResponse Create or replace a connection (upsert)
//
// Upserts a connection: creates it, or replaces an existing one with the same
// connection_id. The password is write-only and never returned. Requires the
// write:connection permission and a configured encryption key.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/connections (the `CreateConnection` operationId).
CreateConnectionWithResponse(ctx context.Context, body CreateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConnectionResponse, error)
// DeleteConnectionWithResponse Delete a connection
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v2/connections/{connection_id} (the `DeleteConnection` operationId).
DeleteConnectionWithResponse(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*DeleteConnectionResponse, error)
// GetConnectionWithResponse Get a connection
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/connections/{connection_id} (the `GetConnection` operationId).
GetConnectionWithResponse(ctx context.Context, connectionId ConnectionID, reqEditors ...RequestEditorFn) (*GetConnectionResponse, error)
// UpdateConnectionWithBodyWithResponse Update a connection
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnectionWithBodyWithResponse(ctx context.Context, connectionId ConnectionID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
// UpdateConnectionWithResponse Update a connection
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v2/connections/{connection_id} (the `UpdateConnection` operationId).
UpdateConnectionWithResponse(ctx context.Context, connectionId ConnectionID, body UpdateConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConnectionResponse, error)
// GetDagSourceWithResponse Get a DAG's source (the dag.py text)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dagSources/{dag_id} (the `GetDagSource` operationId).
GetDagSourceWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSourceResponse, error)
// ListDagsWithResponse List DAGs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags (the `ListDags` operationId).
ListDagsWithResponse(ctx context.Context, params *ListDagsParams, reqEditors ...RequestEditorFn) (*ListDagsResponse, error)
// GetDagWithResponse Get a DAG
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id} (the `GetDag` operationId).
GetDagWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagResponse, error)
// UpdateDagWithBodyWithResponse Update DAG (typically pause/unpause)
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDagWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
// UpdateDagWithResponse Update DAG (typically pause/unpause)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v2/dags/{dag_id} (the `UpdateDag` operationId).
UpdateDagWithResponse(ctx context.Context, dagId DagID, body UpdateDagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDagResponse, error)
// ClearTaskInstancesWithBodyWithResponse Clear task instances (queue them for re-run)
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstancesWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
// ClearTaskInstancesWithResponse Clear task instances (queue them for re-run)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/clearTaskInstances (the `ClearTaskInstances` operationId).
ClearTaskInstancesWithResponse(ctx context.Context, dagId DagID, body ClearTaskInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*ClearTaskInstancesResponse, error)
// ListDagRunsWithResponse List DAG runs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns (the `ListDagRuns` operationId).
ListDagRunsWithResponse(ctx context.Context, dagId DagID, params *ListDagRunsParams, reqEditors ...RequestEditorFn) (*ListDagRunsResponse, error)
// TriggerDagRunWithBodyWithResponse Trigger a DAG run
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRunWithBodyWithResponse(ctx context.Context, dagId DagID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
// TriggerDagRunWithResponse Trigger a DAG run
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/dags/{dag_id}/dagRuns (the `TriggerDagRun` operationId).
TriggerDagRunWithResponse(ctx context.Context, dagId DagID, body TriggerDagRunJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerDagRunResponse, error)
// GetDagRunWithResponse Get a DAG run
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id} (the `GetDagRun` operationId).
GetDagRunWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*GetDagRunResponse, error)
// ListTaskInstancesWithResponse List task instances of a DAG run
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances (the `ListTaskInstances` operationId).
ListTaskInstancesWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, reqEditors ...RequestEditorFn) (*ListTaskInstancesResponse, error)
// GetTaskInstanceWithResponse Get a task instance
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id} (the `GetTaskInstance` operationId).
GetTaskInstanceWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, reqEditors ...RequestEditorFn) (*GetTaskInstanceResponse, error)
// GetTaskLogsWithResponse Get task logs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{try_number} (the `GetTaskLogs` operationId).
GetTaskLogsWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, tryNumber int, reqEditors ...RequestEditorFn) (*GetTaskLogsResponse, error)
// ListDagVersionsWithResponse List a DAG's registered versions
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions (the `ListDagVersions` operationId).
ListDagVersionsWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*ListDagVersionsResponse, error)
// GetDagVersionWithResponse Get a specific registered DAG version
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/dagVersions/{version_number} (the `GetDagVersion` operationId).
GetDagVersionWithResponse(ctx context.Context, dagId DagID, versionNumber int, reqEditors ...RequestEditorFn) (*GetDagVersionResponse, error)
// GetDagSpecWithResponse Get a DAG's compiled spec (the dag.json artifact)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/dags/{dag_id}/spec (the `GetDagSpec` operationId).
GetDagSpecWithResponse(ctx context.Context, dagId DagID, reqEditors ...RequestEditorFn) (*GetDagSpecResponse, error)
// GetMonitorExecutorWithResponse Executor capability and configuration
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/monitor/executor (the `GetMonitorExecutor` operationId).
GetMonitorExecutorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorExecutorResponse, error)
// GetMonitorHealthWithResponse Control-plane health (Airflow HealthInfoResponse shape)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/monitor/health (the `GetMonitorHealth` operationId).
GetMonitorHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMonitorHealthResponse, error)
// ListUsersWithResponse List users
//
// Lists the tenant's control-plane accounts, newest first. Each entry
// carries the full set of roles the user holds; the password and its hash
// are write-only and never returned. Requires the read:user permission.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/users (the `ListUsers` operationId).
ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// CreateUserWithBodyWithResponse Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// CreateUserWithResponse Create a user
//
// Admin-only. Creates a control-plane account with the given email and
// password and grants the requested roles. The password is write-only and
// is never returned. Requires the write:user permission.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/users (the `CreateUser` operationId).
CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// ListVariablesWithResponse List variables
//
// Lists the tenant's Airflow-style variables. Values of secret-ish keys are
// masked server-side. Requires the read:variable permission.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/variables (the `ListVariables` operationId).
ListVariablesWithResponse(ctx context.Context, params *ListVariablesParams, reqEditors ...RequestEditorFn) (*ListVariablesResponse, error)
// CreateVariableWithBodyWithResponse Create or replace a variable (upsert)
//
// Upserts a variable: creates it, or replaces an existing one with the same
// key. Requires the write:variable permission.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
CreateVariableWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVariableResponse, error)
// CreateVariableWithResponse Create or replace a variable (upsert)
//
// Upserts a variable: creates it, or replaces an existing one with the same
// key. Requires the write:variable permission.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v2/variables (the `CreateVariable` operationId).
CreateVariableWithResponse(ctx context.Context, body CreateVariableJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVariableResponse, error)
// DeleteVariableWithResponse Delete a variable
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v2/variables/{variable_key} (the `DeleteVariable` operationId).
DeleteVariableWithResponse(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*DeleteVariableResponse, error)
// GetVariableWithResponse Get a variable
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/variables/{variable_key} (the `GetVariable` operationId).
GetVariableWithResponse(ctx context.Context, variableKey VariableKey, reqEditors ...RequestEditorFn) (*GetVariableResponse, error)
// GetVersionWithResponse Control-plane version (Airflow VersionInfo shape)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/version (the `GetVersion` operationId).
GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
// GetXcomEntryWithResponse Read XCom value (read-only proxy for the Redis backend)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v2/xcoms/{dag_id}/{dag_run_id}/{task_id}/{key} (the `GetXcomEntry` operationId).
GetXcomEntryWithResponse(ctx context.Context, dagId DagID, dagRunId DagRunID, taskId TaskID, key string, reqEditors ...RequestEditorFn) (*GetXcomEntryResponse, error)
// IssueTokenWithBodyWithResponse Issue a JWT for username/password credentials
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
// IssueTokenWithResponse Issue a JWT for username/password credentials
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/token (the `IssueToken` operationId).
IssueTokenWithResponse(ctx context.Context, body IssueTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueTokenResponse, error)
// GetHealthzWithResponse Liveness probe
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /healthz (the `GetHealthz` operationId).
GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzResponse, error)
// GetReadyzWithResponse Readiness probe
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /readyz (the `GetReadyz` operationId).
GetReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyzResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ComponentHealth ¶
type ComponentHealth struct {
LatestDagProcessorHeartbeat *string `json:"latest_dag_processor_heartbeat,omitempty"`
LatestSchedulerHeartbeat *string `json:"latest_scheduler_heartbeat,omitempty"`
LatestTriggererHeartbeat *string `json:"latest_triggerer_heartbeat,omitempty"`
Status *string `json:"status,omitempty"`
}
ComponentHealth defines model for ComponentHealth.
type Connection ¶
type Connection struct {
ConnType string `json:"conn_type"`
ConnectionId string `json:"connection_id"`
Description *string `json:"description,omitempty"`
Extra *string `json:"extra,omitempty"`
Host *string `json:"host,omitempty"`
Login *string `json:"login,omitempty"`
Port *int `json:"port,omitempty"`
Schema *string `json:"schema,omitempty"`
}
Connection An Airflow-style connection. The password is write-only and never returned; secret-bearing keys inside `extra` are masked server-side.
type ConnectionBody ¶
type ConnectionBody struct {
ConnType string `json:"conn_type"`
ConnectionId *string `json:"connection_id,omitempty"`
Description *string `json:"description,omitempty"`
Extra *string `json:"extra,omitempty"`
Host *string `json:"host,omitempty"`
Login *string `json:"login,omitempty"`
Password *string `json:"password,omitempty"`
Port *int `json:"port,omitempty"`
Schema *string `json:"schema,omitempty"`
}
ConnectionBody Connection create/replace payload. connection_id is required on POST (taken from the path on PATCH). password and extra are write-only. Every optional field is tri-state: omit the key to preserve the stored value (a partial write never wipes a field it does not mention, so the unreadable password survives a `--host`-only edit), send an empty string to clear the field, or send a value to set it. A password equal to the mask `***`, and any key inside `extra` whose value is exactly `***`, is treated as "unchanged" — so re-submitting a connection read back from GET (whose secrets are masked) never overwrites the real secret with the mask.
type ConnectionCollection ¶
type ConnectionCollection struct {
Connections *[]Connection `json:"connections,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
ConnectionCollection defines model for ConnectionCollection.
type CreateConnectionJSONRequestBody ¶
type CreateConnectionJSONRequestBody = ConnectionBody
CreateConnectionJSONRequestBody defines body for CreateConnection for application/json ContentType.
type CreateConnectionResponse ¶
type CreateConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Connection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *EncryptionUnavailable
}
func ParseCreateConnectionResponse ¶
func ParseCreateConnectionResponse(rsp *http.Response) (*CreateConnectionResponse, error)
ParseCreateConnectionResponse parses an HTTP response from a CreateConnectionWithResponse call
func (CreateConnectionResponse) ContentType ¶
func (r CreateConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateConnectionResponse) GetBody ¶
func (r CreateConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateConnectionResponse) GetJSON201 ¶
func (r CreateConnectionResponse) GetJSON201() *Connection
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateConnectionResponse) GetJSON400 ¶
func (r CreateConnectionResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateConnectionResponse) GetJSON401 ¶
func (r CreateConnectionResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateConnectionResponse) GetJSON503 ¶
func (r CreateConnectionResponse) GetJSON503() *EncryptionUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (CreateConnectionResponse) Status ¶
func (r CreateConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateConnectionResponse) StatusCode ¶
func (r CreateConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = CreateUserRequest
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserRequest ¶
type CreateUserRequest struct {
// Email Login email. Normalized to lowercase, so it is unique case-insensitively within the tenant.
Email string `json:"email"`
// Password Plaintext password (write-only; never returned). Must be at least 8 characters — the server rejects anything shorter with 400.
Password *string `json:"password,omitempty"`
// Roles Names of existing roles to grant; omit or empty to grant none.
Roles *[]string `json:"roles,omitempty"`
}
CreateUserRequest defines model for CreateUserRequest.
type CreateUserResponse ¶
type CreateUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *User
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Error
}
func ParseCreateUserResponse ¶
func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)
ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call
func (CreateUserResponse) ContentType ¶
func (r CreateUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateUserResponse) GetBody ¶
func (r CreateUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateUserResponse) GetJSON201 ¶
func (r CreateUserResponse) GetJSON201() *User
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateUserResponse) GetJSON400 ¶
func (r CreateUserResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateUserResponse) GetJSON401 ¶
func (r CreateUserResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateUserResponse) GetJSON409 ¶
func (r CreateUserResponse) GetJSON409() *Error
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateUserResponse) Status ¶
func (r CreateUserResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUserResponse) StatusCode ¶
func (r CreateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVariableJSONRequestBody ¶
type CreateVariableJSONRequestBody = VariableBody
CreateVariableJSONRequestBody defines body for CreateVariable for application/json ContentType.
type CreateVariableResponse ¶
type CreateVariableResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Variable
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseCreateVariableResponse ¶
func ParseCreateVariableResponse(rsp *http.Response) (*CreateVariableResponse, error)
ParseCreateVariableResponse parses an HTTP response from a CreateVariableWithResponse call
func (CreateVariableResponse) ContentType ¶
func (r CreateVariableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateVariableResponse) GetBody ¶
func (r CreateVariableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateVariableResponse) GetJSON201 ¶
func (r CreateVariableResponse) GetJSON201() *Variable
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateVariableResponse) GetJSON400 ¶
func (r CreateVariableResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateVariableResponse) GetJSON401 ¶
func (r CreateVariableResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateVariableResponse) Status ¶
func (r CreateVariableResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVariableResponse) StatusCode ¶
func (r CreateVariableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DAG ¶
type DAG struct {
Catchup *bool `json:"catchup,omitempty"`
DagDisplayName *string `json:"dag_display_name,omitempty"`
DagId *string `json:"dag_id,omitempty"`
Description *string `json:"description,omitempty"`
Fileloc *string `json:"fileloc,omitempty"`
HasTaskConcurrencyLimits *bool `json:"has_task_concurrency_limits,omitempty"`
IsActive *bool `json:"is_active,omitempty"`
IsPaused *bool `json:"is_paused,omitempty"`
LastParsedTime *time.Time `json:"last_parsed_time,omitempty"`
MaxActiveRuns *int `json:"max_active_runs,omitempty"`
NextDagrun *time.Time `json:"next_dagrun,omitempty"`
Owners *[]string `json:"owners,omitempty"`
ScheduleInterval *map[string]interface{} `json:"schedule_interval,omitempty"`
Tags *[]struct {
Name *string `json:"name,omitempty"`
} `json:"tags,omitempty"`
TimetableDescription *string `json:"timetable_description,omitempty"`
}
DAG defines model for DAG.
type DAGCollection ¶
type DAGCollection struct {
Dags *[]DAG `json:"dags,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
DAGCollection defines model for DAGCollection.
type DAGRun ¶
type DAGRun struct {
Conf *map[string]interface{} `json:"conf,omitempty"`
DagId *string `json:"dag_id,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
DataIntervalEnd *time.Time `json:"data_interval_end,omitempty"`
DataIntervalStart *time.Time `json:"data_interval_start,omitempty"`
EndDate *time.Time `json:"end_date,omitempty"`
LogicalDate *time.Time `json:"logical_date,omitempty"`
Note *string `json:"note,omitempty"`
QueuedAt *time.Time `json:"queued_at,omitempty"`
RunType *DAGRunRunType `json:"run_type,omitempty"`
StartDate *time.Time `json:"start_date,omitempty"`
State *DAGRunState `json:"state,omitempty"`
}
DAGRun defines model for DAGRun.
type DAGRunCollection ¶
type DAGRunCollection struct {
DagRuns *[]DAGRun `json:"dag_runs,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
DAGRunCollection defines model for DAGRunCollection.
type DAGRunCreate ¶
type DAGRunCreate struct {
Conf *map[string]interface{} `json:"conf,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
LogicalDate *time.Time `json:"logical_date,omitempty"`
Note *string `json:"note,omitempty"`
}
DAGRunCreate defines model for DAGRunCreate.
type DAGRunRunType ¶
type DAGRunRunType string
DAGRunRunType defines model for DAGRun.RunType.
const ( DAGRunRunTypeBackfill DAGRunRunType = "backfill" DAGRunRunTypeDatasetTriggered DAGRunRunType = "dataset_triggered" DAGRunRunTypeManual DAGRunRunType = "manual" DAGRunRunTypeScheduled DAGRunRunType = "scheduled" )
Defines values for DAGRunRunType.
func (DAGRunRunType) Valid ¶
func (e DAGRunRunType) Valid() bool
Valid indicates whether the value is a known member of the DAGRunRunType enum.
type DAGRunState ¶
type DAGRunState string
DAGRunState defines model for DAGRun.State.
const ( DAGRunStateFailed DAGRunState = "failed" DAGRunStateQueued DAGRunState = "queued" DAGRunStateRunning DAGRunState = "running" DAGRunStateSuccess DAGRunState = "success" )
Defines values for DAGRunState.
func (DAGRunState) Valid ¶
func (e DAGRunState) Valid() bool
Valid indicates whether the value is a known member of the DAGRunState enum.
type DAGUpdate ¶
type DAGUpdate struct {
IsPaused *bool `json:"is_paused,omitempty"`
}
DAGUpdate defines model for DAGUpdate.
type DagSource ¶
type DagSource struct {
// Content The dag.py source text (compiled-spec JSON fallback for pre-source-capture versions).
Content *string `json:"content,omitempty"`
DagDisplayName *string `json:"dag_display_name,omitempty"`
DagId *string `json:"dag_id,omitempty"`
VersionNumber *int `json:"version_number,omitempty"`
}
DagSource defines model for DagSource.
type DagVersion ¶
type DagVersion struct {
BundleName *string `json:"bundle_name,omitempty"`
BundleUrl *string `json:"bundle_url,omitempty"`
BundleVersion *string `json:"bundle_version,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
DagDisplayName *string `json:"dag_display_name,omitempty"`
DagId *string `json:"dag_id,omitempty"`
Id *string `json:"id,omitempty"`
VersionNumber *int `json:"version_number,omitempty"`
}
DagVersion defines model for DagVersion.
type DagVersionCollection ¶
type DagVersionCollection struct {
DagVersions *[]DagVersion `json:"dag_versions,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
DagVersionCollection defines model for DagVersionCollection.
type DeleteConnectionResponse ¶
type DeleteConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseDeleteConnectionResponse ¶
func ParseDeleteConnectionResponse(rsp *http.Response) (*DeleteConnectionResponse, error)
ParseDeleteConnectionResponse parses an HTTP response from a DeleteConnectionWithResponse call
func (DeleteConnectionResponse) ContentType ¶
func (r DeleteConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteConnectionResponse) GetBody ¶
func (r DeleteConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteConnectionResponse) GetJSON401 ¶
func (r DeleteConnectionResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteConnectionResponse) GetJSON404 ¶
func (r DeleteConnectionResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteConnectionResponse) Status ¶
func (r DeleteConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteConnectionResponse) StatusCode ¶
func (r DeleteConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVariableResponse ¶
type DeleteVariableResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseDeleteVariableResponse ¶
func ParseDeleteVariableResponse(rsp *http.Response) (*DeleteVariableResponse, error)
ParseDeleteVariableResponse parses an HTTP response from a DeleteVariableWithResponse call
func (DeleteVariableResponse) ContentType ¶
func (r DeleteVariableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteVariableResponse) GetBody ¶
func (r DeleteVariableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteVariableResponse) GetJSON401 ¶
func (r DeleteVariableResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteVariableResponse) GetJSON404 ¶
func (r DeleteVariableResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteVariableResponse) Status ¶
func (r DeleteVariableResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVariableResponse) StatusCode ¶
func (r DeleteVariableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EncryptionUnavailable ¶
type EncryptionUnavailable = Error
EncryptionUnavailable defines model for EncryptionUnavailable.
type Error ¶
type Error struct {
Detail *string `json:"detail,omitempty"`
Instance *string `json:"instance,omitempty"`
Status *int `json:"status,omitempty"`
Title *string `json:"title,omitempty"`
Type *string `json:"type,omitempty"`
}
Error defines model for Error.
type ExecutorInfo ¶
type ExecutorInfo struct {
AgentControlPlaneAddr *string `json:"agent_control_plane_addr,omitempty"`
ExecutionModes *[]string `json:"execution_modes,omitempty"`
PodDispatchEnabled *bool `json:"pod_dispatch_enabled,omitempty"`
TaskNamespace *string `json:"task_namespace,omitempty"`
}
ExecutorInfo defines model for ExecutorInfo.
type GetConnectionResponse ¶
type GetConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Connection
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetConnectionResponse ¶
func ParseGetConnectionResponse(rsp *http.Response) (*GetConnectionResponse, error)
ParseGetConnectionResponse parses an HTTP response from a GetConnectionWithResponse call
func (GetConnectionResponse) ContentType ¶
func (r GetConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetConnectionResponse) GetBody ¶
func (r GetConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetConnectionResponse) GetJSON200 ¶
func (r GetConnectionResponse) GetJSON200() *Connection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetConnectionResponse) GetJSON401 ¶
func (r GetConnectionResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetConnectionResponse) GetJSON404 ¶
func (r GetConnectionResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetConnectionResponse) Status ¶
func (r GetConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (GetConnectionResponse) StatusCode ¶
func (r GetConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagResponse ¶
type GetDagResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAG
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagResponse ¶
func ParseGetDagResponse(rsp *http.Response) (*GetDagResponse, error)
ParseGetDagResponse parses an HTTP response from a GetDagWithResponse call
func (GetDagResponse) ContentType ¶
func (r GetDagResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagResponse) GetBody ¶
func (r GetDagResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagResponse) GetJSON200 ¶
func (r GetDagResponse) GetJSON200() *DAG
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagResponse) GetJSON404 ¶
func (r GetDagResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagResponse) Status ¶
func (r GetDagResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagResponse) StatusCode ¶
func (r GetDagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagRunResponse ¶
type GetDagRunResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGRun
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagRunResponse ¶
func ParseGetDagRunResponse(rsp *http.Response) (*GetDagRunResponse, error)
ParseGetDagRunResponse parses an HTTP response from a GetDagRunWithResponse call
func (GetDagRunResponse) ContentType ¶
func (r GetDagRunResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagRunResponse) GetBody ¶
func (r GetDagRunResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagRunResponse) GetJSON200 ¶
func (r GetDagRunResponse) GetJSON200() *DAGRun
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagRunResponse) GetJSON404 ¶
func (r GetDagRunResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagRunResponse) Status ¶
func (r GetDagRunResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagRunResponse) StatusCode ¶
func (r GetDagRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagSourceResponse ¶
type GetDagSourceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DagSource
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagSourceResponse ¶
func ParseGetDagSourceResponse(rsp *http.Response) (*GetDagSourceResponse, error)
ParseGetDagSourceResponse parses an HTTP response from a GetDagSourceWithResponse call
func (GetDagSourceResponse) ContentType ¶
func (r GetDagSourceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagSourceResponse) GetBody ¶
func (r GetDagSourceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagSourceResponse) GetJSON200 ¶
func (r GetDagSourceResponse) GetJSON200() *DagSource
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagSourceResponse) GetJSON404 ¶
func (r GetDagSourceResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagSourceResponse) Status ¶
func (r GetDagSourceResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagSourceResponse) StatusCode ¶
func (r GetDagSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagSpecResponse ¶
type GetDagSpecResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *map[string]interface{}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagSpecResponse ¶
func ParseGetDagSpecResponse(rsp *http.Response) (*GetDagSpecResponse, error)
ParseGetDagSpecResponse parses an HTTP response from a GetDagSpecWithResponse call
func (GetDagSpecResponse) ContentType ¶
func (r GetDagSpecResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagSpecResponse) GetBody ¶
func (r GetDagSpecResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagSpecResponse) GetJSON200 ¶
func (r GetDagSpecResponse) GetJSON200() *map[string]interface{}
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagSpecResponse) GetJSON404 ¶
func (r GetDagSpecResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagSpecResponse) Status ¶
func (r GetDagSpecResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagSpecResponse) StatusCode ¶
func (r GetDagSpecResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDagVersionResponse ¶
type GetDagVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DagVersion
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetDagVersionResponse ¶
func ParseGetDagVersionResponse(rsp *http.Response) (*GetDagVersionResponse, error)
ParseGetDagVersionResponse parses an HTTP response from a GetDagVersionWithResponse call
func (GetDagVersionResponse) ContentType ¶
func (r GetDagVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDagVersionResponse) GetBody ¶
func (r GetDagVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDagVersionResponse) GetJSON200 ¶
func (r GetDagVersionResponse) GetJSON200() *DagVersion
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDagVersionResponse) GetJSON404 ¶
func (r GetDagVersionResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetDagVersionResponse) Status ¶
func (r GetDagVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetDagVersionResponse) StatusCode ¶
func (r GetDagVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthzResponse ¶
func ParseGetHealthzResponse ¶
func ParseGetHealthzResponse(rsp *http.Response) (*GetHealthzResponse, error)
ParseGetHealthzResponse parses an HTTP response from a GetHealthzWithResponse call
func (GetHealthzResponse) ContentType ¶
func (r GetHealthzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHealthzResponse) GetBody ¶
func (r GetHealthzResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHealthzResponse) Status ¶
func (r GetHealthzResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthzResponse) StatusCode ¶
func (r GetHealthzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonitorExecutorResponse ¶
type GetMonitorExecutorResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ExecutorInfo
}
func ParseGetMonitorExecutorResponse ¶
func ParseGetMonitorExecutorResponse(rsp *http.Response) (*GetMonitorExecutorResponse, error)
ParseGetMonitorExecutorResponse parses an HTTP response from a GetMonitorExecutorWithResponse call
func (GetMonitorExecutorResponse) ContentType ¶
func (r GetMonitorExecutorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMonitorExecutorResponse) GetBody ¶
func (r GetMonitorExecutorResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMonitorExecutorResponse) GetJSON200 ¶
func (r GetMonitorExecutorResponse) GetJSON200() *ExecutorInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMonitorExecutorResponse) Status ¶
func (r GetMonitorExecutorResponse) Status() string
Status returns HTTPResponse.Status
func (GetMonitorExecutorResponse) StatusCode ¶
func (r GetMonitorExecutorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMonitorHealthResponse ¶
type GetMonitorHealthResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HealthInfo
}
func ParseGetMonitorHealthResponse ¶
func ParseGetMonitorHealthResponse(rsp *http.Response) (*GetMonitorHealthResponse, error)
ParseGetMonitorHealthResponse parses an HTTP response from a GetMonitorHealthWithResponse call
func (GetMonitorHealthResponse) ContentType ¶
func (r GetMonitorHealthResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMonitorHealthResponse) GetBody ¶
func (r GetMonitorHealthResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetMonitorHealthResponse) GetJSON200 ¶
func (r GetMonitorHealthResponse) GetJSON200() *HealthInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetMonitorHealthResponse) Status ¶
func (r GetMonitorHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetMonitorHealthResponse) StatusCode ¶
func (r GetMonitorHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReadyzResponse ¶
func ParseGetReadyzResponse ¶
func ParseGetReadyzResponse(rsp *http.Response) (*GetReadyzResponse, error)
ParseGetReadyzResponse parses an HTTP response from a GetReadyzWithResponse call
func (GetReadyzResponse) ContentType ¶
func (r GetReadyzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetReadyzResponse) GetBody ¶
func (r GetReadyzResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetReadyzResponse) Status ¶
func (r GetReadyzResponse) Status() string
Status returns HTTPResponse.Status
func (GetReadyzResponse) StatusCode ¶
func (r GetReadyzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskInstanceResponse ¶
type GetTaskInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskInstance
}
func ParseGetTaskInstanceResponse ¶
func ParseGetTaskInstanceResponse(rsp *http.Response) (*GetTaskInstanceResponse, error)
ParseGetTaskInstanceResponse parses an HTTP response from a GetTaskInstanceWithResponse call
func (GetTaskInstanceResponse) ContentType ¶
func (r GetTaskInstanceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTaskInstanceResponse) GetBody ¶
func (r GetTaskInstanceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTaskInstanceResponse) GetJSON200 ¶
func (r GetTaskInstanceResponse) GetJSON200() *TaskInstance
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTaskInstanceResponse) Status ¶
func (r GetTaskInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskInstanceResponse) StatusCode ¶
func (r GetTaskInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskLogsResponse ¶
func ParseGetTaskLogsResponse ¶
func ParseGetTaskLogsResponse(rsp *http.Response) (*GetTaskLogsResponse, error)
ParseGetTaskLogsResponse parses an HTTP response from a GetTaskLogsWithResponse call
func (GetTaskLogsResponse) ContentType ¶
func (r GetTaskLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTaskLogsResponse) GetBody ¶
func (r GetTaskLogsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTaskLogsResponse) Status ¶
func (r GetTaskLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskLogsResponse) StatusCode ¶
func (r GetTaskLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVariableResponse ¶
type GetVariableResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Variable
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetVariableResponse ¶
func ParseGetVariableResponse(rsp *http.Response) (*GetVariableResponse, error)
ParseGetVariableResponse parses an HTTP response from a GetVariableWithResponse call
func (GetVariableResponse) ContentType ¶
func (r GetVariableResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetVariableResponse) GetBody ¶
func (r GetVariableResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetVariableResponse) GetJSON200 ¶
func (r GetVariableResponse) GetJSON200() *Variable
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetVariableResponse) GetJSON401 ¶
func (r GetVariableResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetVariableResponse) GetJSON404 ¶
func (r GetVariableResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetVariableResponse) Status ¶
func (r GetVariableResponse) Status() string
Status returns HTTPResponse.Status
func (GetVariableResponse) StatusCode ¶
func (r GetVariableResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVersionResponse ¶
type GetVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VersionInfo
}
func ParseGetVersionResponse ¶
func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error)
ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call
func (GetVersionResponse) ContentType ¶
func (r GetVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetVersionResponse) GetBody ¶
func (r GetVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetVersionResponse) GetJSON200 ¶
func (r GetVersionResponse) GetJSON200() *VersionInfo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetVersionResponse) Status ¶
func (r GetVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetVersionResponse) StatusCode ¶
func (r GetVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetXcomEntryResponse ¶
type GetXcomEntryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *XComEntry
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetXcomEntryResponse ¶
func ParseGetXcomEntryResponse(rsp *http.Response) (*GetXcomEntryResponse, error)
ParseGetXcomEntryResponse parses an HTTP response from a GetXcomEntryWithResponse call
func (GetXcomEntryResponse) ContentType ¶
func (r GetXcomEntryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetXcomEntryResponse) GetBody ¶
func (r GetXcomEntryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetXcomEntryResponse) GetJSON200 ¶
func (r GetXcomEntryResponse) GetJSON200() *XComEntry
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetXcomEntryResponse) GetJSON404 ¶
func (r GetXcomEntryResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetXcomEntryResponse) Status ¶
func (r GetXcomEntryResponse) Status() string
Status returns HTTPResponse.Status
func (GetXcomEntryResponse) StatusCode ¶
func (r GetXcomEntryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthInfo ¶
type HealthInfo struct {
DagProcessor *ComponentHealth `json:"dag_processor,omitempty"`
Metadatabase *ComponentHealth `json:"metadatabase,omitempty"`
Scheduler *ComponentHealth `json:"scheduler,omitempty"`
Triggerer *ComponentHealth `json:"triggerer,omitempty"`
}
HealthInfo defines model for HealthInfo.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IssueTokenJSONRequestBody ¶
type IssueTokenJSONRequestBody = TokenRequest
IssueTokenJSONRequestBody defines body for IssueToken for application/json ContentType.
type IssueTokenResponse ¶
type IssueTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TokenResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *IssueTokenResponse200Headers
}
func ParseIssueTokenResponse ¶
func ParseIssueTokenResponse(rsp *http.Response) (*IssueTokenResponse, error)
ParseIssueTokenResponse parses an HTTP response from a IssueTokenWithResponse call
func (IssueTokenResponse) ContentType ¶
func (r IssueTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IssueTokenResponse) GetBody ¶
func (r IssueTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (IssueTokenResponse) GetJSON200 ¶
func (r IssueTokenResponse) GetJSON200() *TokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (IssueTokenResponse) GetJSON401 ¶
func (r IssueTokenResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (IssueTokenResponse) Status ¶
func (r IssueTokenResponse) Status() string
Status returns HTTPResponse.Status
func (IssueTokenResponse) StatusCode ¶
func (r IssueTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IssueTokenResponse200Headers ¶
type IssueTokenResponse200Headers struct {
SetCookie *string
}
IssueTokenResponse200Headers the declared response headers of an HTTP 200 response for IssueToken
type ListConnectionsParams ¶
type ListConnectionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListConnectionsParams defines parameters for ListConnections.
type ListConnectionsResponse ¶
type ListConnectionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ConnectionCollection
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseListConnectionsResponse ¶
func ParseListConnectionsResponse(rsp *http.Response) (*ListConnectionsResponse, error)
ParseListConnectionsResponse parses an HTTP response from a ListConnectionsWithResponse call
func (ListConnectionsResponse) ContentType ¶
func (r ListConnectionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConnectionsResponse) GetBody ¶
func (r ListConnectionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListConnectionsResponse) GetJSON200 ¶
func (r ListConnectionsResponse) GetJSON200() *ConnectionCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListConnectionsResponse) GetJSON401 ¶
func (r ListConnectionsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListConnectionsResponse) Status ¶
func (r ListConnectionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListConnectionsResponse) StatusCode ¶
func (r ListConnectionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDagRunsParams ¶
type ListDagRunsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
State *[]ListDagRunsParamsState `form:"state,omitempty" json:"state,omitempty"`
}
ListDagRunsParams defines parameters for ListDagRuns.
type ListDagRunsParamsState ¶
type ListDagRunsParamsState string
ListDagRunsParamsState defines parameters for ListDagRuns.
const ( ListDagRunsParamsStateFailed ListDagRunsParamsState = "failed" ListDagRunsParamsStateQueued ListDagRunsParamsState = "queued" ListDagRunsParamsStateRunning ListDagRunsParamsState = "running" ListDagRunsParamsStateSuccess ListDagRunsParamsState = "success" )
Defines values for ListDagRunsParamsState.
func (ListDagRunsParamsState) Valid ¶
func (e ListDagRunsParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListDagRunsParamsState enum.
type ListDagRunsResponse ¶
type ListDagRunsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGRunCollection
}
func ParseListDagRunsResponse ¶
func ParseListDagRunsResponse(rsp *http.Response) (*ListDagRunsResponse, error)
ParseListDagRunsResponse parses an HTTP response from a ListDagRunsWithResponse call
func (ListDagRunsResponse) ContentType ¶
func (r ListDagRunsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDagRunsResponse) GetBody ¶
func (r ListDagRunsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDagRunsResponse) GetJSON200 ¶
func (r ListDagRunsResponse) GetJSON200() *DAGRunCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDagRunsResponse) Status ¶
func (r ListDagRunsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDagRunsResponse) StatusCode ¶
func (r ListDagRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDagVersionsResponse ¶
type ListDagVersionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DagVersionCollection
}
func ParseListDagVersionsResponse ¶
func ParseListDagVersionsResponse(rsp *http.Response) (*ListDagVersionsResponse, error)
ParseListDagVersionsResponse parses an HTTP response from a ListDagVersionsWithResponse call
func (ListDagVersionsResponse) ContentType ¶
func (r ListDagVersionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDagVersionsResponse) GetBody ¶
func (r ListDagVersionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDagVersionsResponse) GetJSON200 ¶
func (r ListDagVersionsResponse) GetJSON200() *DagVersionCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDagVersionsResponse) Status ¶
func (r ListDagVersionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDagVersionsResponse) StatusCode ¶
func (r ListDagVersionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDagsParams ¶
type ListDagsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"`
OnlyActive *bool `form:"only_active,omitempty" json:"only_active,omitempty"`
Paused *bool `form:"paused,omitempty" json:"paused,omitempty"`
}
ListDagsParams defines parameters for ListDags.
type ListDagsResponse ¶
type ListDagsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGCollection
}
func ParseListDagsResponse ¶
func ParseListDagsResponse(rsp *http.Response) (*ListDagsResponse, error)
ParseListDagsResponse parses an HTTP response from a ListDagsWithResponse call
func (ListDagsResponse) ContentType ¶
func (r ListDagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDagsResponse) GetBody ¶
func (r ListDagsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDagsResponse) GetJSON200 ¶
func (r ListDagsResponse) GetJSON200() *DAGCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDagsResponse) Status ¶
func (r ListDagsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDagsResponse) StatusCode ¶
func (r ListDagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTaskInstancesResponse ¶
type ListTaskInstancesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TaskInstanceCollection
}
func ParseListTaskInstancesResponse ¶
func ParseListTaskInstancesResponse(rsp *http.Response) (*ListTaskInstancesResponse, error)
ParseListTaskInstancesResponse parses an HTTP response from a ListTaskInstancesWithResponse call
func (ListTaskInstancesResponse) ContentType ¶
func (r ListTaskInstancesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTaskInstancesResponse) GetBody ¶
func (r ListTaskInstancesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListTaskInstancesResponse) GetJSON200 ¶
func (r ListTaskInstancesResponse) GetJSON200() *TaskInstanceCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListTaskInstancesResponse) Status ¶
func (r ListTaskInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (ListTaskInstancesResponse) StatusCode ¶
func (r ListTaskInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersParams ¶
type ListUsersParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListUsersParams defines parameters for ListUsers.
type ListUsersResponse ¶
type ListUsersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UserCollection
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseListUsersResponse ¶
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) ContentType ¶
func (r ListUsersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUsersResponse) GetBody ¶
func (r ListUsersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListUsersResponse) GetJSON200 ¶
func (r ListUsersResponse) GetJSON200() *UserCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListUsersResponse) GetJSON401 ¶
func (r ListUsersResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListUsersResponse) Status ¶
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode ¶
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListVariablesParams ¶
type ListVariablesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListVariablesParams defines parameters for ListVariables.
type ListVariablesResponse ¶
type ListVariablesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VariableCollection
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseListVariablesResponse ¶
func ParseListVariablesResponse(rsp *http.Response) (*ListVariablesResponse, error)
ParseListVariablesResponse parses an HTTP response from a ListVariablesWithResponse call
func (ListVariablesResponse) ContentType ¶
func (r ListVariablesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListVariablesResponse) GetBody ¶
func (r ListVariablesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListVariablesResponse) GetJSON200 ¶
func (r ListVariablesResponse) GetJSON200() *VariableCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListVariablesResponse) GetJSON401 ¶
func (r ListVariablesResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListVariablesResponse) Status ¶
func (r ListVariablesResponse) Status() string
Status returns HTTPResponse.Status
func (ListVariablesResponse) StatusCode ¶
func (r ListVariablesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RenewTokenResponse ¶
type RenewTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TokenResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseRenewTokenResponse ¶
func ParseRenewTokenResponse(rsp *http.Response) (*RenewTokenResponse, error)
ParseRenewTokenResponse parses an HTTP response from a RenewTokenWithResponse call
func (RenewTokenResponse) ContentType ¶
func (r RenewTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RenewTokenResponse) GetBody ¶
func (r RenewTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RenewTokenResponse) GetJSON200 ¶
func (r RenewTokenResponse) GetJSON200() *TokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RenewTokenResponse) GetJSON401 ¶
func (r RenewTokenResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RenewTokenResponse) Status ¶
func (r RenewTokenResponse) Status() string
Status returns HTTPResponse.Status
func (RenewTokenResponse) StatusCode ¶
func (r RenewTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type TaskInstance ¶
type TaskInstance struct {
DagId *string `json:"dag_id,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
Duration *float32 `json:"duration,omitempty"`
EndDate *time.Time `json:"end_date,omitempty"`
// FailureReason Dexaflow extension (not part of the Airflow API). A short, human-readable cause for a terminal failure, recorded by whichever component observed it: the task's own report, the reconciler reading the pod (image pull, OOM, exit code), a reaper declaring the pod or agent lost, or the agent's classification of a failure that happened before it could register. It answers "why did this fail?" for an attempt that streamed no logs because its agent never started. Null when no cause was observed. Best-effort and diagnostic: it carries a classification, never a credential or a raw internal error.
//
// Example: the control plane rejected this pod's projected ServiceAccount token; check the control plane's RBAC for tokenreviews and the configured token audience.
FailureReason *string `json:"failure_reason,omitempty"`
Hostname *string `json:"hostname,omitempty"`
MapIndex *int `json:"map_index,omitempty"`
MaxTries *int `json:"max_tries,omitempty"`
Operator *string `json:"operator,omitempty"`
Pool *string `json:"pool,omitempty"`
StartDate *time.Time `json:"start_date,omitempty"`
State *TaskInstanceState `json:"state,omitempty"`
TaskId *string `json:"task_id,omitempty"`
TryNumber *int `json:"try_number,omitempty"`
}
TaskInstance defines model for TaskInstance.
type TaskInstanceCollection ¶
type TaskInstanceCollection struct {
TaskInstances *[]TaskInstance `json:"task_instances,omitempty"`
TotalEntries *int `json:"total_entries,omitempty"`
}
TaskInstanceCollection defines model for TaskInstanceCollection.
type TaskInstanceState ¶
type TaskInstanceState string
TaskInstanceState defines model for TaskInstance.State.
const ( TaskInstanceStateFailed TaskInstanceState = "failed" TaskInstanceStateNone TaskInstanceState = "none" TaskInstanceStateQueued TaskInstanceState = "queued" TaskInstanceStateRunning TaskInstanceState = "running" TaskInstanceStateScheduled TaskInstanceState = "scheduled" TaskInstanceStateSkipped TaskInstanceState = "skipped" TaskInstanceStateSuccess TaskInstanceState = "success" TaskInstanceStateUpForRetry TaskInstanceState = "up_for_retry" TaskInstanceStateUpstreamFailed TaskInstanceState = "upstream_failed" )
Defines values for TaskInstanceState.
func (TaskInstanceState) Valid ¶
func (e TaskInstanceState) Valid() bool
Valid indicates whether the value is a known member of the TaskInstanceState enum.
type TokenRequest ¶
TokenRequest defines model for TokenRequest.
type TokenResponse ¶
type TokenResponse struct {
AccessToken *string `json:"access_token,omitempty"`
// ExpiresIn Example: 3600
ExpiresIn *int `json:"expires_in,omitempty"`
// TokenType Example: bearer
TokenType *string `json:"token_type,omitempty"`
}
TokenResponse defines model for TokenResponse.
type TriggerDagRunJSONRequestBody ¶
type TriggerDagRunJSONRequestBody = DAGRunCreate
TriggerDagRunJSONRequestBody defines body for TriggerDagRun for application/json ContentType.
type TriggerDagRunResponse ¶
type TriggerDagRunResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAGRun
}
func ParseTriggerDagRunResponse ¶
func ParseTriggerDagRunResponse(rsp *http.Response) (*TriggerDagRunResponse, error)
ParseTriggerDagRunResponse parses an HTTP response from a TriggerDagRunWithResponse call
func (TriggerDagRunResponse) ContentType ¶
func (r TriggerDagRunResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TriggerDagRunResponse) GetBody ¶
func (r TriggerDagRunResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TriggerDagRunResponse) GetJSON200 ¶
func (r TriggerDagRunResponse) GetJSON200() *DAGRun
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TriggerDagRunResponse) Status ¶
func (r TriggerDagRunResponse) Status() string
Status returns HTTPResponse.Status
func (TriggerDagRunResponse) StatusCode ¶
func (r TriggerDagRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateConnectionJSONRequestBody ¶
type UpdateConnectionJSONRequestBody = ConnectionBody
UpdateConnectionJSONRequestBody defines body for UpdateConnection for application/json ContentType.
type UpdateConnectionResponse ¶
type UpdateConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Connection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *EncryptionUnavailable
}
func ParseUpdateConnectionResponse ¶
func ParseUpdateConnectionResponse(rsp *http.Response) (*UpdateConnectionResponse, error)
ParseUpdateConnectionResponse parses an HTTP response from a UpdateConnectionWithResponse call
func (UpdateConnectionResponse) ContentType ¶
func (r UpdateConnectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateConnectionResponse) GetBody ¶
func (r UpdateConnectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateConnectionResponse) GetJSON200 ¶
func (r UpdateConnectionResponse) GetJSON200() *Connection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateConnectionResponse) GetJSON400 ¶
func (r UpdateConnectionResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateConnectionResponse) GetJSON401 ¶
func (r UpdateConnectionResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UpdateConnectionResponse) GetJSON404 ¶
func (r UpdateConnectionResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateConnectionResponse) GetJSON503 ¶
func (r UpdateConnectionResponse) GetJSON503() *EncryptionUnavailable
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (UpdateConnectionResponse) Status ¶
func (r UpdateConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateConnectionResponse) StatusCode ¶
func (r UpdateConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateDagJSONRequestBody ¶
type UpdateDagJSONRequestBody = DAGUpdate
UpdateDagJSONRequestBody defines body for UpdateDag for application/json ContentType.
type UpdateDagResponse ¶
type UpdateDagResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DAG
}
func ParseUpdateDagResponse ¶
func ParseUpdateDagResponse(rsp *http.Response) (*UpdateDagResponse, error)
ParseUpdateDagResponse parses an HTTP response from a UpdateDagWithResponse call
func (UpdateDagResponse) ContentType ¶
func (r UpdateDagResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateDagResponse) GetBody ¶
func (r UpdateDagResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateDagResponse) GetJSON200 ¶
func (r UpdateDagResponse) GetJSON200() *DAG
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateDagResponse) Status ¶
func (r UpdateDagResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateDagResponse) StatusCode ¶
func (r UpdateDagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type User ¶
type User struct {
CreatedAt time.Time `json:"created_at"`
Email string `json:"email"`
Id string `json:"id"`
IsActive bool `json:"is_active"`
Roles []string `json:"roles"`
}
User defines model for User.
type UserCollection ¶
type UserCollection struct {
TotalEntries *int `json:"total_entries,omitempty"`
Users *[]UserListItem `json:"users,omitempty"`
}
UserCollection defines model for UserCollection.
type UserListItem ¶
type UserListItem struct {
CreatedAt time.Time `json:"created_at"`
Email string `json:"email"`
Id string `json:"id"`
IsActive bool `json:"is_active"`
Roles []string `json:"roles"`
}
UserListItem One account in the user list. Dexaflow accounts are email-keyed and carry a set of RBAC roles, so this diverges from the Airflow FAB users API (username-keyed with first_name/last_name).
type Variable ¶
type Variable struct {
Description *string `json:"description,omitempty"`
IsEncrypted bool `json:"is_encrypted"`
Key string `json:"key"`
TeamName *string `json:"team_name,omitempty"`
Value string `json:"value"`
}
Variable An Airflow-style variable. The value is masked server-side when the key looks sensitive (secret/password/token/...).
type VariableBody ¶
type VariableBody struct {
Description *string `json:"description,omitempty"`
Key string `json:"key"`
Value *string `json:"value,omitempty"`
}
VariableBody Variable create/replace payload. value and description are tri-state: omit the key to preserve the stored value, send an empty string to clear it, or send a value to set it. A value equal to the mask `***` for a sensitive-looking key (secret/password/token/...) is treated as "unchanged", so re-submitting a variable read back from GET (whose sensitive value is masked) never overwrites the real value with the mask.
type VariableCollection ¶
type VariableCollection struct {
TotalEntries *int `json:"total_entries,omitempty"`
Variables *[]Variable `json:"variables,omitempty"`
}
VariableCollection defines model for VariableCollection.
type VersionInfo ¶
type VersionInfo struct {
GitVersion *string `json:"git_version,omitempty"`
Version *string `json:"version,omitempty"`
}
VersionInfo defines model for VersionInfo.
type XComEntry ¶
type XComEntry struct {
DagId *string `json:"dag_id,omitempty"`
DagRunId *string `json:"dag_run_id,omitempty"`
Key *string `json:"key,omitempty"`
TaskId *string `json:"task_id,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
Value interface{} `json:"value,omitempty"`
}
XComEntry defines model for XComEntry.