openapi

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

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

Documentation

Overview

Package openapi embeds the public service contract.

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

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

Index

Constants

This section is empty.

Variables

View Source
var Document []byte

Functions

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewActivatePolicyRevisionRequest

func NewActivatePolicyRevisionRequest(server string, policyId string, params *ActivatePolicyRevisionParams, body ActivatePolicyRevisionJSONRequestBody) (*http.Request, error)

NewActivatePolicyRevisionRequest calls the generic ActivatePolicyRevision builder with application/json body

func NewActivatePolicyRevisionRequestWithBody

func NewActivatePolicyRevisionRequestWithBody(server string, policyId string, params *ActivatePolicyRevisionParams, contentType string, body io.Reader) (*http.Request, error)

NewActivatePolicyRevisionRequestWithBody constructs an http.Request for the ActivatePolicyRevision method, with any body, and a specified content type

func NewArchivePolicyRequest

func NewArchivePolicyRequest(server string, policyId string, params *ArchivePolicyParams) (*http.Request, error)

NewArchivePolicyRequest constructs an http.Request for the ArchivePolicy method

func NewBootstrapAdministratorRequest

func NewBootstrapAdministratorRequest(server string, params *BootstrapAdministratorParams, body BootstrapAdministratorJSONRequestBody) (*http.Request, error)

NewBootstrapAdministratorRequest calls the generic BootstrapAdministrator builder with application/json body

func NewBootstrapAdministratorRequestWithBody

func NewBootstrapAdministratorRequestWithBody(server string, params *BootstrapAdministratorParams, contentType string, body io.Reader) (*http.Request, error)

NewBootstrapAdministratorRequestWithBody constructs an http.Request for the BootstrapAdministrator method, with any body, and a specified content type

func NewChangeAdministratorPasswordRequest

func NewChangeAdministratorPasswordRequest(server string, params *ChangeAdministratorPasswordParams, body ChangeAdministratorPasswordJSONRequestBody) (*http.Request, error)

NewChangeAdministratorPasswordRequest calls the generic ChangeAdministratorPassword builder with application/json body

func NewChangeAdministratorPasswordRequestWithBody

func NewChangeAdministratorPasswordRequestWithBody(server string, params *ChangeAdministratorPasswordParams, contentType string, body io.Reader) (*http.Request, error)

NewChangeAdministratorPasswordRequestWithBody constructs an http.Request for the ChangeAdministratorPassword method, with any body, and a specified content type

func NewCreatePolicyRequest

func NewCreatePolicyRequest(server string, key string, params *CreatePolicyParams, body CreatePolicyJSONRequestBody) (*http.Request, error)

NewCreatePolicyRequest calls the generic CreatePolicy builder with application/json body

func NewCreatePolicyRequestWithBody

func NewCreatePolicyRequestWithBody(server string, key string, params *CreatePolicyParams, contentType string, body io.Reader) (*http.Request, error)

NewCreatePolicyRequestWithBody constructs an http.Request for the CreatePolicy method, with any body, and a specified content type

func NewCreatePolicyRunRequest

func NewCreatePolicyRunRequest(server string, params *CreatePolicyRunParams, body CreatePolicyRunJSONRequestBody) (*http.Request, error)

NewCreatePolicyRunRequest calls the generic CreatePolicyRun builder with application/json body

func NewCreatePolicyRunRequestWithBody

func NewCreatePolicyRunRequestWithBody(server string, params *CreatePolicyRunParams, contentType string, body io.Reader) (*http.Request, error)

NewCreatePolicyRunRequestWithBody constructs an http.Request for the CreatePolicyRun method, with any body, and a specified content type

func NewCreateProjectAPIKeyRequest

func NewCreateProjectAPIKeyRequest(server string, params *CreateProjectAPIKeyParams, body CreateProjectAPIKeyJSONRequestBody) (*http.Request, error)

NewCreateProjectAPIKeyRequest calls the generic CreateProjectAPIKey builder with application/json body

func NewCreateProjectAPIKeyRequestWithBody

func NewCreateProjectAPIKeyRequestWithBody(server string, params *CreateProjectAPIKeyParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectAPIKeyRequestWithBody constructs an http.Request for the CreateProjectAPIKey method, with any body, and a specified content type

func NewDeleteBindingRequest

func NewDeleteBindingRequest(server string, key string, kind string, resourceId string, params *DeleteBindingParams) (*http.Request, error)

NewDeleteBindingRequest constructs an http.Request for the DeleteBinding method

func NewGetBootstrapStatusRequest

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

NewGetBootstrapStatusRequest constructs an http.Request for the GetBootstrapStatus method

func NewGetCapabilitiesRequest

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

NewGetCapabilitiesRequest constructs an http.Request for the GetCapabilities method

func NewGetCurrentAdministratorRequest

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

NewGetCurrentAdministratorRequest constructs an http.Request for the GetCurrentAdministrator method

func NewGetLivenessRequest

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

NewGetLivenessRequest constructs an http.Request for the GetLiveness method

func NewGetMachineIdentityRequest

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

NewGetMachineIdentityRequest constructs an http.Request for the GetMachineIdentity method

func NewGetManagedPolicyRunRequest

func NewGetManagedPolicyRunRequest(server string, runId string) (*http.Request, error)

NewGetManagedPolicyRunRequest constructs an http.Request for the GetManagedPolicyRun method

func NewGetManagedRunSubmissionRequest

func NewGetManagedRunSubmissionRequest(server string, runId string, submissionId string) (*http.Request, error)

NewGetManagedRunSubmissionRequest constructs an http.Request for the GetManagedRunSubmission method

func NewGetOpenAPIRequest

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

NewGetOpenAPIRequest constructs an http.Request for the GetOpenAPI method

func NewGetPolicyDraftRequest

func NewGetPolicyDraftRequest(server string, policyId string) (*http.Request, error)

NewGetPolicyDraftRequest constructs an http.Request for the GetPolicyDraft method

func NewGetPolicyRequest

func NewGetPolicyRequest(server string, policyId string) (*http.Request, error)

NewGetPolicyRequest constructs an http.Request for the GetPolicy method

func NewGetPolicyRevisionRequest

func NewGetPolicyRevisionRequest(server string, revisionId string) (*http.Request, error)

NewGetPolicyRevisionRequest constructs an http.Request for the GetPolicyRevision method

func NewGetPolicyRunRequest

func NewGetPolicyRunRequest(server string, runId string) (*http.Request, error)

NewGetPolicyRunRequest constructs an http.Request for the GetPolicyRun method

func NewGetReadinessRequest

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

NewGetReadinessRequest constructs an http.Request for the GetReadiness method

func NewGetRunPolicyRevisionRequest

func NewGetRunPolicyRevisionRequest(server string, runId string) (*http.Request, error)

NewGetRunPolicyRevisionRequest constructs an http.Request for the GetRunPolicyRevision method

func NewGetRunSubmissionRequest

func NewGetRunSubmissionRequest(server string, runId string, submissionId string) (*http.Request, error)

NewGetRunSubmissionRequest constructs an http.Request for the GetRunSubmission method

func NewGetSceneModelRequest

func NewGetSceneModelRequest(server string, key string) (*http.Request, error)

NewGetSceneModelRequest constructs an http.Request for the GetSceneModel method

func NewGetVersionRequest

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

NewGetVersionRequest constructs an http.Request for the GetVersion method

func NewInitializeSceneRequest

func NewInitializeSceneRequest(server string, key string, params *InitializeSceneParams, body InitializeSceneJSONRequestBody) (*http.Request, error)

NewInitializeSceneRequest calls the generic InitializeScene builder with application/json body

func NewInitializeSceneRequestWithBody

func NewInitializeSceneRequestWithBody(server string, key string, params *InitializeSceneParams, contentType string, body io.Reader) (*http.Request, error)

NewInitializeSceneRequestWithBody constructs an http.Request for the InitializeScene method, with any body, and a specified content type

func NewListBindingsRequest

func NewListBindingsRequest(server string, key string, params *ListBindingsParams) (*http.Request, error)

NewListBindingsRequest constructs an http.Request for the ListBindings method

func NewListManagedPolicyRunsRequest

func NewListManagedPolicyRunsRequest(server string, params *ListManagedPolicyRunsParams) (*http.Request, error)

NewListManagedPolicyRunsRequest constructs an http.Request for the ListManagedPolicyRuns method

func NewListManagedRunSubmissionsRequest

func NewListManagedRunSubmissionsRequest(server string, runId string, params *ListManagedRunSubmissionsParams) (*http.Request, error)

NewListManagedRunSubmissionsRequest constructs an http.Request for the ListManagedRunSubmissions method

func NewListPoliciesRequest

func NewListPoliciesRequest(server string, key string) (*http.Request, error)

NewListPoliciesRequest constructs an http.Request for the ListPolicies method

func NewListPolicyRevisionsRequest

func NewListPolicyRevisionsRequest(server string, policyId string, params *ListPolicyRevisionsParams) (*http.Request, error)

NewListPolicyRevisionsRequest constructs an http.Request for the ListPolicyRevisions method

func NewListPolicyRunsRequest

func NewListPolicyRunsRequest(server string, params *ListPolicyRunsParams) (*http.Request, error)

NewListPolicyRunsRequest constructs an http.Request for the ListPolicyRuns method

func NewListProjectAPIKeysRequest

func NewListProjectAPIKeysRequest(server string, params *ListProjectAPIKeysParams) (*http.Request, error)

NewListProjectAPIKeysRequest constructs an http.Request for the ListProjectAPIKeys method

func NewListSceneModelsRequest

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

NewListSceneModelsRequest constructs an http.Request for the ListSceneModels method

func NewLoginAdministratorRequest

func NewLoginAdministratorRequest(server string, params *LoginAdministratorParams, body LoginAdministratorJSONRequestBody) (*http.Request, error)

NewLoginAdministratorRequest calls the generic LoginAdministrator builder with application/json body

func NewLoginAdministratorRequestWithBody

func NewLoginAdministratorRequestWithBody(server string, params *LoginAdministratorParams, contentType string, body io.Reader) (*http.Request, error)

NewLoginAdministratorRequestWithBody constructs an http.Request for the LoginAdministrator method, with any body, and a specified content type

func NewLogoutAdministratorRequest

func NewLogoutAdministratorRequest(server string, params *LogoutAdministratorParams) (*http.Request, error)

NewLogoutAdministratorRequest constructs an http.Request for the LogoutAdministrator method

func NewPublishPolicyDraftRequest

func NewPublishPolicyDraftRequest(server string, policyId string, params *PublishPolicyDraftParams, body PublishPolicyDraftJSONRequestBody) (*http.Request, error)

NewPublishPolicyDraftRequest calls the generic PublishPolicyDraft builder with application/json body

func NewPublishPolicyDraftRequestWithBody

func NewPublishPolicyDraftRequestWithBody(server string, policyId string, params *PublishPolicyDraftParams, contentType string, body io.Reader) (*http.Request, error)

NewPublishPolicyDraftRequestWithBody constructs an http.Request for the PublishPolicyDraft method, with any body, and a specified content type

func NewPublishPolicyRevisionRequest

func NewPublishPolicyRevisionRequest(server string, policyId string, params *PublishPolicyRevisionParams, body PublishPolicyRevisionJSONRequestBody) (*http.Request, error)

NewPublishPolicyRevisionRequest calls the generic PublishPolicyRevision builder with application/json body

func NewPublishPolicyRevisionRequestWithBody

func NewPublishPolicyRevisionRequestWithBody(server string, policyId string, params *PublishPolicyRevisionParams, contentType string, body io.Reader) (*http.Request, error)

NewPublishPolicyRevisionRequestWithBody constructs an http.Request for the PublishPolicyRevision method, with any body, and a specified content type

func NewPutBindingRequest

func NewPutBindingRequest(server string, key string, kind string, resourceId string, params *PutBindingParams, body PutBindingJSONRequestBody) (*http.Request, error)

NewPutBindingRequest calls the generic PutBinding builder with application/json body

func NewPutBindingRequestWithBody

func NewPutBindingRequestWithBody(server string, key string, kind string, resourceId string, params *PutBindingParams, contentType string, body io.Reader) (*http.Request, error)

NewPutBindingRequestWithBody constructs an http.Request for the PutBinding method, with any body, and a specified content type

func NewRevokeProjectAPIKeyRequest

func NewRevokeProjectAPIKeyRequest(server string, keyId APIKeyID, params *RevokeProjectAPIKeyParams) (*http.Request, error)

NewRevokeProjectAPIKeyRequest constructs an http.Request for the RevokeProjectAPIKey method

func NewRotatePolicySubmissionCredentialRequest

func NewRotatePolicySubmissionCredentialRequest(server string, runId string) (*http.Request, error)

NewRotatePolicySubmissionCredentialRequest constructs an http.Request for the RotatePolicySubmissionCredential method

func NewRotateProjectAPIKeyRequest

func NewRotateProjectAPIKeyRequest(server string, keyId APIKeyID, params *RotateProjectAPIKeyParams, body RotateProjectAPIKeyJSONRequestBody) (*http.Request, error)

NewRotateProjectAPIKeyRequest calls the generic RotateProjectAPIKey builder with application/json body

func NewRotateProjectAPIKeyRequestWithBody

func NewRotateProjectAPIKeyRequestWithBody(server string, keyId APIKeyID, params *RotateProjectAPIKeyParams, contentType string, body io.Reader) (*http.Request, error)

NewRotateProjectAPIKeyRequestWithBody constructs an http.Request for the RotateProjectAPIKey method, with any body, and a specified content type

func NewSavePolicyDraftRequest

func NewSavePolicyDraftRequest(server string, policyId string, params *SavePolicyDraftParams, body SavePolicyDraftJSONRequestBody) (*http.Request, error)

NewSavePolicyDraftRequest calls the generic SavePolicyDraft builder with application/json body

func NewSavePolicyDraftRequestWithBody

func NewSavePolicyDraftRequestWithBody(server string, policyId string, params *SavePolicyDraftParams, contentType string, body io.Reader) (*http.Request, error)

NewSavePolicyDraftRequestWithBody constructs an http.Request for the SavePolicyDraft method, with any body, and a specified content type

func NewSetDefaultPolicyRequest

func NewSetDefaultPolicyRequest(server string, key string, params *SetDefaultPolicyParams, body SetDefaultPolicyJSONRequestBody) (*http.Request, error)

NewSetDefaultPolicyRequest calls the generic SetDefaultPolicy builder with application/json body

func NewSetDefaultPolicyRequestWithBody

func NewSetDefaultPolicyRequestWithBody(server string, key string, params *SetDefaultPolicyParams, contentType string, body io.Reader) (*http.Request, error)

NewSetDefaultPolicyRequestWithBody constructs an http.Request for the SetDefaultPolicy method, with any body, and a specified content type

func NewSetSceneTTLRequest

func NewSetSceneTTLRequest(server string, key string, params *SetSceneTTLParams, body SetSceneTTLJSONRequestBody) (*http.Request, error)

NewSetSceneTTLRequest calls the generic SetSceneTTL builder with application/json body

func NewSetSceneTTLRequestWithBody

func NewSetSceneTTLRequestWithBody(server string, key string, params *SetSceneTTLParams, contentType string, body io.Reader) (*http.Request, error)

NewSetSceneTTLRequestWithBody constructs an http.Request for the SetSceneTTL method, with any body, and a specified content type

func NewSubmitSnapshotRequest

func NewSubmitSnapshotRequest(server string, runId string, params *SubmitSnapshotParams, body SubmitSnapshotJSONRequestBody) (*http.Request, error)

NewSubmitSnapshotRequest calls the generic SubmitSnapshot builder with application/json body

func NewSubmitSnapshotRequestWithBody

func NewSubmitSnapshotRequestWithBody(server string, runId string, params *SubmitSnapshotParams, contentType string, body io.Reader) (*http.Request, error)

NewSubmitSnapshotRequestWithBody constructs an http.Request for the SubmitSnapshot method, with any body, and a specified content type

func NewUnarchivePolicyRequest

func NewUnarchivePolicyRequest(server string, policyId string, params *UnarchivePolicyParams) (*http.Request, error)

NewUnarchivePolicyRequest constructs an http.Request for the UnarchivePolicy method

Types

type APIKeyID

type APIKeyID = string

APIKeyID defines model for APIKeyID.

type APIKeyMetadata

type APIKeyMetadata struct {
	CreatedAt int64              `json:"createdAt"`
	ExpiresAt int64              `json:"expiresAt"`
	Id        string             `json:"id"`
	RevokedAt *int64             `json:"revokedAt,omitempty"`
	Role      APIKeyMetadataRole `json:"role"`
	Scopes    []MachineScope     `json:"scopes"`
	Version   int64              `json:"version"`
}

APIKeyMetadata defines model for APIKeyMetadata.

type APIKeyMetadataRole

type APIKeyMetadataRole string

APIKeyMetadataRole defines model for APIKeyMetadata.Role.

const (
	POLICYPUBLISHER APIKeyMetadataRole = "POLICY_PUBLISHER"
	RUNORCHESTRATOR APIKeyMetadataRole = "RUN_ORCHESTRATOR"
)

Defines values for APIKeyMetadataRole.

func (APIKeyMetadataRole) Valid

func (e APIKeyMetadataRole) Valid() bool

Valid indicates whether the value is a known member of the APIKeyMetadataRole enum.

type APIKeyPage

type APIKeyPage struct {
	Items     []APIKeyMetadata `json:"items"`
	NextAfter *string          `json:"nextAfter,omitempty"`
}

APIKeyPage defines model for APIKeyPage.

type APIKeyResult

type APIKeyResult struct {
	// ApiKey One-time machine secret; never log this response
	ApiKey    string `json:"apiKey"`
	CreatedAt int64  `json:"createdAt"`
	ExpiresAt int64  `json:"expiresAt"`

	// Id Stable non-secret identifier used for rotation and revocation
	Id   string           `json:"id"`
	Role APIKeyResultRole `json:"role"`

	// Scopes Complete effective permissions persisted with the new machine key.
	Scopes  []MachineScope `json:"scopes"`
	Version int64          `json:"version"`
}

APIKeyResult defines model for APIKeyResult.

type APIKeyResultRole

type APIKeyResultRole string

APIKeyResultRole defines model for APIKeyResult.Role.

const (
	APIKeyResultRolePolicyPublisher APIKeyResultRole = "POLICY_PUBLISHER"
	APIKeyResultRoleRunOrchestrator APIKeyResultRole = "RUN_ORCHESTRATOR"
)

Defines values for APIKeyResultRole.

func (APIKeyResultRole) Valid

func (e APIKeyResultRole) Valid() bool

Valid indicates whether the value is a known member of the APIKeyResultRole enum.

type ActivatePolicyRevisionJSONRequestBody

type ActivatePolicyRevisionJSONRequestBody = ActivatePolicyRevisionRequest

ActivatePolicyRevisionJSONRequestBody defines body for ActivatePolicyRevision for application/json ContentType.

type ActivatePolicyRevisionParams

type ActivatePolicyRevisionParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF ActivatePolicyRevisionParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

ActivatePolicyRevisionParams defines parameters for ActivatePolicyRevision.

type ActivatePolicyRevisionParamsXGuardrailCSRF

type ActivatePolicyRevisionParamsXGuardrailCSRF string

ActivatePolicyRevisionParamsXGuardrailCSRF defines parameters for ActivatePolicyRevision.

const (
	ActivatePolicyRevisionParamsXGuardrailCSRFN1 ActivatePolicyRevisionParamsXGuardrailCSRF = "1"
)

Defines values for ActivatePolicyRevisionParamsXGuardrailCSRF.

func (ActivatePolicyRevisionParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the ActivatePolicyRevisionParamsXGuardrailCSRF enum.

type ActivatePolicyRevisionRequest

type ActivatePolicyRevisionRequest struct {
	ExpectedActiveRevisionId *string `json:"expectedActiveRevisionId"`
	PolicyRevisionId         string  `json:"policyRevisionId"`
}

ActivatePolicyRevisionRequest defines model for ActivatePolicyRevisionRequest.

type ActivatePolicyRevisionResponse

type ActivatePolicyRevisionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Policy
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ActivatePolicyRevisionResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ActivatePolicyRevisionResponseDefaultHeaders
}

func ParseActivatePolicyRevisionResponse

func ParseActivatePolicyRevisionResponse(rsp *http.Response) (*ActivatePolicyRevisionResponse, error)

ParseActivatePolicyRevisionResponse parses an HTTP response from a ActivatePolicyRevisionWithResponse call

func (ActivatePolicyRevisionResponse) ContentType

func (r ActivatePolicyRevisionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ActivatePolicyRevisionResponse) GetBody

func (r ActivatePolicyRevisionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ActivatePolicyRevisionResponse) GetJSON200

func (r ActivatePolicyRevisionResponse) GetJSON200() *Policy

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ActivatePolicyRevisionResponse) GetJSONDefault

func (r ActivatePolicyRevisionResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ActivatePolicyRevisionResponse) Status

Status returns HTTPResponse.Status

func (ActivatePolicyRevisionResponse) StatusCode

func (r ActivatePolicyRevisionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ActivatePolicyRevisionResponse200Headers

type ActivatePolicyRevisionResponse200Headers struct {
	XTraceID string
}

ActivatePolicyRevisionResponse200Headers the declared response headers of an HTTP 200 response for ActivatePolicyRevision

type ActivatePolicyRevisionResponseDefaultHeaders

type ActivatePolicyRevisionResponseDefaultHeaders struct {
	XTraceID string
}

ActivatePolicyRevisionResponseDefaultHeaders the declared response headers of an HTTP default response for ActivatePolicyRevision

type ArchivePolicyParams

type ArchivePolicyParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF ArchivePolicyParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

ArchivePolicyParams defines parameters for ArchivePolicy.

type ArchivePolicyParamsXGuardrailCSRF

type ArchivePolicyParamsXGuardrailCSRF string

ArchivePolicyParamsXGuardrailCSRF defines parameters for ArchivePolicy.

const (
	ArchivePolicyParamsXGuardrailCSRFN1 ArchivePolicyParamsXGuardrailCSRF = "1"
)

Defines values for ArchivePolicyParamsXGuardrailCSRF.

func (ArchivePolicyParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the ArchivePolicyParamsXGuardrailCSRF enum.

type ArchivePolicyResponse

type ArchivePolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Policy
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ArchivePolicyResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ArchivePolicyResponseDefaultHeaders
}

func ParseArchivePolicyResponse

func ParseArchivePolicyResponse(rsp *http.Response) (*ArchivePolicyResponse, error)

ParseArchivePolicyResponse parses an HTTP response from a ArchivePolicyWithResponse call

func (ArchivePolicyResponse) ContentType

func (r ArchivePolicyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ArchivePolicyResponse) GetBody

func (r ArchivePolicyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ArchivePolicyResponse) GetJSON200

func (r ArchivePolicyResponse) GetJSON200() *Policy

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ArchivePolicyResponse) GetJSONDefault

func (r ArchivePolicyResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ArchivePolicyResponse) Status

func (r ArchivePolicyResponse) Status() string

Status returns HTTPResponse.Status

func (ArchivePolicyResponse) StatusCode

func (r ArchivePolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ArchivePolicyResponse200Headers

type ArchivePolicyResponse200Headers struct {
	XTraceID string
}

ArchivePolicyResponse200Headers the declared response headers of an HTTP 200 response for ArchivePolicy

type ArchivePolicyResponseDefaultHeaders

type ArchivePolicyResponseDefaultHeaders struct {
	XTraceID string
}

ArchivePolicyResponseDefaultHeaders the declared response headers of an HTTP default response for ArchivePolicy

type BindingPage

type BindingPage struct {
	Items     []PolicyBinding `json:"items"`
	NextAfter *string         `json:"nextAfter,omitempty"`
}

BindingPage defines model for BindingPage.

type BootstrapAdministratorJSONRequestBody

type BootstrapAdministratorJSONRequestBody = BootstrapRequest

BootstrapAdministratorJSONRequestBody defines body for BootstrapAdministrator for application/json ContentType.

type BootstrapAdministratorParams

type BootstrapAdministratorParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF BootstrapAdministratorParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

BootstrapAdministratorParams defines parameters for BootstrapAdministrator.

type BootstrapAdministratorParamsXGuardrailCSRF

type BootstrapAdministratorParamsXGuardrailCSRF string

BootstrapAdministratorParamsXGuardrailCSRF defines parameters for BootstrapAdministrator.

const (
	BootstrapAdministratorParamsXGuardrailCSRFN1 BootstrapAdministratorParamsXGuardrailCSRF = "1"
)

Defines values for BootstrapAdministratorParamsXGuardrailCSRF.

func (BootstrapAdministratorParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the BootstrapAdministratorParamsXGuardrailCSRF enum.

type BootstrapAdministratorResponse

type BootstrapAdministratorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *BootstrapResult
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *BootstrapAdministratorResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *BootstrapAdministratorResponseDefaultHeaders
}

func ParseBootstrapAdministratorResponse

func ParseBootstrapAdministratorResponse(rsp *http.Response) (*BootstrapAdministratorResponse, error)

ParseBootstrapAdministratorResponse parses an HTTP response from a BootstrapAdministratorWithResponse call

func (BootstrapAdministratorResponse) ContentType

func (r BootstrapAdministratorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BootstrapAdministratorResponse) GetBody

func (r BootstrapAdministratorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (BootstrapAdministratorResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (BootstrapAdministratorResponse) GetJSONDefault

func (r BootstrapAdministratorResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (BootstrapAdministratorResponse) Status

Status returns HTTPResponse.Status

func (BootstrapAdministratorResponse) StatusCode

func (r BootstrapAdministratorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BootstrapAdministratorResponse201Headers

type BootstrapAdministratorResponse201Headers struct {
	XTraceID string
}

BootstrapAdministratorResponse201Headers the declared response headers of an HTTP 201 response for BootstrapAdministrator

type BootstrapAdministratorResponseDefaultHeaders

type BootstrapAdministratorResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

BootstrapAdministratorResponseDefaultHeaders the declared response headers of an HTTP default response for BootstrapAdministrator

type BootstrapRequest

type BootstrapRequest struct {
	// Password at least 6 characters and at most 128 UTF-8 bytes
	Password *string `json:"password,omitempty"`

	// SignIn Atomically create a browser session; token is sent only as an HttpOnly cookie
	SignIn   *bool  `json:"signIn,omitempty"`
	Username string `json:"username"`
}

BootstrapRequest defines model for BootstrapRequest.

type BootstrapResult

type BootstrapResult struct {
	User User `json:"user"`
}

BootstrapResult defines model for BootstrapResult.

type BootstrapStatus

type BootstrapStatus struct {
	Initialized bool `json:"initialized"`

	// RequiresToken Server-derived transport requirement; never includes a token
	RequiresToken bool `json:"requiresToken"`
}

BootstrapStatus defines model for BootstrapStatus.

type CLICompatibility

type CLICompatibility struct {
	// MaximumVersionExclusive First incompatible CLI version
	MaximumVersionExclusive string `json:"maximumVersionExclusive"`

	// MinimumVersion Oldest compatible CLI version
	MinimumVersion string `json:"minimumVersion"`
}

CLICompatibility CLI protocol compatibility window; independent of the running server build version

type CSRF

type CSRF string

CSRF defines model for CSRF.

const (
	CSRFN1 CSRF = "1"
)

Defines values for CSRF.

func (CSRF) Valid

func (e CSRF) Valid() bool

Valid indicates whether the value is a known member of the CSRF enum.

type Capabilities

type Capabilities struct {
	ApiVersions []string `json:"apiVersions"`

	// Cli CLI protocol compatibility window; independent of the running server build version
	Cli CLICompatibility `json:"cli"`

	// Features Enabled HTTP features. run-final-submission-decision covers one immutable final Submission and fixed PASS/ALLOW, BLOCKED/DENY or UNKNOWN/DENY evaluation. run-expiry-decision-validity covers frozen deadlines, lazy expiration and Decision expiry timestamps. run-scoped-submission-token covers one-time Run credentials and Project-key-authorized rotation. No feature implies Claims.
	Features []string `json:"features"`

	// Storage Non-sensitive operating envelope of the active storage adapter
	Storage StorageCapability `json:"storage"`
}

Capabilities defines model for Capabilities.

type ChangeAdministratorPasswordJSONRequestBody

type ChangeAdministratorPasswordJSONRequestBody = PasswordRequest

ChangeAdministratorPasswordJSONRequestBody defines body for ChangeAdministratorPassword for application/json ContentType.

type ChangeAdministratorPasswordParams

type ChangeAdministratorPasswordParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF ChangeAdministratorPasswordParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

ChangeAdministratorPasswordParams defines parameters for ChangeAdministratorPassword.

type ChangeAdministratorPasswordParamsXGuardrailCSRF

type ChangeAdministratorPasswordParamsXGuardrailCSRF string

ChangeAdministratorPasswordParamsXGuardrailCSRF defines parameters for ChangeAdministratorPassword.

const (
	ChangeAdministratorPasswordParamsXGuardrailCSRFN1 ChangeAdministratorPasswordParamsXGuardrailCSRF = "1"
)

Defines values for ChangeAdministratorPasswordParamsXGuardrailCSRF.

func (ChangeAdministratorPasswordParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the ChangeAdministratorPasswordParamsXGuardrailCSRF enum.

type ChangeAdministratorPasswordResponse

type ChangeAdministratorPasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *ChangeAdministratorPasswordResponse204Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ChangeAdministratorPasswordResponseDefaultHeaders
}

func ParseChangeAdministratorPasswordResponse

func ParseChangeAdministratorPasswordResponse(rsp *http.Response) (*ChangeAdministratorPasswordResponse, error)

ParseChangeAdministratorPasswordResponse parses an HTTP response from a ChangeAdministratorPasswordWithResponse call

func (ChangeAdministratorPasswordResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangeAdministratorPasswordResponse) GetBody

GetBody returns the raw response body bytes

func (ChangeAdministratorPasswordResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ChangeAdministratorPasswordResponse) Status

Status returns HTTPResponse.Status

func (ChangeAdministratorPasswordResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ChangeAdministratorPasswordResponse204Headers

type ChangeAdministratorPasswordResponse204Headers struct {
	XTraceID string
}

ChangeAdministratorPasswordResponse204Headers the declared response headers of an HTTP 204 response for ChangeAdministratorPassword

type ChangeAdministratorPasswordResponseDefaultHeaders

type ChangeAdministratorPasswordResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

ChangeAdministratorPasswordResponseDefaultHeaders the declared response headers of an HTTP default response for ChangeAdministratorPassword

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

func (c *Client) ActivatePolicyRevision(ctx context.Context, policyId string, params *ActivatePolicyRevisionParams, body ActivatePolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ActivatePolicyRevision performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ActivatePolicyRevisionWithBody

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

ActivatePolicyRevisionWithBody performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request, with any type of body and a specified content type.

func (*Client) ArchivePolicy

func (c *Client) ArchivePolicy(ctx context.Context, policyId string, params *ArchivePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ArchivePolicy performs a POST /api/v1alpha1/policies/{policyId}:archive (the `ArchivePolicy` operationId) request.

func (*Client) BootstrapAdministrator

func (c *Client) BootstrapAdministrator(ctx context.Context, params *BootstrapAdministratorParams, body BootstrapAdministratorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

BootstrapAdministrator performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request. Takes a body of the `application/json` content type.

One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.

func (*Client) BootstrapAdministratorWithBody

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

BootstrapAdministratorWithBody performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request, with any type of body and a specified content type.

One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.

func (*Client) ChangeAdministratorPassword

func (c *Client) ChangeAdministratorPassword(ctx context.Context, params *ChangeAdministratorPasswordParams, body ChangeAdministratorPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ChangeAdministratorPassword performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ChangeAdministratorPasswordWithBody

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

ChangeAdministratorPasswordWithBody performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request, with any type of body and a specified content type.

func (*Client) CreatePolicy

func (c *Client) CreatePolicy(ctx context.Context, key string, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreatePolicy performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request. Takes a body of the `application/json` content type.

A Project key requires policies:create, granted by the POLICY_PUBLISHER role.

func (*Client) CreatePolicyRun

func (c *Client) CreatePolicyRun(ctx context.Context, params *CreatePolicyRunParams, body CreatePolicyRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreatePolicyRun performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request. Takes a body of the `application/json` content type.

Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.

func (*Client) CreatePolicyRunWithBody

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

CreatePolicyRunWithBody performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request, with any type of body and a specified content type.

Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.

func (*Client) CreatePolicyWithBody

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

CreatePolicyWithBody performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request, with any type of body and a specified content type.

A Project key requires policies:create, granted by the POLICY_PUBLISHER role.

func (*Client) CreateProjectAPIKey

func (c *Client) CreateProjectAPIKey(ctx context.Context, params *CreateProjectAPIKeyParams, body CreateProjectAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateProjectAPIKey performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request. Takes a body of the `application/json` content type.

Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.

func (*Client) CreateProjectAPIKeyWithBody

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

CreateProjectAPIKeyWithBody performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request, with any type of body and a specified content type.

Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.

func (*Client) DeleteBinding

func (c *Client) DeleteBinding(ctx context.Context, key string, kind string, resourceId string, params *DeleteBindingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteBinding performs a DELETE /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `DeleteBinding` operationId) request.

func (*Client) GetBootstrapStatus

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

GetBootstrapStatus performs a GET /api/v1alpha1/bootstrap (the `GetBootstrapStatus` operationId) request.

func (*Client) GetCapabilities

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

GetCapabilities performs a GET /api/v1alpha1/meta/capabilities (the `GetCapabilities` operationId) request.

func (*Client) GetCurrentAdministrator

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

GetCurrentAdministrator performs a GET /api/v1alpha1/auth/me (the `GetCurrentAdministrator` operationId) request.

func (*Client) GetLiveness

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

GetLiveness performs a GET /livez (the `GetLiveness` operationId) request.

func (*Client) GetMachineIdentity

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

GetMachineIdentity performs a GET /runtime/v1alpha1/identity (the `GetMachineIdentity` operationId) request.

func (*Client) GetManagedPolicyRun

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

GetManagedPolicyRun performs a GET /api/v1alpha1/runs/{runId} (the `GetManagedPolicyRun` operationId) request.

func (*Client) GetManagedRunSubmission

func (c *Client) GetManagedRunSubmission(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetManagedRunSubmission performs a GET /api/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetManagedRunSubmission` operationId) request.

Read a stored Submission and its evidence within the administrator's workspace, project and selected Run.

func (*Client) GetOpenAPI

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

GetOpenAPI performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.

func (*Client) GetPolicy

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

GetPolicy performs a GET /api/v1alpha1/policies/{policyId} (the `GetPolicy` operationId) request.

func (*Client) GetPolicyDraft

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

GetPolicyDraft performs a GET /api/v1alpha1/policies/{policyId}/draft (the `GetPolicyDraft` operationId) request.

Return the current DRAFT Revision, or NOT_FOUND when no draft exists.

func (*Client) GetPolicyRevision

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

GetPolicyRevision performs a GET /api/v1alpha1/policy-revisions/{revisionId} (the `GetPolicyRevision` operationId) request.

func (*Client) GetPolicyRun

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

GetPolicyRun performs a GET /runtime/v1alpha1/runs/{runId} (the `GetPolicyRun` operationId) request.

Requires runs:read.

func (*Client) GetReadiness

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

GetReadiness performs a GET /readyz (the `GetReadiness` operationId) request.

func (*Client) GetRunPolicyRevision

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

GetRunPolicyRevision performs a GET /runtime/v1alpha1/runs/{runId}/policy-revision (the `GetRunPolicyRevision` operationId) request.

Requires runs:read.

func (*Client) GetRunSubmission

func (c *Client) GetRunSubmission(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRunSubmission performs a GET /runtime/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetRunSubmission` operationId) request.

Requires runs:read.

func (*Client) GetSceneModel

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

GetSceneModel performs a GET /api/v1alpha1/scenes/{key} (the `GetSceneModel` operationId) request.

func (*Client) GetVersion

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

GetVersion performs a GET /api/v1alpha1/meta/version (the `GetVersion` operationId) request.

func (*Client) InitializeScene

func (c *Client) InitializeScene(ctx context.Context, key string, params *InitializeSceneParams, body InitializeSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

InitializeScene performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request. Takes a body of the `application/json` content type.

Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.

func (*Client) InitializeSceneWithBody

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

InitializeSceneWithBody performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request, with any type of body and a specified content type.

Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.

func (*Client) ListBindings

func (c *Client) ListBindings(ctx context.Context, key string, params *ListBindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListBindings performs a GET /api/v1alpha1/scenes/{key}/bindings (the `ListBindings` operationId) request.

func (*Client) ListManagedPolicyRuns

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

ListManagedPolicyRuns performs a GET /api/v1alpha1/runs (the `ListManagedPolicyRuns` operationId) request.

func (*Client) ListManagedRunSubmissions

func (c *Client) ListManagedRunSubmissions(ctx context.Context, runId string, params *ListManagedRunSubmissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListManagedRunSubmissions performs a GET /api/v1alpha1/runs/{runId}/submissions (the `ListManagedRunSubmissions` operationId) request.

Administrator-only paginated submission metadata. Fetch evidence through the selected Submission reader.

func (*Client) ListPolicies

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

ListPolicies performs a GET /api/v1alpha1/scenes/{key}/policies (the `ListPolicies` operationId) request.

func (*Client) ListPolicyRevisions

func (c *Client) ListPolicyRevisions(ctx context.Context, policyId string, params *ListPolicyRevisionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListPolicyRevisions performs a GET /api/v1alpha1/policies/{policyId}/revisions (the `ListPolicyRevisions` operationId) request.

Returns a bounded page of summaries without YAML. Fetch content by revision ID. before is the exclusive revision-number cursor; new publications do not shift older pages.

func (*Client) ListPolicyRuns

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

ListPolicyRuns performs a GET /runtime/v1alpha1/runs (the `ListPolicyRuns` operationId) request.

Requires runs:read.

func (*Client) ListProjectAPIKeys

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

ListProjectAPIKeys performs a GET /api/v1alpha1/auth/api-keys (the `ListProjectAPIKeys` operationId) request.

Lists secret-free key metadata in key-ID order, including expired and revoked keys.

func (*Client) ListSceneModels

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

ListSceneModels performs a GET /api/v1alpha1/scenes (the `ListSceneModels` operationId) request.

func (*Client) LoginAdministrator

func (c *Client) LoginAdministrator(ctx context.Context, params *LoginAdministratorParams, body LoginAdministratorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LoginAdministrator performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request. Takes a body of the `application/json` content type.

func (*Client) LoginAdministratorWithBody

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

LoginAdministratorWithBody performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request, with any type of body and a specified content type.

func (*Client) LogoutAdministrator

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

LogoutAdministrator performs a DELETE /api/v1alpha1/auth/session (the `LogoutAdministrator` operationId) request.

func (*Client) PublishPolicyDraft

func (c *Client) PublishPolicyDraft(ctx context.Context, policyId string, params *PublishPolicyDraftParams, body PublishPolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PublishPolicyDraft performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request. Takes a body of the `application/json` content type.

Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.

func (*Client) PublishPolicyDraftWithBody

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

PublishPolicyDraftWithBody performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request, with any type of body and a specified content type.

Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.

func (*Client) PublishPolicyRevision

func (c *Client) PublishPolicyRevision(ctx context.Context, policyId string, params *PublishPolicyRevisionParams, body PublishPolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PublishPolicyRevision performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request. Takes a body of the `application/json` content type.

A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.

func (*Client) PublishPolicyRevisionWithBody

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

PublishPolicyRevisionWithBody performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request, with any type of body and a specified content type.

A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.

func (*Client) PutBinding

func (c *Client) PutBinding(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, body PutBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PutBinding performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request. Takes a body of the `application/json` content type.

Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.

func (*Client) PutBindingWithBody

func (c *Client) PutBindingWithBody(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PutBindingWithBody performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request, with any type of body and a specified content type.

Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.

func (*Client) RevokeProjectAPIKey

func (c *Client) RevokeProjectAPIKey(ctx context.Context, keyId APIKeyID, params *RevokeProjectAPIKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeProjectAPIKey performs a DELETE /api/v1alpha1/auth/api-keys/{keyId} (the `RevokeProjectAPIKey` operationId) request.

Atomically revokes a key and records an audit event. Repeated revocation returns 204.

func (*Client) RotatePolicySubmissionCredential

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

RotatePolicySubmissionCredential performs a POST /runtime/v1alpha1/runs/{runId}/submission-credential:rotate (the `RotatePolicySubmissionCredential` operationId) request.

Requires submission-credential:rotate.

func (*Client) RotateProjectAPIKey

func (c *Client) RotateProjectAPIKey(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, body RotateProjectAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RotateProjectAPIKey performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request. Takes a body of the `application/json` content type.

Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.

func (*Client) RotateProjectAPIKeyWithBody

func (c *Client) RotateProjectAPIKeyWithBody(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

RotateProjectAPIKeyWithBody performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request, with any type of body and a specified content type.

Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.

func (*Client) SavePolicyDraft

func (c *Client) SavePolicyDraft(ctx context.Context, policyId string, params *SavePolicyDraftParams, body SavePolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SavePolicyDraft performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request. Takes a body of the `application/json` content type.

func (*Client) SavePolicyDraftWithBody

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

SavePolicyDraftWithBody performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request, with any type of body and a specified content type.

func (*Client) SetDefaultPolicy

func (c *Client) SetDefaultPolicy(ctx context.Context, key string, params *SetDefaultPolicyParams, body SetDefaultPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetDefaultPolicy performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request. Takes a body of the `application/json` content type.

func (*Client) SetDefaultPolicyWithBody

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

SetDefaultPolicyWithBody performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request, with any type of body and a specified content type.

func (*Client) SetSceneTTL

func (c *Client) SetSceneTTL(ctx context.Context, key string, params *SetSceneTTLParams, body SetSceneTTLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetSceneTTL performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request. Takes a body of the `application/json` content type.

func (*Client) SetSceneTTLWithBody

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

SetSceneTTLWithBody performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request, with any type of body and a specified content type.

func (*Client) SubmitSnapshot

func (c *Client) SubmitSnapshot(ctx context.Context, runId string, params *SubmitSnapshotParams, body SubmitSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SubmitSnapshot performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request. Takes a body of the `application/json` content type.

Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.

func (*Client) SubmitSnapshotWithBody

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

SubmitSnapshotWithBody performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request, with any type of body and a specified content type.

Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.

func (*Client) UnarchivePolicy

func (c *Client) UnarchivePolicy(ctx context.Context, policyId string, params *UnarchivePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

UnarchivePolicy performs a POST /api/v1alpha1/policies/{policyId}:unarchive (the `UnarchivePolicy` operationId) request.

type ClientInterface

type ClientInterface interface {

	// ListProjectAPIKeys performs a GET /api/v1alpha1/auth/api-keys (the `ListProjectAPIKeys` operationId) request.
	//
	// Lists secret-free key metadata in key-ID order, including expired and revoked keys.
	ListProjectAPIKeys(ctx context.Context, params *ListProjectAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectAPIKeyWithBody performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request,
	// with any type of body and a specified content type.
	//
	// Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.
	CreateProjectAPIKeyWithBody(ctx context.Context, params *CreateProjectAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectAPIKey performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.
	CreateProjectAPIKey(ctx context.Context, params *CreateProjectAPIKeyParams, body CreateProjectAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeProjectAPIKey performs a DELETE /api/v1alpha1/auth/api-keys/{keyId} (the `RevokeProjectAPIKey` operationId) request.
	//
	// Atomically revokes a key and records an audit event. Repeated revocation returns 204.
	RevokeProjectAPIKey(ctx context.Context, keyId APIKeyID, params *RevokeProjectAPIKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RotateProjectAPIKeyWithBody performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request,
	// with any type of body and a specified content type.
	//
	// Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.
	RotateProjectAPIKeyWithBody(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RotateProjectAPIKey performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.
	RotateProjectAPIKey(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, body RotateProjectAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCurrentAdministrator performs a GET /api/v1alpha1/auth/me (the `GetCurrentAdministrator` operationId) request.
	GetCurrentAdministrator(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeAdministratorPasswordWithBody performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request,
	// with any type of body and a specified content type.
	ChangeAdministratorPasswordWithBody(ctx context.Context, params *ChangeAdministratorPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeAdministratorPassword performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request.
	// Takes a body of the `application/json` content type.
	ChangeAdministratorPassword(ctx context.Context, params *ChangeAdministratorPasswordParams, body ChangeAdministratorPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LogoutAdministrator performs a DELETE /api/v1alpha1/auth/session (the `LogoutAdministrator` operationId) request.
	LogoutAdministrator(ctx context.Context, params *LogoutAdministratorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LoginAdministratorWithBody performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request,
	// with any type of body and a specified content type.
	LoginAdministratorWithBody(ctx context.Context, params *LoginAdministratorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LoginAdministrator performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request.
	// Takes a body of the `application/json` content type.
	LoginAdministrator(ctx context.Context, params *LoginAdministratorParams, body LoginAdministratorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBootstrapStatus performs a GET /api/v1alpha1/bootstrap (the `GetBootstrapStatus` operationId) request.
	GetBootstrapStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BootstrapAdministratorWithBody performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request,
	// with any type of body and a specified content type.
	//
	// One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.
	BootstrapAdministratorWithBody(ctx context.Context, params *BootstrapAdministratorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BootstrapAdministrator performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.
	BootstrapAdministrator(ctx context.Context, params *BootstrapAdministratorParams, body BootstrapAdministratorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCapabilities performs a GET /api/v1alpha1/meta/capabilities (the `GetCapabilities` operationId) request.
	GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVersion performs a GET /api/v1alpha1/meta/version (the `GetVersion` operationId) request.
	GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPolicy performs a GET /api/v1alpha1/policies/{policyId} (the `GetPolicy` operationId) request.
	GetPolicy(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActivatePolicyRevisionWithBody performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request,
	// with any type of body and a specified content type.
	ActivatePolicyRevisionWithBody(ctx context.Context, policyId string, params *ActivatePolicyRevisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ActivatePolicyRevision performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request.
	// Takes a body of the `application/json` content type.
	ActivatePolicyRevision(ctx context.Context, policyId string, params *ActivatePolicyRevisionParams, body ActivatePolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPolicyDraft performs a GET /api/v1alpha1/policies/{policyId}/draft (the `GetPolicyDraft` operationId) request.
	//
	// Return the current DRAFT Revision, or NOT_FOUND when no draft exists.
	GetPolicyDraft(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SavePolicyDraftWithBody performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request,
	// with any type of body and a specified content type.
	SavePolicyDraftWithBody(ctx context.Context, policyId string, params *SavePolicyDraftParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SavePolicyDraft performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request.
	// Takes a body of the `application/json` content type.
	SavePolicyDraft(ctx context.Context, policyId string, params *SavePolicyDraftParams, body SavePolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PublishPolicyDraftWithBody performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request,
	// with any type of body and a specified content type.
	//
	// Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.
	PublishPolicyDraftWithBody(ctx context.Context, policyId string, params *PublishPolicyDraftParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PublishPolicyDraft performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.
	PublishPolicyDraft(ctx context.Context, policyId string, params *PublishPolicyDraftParams, body PublishPolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPolicyRevisions performs a GET /api/v1alpha1/policies/{policyId}/revisions (the `ListPolicyRevisions` operationId) request.
	//
	// Returns a bounded page of summaries without YAML. Fetch content by revision ID. before is the exclusive revision-number cursor; new publications do not shift older pages.
	ListPolicyRevisions(ctx context.Context, policyId string, params *ListPolicyRevisionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PublishPolicyRevisionWithBody performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request,
	// with any type of body and a specified content type.
	//
	// A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.
	PublishPolicyRevisionWithBody(ctx context.Context, policyId string, params *PublishPolicyRevisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PublishPolicyRevision performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.
	PublishPolicyRevision(ctx context.Context, policyId string, params *PublishPolicyRevisionParams, body PublishPolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ArchivePolicy performs a POST /api/v1alpha1/policies/{policyId}:archive (the `ArchivePolicy` operationId) request.
	ArchivePolicy(ctx context.Context, policyId string, params *ArchivePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnarchivePolicy performs a POST /api/v1alpha1/policies/{policyId}:unarchive (the `UnarchivePolicy` operationId) request.
	UnarchivePolicy(ctx context.Context, policyId string, params *UnarchivePolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPolicyRevision performs a GET /api/v1alpha1/policy-revisions/{revisionId} (the `GetPolicyRevision` operationId) request.
	GetPolicyRevision(ctx context.Context, revisionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListManagedPolicyRuns performs a GET /api/v1alpha1/runs (the `ListManagedPolicyRuns` operationId) request.
	ListManagedPolicyRuns(ctx context.Context, params *ListManagedPolicyRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetManagedPolicyRun performs a GET /api/v1alpha1/runs/{runId} (the `GetManagedPolicyRun` operationId) request.
	GetManagedPolicyRun(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListManagedRunSubmissions performs a GET /api/v1alpha1/runs/{runId}/submissions (the `ListManagedRunSubmissions` operationId) request.
	//
	// Administrator-only paginated submission metadata. Fetch evidence through the selected Submission reader.
	ListManagedRunSubmissions(ctx context.Context, runId string, params *ListManagedRunSubmissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetManagedRunSubmission performs a GET /api/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetManagedRunSubmission` operationId) request.
	//
	// Read a stored Submission and its evidence within the administrator's workspace, project and selected Run.
	GetManagedRunSubmission(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSceneModels performs a GET /api/v1alpha1/scenes (the `ListSceneModels` operationId) request.
	ListSceneModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSceneModel performs a GET /api/v1alpha1/scenes/{key} (the `GetSceneModel` operationId) request.
	GetSceneModel(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetSceneTTLWithBody performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request,
	// with any type of body and a specified content type.
	SetSceneTTLWithBody(ctx context.Context, key string, params *SetSceneTTLParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetSceneTTL performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request.
	// Takes a body of the `application/json` content type.
	SetSceneTTL(ctx context.Context, key string, params *SetSceneTTLParams, body SetSceneTTLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListBindings performs a GET /api/v1alpha1/scenes/{key}/bindings (the `ListBindings` operationId) request.
	ListBindings(ctx context.Context, key string, params *ListBindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBinding performs a DELETE /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `DeleteBinding` operationId) request.
	DeleteBinding(ctx context.Context, key string, kind string, resourceId string, params *DeleteBindingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutBindingWithBody performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request,
	// with any type of body and a specified content type.
	//
	// Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.
	PutBindingWithBody(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutBinding performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.
	PutBinding(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, body PutBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetDefaultPolicyWithBody performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request,
	// with any type of body and a specified content type.
	SetDefaultPolicyWithBody(ctx context.Context, key string, params *SetDefaultPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetDefaultPolicy performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request.
	// Takes a body of the `application/json` content type.
	SetDefaultPolicy(ctx context.Context, key string, params *SetDefaultPolicyParams, body SetDefaultPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPolicies performs a GET /api/v1alpha1/scenes/{key}/policies (the `ListPolicies` operationId) request.
	ListPolicies(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePolicyWithBody performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request,
	// with any type of body and a specified content type.
	//
	// A Project key requires policies:create, granted by the POLICY_PUBLISHER role.
	CreatePolicyWithBody(ctx context.Context, key string, params *CreatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePolicy performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// A Project key requires policies:create, granted by the POLICY_PUBLISHER role.
	CreatePolicy(ctx context.Context, key string, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InitializeSceneWithBody performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request,
	// with any type of body and a specified content type.
	//
	// Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.
	InitializeSceneWithBody(ctx context.Context, key string, params *InitializeSceneParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InitializeScene performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.
	InitializeScene(ctx context.Context, key string, params *InitializeSceneParams, body InitializeSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLiveness performs a GET /livez (the `GetLiveness` operationId) request.
	GetLiveness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOpenAPI performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.
	GetOpenAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReadiness performs a GET /readyz (the `GetReadiness` operationId) request.
	GetReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMachineIdentity performs a GET /runtime/v1alpha1/identity (the `GetMachineIdentity` operationId) request.
	GetMachineIdentity(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPolicyRuns performs a GET /runtime/v1alpha1/runs (the `ListPolicyRuns` operationId) request.
	//
	// Requires runs:read.
	ListPolicyRuns(ctx context.Context, params *ListPolicyRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePolicyRunWithBody performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request,
	// with any type of body and a specified content type.
	//
	// Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.
	CreatePolicyRunWithBody(ctx context.Context, params *CreatePolicyRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePolicyRun performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.
	CreatePolicyRun(ctx context.Context, params *CreatePolicyRunParams, body CreatePolicyRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPolicyRun performs a GET /runtime/v1alpha1/runs/{runId} (the `GetPolicyRun` operationId) request.
	//
	// Requires runs:read.
	GetPolicyRun(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRunPolicyRevision performs a GET /runtime/v1alpha1/runs/{runId}/policy-revision (the `GetRunPolicyRevision` operationId) request.
	//
	// Requires runs:read.
	GetRunPolicyRevision(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RotatePolicySubmissionCredential performs a POST /runtime/v1alpha1/runs/{runId}/submission-credential:rotate (the `RotatePolicySubmissionCredential` operationId) request.
	//
	// Requires submission-credential:rotate.
	RotatePolicySubmissionCredential(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitSnapshotWithBody performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request,
	// with any type of body and a specified content type.
	//
	// Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.
	SubmitSnapshotWithBody(ctx context.Context, runId string, params *SubmitSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitSnapshot performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.
	SubmitSnapshot(ctx context.Context, runId string, params *SubmitSnapshotParams, body SubmitSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRunSubmission performs a GET /runtime/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetRunSubmission` operationId) request.
	//
	// Requires runs:read.
	GetRunSubmission(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) ActivatePolicyRevisionWithBodyWithResponse

func (c *ClientWithResponses) ActivatePolicyRevisionWithBodyWithResponse(ctx context.Context, policyId string, params *ActivatePolicyRevisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivatePolicyRevisionResponse, error)

ActivatePolicyRevisionWithBodyWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ActivatePolicyRevisionWithResponse

func (c *ClientWithResponses) ActivatePolicyRevisionWithResponse(ctx context.Context, policyId string, params *ActivatePolicyRevisionParams, body ActivatePolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivatePolicyRevisionResponse, error)

ActivatePolicyRevisionWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ArchivePolicyWithResponse

func (c *ClientWithResponses) ArchivePolicyWithResponse(ctx context.Context, policyId string, params *ArchivePolicyParams, reqEditors ...RequestEditorFn) (*ArchivePolicyResponse, error)

ArchivePolicyWithResponse performs a POST /api/v1alpha1/policies/{policyId}:archive (the `ArchivePolicy` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) BootstrapAdministratorWithBodyWithResponse

func (c *ClientWithResponses) BootstrapAdministratorWithBodyWithResponse(ctx context.Context, params *BootstrapAdministratorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BootstrapAdministratorResponse, error)

BootstrapAdministratorWithBodyWithResponse performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request, with any type of body and a specified content type.

One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) BootstrapAdministratorWithResponse

BootstrapAdministratorWithResponse performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.

func (*ClientWithResponses) ChangeAdministratorPasswordWithBodyWithResponse

func (c *ClientWithResponses) ChangeAdministratorPasswordWithBodyWithResponse(ctx context.Context, params *ChangeAdministratorPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeAdministratorPasswordResponse, error)

ChangeAdministratorPasswordWithBodyWithResponse performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChangeAdministratorPasswordWithResponse

ChangeAdministratorPasswordWithResponse performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreatePolicyRunWithBodyWithResponse

func (c *ClientWithResponses) CreatePolicyRunWithBodyWithResponse(ctx context.Context, params *CreatePolicyRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyRunResponse, error)

CreatePolicyRunWithBodyWithResponse performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request, with any type of body and a specified content type.

Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreatePolicyRunWithResponse

func (c *ClientWithResponses) CreatePolicyRunWithResponse(ctx context.Context, params *CreatePolicyRunParams, body CreatePolicyRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyRunResponse, error)

CreatePolicyRunWithResponse performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.

func (*ClientWithResponses) CreatePolicyWithBodyWithResponse

func (c *ClientWithResponses) CreatePolicyWithBodyWithResponse(ctx context.Context, key string, params *CreatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)

CreatePolicyWithBodyWithResponse performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request, with any type of body and a specified content type.

A Project key requires policies:create, granted by the POLICY_PUBLISHER role.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreatePolicyWithResponse

func (c *ClientWithResponses) CreatePolicyWithResponse(ctx context.Context, key string, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)

CreatePolicyWithResponse performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

A Project key requires policies:create, granted by the POLICY_PUBLISHER role.

func (*ClientWithResponses) CreateProjectAPIKeyWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectAPIKeyWithBodyWithResponse(ctx context.Context, params *CreateProjectAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAPIKeyResponse, error)

CreateProjectAPIKeyWithBodyWithResponse performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request, with any type of body and a specified content type.

Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateProjectAPIKeyWithResponse

CreateProjectAPIKeyWithResponse performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.

func (*ClientWithResponses) DeleteBindingWithResponse

func (c *ClientWithResponses) DeleteBindingWithResponse(ctx context.Context, key string, kind string, resourceId string, params *DeleteBindingParams, reqEditors ...RequestEditorFn) (*DeleteBindingResponse, error)

DeleteBindingWithResponse performs a DELETE /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `DeleteBinding` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetBootstrapStatusWithResponse

func (c *ClientWithResponses) GetBootstrapStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBootstrapStatusResponse, error)

GetBootstrapStatusWithResponse performs a GET /api/v1alpha1/bootstrap (the `GetBootstrapStatus` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetCapabilitiesWithResponse

func (c *ClientWithResponses) GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResponse, error)

GetCapabilitiesWithResponse performs a GET /api/v1alpha1/meta/capabilities (the `GetCapabilities` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetCurrentAdministratorWithResponse

func (c *ClientWithResponses) GetCurrentAdministratorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentAdministratorResponse, error)

GetCurrentAdministratorWithResponse performs a GET /api/v1alpha1/auth/me (the `GetCurrentAdministrator` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetLivenessWithResponse

func (c *ClientWithResponses) GetLivenessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLivenessResponse, error)

GetLivenessWithResponse performs a GET /livez (the `GetLiveness` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetMachineIdentityWithResponse

func (c *ClientWithResponses) GetMachineIdentityWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMachineIdentityResponse, error)

GetMachineIdentityWithResponse performs a GET /runtime/v1alpha1/identity (the `GetMachineIdentity` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetManagedPolicyRunWithResponse

func (c *ClientWithResponses) GetManagedPolicyRunWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*GetManagedPolicyRunResponse, error)

GetManagedPolicyRunWithResponse performs a GET /api/v1alpha1/runs/{runId} (the `GetManagedPolicyRun` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetManagedRunSubmissionWithResponse

func (c *ClientWithResponses) GetManagedRunSubmissionWithResponse(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*GetManagedRunSubmissionResponse, error)

GetManagedRunSubmissionWithResponse performs a GET /api/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetManagedRunSubmission` operationId) request.

Read a stored Submission and its evidence within the administrator's workspace, project and selected Run.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetOpenAPIWithResponse

func (c *ClientWithResponses) GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error)

GetOpenAPIWithResponse performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetPolicyDraftWithResponse

func (c *ClientWithResponses) GetPolicyDraftWithResponse(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyDraftResponse, error)

GetPolicyDraftWithResponse performs a GET /api/v1alpha1/policies/{policyId}/draft (the `GetPolicyDraft` operationId) request.

Return the current DRAFT Revision, or NOT_FOUND when no draft exists.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetPolicyRevisionWithResponse

func (c *ClientWithResponses) GetPolicyRevisionWithResponse(ctx context.Context, revisionId string, reqEditors ...RequestEditorFn) (*GetPolicyRevisionResponse, error)

GetPolicyRevisionWithResponse performs a GET /api/v1alpha1/policy-revisions/{revisionId} (the `GetPolicyRevision` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetPolicyRunWithResponse

func (c *ClientWithResponses) GetPolicyRunWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*GetPolicyRunResponse, error)

GetPolicyRunWithResponse performs a GET /runtime/v1alpha1/runs/{runId} (the `GetPolicyRun` operationId) request.

Requires runs:read.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetPolicyWithResponse

func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error)

GetPolicyWithResponse performs a GET /api/v1alpha1/policies/{policyId} (the `GetPolicy` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetReadinessWithResponse

func (c *ClientWithResponses) GetReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadinessResponse, error)

GetReadinessWithResponse performs a GET /readyz (the `GetReadiness` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetRunPolicyRevisionWithResponse

func (c *ClientWithResponses) GetRunPolicyRevisionWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*GetRunPolicyRevisionResponse, error)

GetRunPolicyRevisionWithResponse performs a GET /runtime/v1alpha1/runs/{runId}/policy-revision (the `GetRunPolicyRevision` operationId) request.

Requires runs:read.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetRunSubmissionWithResponse

func (c *ClientWithResponses) GetRunSubmissionWithResponse(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*GetRunSubmissionResponse, error)

GetRunSubmissionWithResponse performs a GET /runtime/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetRunSubmission` operationId) request.

Requires runs:read.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetSceneModelWithResponse

func (c *ClientWithResponses) GetSceneModelWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*GetSceneModelResponse, error)

GetSceneModelWithResponse performs a GET /api/v1alpha1/scenes/{key} (the `GetSceneModel` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

GetVersionWithResponse performs a GET /api/v1alpha1/meta/version (the `GetVersion` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) InitializeSceneWithBodyWithResponse

func (c *ClientWithResponses) InitializeSceneWithBodyWithResponse(ctx context.Context, key string, params *InitializeSceneParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitializeSceneResponse, error)

InitializeSceneWithBodyWithResponse performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request, with any type of body and a specified content type.

Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) InitializeSceneWithResponse

func (c *ClientWithResponses) InitializeSceneWithResponse(ctx context.Context, key string, params *InitializeSceneParams, body InitializeSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*InitializeSceneResponse, error)

InitializeSceneWithResponse performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.

func (*ClientWithResponses) ListBindingsWithResponse

func (c *ClientWithResponses) ListBindingsWithResponse(ctx context.Context, key string, params *ListBindingsParams, reqEditors ...RequestEditorFn) (*ListBindingsResponse, error)

ListBindingsWithResponse performs a GET /api/v1alpha1/scenes/{key}/bindings (the `ListBindings` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListManagedPolicyRunsWithResponse

func (c *ClientWithResponses) ListManagedPolicyRunsWithResponse(ctx context.Context, params *ListManagedPolicyRunsParams, reqEditors ...RequestEditorFn) (*ListManagedPolicyRunsResponse, error)

ListManagedPolicyRunsWithResponse performs a GET /api/v1alpha1/runs (the `ListManagedPolicyRuns` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListManagedRunSubmissionsWithResponse

func (c *ClientWithResponses) ListManagedRunSubmissionsWithResponse(ctx context.Context, runId string, params *ListManagedRunSubmissionsParams, reqEditors ...RequestEditorFn) (*ListManagedRunSubmissionsResponse, error)

ListManagedRunSubmissionsWithResponse performs a GET /api/v1alpha1/runs/{runId}/submissions (the `ListManagedRunSubmissions` operationId) request.

Administrator-only paginated submission metadata. Fetch evidence through the selected Submission reader.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListPoliciesWithResponse

func (c *ClientWithResponses) ListPoliciesWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error)

ListPoliciesWithResponse performs a GET /api/v1alpha1/scenes/{key}/policies (the `ListPolicies` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListPolicyRevisionsWithResponse

func (c *ClientWithResponses) ListPolicyRevisionsWithResponse(ctx context.Context, policyId string, params *ListPolicyRevisionsParams, reqEditors ...RequestEditorFn) (*ListPolicyRevisionsResponse, error)

ListPolicyRevisionsWithResponse performs a GET /api/v1alpha1/policies/{policyId}/revisions (the `ListPolicyRevisions` operationId) request.

Returns a bounded page of summaries without YAML. Fetch content by revision ID. before is the exclusive revision-number cursor; new publications do not shift older pages.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListPolicyRunsWithResponse

func (c *ClientWithResponses) ListPolicyRunsWithResponse(ctx context.Context, params *ListPolicyRunsParams, reqEditors ...RequestEditorFn) (*ListPolicyRunsResponse, error)

ListPolicyRunsWithResponse performs a GET /runtime/v1alpha1/runs (the `ListPolicyRuns` operationId) request.

Requires runs:read.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListProjectAPIKeysWithResponse

func (c *ClientWithResponses) ListProjectAPIKeysWithResponse(ctx context.Context, params *ListProjectAPIKeysParams, reqEditors ...RequestEditorFn) (*ListProjectAPIKeysResponse, error)

ListProjectAPIKeysWithResponse performs a GET /api/v1alpha1/auth/api-keys (the `ListProjectAPIKeys` operationId) request.

Lists secret-free key metadata in key-ID order, including expired and revoked keys.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListSceneModelsWithResponse

func (c *ClientWithResponses) ListSceneModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSceneModelsResponse, error)

ListSceneModelsWithResponse performs a GET /api/v1alpha1/scenes (the `ListSceneModels` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) LoginAdministratorWithBodyWithResponse

func (c *ClientWithResponses) LoginAdministratorWithBodyWithResponse(ctx context.Context, params *LoginAdministratorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginAdministratorResponse, error)

LoginAdministratorWithBodyWithResponse performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) LoginAdministratorWithResponse

LoginAdministratorWithResponse performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) LogoutAdministratorWithResponse

func (c *ClientWithResponses) LogoutAdministratorWithResponse(ctx context.Context, params *LogoutAdministratorParams, reqEditors ...RequestEditorFn) (*LogoutAdministratorResponse, error)

LogoutAdministratorWithResponse performs a DELETE /api/v1alpha1/auth/session (the `LogoutAdministrator` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PublishPolicyDraftWithBodyWithResponse

func (c *ClientWithResponses) PublishPolicyDraftWithBodyWithResponse(ctx context.Context, policyId string, params *PublishPolicyDraftParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishPolicyDraftResponse, error)

PublishPolicyDraftWithBodyWithResponse performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request, with any type of body and a specified content type.

Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PublishPolicyDraftWithResponse

func (c *ClientWithResponses) PublishPolicyDraftWithResponse(ctx context.Context, policyId string, params *PublishPolicyDraftParams, body PublishPolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishPolicyDraftResponse, error)

PublishPolicyDraftWithResponse performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.

func (*ClientWithResponses) PublishPolicyRevisionWithBodyWithResponse

func (c *ClientWithResponses) PublishPolicyRevisionWithBodyWithResponse(ctx context.Context, policyId string, params *PublishPolicyRevisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishPolicyRevisionResponse, error)

PublishPolicyRevisionWithBodyWithResponse performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request, with any type of body and a specified content type.

A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PublishPolicyRevisionWithResponse

func (c *ClientWithResponses) PublishPolicyRevisionWithResponse(ctx context.Context, policyId string, params *PublishPolicyRevisionParams, body PublishPolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishPolicyRevisionResponse, error)

PublishPolicyRevisionWithResponse performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.

func (*ClientWithResponses) PutBindingWithBodyWithResponse

func (c *ClientWithResponses) PutBindingWithBodyWithResponse(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBindingResponse, error)

PutBindingWithBodyWithResponse performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request, with any type of body and a specified content type.

Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) PutBindingWithResponse

func (c *ClientWithResponses) PutBindingWithResponse(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, body PutBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*PutBindingResponse, error)

PutBindingWithResponse performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.

func (*ClientWithResponses) RevokeProjectAPIKeyWithResponse

func (c *ClientWithResponses) RevokeProjectAPIKeyWithResponse(ctx context.Context, keyId APIKeyID, params *RevokeProjectAPIKeyParams, reqEditors ...RequestEditorFn) (*RevokeProjectAPIKeyResponse, error)

RevokeProjectAPIKeyWithResponse performs a DELETE /api/v1alpha1/auth/api-keys/{keyId} (the `RevokeProjectAPIKey` operationId) request.

Atomically revokes a key and records an audit event. Repeated revocation returns 204.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) RotatePolicySubmissionCredentialWithResponse

func (c *ClientWithResponses) RotatePolicySubmissionCredentialWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*RotatePolicySubmissionCredentialResponse, error)

RotatePolicySubmissionCredentialWithResponse performs a POST /runtime/v1alpha1/runs/{runId}/submission-credential:rotate (the `RotatePolicySubmissionCredential` operationId) request.

Requires submission-credential:rotate.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) RotateProjectAPIKeyWithBodyWithResponse

func (c *ClientWithResponses) RotateProjectAPIKeyWithBodyWithResponse(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RotateProjectAPIKeyResponse, error)

RotateProjectAPIKeyWithBodyWithResponse performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request, with any type of body and a specified content type.

Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) RotateProjectAPIKeyWithResponse

func (c *ClientWithResponses) RotateProjectAPIKeyWithResponse(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, body RotateProjectAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*RotateProjectAPIKeyResponse, error)

RotateProjectAPIKeyWithResponse performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.

func (*ClientWithResponses) SavePolicyDraftWithBodyWithResponse

func (c *ClientWithResponses) SavePolicyDraftWithBodyWithResponse(ctx context.Context, policyId string, params *SavePolicyDraftParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SavePolicyDraftResponse, error)

SavePolicyDraftWithBodyWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SavePolicyDraftWithResponse

func (c *ClientWithResponses) SavePolicyDraftWithResponse(ctx context.Context, policyId string, params *SavePolicyDraftParams, body SavePolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*SavePolicyDraftResponse, error)

SavePolicyDraftWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SetDefaultPolicyWithBodyWithResponse

func (c *ClientWithResponses) SetDefaultPolicyWithBodyWithResponse(ctx context.Context, key string, params *SetDefaultPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDefaultPolicyResponse, error)

SetDefaultPolicyWithBodyWithResponse performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SetDefaultPolicyWithResponse

func (c *ClientWithResponses) SetDefaultPolicyWithResponse(ctx context.Context, key string, params *SetDefaultPolicyParams, body SetDefaultPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDefaultPolicyResponse, error)

SetDefaultPolicyWithResponse performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SetSceneTTLWithBodyWithResponse

func (c *ClientWithResponses) SetSceneTTLWithBodyWithResponse(ctx context.Context, key string, params *SetSceneTTLParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetSceneTTLResponse, error)

SetSceneTTLWithBodyWithResponse performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SetSceneTTLWithResponse

func (c *ClientWithResponses) SetSceneTTLWithResponse(ctx context.Context, key string, params *SetSceneTTLParams, body SetSceneTTLJSONRequestBody, reqEditors ...RequestEditorFn) (*SetSceneTTLResponse, error)

SetSceneTTLWithResponse performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SubmitSnapshotWithBodyWithResponse

func (c *ClientWithResponses) SubmitSnapshotWithBodyWithResponse(ctx context.Context, runId string, params *SubmitSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitSnapshotResponse, error)

SubmitSnapshotWithBodyWithResponse performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request, with any type of body and a specified content type.

Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SubmitSnapshotWithResponse

func (c *ClientWithResponses) SubmitSnapshotWithResponse(ctx context.Context, runId string, params *SubmitSnapshotParams, body SubmitSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitSnapshotResponse, error)

SubmitSnapshotWithResponse performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.

func (*ClientWithResponses) UnarchivePolicyWithResponse

func (c *ClientWithResponses) UnarchivePolicyWithResponse(ctx context.Context, policyId string, params *UnarchivePolicyParams, reqEditors ...RequestEditorFn) (*UnarchivePolicyResponse, error)

UnarchivePolicyWithResponse performs a POST /api/v1alpha1/policies/{policyId}:unarchive (the `UnarchivePolicy` operationId) request.

Returns a wrapper object for the known response body format(s).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListProjectAPIKeysWithResponse performs a GET /api/v1alpha1/auth/api-keys (the `ListProjectAPIKeys` operationId) request.
	//
	// Lists secret-free key metadata in key-ID order, including expired and revoked keys.
	//
	// Returns a wrapper object for the known response body format(s).
	ListProjectAPIKeysWithResponse(ctx context.Context, params *ListProjectAPIKeysParams, reqEditors ...RequestEditorFn) (*ListProjectAPIKeysResponse, error)

	// CreateProjectAPIKeyWithBodyWithResponse performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request,
	// with any type of body and a specified content type.
	//
	// Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.
	//
	// Returns a wrapper object for the known response body format(s).
	CreateProjectAPIKeyWithBodyWithResponse(ctx context.Context, params *CreateProjectAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectAPIKeyResponse, error)

	// CreateProjectAPIKeyWithResponse performs a POST /api/v1alpha1/auth/api-keys (the `CreateProjectAPIKey` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Creates a RUN_ORCHESTRATOR or POLICY_PUBLISHER key for the administrator's default project after login. Roles expand to fixed effective scopes. RUN_ORCHESTRATOR grants runs:create, runs:read, and submission-credential:rotate and may additionally receive runs:create-with-revision. POLICY_PUBLISHER grants policies:create and revisions:publish. Callers cannot request arbitrary grants. Returns the secret once; only a hash is stored. Keys issued by this release persist their complete effective scopes. Lifetime defaults to 90 days and must be between 60 seconds and 365 days. Expired or revoked keys cannot authenticate. Revocation affects subsequent authentication, not operations that already authenticated before it committed. Do not automatically retry uncertain requests; each successful request creates a new key.
	CreateProjectAPIKeyWithResponse(ctx context.Context, params *CreateProjectAPIKeyParams, body CreateProjectAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectAPIKeyResponse, error)

	// RevokeProjectAPIKeyWithResponse performs a DELETE /api/v1alpha1/auth/api-keys/{keyId} (the `RevokeProjectAPIKey` operationId) request.
	//
	// Atomically revokes a key and records an audit event. Repeated revocation returns 204.
	//
	// Returns a wrapper object for the known response body format(s).
	RevokeProjectAPIKeyWithResponse(ctx context.Context, keyId APIKeyID, params *RevokeProjectAPIKeyParams, reqEditors ...RequestEditorFn) (*RevokeProjectAPIKeyResponse, error)

	// RotateProjectAPIKeyWithBodyWithResponse performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request,
	// with any type of body and a specified content type.
	//
	// Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.
	//
	// Returns a wrapper object for the known response body format(s).
	RotateProjectAPIKeyWithBodyWithResponse(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RotateProjectAPIKeyResponse, error)

	// RotateProjectAPIKeyWithResponse performs a POST /api/v1alpha1/auth/api-keys/{keyId}/rotation (the `RotateProjectAPIKey` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Replaces the secret of an active key atomically, preserving its ID, role and scopes. The old secret stops authenticating immediately after commit. expectedVersion must match the current metadata, preventing concurrent rotations and exact request retries from replacing a newly issued secret. Omitted lifetime preserves the existing expiry. Expired or revoked keys cannot rotate. The new secret is returned once; on an uncertain response, list keys and inspect the version before deciding how to recover.
	RotateProjectAPIKeyWithResponse(ctx context.Context, keyId APIKeyID, params *RotateProjectAPIKeyParams, body RotateProjectAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*RotateProjectAPIKeyResponse, error)

	// GetCurrentAdministratorWithResponse performs a GET /api/v1alpha1/auth/me (the `GetCurrentAdministrator` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetCurrentAdministratorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentAdministratorResponse, error)

	// ChangeAdministratorPasswordWithBodyWithResponse performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ChangeAdministratorPasswordWithBodyWithResponse(ctx context.Context, params *ChangeAdministratorPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeAdministratorPasswordResponse, error)

	// ChangeAdministratorPasswordWithResponse performs a PUT /api/v1alpha1/auth/password (the `ChangeAdministratorPassword` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ChangeAdministratorPasswordWithResponse(ctx context.Context, params *ChangeAdministratorPasswordParams, body ChangeAdministratorPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeAdministratorPasswordResponse, error)

	// LogoutAdministratorWithResponse performs a DELETE /api/v1alpha1/auth/session (the `LogoutAdministrator` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	LogoutAdministratorWithResponse(ctx context.Context, params *LogoutAdministratorParams, reqEditors ...RequestEditorFn) (*LogoutAdministratorResponse, error)

	// LoginAdministratorWithBodyWithResponse performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	LoginAdministratorWithBodyWithResponse(ctx context.Context, params *LoginAdministratorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginAdministratorResponse, error)

	// LoginAdministratorWithResponse performs a POST /api/v1alpha1/auth/session (the `LoginAdministrator` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	LoginAdministratorWithResponse(ctx context.Context, params *LoginAdministratorParams, body LoginAdministratorJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginAdministratorResponse, error)

	// GetBootstrapStatusWithResponse performs a GET /api/v1alpha1/bootstrap (the `GetBootstrapStatus` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetBootstrapStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBootstrapStatusResponse, error)

	// BootstrapAdministratorWithBodyWithResponse performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request,
	// with any type of body and a specified content type.
	//
	// One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.
	//
	// Returns a wrapper object for the known response body format(s).
	BootstrapAdministratorWithBodyWithResponse(ctx context.Context, params *BootstrapAdministratorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BootstrapAdministratorResponse, error)

	// BootstrapAdministratorWithResponse performs a POST /api/v1alpha1/bootstrap (the `BootstrapAdministrator` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// One-time transaction creating the administrator and default workspace/project, shared by the browser setup wizard and CLI. No machine key is created. Repeated initialization returns 409. Direct local setup does not require a token only when the actual listener and peer are loopback, public_url is unset and no forwarding headers are present. Host, Origin and CSRF checks still apply. Other deployments require a BootstrapToken. With signIn=true a browser session is created atomically and delivered only via an HttpOnly cookie. On an uncertain response, check initialization state before retrying.
	BootstrapAdministratorWithResponse(ctx context.Context, params *BootstrapAdministratorParams, body BootstrapAdministratorJSONRequestBody, reqEditors ...RequestEditorFn) (*BootstrapAdministratorResponse, error)

	// GetCapabilitiesWithResponse performs a GET /api/v1alpha1/meta/capabilities (the `GetCapabilities` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResponse, error)

	// GetVersionWithResponse performs a GET /api/v1alpha1/meta/version (the `GetVersion` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)

	// GetPolicyWithResponse performs a GET /api/v1alpha1/policies/{policyId} (the `GetPolicy` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetPolicyWithResponse(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error)

	// ActivatePolicyRevisionWithBodyWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ActivatePolicyRevisionWithBodyWithResponse(ctx context.Context, policyId string, params *ActivatePolicyRevisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivatePolicyRevisionResponse, error)

	// ActivatePolicyRevisionWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/active-revision (the `ActivatePolicyRevision` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ActivatePolicyRevisionWithResponse(ctx context.Context, policyId string, params *ActivatePolicyRevisionParams, body ActivatePolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivatePolicyRevisionResponse, error)

	// GetPolicyDraftWithResponse performs a GET /api/v1alpha1/policies/{policyId}/draft (the `GetPolicyDraft` operationId) request.
	//
	// Return the current DRAFT Revision, or NOT_FOUND when no draft exists.
	//
	// Returns a wrapper object for the known response body format(s).
	GetPolicyDraftWithResponse(ctx context.Context, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyDraftResponse, error)

	// SavePolicyDraftWithBodyWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	SavePolicyDraftWithBodyWithResponse(ctx context.Context, policyId string, params *SavePolicyDraftParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SavePolicyDraftResponse, error)

	// SavePolicyDraftWithResponse performs a PUT /api/v1alpha1/policies/{policyId}/draft (the `SavePolicyDraft` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	SavePolicyDraftWithResponse(ctx context.Context, policyId string, params *SavePolicyDraftParams, body SavePolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*SavePolicyDraftResponse, error)

	// PublishPolicyDraftWithBodyWithResponse performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request,
	// with any type of body and a specified content type.
	//
	// Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.
	//
	// Returns a wrapper object for the known response body format(s).
	PublishPolicyDraftWithBodyWithResponse(ctx context.Context, policyId string, params *PublishPolicyDraftParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishPolicyDraftResponse, error)

	// PublishPolicyDraftWithResponse performs a POST /api/v1alpha1/policies/{policyId}/draft:publish (the `PublishPolicyDraft` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Publish only the exact Draft YAML reviewed by the caller. The required yaml must match the stored Draft under its lock; otherwise return RESOURCE_STATE_CONFLICT. Retry the same Idempotency-Key with the same yaml.
	PublishPolicyDraftWithResponse(ctx context.Context, policyId string, params *PublishPolicyDraftParams, body PublishPolicyDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishPolicyDraftResponse, error)

	// ListPolicyRevisionsWithResponse performs a GET /api/v1alpha1/policies/{policyId}/revisions (the `ListPolicyRevisions` operationId) request.
	//
	// Returns a bounded page of summaries without YAML. Fetch content by revision ID. before is the exclusive revision-number cursor; new publications do not shift older pages.
	//
	// Returns a wrapper object for the known response body format(s).
	ListPolicyRevisionsWithResponse(ctx context.Context, policyId string, params *ListPolicyRevisionsParams, reqEditors ...RequestEditorFn) (*ListPolicyRevisionsResponse, error)

	// PublishPolicyRevisionWithBodyWithResponse performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request,
	// with any type of body and a specified content type.
	//
	// A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.
	//
	// Returns a wrapper object for the known response body format(s).
	PublishPolicyRevisionWithBodyWithResponse(ctx context.Context, policyId string, params *PublishPolicyRevisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishPolicyRevisionResponse, error)

	// PublishPolicyRevisionWithResponse performs a POST /api/v1alpha1/policies/{policyId}/revisions (the `PublishPolicyRevision` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// A Project key requires revisions:publish, granted by the POLICY_PUBLISHER role; publication does not change Draft or active Revision.
	PublishPolicyRevisionWithResponse(ctx context.Context, policyId string, params *PublishPolicyRevisionParams, body PublishPolicyRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishPolicyRevisionResponse, error)

	// ArchivePolicyWithResponse performs a POST /api/v1alpha1/policies/{policyId}:archive (the `ArchivePolicy` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ArchivePolicyWithResponse(ctx context.Context, policyId string, params *ArchivePolicyParams, reqEditors ...RequestEditorFn) (*ArchivePolicyResponse, error)

	// UnarchivePolicyWithResponse performs a POST /api/v1alpha1/policies/{policyId}:unarchive (the `UnarchivePolicy` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	UnarchivePolicyWithResponse(ctx context.Context, policyId string, params *UnarchivePolicyParams, reqEditors ...RequestEditorFn) (*UnarchivePolicyResponse, error)

	// GetPolicyRevisionWithResponse performs a GET /api/v1alpha1/policy-revisions/{revisionId} (the `GetPolicyRevision` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetPolicyRevisionWithResponse(ctx context.Context, revisionId string, reqEditors ...RequestEditorFn) (*GetPolicyRevisionResponse, error)

	// ListManagedPolicyRunsWithResponse performs a GET /api/v1alpha1/runs (the `ListManagedPolicyRuns` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ListManagedPolicyRunsWithResponse(ctx context.Context, params *ListManagedPolicyRunsParams, reqEditors ...RequestEditorFn) (*ListManagedPolicyRunsResponse, error)

	// GetManagedPolicyRunWithResponse performs a GET /api/v1alpha1/runs/{runId} (the `GetManagedPolicyRun` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetManagedPolicyRunWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*GetManagedPolicyRunResponse, error)

	// ListManagedRunSubmissionsWithResponse performs a GET /api/v1alpha1/runs/{runId}/submissions (the `ListManagedRunSubmissions` operationId) request.
	//
	// Administrator-only paginated submission metadata. Fetch evidence through the selected Submission reader.
	//
	// Returns a wrapper object for the known response body format(s).
	ListManagedRunSubmissionsWithResponse(ctx context.Context, runId string, params *ListManagedRunSubmissionsParams, reqEditors ...RequestEditorFn) (*ListManagedRunSubmissionsResponse, error)

	// GetManagedRunSubmissionWithResponse performs a GET /api/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetManagedRunSubmission` operationId) request.
	//
	// Read a stored Submission and its evidence within the administrator's workspace, project and selected Run.
	//
	// Returns a wrapper object for the known response body format(s).
	GetManagedRunSubmissionWithResponse(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*GetManagedRunSubmissionResponse, error)

	// ListSceneModelsWithResponse performs a GET /api/v1alpha1/scenes (the `ListSceneModels` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ListSceneModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSceneModelsResponse, error)

	// GetSceneModelWithResponse performs a GET /api/v1alpha1/scenes/{key} (the `GetSceneModel` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetSceneModelWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*GetSceneModelResponse, error)

	// SetSceneTTLWithBodyWithResponse performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	SetSceneTTLWithBodyWithResponse(ctx context.Context, key string, params *SetSceneTTLParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetSceneTTLResponse, error)

	// SetSceneTTLWithResponse performs a PATCH /api/v1alpha1/scenes/{key} (the `SetSceneTTL` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	SetSceneTTLWithResponse(ctx context.Context, key string, params *SetSceneTTLParams, body SetSceneTTLJSONRequestBody, reqEditors ...RequestEditorFn) (*SetSceneTTLResponse, error)

	// ListBindingsWithResponse performs a GET /api/v1alpha1/scenes/{key}/bindings (the `ListBindings` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ListBindingsWithResponse(ctx context.Context, key string, params *ListBindingsParams, reqEditors ...RequestEditorFn) (*ListBindingsResponse, error)

	// DeleteBindingWithResponse performs a DELETE /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `DeleteBinding` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	DeleteBindingWithResponse(ctx context.Context, key string, kind string, resourceId string, params *DeleteBindingParams, reqEditors ...RequestEditorFn) (*DeleteBindingResponse, error)

	// PutBindingWithBodyWithResponse performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request,
	// with any type of body and a specified content type.
	//
	// Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.
	//
	// Returns a wrapper object for the known response body format(s).
	PutBindingWithBodyWithResponse(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBindingResponse, error)

	// PutBindingWithResponse performs a PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId} (the `PutBinding` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Idempotently create or replace a resource binding within this scene. Omit policyRevisionId to follow the Policy active revision. Resource IDs containing slash must be URL-encoded.
	PutBindingWithResponse(ctx context.Context, key string, kind string, resourceId string, params *PutBindingParams, body PutBindingJSONRequestBody, reqEditors ...RequestEditorFn) (*PutBindingResponse, error)

	// SetDefaultPolicyWithBodyWithResponse performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	SetDefaultPolicyWithBodyWithResponse(ctx context.Context, key string, params *SetDefaultPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetDefaultPolicyResponse, error)

	// SetDefaultPolicyWithResponse performs a PUT /api/v1alpha1/scenes/{key}/default-policy (the `SetDefaultPolicy` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	SetDefaultPolicyWithResponse(ctx context.Context, key string, params *SetDefaultPolicyParams, body SetDefaultPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetDefaultPolicyResponse, error)

	// ListPoliciesWithResponse performs a GET /api/v1alpha1/scenes/{key}/policies (the `ListPolicies` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ListPoliciesWithResponse(ctx context.Context, key string, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error)

	// CreatePolicyWithBodyWithResponse performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request,
	// with any type of body and a specified content type.
	//
	// A Project key requires policies:create, granted by the POLICY_PUBLISHER role.
	//
	// Returns a wrapper object for the known response body format(s).
	CreatePolicyWithBodyWithResponse(ctx context.Context, key string, params *CreatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)

	// CreatePolicyWithResponse performs a POST /api/v1alpha1/scenes/{key}/policies (the `CreatePolicy` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// A Project key requires policies:create, granted by the POLICY_PUBLISHER role.
	CreatePolicyWithResponse(ctx context.Context, key string, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)

	// InitializeSceneWithBodyWithResponse performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request,
	// with any type of body and a specified content type.
	//
	// Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.
	//
	// Returns a wrapper object for the known response body format(s).
	InitializeSceneWithBodyWithResponse(ctx context.Context, key string, params *InitializeSceneParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitializeSceneResponse, error)

	// InitializeSceneWithResponse performs a POST /api/v1alpha1/scenes/{key}:initialize (the `InitializeScene` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Atomically create Scene, default Policy, Revision 1 and activation. Retry with the same Idempotency-Key.
	InitializeSceneWithResponse(ctx context.Context, key string, params *InitializeSceneParams, body InitializeSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*InitializeSceneResponse, error)

	// GetLivenessWithResponse performs a GET /livez (the `GetLiveness` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetLivenessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLivenessResponse, error)

	// GetOpenAPIWithResponse performs a GET /openapi.yaml (the `GetOpenAPI` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error)

	// GetReadinessWithResponse performs a GET /readyz (the `GetReadiness` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadinessResponse, error)

	// GetMachineIdentityWithResponse performs a GET /runtime/v1alpha1/identity (the `GetMachineIdentity` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetMachineIdentityWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMachineIdentityResponse, error)

	// ListPolicyRunsWithResponse performs a GET /runtime/v1alpha1/runs (the `ListPolicyRuns` operationId) request.
	//
	// Requires runs:read.
	//
	// Returns a wrapper object for the known response body format(s).
	ListPolicyRunsWithResponse(ctx context.Context, params *ListPolicyRunsParams, reqEditors ...RequestEditorFn) (*ListPolicyRunsResponse, error)

	// CreatePolicyRunWithBodyWithResponse performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request,
	// with any type of body and a specified content type.
	//
	// Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.
	//
	// Returns a wrapper object for the known response body format(s).
	CreatePolicyRunWithBodyWithResponse(ctx context.Context, params *CreatePolicyRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyRunResponse, error)

	// CreatePolicyRunWithResponse performs a POST /runtime/v1alpha1/runs (the `CreatePolicyRun` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Requires runs:create. Creates from the Scene default active Revision. An explicit Revision additionally requires runs:create-with-revision. Same Idempotency-Key replays without reissuing the credential.
	CreatePolicyRunWithResponse(ctx context.Context, params *CreatePolicyRunParams, body CreatePolicyRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyRunResponse, error)

	// GetPolicyRunWithResponse performs a GET /runtime/v1alpha1/runs/{runId} (the `GetPolicyRun` operationId) request.
	//
	// Requires runs:read.
	//
	// Returns a wrapper object for the known response body format(s).
	GetPolicyRunWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*GetPolicyRunResponse, error)

	// GetRunPolicyRevisionWithResponse performs a GET /runtime/v1alpha1/runs/{runId}/policy-revision (the `GetRunPolicyRevision` operationId) request.
	//
	// Requires runs:read.
	//
	// Returns a wrapper object for the known response body format(s).
	GetRunPolicyRevisionWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*GetRunPolicyRevisionResponse, error)

	// RotatePolicySubmissionCredentialWithResponse performs a POST /runtime/v1alpha1/runs/{runId}/submission-credential:rotate (the `RotatePolicySubmissionCredential` operationId) request.
	//
	// Requires submission-credential:rotate.
	//
	// Returns a wrapper object for the known response body format(s).
	RotatePolicySubmissionCredentialWithResponse(ctx context.Context, runId string, reqEditors ...RequestEditorFn) (*RotatePolicySubmissionCredentialResponse, error)

	// SubmitSnapshotWithBodyWithResponse performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request,
	// with any type of body and a specified content type.
	//
	// Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.
	//
	// Returns a wrapper object for the known response body format(s).
	SubmitSnapshotWithBodyWithResponse(ctx context.Context, runId string, params *SubmitSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitSnapshotResponse, error)

	// SubmitSnapshotWithResponse performs a POST /runtime/v1alpha1/runs/{runId}/submissions (the `SubmitSnapshot` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Full Snapshot with baseSubmissionNo CAS. finishRun=false keeps the Run OPEN; finishRun=true freezes Result and Decision. Verdict is derived from Check verdicts.
	SubmitSnapshotWithResponse(ctx context.Context, runId string, params *SubmitSnapshotParams, body SubmitSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitSnapshotResponse, error)

	// GetRunSubmissionWithResponse performs a GET /runtime/v1alpha1/runs/{runId}/submissions/{submissionId} (the `GetRunSubmission` operationId) request.
	//
	// Requires runs:read.
	//
	// Returns a wrapper object for the known response body format(s).
	GetRunSubmissionWithResponse(ctx context.Context, runId string, submissionId string, reqEditors ...RequestEditorFn) (*GetRunSubmissionResponse, error)
}

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

type CreateAPIKeyRequest

type CreateAPIKeyRequest struct {
	ExpiresInSeconds *int64                   `json:"expiresInSeconds,omitempty"`
	Role             *CreateAPIKeyRequestRole `json:"role,omitempty"`

	// Scopes Optional elevated permissions added to the fixed role template; accepted only for RUN_ORCHESTRATOR keys.
	Scopes *[]CreateAPIKeyRequestScopes `json:"scopes,omitempty"`
}

CreateAPIKeyRequest defines model for CreateAPIKeyRequest.

type CreateAPIKeyRequestRole

type CreateAPIKeyRequestRole string

CreateAPIKeyRequestRole defines model for CreateAPIKeyRequest.Role.

const (
	CreateAPIKeyRequestRolePolicyPublisher CreateAPIKeyRequestRole = "POLICY_PUBLISHER"
	CreateAPIKeyRequestRoleRunOrchestrator CreateAPIKeyRequestRole = "RUN_ORCHESTRATOR"
)

Defines values for CreateAPIKeyRequestRole.

func (CreateAPIKeyRequestRole) Valid

func (e CreateAPIKeyRequestRole) Valid() bool

Valid indicates whether the value is a known member of the CreateAPIKeyRequestRole enum.

type CreateAPIKeyRequestScopes

type CreateAPIKeyRequestScopes string

CreateAPIKeyRequestScopes defines model for CreateAPIKeyRequest.Scopes.

const (
	CreateAPIKeyRequestScopesRunsCreateWithRevision CreateAPIKeyRequestScopes = "runs:create-with-revision"
)

Defines values for CreateAPIKeyRequestScopes.

func (CreateAPIKeyRequestScopes) Valid

func (e CreateAPIKeyRequestScopes) Valid() bool

Valid indicates whether the value is a known member of the CreateAPIKeyRequestScopes enum.

type CreatePolicyJSONRequestBody

type CreatePolicyJSONRequestBody = CreatePolicyRequest

CreatePolicyJSONRequestBody defines body for CreatePolicy for application/json ContentType.

type CreatePolicyParams

type CreatePolicyParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF CreatePolicyParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`

	// IdempotencyKey Stable caller operation ID; scoped to the authenticated Project and not a credential or Run ID
	IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}

CreatePolicyParams defines parameters for CreatePolicy.

type CreatePolicyParamsXGuardrailCSRF

type CreatePolicyParamsXGuardrailCSRF string

CreatePolicyParamsXGuardrailCSRF defines parameters for CreatePolicy.

const (
	CreatePolicyParamsXGuardrailCSRFN1 CreatePolicyParamsXGuardrailCSRF = "1"
)

Defines values for CreatePolicyParamsXGuardrailCSRF.

func (CreatePolicyParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the CreatePolicyParamsXGuardrailCSRF enum.

type CreatePolicyRequest

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

CreatePolicyRequest defines model for CreatePolicyRequest.

type CreatePolicyResponse

type CreatePolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Policy
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreatePolicyResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreatePolicyResponseDefaultHeaders
}

func ParseCreatePolicyResponse

func ParseCreatePolicyResponse(rsp *http.Response) (*CreatePolicyResponse, error)

ParseCreatePolicyResponse parses an HTTP response from a CreatePolicyWithResponse call

func (CreatePolicyResponse) ContentType

func (r CreatePolicyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreatePolicyResponse) GetBody

func (r CreatePolicyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreatePolicyResponse) GetJSON201

func (r CreatePolicyResponse) GetJSON201() *Policy

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreatePolicyResponse) GetJSONDefault

func (r CreatePolicyResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreatePolicyResponse) Status

func (r CreatePolicyResponse) Status() string

Status returns HTTPResponse.Status

func (CreatePolicyResponse) StatusCode

func (r CreatePolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePolicyResponse201Headers

type CreatePolicyResponse201Headers struct {
	XTraceID string
}

CreatePolicyResponse201Headers the declared response headers of an HTTP 201 response for CreatePolicy

type CreatePolicyResponseDefaultHeaders

type CreatePolicyResponseDefaultHeaders struct {
	XTraceID string
}

CreatePolicyResponseDefaultHeaders the declared response headers of an HTTP default response for CreatePolicy

type CreatePolicyRunJSONRequestBody

type CreatePolicyRunJSONRequestBody = CreatePolicyRunRequest

CreatePolicyRunJSONRequestBody defines body for CreatePolicyRun for application/json ContentType.

type CreatePolicyRunParams

type CreatePolicyRunParams struct {
	// IdempotencyKey Stable caller operation ID; scoped to the authenticated Project and not a credential or Run ID
	IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}

CreatePolicyRunParams defines parameters for CreatePolicyRun.

type CreatePolicyRunRequest

type CreatePolicyRunRequest struct {
	ChangeSet json.RawMessage `json:"changeSet"`

	// PolicyRevisionRef Privileged override requiring runs:create-with-revision and bypassing resource bindings. Grant only to trusted override operators.
	PolicyRevisionRef *struct {
		PolicyRevisionId string `json:"policyRevisionId"`
	} `json:"policyRevisionRef,omitempty"`

	// Resources Selection input supplied by a trusted integration, not verified business ownership. Omission or entirely unbound resources selects the scene default. Rejected with policyRevisionRef.
	Resources *[]ResourceReference `json:"resources,omitempty"`
	SceneKey  SceneKey             `json:"sceneKey"`
}

CreatePolicyRunRequest defines model for CreatePolicyRunRequest.

type CreatePolicyRunResponse

type CreatePolicyRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRun
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *PolicyRunCreation
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CreatePolicyRunResponse200Headers
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreatePolicyRunResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreatePolicyRunResponseDefaultHeaders
}

func ParseCreatePolicyRunResponse

func ParseCreatePolicyRunResponse(rsp *http.Response) (*CreatePolicyRunResponse, error)

ParseCreatePolicyRunResponse parses an HTTP response from a CreatePolicyRunWithResponse call

func (CreatePolicyRunResponse) ContentType

func (r CreatePolicyRunResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreatePolicyRunResponse) GetBody

func (r CreatePolicyRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreatePolicyRunResponse) GetJSON200

func (r CreatePolicyRunResponse) GetJSON200() *PolicyRun

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreatePolicyRunResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreatePolicyRunResponse) GetJSONDefault

func (r CreatePolicyRunResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreatePolicyRunResponse) Status

func (r CreatePolicyRunResponse) Status() string

Status returns HTTPResponse.Status

func (CreatePolicyRunResponse) StatusCode

func (r CreatePolicyRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePolicyRunResponse200Headers

type CreatePolicyRunResponse200Headers struct {
	XTraceID string
}

CreatePolicyRunResponse200Headers the declared response headers of an HTTP 200 response for CreatePolicyRun

type CreatePolicyRunResponse201Headers

type CreatePolicyRunResponse201Headers struct {
	XTraceID string
}

CreatePolicyRunResponse201Headers the declared response headers of an HTTP 201 response for CreatePolicyRun

type CreatePolicyRunResponseDefaultHeaders

type CreatePolicyRunResponseDefaultHeaders struct {
	XTraceID string
}

CreatePolicyRunResponseDefaultHeaders the declared response headers of an HTTP default response for CreatePolicyRun

type CreateProjectAPIKeyJSONRequestBody

type CreateProjectAPIKeyJSONRequestBody = CreateAPIKeyRequest

CreateProjectAPIKeyJSONRequestBody defines body for CreateProjectAPIKey for application/json ContentType.

type CreateProjectAPIKeyParams

type CreateProjectAPIKeyParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF CreateProjectAPIKeyParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

CreateProjectAPIKeyParams defines parameters for CreateProjectAPIKey.

type CreateProjectAPIKeyParamsXGuardrailCSRF

type CreateProjectAPIKeyParamsXGuardrailCSRF string

CreateProjectAPIKeyParamsXGuardrailCSRF defines parameters for CreateProjectAPIKey.

const (
	CreateProjectAPIKeyParamsXGuardrailCSRFN1 CreateProjectAPIKeyParamsXGuardrailCSRF = "1"
)

Defines values for CreateProjectAPIKeyParamsXGuardrailCSRF.

func (CreateProjectAPIKeyParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the CreateProjectAPIKeyParamsXGuardrailCSRF enum.

type CreateProjectAPIKeyResponse

type CreateProjectAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *APIKeyResult
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateProjectAPIKeyResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreateProjectAPIKeyResponseDefaultHeaders
}

func ParseCreateProjectAPIKeyResponse

func ParseCreateProjectAPIKeyResponse(rsp *http.Response) (*CreateProjectAPIKeyResponse, error)

ParseCreateProjectAPIKeyResponse parses an HTTP response from a CreateProjectAPIKeyWithResponse call

func (CreateProjectAPIKeyResponse) ContentType

func (r CreateProjectAPIKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateProjectAPIKeyResponse) GetBody

func (r CreateProjectAPIKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateProjectAPIKeyResponse) GetJSON201

func (r CreateProjectAPIKeyResponse) GetJSON201() *APIKeyResult

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateProjectAPIKeyResponse) GetJSONDefault

func (r CreateProjectAPIKeyResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateProjectAPIKeyResponse) Status

Status returns HTTPResponse.Status

func (CreateProjectAPIKeyResponse) StatusCode

func (r CreateProjectAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectAPIKeyResponse201Headers

type CreateProjectAPIKeyResponse201Headers struct {
	XTraceID string
}

CreateProjectAPIKeyResponse201Headers the declared response headers of an HTTP 201 response for CreateProjectAPIKey

type CreateProjectAPIKeyResponseDefaultHeaders

type CreateProjectAPIKeyResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

CreateProjectAPIKeyResponseDefaultHeaders the declared response headers of an HTTP default response for CreateProjectAPIKey

type Decision

type Decision string

Decision defines model for Decision.

const (
	ALLOW Decision = "ALLOW"
	DENY  Decision = "DENY"
)

Defines values for Decision.

func (Decision) Valid

func (e Decision) Valid() bool

Valid indicates whether the value is a known member of the Decision enum.

type DeleteBindingParams

type DeleteBindingParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF DeleteBindingParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

DeleteBindingParams defines parameters for DeleteBinding.

type DeleteBindingParamsXGuardrailCSRF

type DeleteBindingParamsXGuardrailCSRF string

DeleteBindingParamsXGuardrailCSRF defines parameters for DeleteBinding.

const (
	DeleteBindingParamsXGuardrailCSRFN1 DeleteBindingParamsXGuardrailCSRF = "1"
)

Defines values for DeleteBindingParamsXGuardrailCSRF.

func (DeleteBindingParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the DeleteBindingParamsXGuardrailCSRF enum.

type DeleteBindingResponse

type DeleteBindingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *DeleteBindingResponse204Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DeleteBindingResponseDefaultHeaders
}

func ParseDeleteBindingResponse

func ParseDeleteBindingResponse(rsp *http.Response) (*DeleteBindingResponse, error)

ParseDeleteBindingResponse parses an HTTP response from a DeleteBindingWithResponse call

func (DeleteBindingResponse) ContentType

func (r DeleteBindingResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteBindingResponse) GetBody

func (r DeleteBindingResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteBindingResponse) GetJSONDefault

func (r DeleteBindingResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteBindingResponse) Status

func (r DeleteBindingResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBindingResponse) StatusCode

func (r DeleteBindingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBindingResponse204Headers

type DeleteBindingResponse204Headers struct {
	XTraceID string
}

DeleteBindingResponse204Headers the declared response headers of an HTTP 204 response for DeleteBinding

type DeleteBindingResponseDefaultHeaders

type DeleteBindingResponseDefaultHeaders struct {
	XTraceID string
}

DeleteBindingResponseDefaultHeaders the declared response headers of an HTTP default response for DeleteBinding

type Error

type Error struct {
	Code    string `json:"code"`
	Message string `json:"message"`

	// TraceId Same value as the X-Trace-ID response header
	TraceId string `json:"traceId"`
}

Error defines model for Error.

type GetBootstrapStatusResponse

type GetBootstrapStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BootstrapStatus
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetBootstrapStatusResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetBootstrapStatusResponseDefaultHeaders
}

func ParseGetBootstrapStatusResponse

func ParseGetBootstrapStatusResponse(rsp *http.Response) (*GetBootstrapStatusResponse, error)

ParseGetBootstrapStatusResponse parses an HTTP response from a GetBootstrapStatusWithResponse call

func (GetBootstrapStatusResponse) ContentType

func (r GetBootstrapStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetBootstrapStatusResponse) GetBody

func (r GetBootstrapStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetBootstrapStatusResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetBootstrapStatusResponse) GetJSONDefault

func (r GetBootstrapStatusResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetBootstrapStatusResponse) Status

Status returns HTTPResponse.Status

func (GetBootstrapStatusResponse) StatusCode

func (r GetBootstrapStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBootstrapStatusResponse200Headers

type GetBootstrapStatusResponse200Headers struct {
	XTraceID string
}

GetBootstrapStatusResponse200Headers the declared response headers of an HTTP 200 response for GetBootstrapStatus

type GetBootstrapStatusResponseDefaultHeaders

type GetBootstrapStatusResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

GetBootstrapStatusResponseDefaultHeaders the declared response headers of an HTTP default response for GetBootstrapStatus

type GetCapabilitiesResponse

type GetCapabilitiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Capabilities
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *Error
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetCapabilitiesResponse200Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetCapabilitiesResponse503Headers
}

func ParseGetCapabilitiesResponse

func ParseGetCapabilitiesResponse(rsp *http.Response) (*GetCapabilitiesResponse, error)

ParseGetCapabilitiesResponse parses an HTTP response from a GetCapabilitiesWithResponse call

func (GetCapabilitiesResponse) ContentType

func (r GetCapabilitiesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCapabilitiesResponse) GetBody

func (r GetCapabilitiesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCapabilitiesResponse) GetJSON200

func (r GetCapabilitiesResponse) GetJSON200() *Capabilities

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetCapabilitiesResponse) GetJSON503

func (r GetCapabilitiesResponse) GetJSON503() *Error

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetCapabilitiesResponse) Status

func (r GetCapabilitiesResponse) Status() string

Status returns HTTPResponse.Status

func (GetCapabilitiesResponse) StatusCode

func (r GetCapabilitiesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCapabilitiesResponse200Headers

type GetCapabilitiesResponse200Headers struct {
	XTraceID string
}

GetCapabilitiesResponse200Headers the declared response headers of an HTTP 200 response for GetCapabilities

type GetCapabilitiesResponse503Headers

type GetCapabilitiesResponse503Headers struct {
	XTraceID string
}

GetCapabilitiesResponse503Headers the declared response headers of an HTTP 503 response for GetCapabilities

type GetCurrentAdministratorResponse

type GetCurrentAdministratorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Principal
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetCurrentAdministratorResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetCurrentAdministratorResponseDefaultHeaders
}

func ParseGetCurrentAdministratorResponse

func ParseGetCurrentAdministratorResponse(rsp *http.Response) (*GetCurrentAdministratorResponse, error)

ParseGetCurrentAdministratorResponse parses an HTTP response from a GetCurrentAdministratorWithResponse call

func (GetCurrentAdministratorResponse) ContentType

func (r GetCurrentAdministratorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCurrentAdministratorResponse) GetBody

func (r GetCurrentAdministratorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCurrentAdministratorResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetCurrentAdministratorResponse) GetJSONDefault

func (r GetCurrentAdministratorResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetCurrentAdministratorResponse) Status

Status returns HTTPResponse.Status

func (GetCurrentAdministratorResponse) StatusCode

func (r GetCurrentAdministratorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentAdministratorResponse200Headers

type GetCurrentAdministratorResponse200Headers struct {
	XTraceID string
}

GetCurrentAdministratorResponse200Headers the declared response headers of an HTTP 200 response for GetCurrentAdministrator

type GetCurrentAdministratorResponseDefaultHeaders

type GetCurrentAdministratorResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

GetCurrentAdministratorResponseDefaultHeaders the declared response headers of an HTTP default response for GetCurrentAdministrator

type GetLivenessResponse

type GetLivenessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Health
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetLivenessResponse200Headers
}

func ParseGetLivenessResponse

func ParseGetLivenessResponse(rsp *http.Response) (*GetLivenessResponse, error)

ParseGetLivenessResponse parses an HTTP response from a GetLivenessWithResponse call

func (GetLivenessResponse) ContentType

func (r GetLivenessResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetLivenessResponse) GetBody

func (r GetLivenessResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetLivenessResponse) GetJSON200

func (r GetLivenessResponse) GetJSON200() *Health

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetLivenessResponse) Status

func (r GetLivenessResponse) Status() string

Status returns HTTPResponse.Status

func (GetLivenessResponse) StatusCode

func (r GetLivenessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLivenessResponse200Headers

type GetLivenessResponse200Headers struct {
	XTraceID string
}

GetLivenessResponse200Headers the declared response headers of an HTTP 200 response for GetLiveness

type GetMachineIdentityResponse

type GetMachineIdentityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Principal
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMachineIdentityResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetMachineIdentityResponseDefaultHeaders
}

func ParseGetMachineIdentityResponse

func ParseGetMachineIdentityResponse(rsp *http.Response) (*GetMachineIdentityResponse, error)

ParseGetMachineIdentityResponse parses an HTTP response from a GetMachineIdentityWithResponse call

func (GetMachineIdentityResponse) ContentType

func (r GetMachineIdentityResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMachineIdentityResponse) GetBody

func (r GetMachineIdentityResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMachineIdentityResponse) GetJSON200

func (r GetMachineIdentityResponse) GetJSON200() *Principal

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMachineIdentityResponse) GetJSONDefault

func (r GetMachineIdentityResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetMachineIdentityResponse) Status

Status returns HTTPResponse.Status

func (GetMachineIdentityResponse) StatusCode

func (r GetMachineIdentityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMachineIdentityResponse200Headers

type GetMachineIdentityResponse200Headers struct {
	XTraceID string
}

GetMachineIdentityResponse200Headers the declared response headers of an HTTP 200 response for GetMachineIdentity

type GetMachineIdentityResponseDefaultHeaders

type GetMachineIdentityResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

GetMachineIdentityResponseDefaultHeaders the declared response headers of an HTTP default response for GetMachineIdentity

type GetManagedPolicyRunResponse

type GetManagedPolicyRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRun
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetManagedPolicyRunResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetManagedPolicyRunResponseDefaultHeaders
}

func ParseGetManagedPolicyRunResponse

func ParseGetManagedPolicyRunResponse(rsp *http.Response) (*GetManagedPolicyRunResponse, error)

ParseGetManagedPolicyRunResponse parses an HTTP response from a GetManagedPolicyRunWithResponse call

func (GetManagedPolicyRunResponse) ContentType

func (r GetManagedPolicyRunResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetManagedPolicyRunResponse) GetBody

func (r GetManagedPolicyRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetManagedPolicyRunResponse) GetJSON200

func (r GetManagedPolicyRunResponse) GetJSON200() *PolicyRun

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetManagedPolicyRunResponse) GetJSONDefault

func (r GetManagedPolicyRunResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetManagedPolicyRunResponse) Status

Status returns HTTPResponse.Status

func (GetManagedPolicyRunResponse) StatusCode

func (r GetManagedPolicyRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetManagedPolicyRunResponse200Headers

type GetManagedPolicyRunResponse200Headers struct {
	XTraceID string
}

GetManagedPolicyRunResponse200Headers the declared response headers of an HTTP 200 response for GetManagedPolicyRun

type GetManagedPolicyRunResponseDefaultHeaders

type GetManagedPolicyRunResponseDefaultHeaders struct {
	XTraceID string
}

GetManagedPolicyRunResponseDefaultHeaders the declared response headers of an HTTP default response for GetManagedPolicyRun

type GetManagedRunSubmissionResponse

type GetManagedRunSubmissionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *StoredSubmission
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetManagedRunSubmissionResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetManagedRunSubmissionResponseDefaultHeaders
}

func ParseGetManagedRunSubmissionResponse

func ParseGetManagedRunSubmissionResponse(rsp *http.Response) (*GetManagedRunSubmissionResponse, error)

ParseGetManagedRunSubmissionResponse parses an HTTP response from a GetManagedRunSubmissionWithResponse call

func (GetManagedRunSubmissionResponse) ContentType

func (r GetManagedRunSubmissionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetManagedRunSubmissionResponse) GetBody

func (r GetManagedRunSubmissionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetManagedRunSubmissionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetManagedRunSubmissionResponse) GetJSONDefault

func (r GetManagedRunSubmissionResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetManagedRunSubmissionResponse) Status

Status returns HTTPResponse.Status

func (GetManagedRunSubmissionResponse) StatusCode

func (r GetManagedRunSubmissionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetManagedRunSubmissionResponse200Headers

type GetManagedRunSubmissionResponse200Headers struct {
	XTraceID string
}

GetManagedRunSubmissionResponse200Headers the declared response headers of an HTTP 200 response for GetManagedRunSubmission

type GetManagedRunSubmissionResponseDefaultHeaders

type GetManagedRunSubmissionResponseDefaultHeaders struct {
	XTraceID string
}

GetManagedRunSubmissionResponseDefaultHeaders the declared response headers of an HTTP default response for GetManagedRunSubmission

type GetOpenAPIResponse

type GetOpenAPIResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// YAML200 the response for an HTTP 200 `application/yaml` response
	YAML200 *string
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetOpenAPIResponse200Headers
}

func ParseGetOpenAPIResponse

func ParseGetOpenAPIResponse(rsp *http.Response) (*GetOpenAPIResponse, error)

ParseGetOpenAPIResponse parses an HTTP response from a GetOpenAPIWithResponse call

func (GetOpenAPIResponse) ContentType

func (r GetOpenAPIResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOpenAPIResponse) GetBody

func (r GetOpenAPIResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOpenAPIResponse) GetYAML200

func (r GetOpenAPIResponse) GetYAML200() *string

GetYAML200 returns the response for an HTTP 200 `application/yaml` response

func (GetOpenAPIResponse) Status

func (r GetOpenAPIResponse) Status() string

Status returns HTTPResponse.Status

func (GetOpenAPIResponse) StatusCode

func (r GetOpenAPIResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOpenAPIResponse200Headers

type GetOpenAPIResponse200Headers struct {
	XTraceID string
}

GetOpenAPIResponse200Headers the declared response headers of an HTTP 200 response for GetOpenAPI

type GetPolicyDraftResponse

type GetPolicyDraftResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRevision
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPolicyDraftResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetPolicyDraftResponseDefaultHeaders
}

func ParseGetPolicyDraftResponse

func ParseGetPolicyDraftResponse(rsp *http.Response) (*GetPolicyDraftResponse, error)

ParseGetPolicyDraftResponse parses an HTTP response from a GetPolicyDraftWithResponse call

func (GetPolicyDraftResponse) ContentType

func (r GetPolicyDraftResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPolicyDraftResponse) GetBody

func (r GetPolicyDraftResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPolicyDraftResponse) GetJSON200

func (r GetPolicyDraftResponse) GetJSON200() *PolicyRevision

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPolicyDraftResponse) GetJSONDefault

func (r GetPolicyDraftResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetPolicyDraftResponse) Status

func (r GetPolicyDraftResponse) Status() string

Status returns HTTPResponse.Status

func (GetPolicyDraftResponse) StatusCode

func (r GetPolicyDraftResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPolicyDraftResponse200Headers

type GetPolicyDraftResponse200Headers struct {
	XTraceID string
}

GetPolicyDraftResponse200Headers the declared response headers of an HTTP 200 response for GetPolicyDraft

type GetPolicyDraftResponseDefaultHeaders

type GetPolicyDraftResponseDefaultHeaders struct {
	XTraceID string
}

GetPolicyDraftResponseDefaultHeaders the declared response headers of an HTTP default response for GetPolicyDraft

type GetPolicyResponse

type GetPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Policy
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPolicyResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetPolicyResponseDefaultHeaders
}

func ParseGetPolicyResponse

func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error)

ParseGetPolicyResponse parses an HTTP response from a GetPolicyWithResponse call

func (GetPolicyResponse) ContentType

func (r GetPolicyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPolicyResponse) GetBody

func (r GetPolicyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPolicyResponse) GetJSON200

func (r GetPolicyResponse) GetJSON200() *Policy

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPolicyResponse) GetJSONDefault

func (r GetPolicyResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetPolicyResponse) Status

func (r GetPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (GetPolicyResponse) StatusCode

func (r GetPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPolicyResponse200Headers

type GetPolicyResponse200Headers struct {
	XTraceID string
}

GetPolicyResponse200Headers the declared response headers of an HTTP 200 response for GetPolicy

type GetPolicyResponseDefaultHeaders

type GetPolicyResponseDefaultHeaders struct {
	XTraceID string
}

GetPolicyResponseDefaultHeaders the declared response headers of an HTTP default response for GetPolicy

type GetPolicyRevisionResponse

type GetPolicyRevisionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRevision
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPolicyRevisionResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetPolicyRevisionResponseDefaultHeaders
}

func ParseGetPolicyRevisionResponse

func ParseGetPolicyRevisionResponse(rsp *http.Response) (*GetPolicyRevisionResponse, error)

ParseGetPolicyRevisionResponse parses an HTTP response from a GetPolicyRevisionWithResponse call

func (GetPolicyRevisionResponse) ContentType

func (r GetPolicyRevisionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPolicyRevisionResponse) GetBody

func (r GetPolicyRevisionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPolicyRevisionResponse) GetJSON200

func (r GetPolicyRevisionResponse) GetJSON200() *PolicyRevision

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPolicyRevisionResponse) GetJSONDefault

func (r GetPolicyRevisionResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetPolicyRevisionResponse) Status

func (r GetPolicyRevisionResponse) Status() string

Status returns HTTPResponse.Status

func (GetPolicyRevisionResponse) StatusCode

func (r GetPolicyRevisionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPolicyRevisionResponse200Headers

type GetPolicyRevisionResponse200Headers struct {
	XTraceID string
}

GetPolicyRevisionResponse200Headers the declared response headers of an HTTP 200 response for GetPolicyRevision

type GetPolicyRevisionResponseDefaultHeaders

type GetPolicyRevisionResponseDefaultHeaders struct {
	XTraceID string
}

GetPolicyRevisionResponseDefaultHeaders the declared response headers of an HTTP default response for GetPolicyRevision

type GetPolicyRunResponse

type GetPolicyRunResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRun
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetPolicyRunResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetPolicyRunResponseDefaultHeaders
}

func ParseGetPolicyRunResponse

func ParseGetPolicyRunResponse(rsp *http.Response) (*GetPolicyRunResponse, error)

ParseGetPolicyRunResponse parses an HTTP response from a GetPolicyRunWithResponse call

func (GetPolicyRunResponse) ContentType

func (r GetPolicyRunResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPolicyRunResponse) GetBody

func (r GetPolicyRunResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetPolicyRunResponse) GetJSON200

func (r GetPolicyRunResponse) GetJSON200() *PolicyRun

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetPolicyRunResponse) GetJSONDefault

func (r GetPolicyRunResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetPolicyRunResponse) Status

func (r GetPolicyRunResponse) Status() string

Status returns HTTPResponse.Status

func (GetPolicyRunResponse) StatusCode

func (r GetPolicyRunResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPolicyRunResponse200Headers

type GetPolicyRunResponse200Headers struct {
	XTraceID string
}

GetPolicyRunResponse200Headers the declared response headers of an HTTP 200 response for GetPolicyRun

type GetPolicyRunResponseDefaultHeaders

type GetPolicyRunResponseDefaultHeaders struct {
	XTraceID string
}

GetPolicyRunResponseDefaultHeaders the declared response headers of an HTTP default response for GetPolicyRun

type GetReadinessResponse

type GetReadinessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Health
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *Error
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetReadinessResponse200Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetReadinessResponse503Headers
}

func ParseGetReadinessResponse

func ParseGetReadinessResponse(rsp *http.Response) (*GetReadinessResponse, error)

ParseGetReadinessResponse parses an HTTP response from a GetReadinessWithResponse call

func (GetReadinessResponse) ContentType

func (r GetReadinessResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetReadinessResponse) GetBody

func (r GetReadinessResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetReadinessResponse) GetJSON200

func (r GetReadinessResponse) GetJSON200() *Health

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetReadinessResponse) GetJSON503

func (r GetReadinessResponse) GetJSON503() *Error

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetReadinessResponse) Status

func (r GetReadinessResponse) Status() string

Status returns HTTPResponse.Status

func (GetReadinessResponse) StatusCode

func (r GetReadinessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReadinessResponse200Headers

type GetReadinessResponse200Headers struct {
	XTraceID string
}

GetReadinessResponse200Headers the declared response headers of an HTTP 200 response for GetReadiness

type GetReadinessResponse503Headers

type GetReadinessResponse503Headers struct {
	XTraceID string
}

GetReadinessResponse503Headers the declared response headers of an HTTP 503 response for GetReadiness

type GetRunPolicyRevisionResponse

type GetRunPolicyRevisionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRevision
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRunPolicyRevisionResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetRunPolicyRevisionResponseDefaultHeaders
}

func ParseGetRunPolicyRevisionResponse

func ParseGetRunPolicyRevisionResponse(rsp *http.Response) (*GetRunPolicyRevisionResponse, error)

ParseGetRunPolicyRevisionResponse parses an HTTP response from a GetRunPolicyRevisionWithResponse call

func (GetRunPolicyRevisionResponse) ContentType

func (r GetRunPolicyRevisionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRunPolicyRevisionResponse) GetBody

func (r GetRunPolicyRevisionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRunPolicyRevisionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRunPolicyRevisionResponse) GetJSONDefault

func (r GetRunPolicyRevisionResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRunPolicyRevisionResponse) Status

Status returns HTTPResponse.Status

func (GetRunPolicyRevisionResponse) StatusCode

func (r GetRunPolicyRevisionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRunPolicyRevisionResponse200Headers

type GetRunPolicyRevisionResponse200Headers struct {
	XTraceID string
}

GetRunPolicyRevisionResponse200Headers the declared response headers of an HTTP 200 response for GetRunPolicyRevision

type GetRunPolicyRevisionResponseDefaultHeaders

type GetRunPolicyRevisionResponseDefaultHeaders struct {
	XTraceID string
}

GetRunPolicyRevisionResponseDefaultHeaders the declared response headers of an HTTP default response for GetRunPolicyRevision

type GetRunSubmissionResponse

type GetRunSubmissionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *StoredSubmission
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRunSubmissionResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetRunSubmissionResponseDefaultHeaders
}

func ParseGetRunSubmissionResponse

func ParseGetRunSubmissionResponse(rsp *http.Response) (*GetRunSubmissionResponse, error)

ParseGetRunSubmissionResponse parses an HTTP response from a GetRunSubmissionWithResponse call

func (GetRunSubmissionResponse) ContentType

func (r GetRunSubmissionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRunSubmissionResponse) GetBody

func (r GetRunSubmissionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRunSubmissionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRunSubmissionResponse) GetJSONDefault

func (r GetRunSubmissionResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRunSubmissionResponse) Status

func (r GetRunSubmissionResponse) Status() string

Status returns HTTPResponse.Status

func (GetRunSubmissionResponse) StatusCode

func (r GetRunSubmissionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRunSubmissionResponse200Headers

type GetRunSubmissionResponse200Headers struct {
	XTraceID string
}

GetRunSubmissionResponse200Headers the declared response headers of an HTTP 200 response for GetRunSubmission

type GetRunSubmissionResponseDefaultHeaders

type GetRunSubmissionResponseDefaultHeaders struct {
	XTraceID string
}

GetRunSubmissionResponseDefaultHeaders the declared response headers of an HTTP default response for GetRunSubmission

type GetSceneModelResponse

type GetSceneModelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SceneModel
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetSceneModelResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetSceneModelResponseDefaultHeaders
}

func ParseGetSceneModelResponse

func ParseGetSceneModelResponse(rsp *http.Response) (*GetSceneModelResponse, error)

ParseGetSceneModelResponse parses an HTTP response from a GetSceneModelWithResponse call

func (GetSceneModelResponse) ContentType

func (r GetSceneModelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSceneModelResponse) GetBody

func (r GetSceneModelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSceneModelResponse) GetJSON200

func (r GetSceneModelResponse) GetJSON200() *SceneModel

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSceneModelResponse) GetJSONDefault

func (r GetSceneModelResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetSceneModelResponse) Status

func (r GetSceneModelResponse) Status() string

Status returns HTTPResponse.Status

func (GetSceneModelResponse) StatusCode

func (r GetSceneModelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSceneModelResponse200Headers

type GetSceneModelResponse200Headers struct {
	XTraceID string
}

GetSceneModelResponse200Headers the declared response headers of an HTTP 200 response for GetSceneModel

type GetSceneModelResponseDefaultHeaders

type GetSceneModelResponseDefaultHeaders struct {
	XTraceID string
}

GetSceneModelResponseDefaultHeaders the declared response headers of an HTTP default response for GetSceneModel

type GetVersionResponse

type GetVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Version
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetVersionResponse200Headers
}

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() *Version

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 GetVersionResponse200Headers

type GetVersionResponse200Headers struct {
	XTraceID string
}

GetVersionResponse200Headers the declared response headers of an HTTP 200 response for GetVersion

type Health

type Health struct {
	Status HealthStatus `json:"status"`
}

Health defines model for Health.

type HealthStatus

type HealthStatus string

HealthStatus defines model for Health.Status.

const (
	Alive HealthStatus = "alive"
	Ready HealthStatus = "ready"
)

Defines values for HealthStatus.

func (HealthStatus) Valid

func (e HealthStatus) Valid() bool

Valid indicates whether the value is a known member of the HealthStatus enum.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IdempotencyKey

type IdempotencyKey = string

IdempotencyKey defines model for IdempotencyKey.

type IdentityError

type IdentityError = Error

IdentityError defines model for IdentityError.

type InitializeSceneJSONRequestBody

type InitializeSceneJSONRequestBody = InitializeSceneRequest

InitializeSceneJSONRequestBody defines body for InitializeScene for application/json ContentType.

type InitializeSceneParams

type InitializeSceneParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF InitializeSceneParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`

	// IdempotencyKey Stable caller operation ID; scoped to the authenticated Project and not a credential or Run ID
	IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}

InitializeSceneParams defines parameters for InitializeScene.

type InitializeSceneParamsXGuardrailCSRF

type InitializeSceneParamsXGuardrailCSRF string

InitializeSceneParamsXGuardrailCSRF defines parameters for InitializeScene.

const (
	InitializeSceneParamsXGuardrailCSRFN1 InitializeSceneParamsXGuardrailCSRF = "1"
)

Defines values for InitializeSceneParamsXGuardrailCSRF.

func (InitializeSceneParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the InitializeSceneParamsXGuardrailCSRF enum.

type InitializeSceneRequest

type InitializeSceneRequest struct {
	DefaultPolicyName string `json:"defaultPolicyName"`
	Name              string `json:"name"`
	Yaml              string `json:"yaml"`
}

InitializeSceneRequest defines model for InitializeSceneRequest.

type InitializeSceneResponse

type InitializeSceneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *InitializedScene
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *InitializeSceneResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *InitializeSceneResponseDefaultHeaders
}

func ParseInitializeSceneResponse

func ParseInitializeSceneResponse(rsp *http.Response) (*InitializeSceneResponse, error)

ParseInitializeSceneResponse parses an HTTP response from a InitializeSceneWithResponse call

func (InitializeSceneResponse) ContentType

func (r InitializeSceneResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (InitializeSceneResponse) GetBody

func (r InitializeSceneResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (InitializeSceneResponse) GetJSON201

func (r InitializeSceneResponse) GetJSON201() *InitializedScene

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (InitializeSceneResponse) GetJSONDefault

func (r InitializeSceneResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (InitializeSceneResponse) Status

func (r InitializeSceneResponse) Status() string

Status returns HTTPResponse.Status

func (InitializeSceneResponse) StatusCode

func (r InitializeSceneResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InitializeSceneResponse201Headers

type InitializeSceneResponse201Headers struct {
	XTraceID string
}

InitializeSceneResponse201Headers the declared response headers of an HTTP 201 response for InitializeScene

type InitializeSceneResponseDefaultHeaders

type InitializeSceneResponseDefaultHeaders struct {
	XTraceID string
}

InitializeSceneResponseDefaultHeaders the declared response headers of an HTTP default response for InitializeScene

type InitializedScene

type InitializedScene struct {
	Policy   Policy         `json:"policy"`
	Revision PolicyRevision `json:"revision"`
	Scene    SceneModel     `json:"scene"`
}

InitializedScene defines model for InitializedScene.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type ListBindingsParams

type ListBindingsParams struct {
	Limit *int    `form:"limit,omitempty" json:"limit,omitempty"`
	After *string `form:"after,omitempty" json:"after,omitempty"`
}

ListBindingsParams defines parameters for ListBindings.

type ListBindingsResponse

type ListBindingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BindingPage
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListBindingsResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListBindingsResponseDefaultHeaders
}

func ParseListBindingsResponse

func ParseListBindingsResponse(rsp *http.Response) (*ListBindingsResponse, error)

ParseListBindingsResponse parses an HTTP response from a ListBindingsWithResponse call

func (ListBindingsResponse) ContentType

func (r ListBindingsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListBindingsResponse) GetBody

func (r ListBindingsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListBindingsResponse) GetJSON200

func (r ListBindingsResponse) GetJSON200() *BindingPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListBindingsResponse) GetJSONDefault

func (r ListBindingsResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListBindingsResponse) Status

func (r ListBindingsResponse) Status() string

Status returns HTTPResponse.Status

func (ListBindingsResponse) StatusCode

func (r ListBindingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListBindingsResponse200Headers

type ListBindingsResponse200Headers struct {
	XTraceID string
}

ListBindingsResponse200Headers the declared response headers of an HTTP 200 response for ListBindings

type ListBindingsResponseDefaultHeaders

type ListBindingsResponseDefaultHeaders struct {
	XTraceID string
}

ListBindingsResponseDefaultHeaders the declared response headers of an HTTP default response for ListBindings

type ListManagedPolicyRunsParams

type ListManagedPolicyRunsParams struct {
	// Status Optional effective Run status. Overdue OPEN Runs match EXPIRED rather than OPEN.
	Status *RunStatusFilter `form:"status,omitempty" json:"status,omitempty"`

	// SceneKey Optional exact Scene key.
	SceneKey *RunSceneFilter `form:"sceneKey,omitempty" json:"sceneKey,omitempty"`

	// Limit Maximum number of Runs returned.
	Limit *RunLimit `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque cursor returned by the preceding page. Do not inspect or construct it.
	Cursor *RunCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListManagedPolicyRunsParams defines parameters for ListManagedPolicyRuns.

type ListManagedPolicyRunsResponse

type ListManagedPolicyRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRunPage
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListManagedPolicyRunsResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListManagedPolicyRunsResponseDefaultHeaders
}

func ParseListManagedPolicyRunsResponse

func ParseListManagedPolicyRunsResponse(rsp *http.Response) (*ListManagedPolicyRunsResponse, error)

ParseListManagedPolicyRunsResponse parses an HTTP response from a ListManagedPolicyRunsWithResponse call

func (ListManagedPolicyRunsResponse) ContentType

func (r ListManagedPolicyRunsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListManagedPolicyRunsResponse) GetBody

func (r ListManagedPolicyRunsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListManagedPolicyRunsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListManagedPolicyRunsResponse) GetJSONDefault

func (r ListManagedPolicyRunsResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListManagedPolicyRunsResponse) Status

Status returns HTTPResponse.Status

func (ListManagedPolicyRunsResponse) StatusCode

func (r ListManagedPolicyRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListManagedPolicyRunsResponse200Headers

type ListManagedPolicyRunsResponse200Headers struct {
	XTraceID string
}

ListManagedPolicyRunsResponse200Headers the declared response headers of an HTTP 200 response for ListManagedPolicyRuns

type ListManagedPolicyRunsResponseDefaultHeaders

type ListManagedPolicyRunsResponseDefaultHeaders struct {
	XTraceID string
}

ListManagedPolicyRunsResponseDefaultHeaders the declared response headers of an HTTP default response for ListManagedPolicyRuns

type ListManagedRunSubmissionsParams

type ListManagedRunSubmissionsParams struct {
	Limit  *int   `form:"limit,omitempty" json:"limit,omitempty"`
	Before *int64 `form:"before,omitempty" json:"before,omitempty"`
}

ListManagedRunSubmissionsParams defines parameters for ListManagedRunSubmissions.

type ListManagedRunSubmissionsResponse

type ListManagedRunSubmissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SubmissionPage
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListManagedRunSubmissionsResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListManagedRunSubmissionsResponseDefaultHeaders
}

func ParseListManagedRunSubmissionsResponse

func ParseListManagedRunSubmissionsResponse(rsp *http.Response) (*ListManagedRunSubmissionsResponse, error)

ParseListManagedRunSubmissionsResponse parses an HTTP response from a ListManagedRunSubmissionsWithResponse call

func (ListManagedRunSubmissionsResponse) ContentType

func (r ListManagedRunSubmissionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListManagedRunSubmissionsResponse) GetBody

GetBody returns the raw response body bytes

func (ListManagedRunSubmissionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListManagedRunSubmissionsResponse) GetJSONDefault

func (r ListManagedRunSubmissionsResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListManagedRunSubmissionsResponse) Status

Status returns HTTPResponse.Status

func (ListManagedRunSubmissionsResponse) StatusCode

func (r ListManagedRunSubmissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListManagedRunSubmissionsResponse200Headers

type ListManagedRunSubmissionsResponse200Headers struct {
	XTraceID string
}

ListManagedRunSubmissionsResponse200Headers the declared response headers of an HTTP 200 response for ListManagedRunSubmissions

type ListManagedRunSubmissionsResponseDefaultHeaders

type ListManagedRunSubmissionsResponseDefaultHeaders struct {
	XTraceID string
}

ListManagedRunSubmissionsResponseDefaultHeaders the declared response headers of an HTTP default response for ListManagedRunSubmissions

type ListPoliciesResponse

type ListPoliciesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyList
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListPoliciesResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListPoliciesResponseDefaultHeaders
}

func ParseListPoliciesResponse

func ParseListPoliciesResponse(rsp *http.Response) (*ListPoliciesResponse, error)

ParseListPoliciesResponse parses an HTTP response from a ListPoliciesWithResponse call

func (ListPoliciesResponse) ContentType

func (r ListPoliciesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPoliciesResponse) GetBody

func (r ListPoliciesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPoliciesResponse) GetJSON200

func (r ListPoliciesResponse) GetJSON200() *PolicyList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPoliciesResponse) GetJSONDefault

func (r ListPoliciesResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListPoliciesResponse) Status

func (r ListPoliciesResponse) Status() string

Status returns HTTPResponse.Status

func (ListPoliciesResponse) StatusCode

func (r ListPoliciesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPoliciesResponse200Headers

type ListPoliciesResponse200Headers struct {
	XTraceID string
}

ListPoliciesResponse200Headers the declared response headers of an HTTP 200 response for ListPolicies

type ListPoliciesResponseDefaultHeaders

type ListPoliciesResponseDefaultHeaders struct {
	XTraceID string
}

ListPoliciesResponseDefaultHeaders the declared response headers of an HTTP default response for ListPolicies

type ListPolicyRevisionsParams

type ListPolicyRevisionsParams struct {
	PageSize *int   `form:"pageSize,omitempty" json:"pageSize,omitempty"`
	Before   *int64 `form:"before,omitempty" json:"before,omitempty"`
}

ListPolicyRevisionsParams defines parameters for ListPolicyRevisions.

type ListPolicyRevisionsResponse

type ListPolicyRevisionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRevisionPage
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListPolicyRevisionsResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListPolicyRevisionsResponseDefaultHeaders
}

func ParseListPolicyRevisionsResponse

func ParseListPolicyRevisionsResponse(rsp *http.Response) (*ListPolicyRevisionsResponse, error)

ParseListPolicyRevisionsResponse parses an HTTP response from a ListPolicyRevisionsWithResponse call

func (ListPolicyRevisionsResponse) ContentType

func (r ListPolicyRevisionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPolicyRevisionsResponse) GetBody

func (r ListPolicyRevisionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPolicyRevisionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPolicyRevisionsResponse) GetJSONDefault

func (r ListPolicyRevisionsResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListPolicyRevisionsResponse) Status

Status returns HTTPResponse.Status

func (ListPolicyRevisionsResponse) StatusCode

func (r ListPolicyRevisionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPolicyRevisionsResponse200Headers

type ListPolicyRevisionsResponse200Headers struct {
	XTraceID string
}

ListPolicyRevisionsResponse200Headers the declared response headers of an HTTP 200 response for ListPolicyRevisions

type ListPolicyRevisionsResponseDefaultHeaders

type ListPolicyRevisionsResponseDefaultHeaders struct {
	XTraceID string
}

ListPolicyRevisionsResponseDefaultHeaders the declared response headers of an HTTP default response for ListPolicyRevisions

type ListPolicyRunsParams

type ListPolicyRunsParams struct {
	// Status Optional effective Run status. Overdue OPEN Runs match EXPIRED rather than OPEN.
	Status *RunStatusFilter `form:"status,omitempty" json:"status,omitempty"`

	// SceneKey Optional exact Scene key.
	SceneKey *RunSceneFilter `form:"sceneKey,omitempty" json:"sceneKey,omitempty"`

	// Limit Maximum number of Runs returned.
	Limit *RunLimit `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque cursor returned by the preceding page. Do not inspect or construct it.
	Cursor *RunCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListPolicyRunsParams defines parameters for ListPolicyRuns.

type ListPolicyRunsResponse

type ListPolicyRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRunPage
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListPolicyRunsResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListPolicyRunsResponseDefaultHeaders
}

func ParseListPolicyRunsResponse

func ParseListPolicyRunsResponse(rsp *http.Response) (*ListPolicyRunsResponse, error)

ParseListPolicyRunsResponse parses an HTTP response from a ListPolicyRunsWithResponse call

func (ListPolicyRunsResponse) ContentType

func (r ListPolicyRunsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPolicyRunsResponse) GetBody

func (r ListPolicyRunsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPolicyRunsResponse) GetJSON200

func (r ListPolicyRunsResponse) GetJSON200() *PolicyRunPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPolicyRunsResponse) GetJSONDefault

func (r ListPolicyRunsResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListPolicyRunsResponse) Status

func (r ListPolicyRunsResponse) Status() string

Status returns HTTPResponse.Status

func (ListPolicyRunsResponse) StatusCode

func (r ListPolicyRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPolicyRunsResponse200Headers

type ListPolicyRunsResponse200Headers struct {
	XTraceID string
}

ListPolicyRunsResponse200Headers the declared response headers of an HTTP 200 response for ListPolicyRuns

type ListPolicyRunsResponseDefaultHeaders

type ListPolicyRunsResponseDefaultHeaders struct {
	XTraceID string
}

ListPolicyRunsResponseDefaultHeaders the declared response headers of an HTTP default response for ListPolicyRuns

type ListProjectAPIKeysParams

type ListProjectAPIKeysParams struct {
	PageSize *int    `form:"pageSize,omitempty" json:"pageSize,omitempty"`
	After    *string `form:"after,omitempty" json:"after,omitempty"`
}

ListProjectAPIKeysParams defines parameters for ListProjectAPIKeys.

type ListProjectAPIKeysResponse

type ListProjectAPIKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *APIKeyPage
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListProjectAPIKeysResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListProjectAPIKeysResponseDefaultHeaders
}

func ParseListProjectAPIKeysResponse

func ParseListProjectAPIKeysResponse(rsp *http.Response) (*ListProjectAPIKeysResponse, error)

ParseListProjectAPIKeysResponse parses an HTTP response from a ListProjectAPIKeysWithResponse call

func (ListProjectAPIKeysResponse) ContentType

func (r ListProjectAPIKeysResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProjectAPIKeysResponse) GetBody

func (r ListProjectAPIKeysResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListProjectAPIKeysResponse) GetJSON200

func (r ListProjectAPIKeysResponse) GetJSON200() *APIKeyPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListProjectAPIKeysResponse) GetJSONDefault

func (r ListProjectAPIKeysResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListProjectAPIKeysResponse) Status

Status returns HTTPResponse.Status

func (ListProjectAPIKeysResponse) StatusCode

func (r ListProjectAPIKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectAPIKeysResponse200Headers

type ListProjectAPIKeysResponse200Headers struct {
	XTraceID string
}

ListProjectAPIKeysResponse200Headers the declared response headers of an HTTP 200 response for ListProjectAPIKeys

type ListProjectAPIKeysResponseDefaultHeaders

type ListProjectAPIKeysResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

ListProjectAPIKeysResponseDefaultHeaders the declared response headers of an HTTP default response for ListProjectAPIKeys

type ListSceneModelsResponse

type ListSceneModelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SceneModelList
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSceneModelsResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListSceneModelsResponseDefaultHeaders
}

func ParseListSceneModelsResponse

func ParseListSceneModelsResponse(rsp *http.Response) (*ListSceneModelsResponse, error)

ParseListSceneModelsResponse parses an HTTP response from a ListSceneModelsWithResponse call

func (ListSceneModelsResponse) ContentType

func (r ListSceneModelsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSceneModelsResponse) GetBody

func (r ListSceneModelsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSceneModelsResponse) GetJSON200

func (r ListSceneModelsResponse) GetJSON200() *SceneModelList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSceneModelsResponse) GetJSONDefault

func (r ListSceneModelsResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListSceneModelsResponse) Status

func (r ListSceneModelsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSceneModelsResponse) StatusCode

func (r ListSceneModelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSceneModelsResponse200Headers

type ListSceneModelsResponse200Headers struct {
	XTraceID string
}

ListSceneModelsResponse200Headers the declared response headers of an HTTP 200 response for ListSceneModels

type ListSceneModelsResponseDefaultHeaders

type ListSceneModelsResponseDefaultHeaders struct {
	XTraceID string
}

ListSceneModelsResponseDefaultHeaders the declared response headers of an HTTP default response for ListSceneModels

type LoginAdministratorJSONRequestBody

type LoginAdministratorJSONRequestBody = LoginRequest

LoginAdministratorJSONRequestBody defines body for LoginAdministrator for application/json ContentType.

type LoginAdministratorParams

type LoginAdministratorParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF LoginAdministratorParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

LoginAdministratorParams defines parameters for LoginAdministrator.

type LoginAdministratorParamsXGuardrailCSRF

type LoginAdministratorParamsXGuardrailCSRF string

LoginAdministratorParamsXGuardrailCSRF defines parameters for LoginAdministrator.

const (
	LoginAdministratorParamsXGuardrailCSRFN1 LoginAdministratorParamsXGuardrailCSRF = "1"
)

Defines values for LoginAdministratorParamsXGuardrailCSRF.

func (LoginAdministratorParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the LoginAdministratorParamsXGuardrailCSRF enum.

type LoginAdministratorResponse

type LoginAdministratorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *LoginResult
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *LoginAdministratorResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *LoginAdministratorResponseDefaultHeaders
}

func ParseLoginAdministratorResponse

func ParseLoginAdministratorResponse(rsp *http.Response) (*LoginAdministratorResponse, error)

ParseLoginAdministratorResponse parses an HTTP response from a LoginAdministratorWithResponse call

func (LoginAdministratorResponse) ContentType

func (r LoginAdministratorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LoginAdministratorResponse) GetBody

func (r LoginAdministratorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LoginAdministratorResponse) GetJSON201

func (r LoginAdministratorResponse) GetJSON201() *LoginResult

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (LoginAdministratorResponse) GetJSONDefault

func (r LoginAdministratorResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LoginAdministratorResponse) Status

Status returns HTTPResponse.Status

func (LoginAdministratorResponse) StatusCode

func (r LoginAdministratorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginAdministratorResponse201Headers

type LoginAdministratorResponse201Headers struct {
	SetCookie *string
	XTraceID  string
}

LoginAdministratorResponse201Headers the declared response headers of an HTTP 201 response for LoginAdministrator

type LoginAdministratorResponseDefaultHeaders

type LoginAdministratorResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

LoginAdministratorResponseDefaultHeaders the declared response headers of an HTTP default response for LoginAdministrator

type LoginRequest

type LoginRequest struct {
	Kind     *LoginRequestKind `json:"kind,omitempty"`
	Password *string           `json:"password,omitempty"`
	Username string            `json:"username"`
}

LoginRequest defines model for LoginRequest.

type LoginRequestKind

type LoginRequestKind string

LoginRequestKind defines model for LoginRequest.Kind.

const (
	Browser LoginRequestKind = "browser"
	Cli     LoginRequestKind = "cli"
)

Defines values for LoginRequestKind.

func (LoginRequestKind) Valid

func (e LoginRequestKind) Valid() bool

Valid indicates whether the value is a known member of the LoginRequestKind enum.

type LoginResult

type LoginResult struct {
	// ExpiresAt Unix timestamp in seconds
	ExpiresAt int64 `json:"expiresAt"`

	// Token Present only for CLI login; never log
	Token *string `json:"token,omitempty"`
	User  User    `json:"user"`
}

LoginResult defines model for LoginResult.

type LogoutAdministratorParams

type LogoutAdministratorParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF LogoutAdministratorParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

LogoutAdministratorParams defines parameters for LogoutAdministrator.

type LogoutAdministratorParamsXGuardrailCSRF

type LogoutAdministratorParamsXGuardrailCSRF string

LogoutAdministratorParamsXGuardrailCSRF defines parameters for LogoutAdministrator.

const (
	LogoutAdministratorParamsXGuardrailCSRFN1 LogoutAdministratorParamsXGuardrailCSRF = "1"
)

Defines values for LogoutAdministratorParamsXGuardrailCSRF.

func (LogoutAdministratorParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the LogoutAdministratorParamsXGuardrailCSRF enum.

type LogoutAdministratorResponse

type LogoutAdministratorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *LogoutAdministratorResponse204Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *LogoutAdministratorResponseDefaultHeaders
}

func ParseLogoutAdministratorResponse

func ParseLogoutAdministratorResponse(rsp *http.Response) (*LogoutAdministratorResponse, error)

ParseLogoutAdministratorResponse parses an HTTP response from a LogoutAdministratorWithResponse call

func (LogoutAdministratorResponse) ContentType

func (r LogoutAdministratorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LogoutAdministratorResponse) GetBody

func (r LogoutAdministratorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LogoutAdministratorResponse) GetJSONDefault

func (r LogoutAdministratorResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LogoutAdministratorResponse) Status

Status returns HTTPResponse.Status

func (LogoutAdministratorResponse) StatusCode

func (r LogoutAdministratorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogoutAdministratorResponse204Headers

type LogoutAdministratorResponse204Headers struct {
	XTraceID string
}

LogoutAdministratorResponse204Headers the declared response headers of an HTTP 204 response for LogoutAdministrator

type LogoutAdministratorResponseDefaultHeaders

type LogoutAdministratorResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

LogoutAdministratorResponseDefaultHeaders the declared response headers of an HTTP default response for LogoutAdministrator

type MachineScope

type MachineScope string

MachineScope defines model for MachineScope.

const (
	MachineScopePoliciesCreate             MachineScope = "policies:create"
	MachineScopeRevisionsPublish           MachineScope = "revisions:publish"
	MachineScopeRunsCreate                 MachineScope = "runs:create"
	MachineScopeRunsCreateWithRevision     MachineScope = "runs:create-with-revision"
	MachineScopeRunsRead                   MachineScope = "runs:read"
	MachineScopeSubmissionCredentialRotate MachineScope = "submission-credential:rotate"
)

Defines values for MachineScope.

func (MachineScope) Valid

func (e MachineScope) Valid() bool

Valid indicates whether the value is a known member of the MachineScope enum.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type PasswordRequest

type PasswordRequest struct {
	CurrentPassword *string `json:"currentPassword,omitempty"`

	// NewPassword at least 6 characters and at most 128 UTF-8 bytes
	NewPassword *string `json:"newPassword,omitempty"`
}

PasswordRequest defines model for PasswordRequest.

type Policy

type Policy struct {
	ActiveRevisionId *string              `json:"activeRevisionId,omitempty"`
	Id               string               `json:"id"`
	LifecycleState   PolicyLifecycleState `json:"lifecycleState"`
	Name             string               `json:"name"`
	SceneKey         SceneKey             `json:"sceneKey"`
}

Policy defines model for Policy.

type PolicyBinding

type PolicyBinding struct {
	PolicyId         string            `json:"policyId"`
	PolicyRevisionId *string           `json:"policyRevisionId,omitempty"`
	Resource         ResourceReference `json:"resource"`
}

PolicyBinding defines model for PolicyBinding.

type PolicyDraftRequest

type PolicyDraftRequest struct {
	Yaml string `json:"yaml"`
}

PolicyDraftRequest defines model for PolicyDraftRequest.

type PolicyLifecycleState

type PolicyLifecycleState string

PolicyLifecycleState defines model for Policy.LifecycleState.

const (
	ACTIVE   PolicyLifecycleState = "ACTIVE"
	ARCHIVED PolicyLifecycleState = "ARCHIVED"
)

Defines values for PolicyLifecycleState.

func (PolicyLifecycleState) Valid

func (e PolicyLifecycleState) Valid() bool

Valid indicates whether the value is a known member of the PolicyLifecycleState enum.

type PolicyList

type PolicyList = []Policy

PolicyList defines model for PolicyList.

type PolicyRevision

type PolicyRevision struct {
	// Digest Present only for PUBLISHED Revisions.
	Digest   *string `json:"digest,omitempty"`
	Id       string  `json:"id"`
	PolicyId string  `json:"policyId"`

	// PublishedAt Present only for PUBLISHED Revisions.
	PublishedAt *int64 `json:"publishedAt,omitempty"`

	// PublishedBy Present only for PUBLISHED Revisions.
	PublishedBy *string `json:"publishedBy,omitempty"`

	// RevisionNumber Present only for PUBLISHED Revisions.
	RevisionNumber *int64               `json:"revisionNumber,omitempty"`
	Status         PolicyRevisionStatus `json:"status"`
	UpdatedAt      int64                `json:"updatedAt"`
	UpdatedBy      string               `json:"updatedBy"`
	Yaml           string               `json:"yaml"`
}

PolicyRevision defines model for PolicyRevision.

type PolicyRevisionPage

type PolicyRevisionPage struct {
	Items      []RevisionSummary `json:"items"`
	NextBefore *int64            `json:"nextBefore,omitempty"`
}

PolicyRevisionPage defines model for PolicyRevisionPage.

type PolicyRevisionStatus

type PolicyRevisionStatus string

PolicyRevisionStatus defines model for PolicyRevision.Status.

const (
	DRAFT     PolicyRevisionStatus = "DRAFT"
	PUBLISHED PolicyRevisionStatus = "PUBLISHED"
)

Defines values for PolicyRevisionStatus.

func (PolicyRevisionStatus) Valid

func (e PolicyRevisionStatus) Valid() bool

Valid indicates whether the value is a known member of the PolicyRevisionStatus enum.

type PolicyRun

type PolicyRun struct {
	ChangeSet          json.RawMessage `json:"changeSet"`
	ChangeSetDigest    string          `json:"changeSetDigest"`
	CreatedAt          int64           `json:"createdAt"`
	DeadlineAt         int64           `json:"deadlineAt"`
	Decision           *Decision       `json:"decision,omitempty"`
	DecisionExpiresAt  *int64          `json:"decisionExpiresAt,omitempty"`
	ExpiredAt          *int64          `json:"expiredAt,omitempty"`
	FinalSubmissionId  *string         `json:"finalSubmissionId,omitempty"`
	FinishedAt         *int64          `json:"finishedAt,omitempty"`
	Id                 string          `json:"id"`
	LatestSubmissionNo int64           `json:"latestSubmissionNo"`
	PolicyId           string          `json:"policyId"`
	PolicyRevisionId   string          `json:"policyRevisionId"`
	Result             *RunResult      `json:"result,omitempty"`
	RunTtlSeconds      int64           `json:"runTtlSeconds"`
	SceneKey           SceneKey        `json:"sceneKey"`

	// Selection Optional frozen selection details beyond the Policy and final Revision IDs on the Run. New Runs record matched resource bindings only; default and explicit-Revision selection omit this field. Existing evidence or its absence stays unchanged. Resources contain only the matched group.
	Selection  *RunSelection   `json:"selection,omitempty"`
	SpecDigest string          `json:"specDigest"`
	Status     PolicyRunStatus `json:"status"`
}

PolicyRun defines model for PolicyRun.

type PolicyRunCreation

type PolicyRunCreation struct {
	Run                  PolicyRun               `json:"run"`
	SubmissionCredential RunSubmissionCredential `json:"submissionCredential"`
}

PolicyRunCreation defines model for PolicyRunCreation.

type PolicyRunPage

type PolicyRunPage struct {
	Items      []PolicyRunSummary `json:"items"`
	NextCursor *string            `json:"nextCursor,omitempty"`
}

PolicyRunPage defines model for PolicyRunPage.

type PolicyRunStatus

type PolicyRunStatus string

PolicyRunStatus defines model for PolicyRun.Status.

const (
	PolicyRunStatusEXPIRED  PolicyRunStatus = "EXPIRED"
	PolicyRunStatusFINISHED PolicyRunStatus = "FINISHED"
	PolicyRunStatusOPEN     PolicyRunStatus = "OPEN"
)

Defines values for PolicyRunStatus.

func (PolicyRunStatus) Valid

func (e PolicyRunStatus) Valid() bool

Valid indicates whether the value is a known member of the PolicyRunStatus enum.

type PolicyRunSummary

type PolicyRunSummary struct {
	ChangeSetDigest    string                 `json:"changeSetDigest"`
	CreatedAt          int64                  `json:"createdAt"`
	DeadlineAt         int64                  `json:"deadlineAt"`
	Decision           *Decision              `json:"decision,omitempty"`
	DecisionExpiresAt  *int64                 `json:"decisionExpiresAt,omitempty"`
	ExpiredAt          *int64                 `json:"expiredAt,omitempty"`
	FinalSubmissionId  *string                `json:"finalSubmissionId,omitempty"`
	FinishedAt         *int64                 `json:"finishedAt,omitempty"`
	Id                 string                 `json:"id"`
	LatestSubmissionNo int64                  `json:"latestSubmissionNo"`
	PolicyId           string                 `json:"policyId"`
	PolicyRevisionId   string                 `json:"policyRevisionId"`
	Result             *RunResult             `json:"result,omitempty"`
	RunTtlSeconds      int64                  `json:"runTtlSeconds"`
	SceneKey           SceneKey               `json:"sceneKey"`
	SpecDigest         string                 `json:"specDigest"`
	Status             PolicyRunSummaryStatus `json:"status"`
}

PolicyRunSummary Bounded Run list item. Read the Run detail endpoint for changeSet.

type PolicyRunSummaryStatus

type PolicyRunSummaryStatus string

PolicyRunSummaryStatus defines model for PolicyRunSummary.Status.

const (
	PolicyRunSummaryStatusEXPIRED  PolicyRunSummaryStatus = "EXPIRED"
	PolicyRunSummaryStatusFINISHED PolicyRunSummaryStatus = "FINISHED"
	PolicyRunSummaryStatusOPEN     PolicyRunSummaryStatus = "OPEN"
)

Defines values for PolicyRunSummaryStatus.

func (PolicyRunSummaryStatus) Valid

func (e PolicyRunSummaryStatus) Valid() bool

Valid indicates whether the value is a known member of the PolicyRunSummaryStatus enum.

type Principal

type Principal struct {
	Kind      PrincipalKind `json:"kind"`
	ProjectId string        `json:"projectId"`
	Role      PrincipalRole `json:"role"`

	// Scopes Complete persisted machine permissions used for authorization.
	Scopes      []MachineScope `json:"scopes"`
	User        *User          `json:"user,omitempty"`
	WorkspaceId string         `json:"workspaceId"`
}

Principal defines model for Principal.

type PrincipalKind

type PrincipalKind string

PrincipalKind defines model for Principal.Kind.

const (
	PrincipalKindAdmin  PrincipalKind = "admin"
	PrincipalKindApiKey PrincipalKind = "api_key"
)

Defines values for PrincipalKind.

func (PrincipalKind) Valid

func (e PrincipalKind) Valid() bool

Valid indicates whether the value is a known member of the PrincipalKind enum.

type PrincipalRole

type PrincipalRole string

PrincipalRole defines model for Principal.Role.

const (
	PrincipalRoleAdmin           PrincipalRole = "ADMIN"
	PrincipalRolePolicyPublisher PrincipalRole = "POLICY_PUBLISHER"
	PrincipalRoleRunOrchestrator PrincipalRole = "RUN_ORCHESTRATOR"
)

Defines values for PrincipalRole.

func (PrincipalRole) Valid

func (e PrincipalRole) Valid() bool

Valid indicates whether the value is a known member of the PrincipalRole enum.

type PublishPolicyDraftJSONRequestBody

type PublishPolicyDraftJSONRequestBody = PolicyDraftRequest

PublishPolicyDraftJSONRequestBody defines body for PublishPolicyDraft for application/json ContentType.

type PublishPolicyDraftParams

type PublishPolicyDraftParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF PublishPolicyDraftParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`

	// IdempotencyKey Stable caller operation ID; scoped to the authenticated Project and not a credential or Run ID
	IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}

PublishPolicyDraftParams defines parameters for PublishPolicyDraft.

type PublishPolicyDraftParamsXGuardrailCSRF

type PublishPolicyDraftParamsXGuardrailCSRF string

PublishPolicyDraftParamsXGuardrailCSRF defines parameters for PublishPolicyDraft.

const (
	PublishPolicyDraftParamsXGuardrailCSRFN1 PublishPolicyDraftParamsXGuardrailCSRF = "1"
)

Defines values for PublishPolicyDraftParamsXGuardrailCSRF.

func (PublishPolicyDraftParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the PublishPolicyDraftParamsXGuardrailCSRF enum.

type PublishPolicyDraftResponse

type PublishPolicyDraftResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *PolicyRevision
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *PublishPolicyDraftResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *PublishPolicyDraftResponseDefaultHeaders
}

func ParsePublishPolicyDraftResponse

func ParsePublishPolicyDraftResponse(rsp *http.Response) (*PublishPolicyDraftResponse, error)

ParsePublishPolicyDraftResponse parses an HTTP response from a PublishPolicyDraftWithResponse call

func (PublishPolicyDraftResponse) ContentType

func (r PublishPolicyDraftResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PublishPolicyDraftResponse) GetBody

func (r PublishPolicyDraftResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PublishPolicyDraftResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PublishPolicyDraftResponse) GetJSONDefault

func (r PublishPolicyDraftResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (PublishPolicyDraftResponse) Status

Status returns HTTPResponse.Status

func (PublishPolicyDraftResponse) StatusCode

func (r PublishPolicyDraftResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PublishPolicyDraftResponse201Headers

type PublishPolicyDraftResponse201Headers struct {
	XTraceID string
}

PublishPolicyDraftResponse201Headers the declared response headers of an HTTP 201 response for PublishPolicyDraft

type PublishPolicyDraftResponseDefaultHeaders

type PublishPolicyDraftResponseDefaultHeaders struct {
	XTraceID string
}

PublishPolicyDraftResponseDefaultHeaders the declared response headers of an HTTP default response for PublishPolicyDraft

type PublishPolicyRevisionJSONRequestBody

type PublishPolicyRevisionJSONRequestBody = PublishPolicyRevisionRequest

PublishPolicyRevisionJSONRequestBody defines body for PublishPolicyRevision for application/json ContentType.

type PublishPolicyRevisionParams

type PublishPolicyRevisionParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF PublishPolicyRevisionParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`

	// IdempotencyKey Stable caller operation ID; scoped to the authenticated Project and not a credential or Run ID
	IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}

PublishPolicyRevisionParams defines parameters for PublishPolicyRevision.

type PublishPolicyRevisionParamsXGuardrailCSRF

type PublishPolicyRevisionParamsXGuardrailCSRF string

PublishPolicyRevisionParamsXGuardrailCSRF defines parameters for PublishPolicyRevision.

const (
	PublishPolicyRevisionParamsXGuardrailCSRFN1 PublishPolicyRevisionParamsXGuardrailCSRF = "1"
)

Defines values for PublishPolicyRevisionParamsXGuardrailCSRF.

func (PublishPolicyRevisionParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the PublishPolicyRevisionParamsXGuardrailCSRF enum.

type PublishPolicyRevisionRequest

type PublishPolicyRevisionRequest struct {
	Yaml string `json:"yaml"`
}

PublishPolicyRevisionRequest defines model for PublishPolicyRevisionRequest.

type PublishPolicyRevisionResponse

type PublishPolicyRevisionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *PolicyRevision
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *PublishPolicyRevisionResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *PublishPolicyRevisionResponseDefaultHeaders
}

func ParsePublishPolicyRevisionResponse

func ParsePublishPolicyRevisionResponse(rsp *http.Response) (*PublishPolicyRevisionResponse, error)

ParsePublishPolicyRevisionResponse parses an HTTP response from a PublishPolicyRevisionWithResponse call

func (PublishPolicyRevisionResponse) ContentType

func (r PublishPolicyRevisionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PublishPolicyRevisionResponse) GetBody

func (r PublishPolicyRevisionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PublishPolicyRevisionResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (PublishPolicyRevisionResponse) GetJSONDefault

func (r PublishPolicyRevisionResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (PublishPolicyRevisionResponse) Status

Status returns HTTPResponse.Status

func (PublishPolicyRevisionResponse) StatusCode

func (r PublishPolicyRevisionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PublishPolicyRevisionResponse201Headers

type PublishPolicyRevisionResponse201Headers struct {
	XTraceID string
}

PublishPolicyRevisionResponse201Headers the declared response headers of an HTTP 201 response for PublishPolicyRevision

type PublishPolicyRevisionResponseDefaultHeaders

type PublishPolicyRevisionResponseDefaultHeaders struct {
	XTraceID string
}

PublishPolicyRevisionResponseDefaultHeaders the declared response headers of an HTTP default response for PublishPolicyRevision

type PutBindingJSONRequestBody

type PutBindingJSONRequestBody = PutBindingRequest

PutBindingJSONRequestBody defines body for PutBinding for application/json ContentType.

type PutBindingParams

type PutBindingParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF PutBindingParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

PutBindingParams defines parameters for PutBinding.

type PutBindingParamsXGuardrailCSRF

type PutBindingParamsXGuardrailCSRF string

PutBindingParamsXGuardrailCSRF defines parameters for PutBinding.

const (
	PutBindingParamsXGuardrailCSRFN1 PutBindingParamsXGuardrailCSRF = "1"
)

Defines values for PutBindingParamsXGuardrailCSRF.

func (PutBindingParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the PutBindingParamsXGuardrailCSRF enum.

type PutBindingRequest

type PutBindingRequest struct {
	PolicyId         string  `json:"policyId"`
	PolicyRevisionId *string `json:"policyRevisionId,omitempty"`
}

PutBindingRequest defines model for PutBindingRequest.

type PutBindingResponse

type PutBindingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyBinding
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *PutBindingResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *PutBindingResponseDefaultHeaders
}

func ParsePutBindingResponse

func ParsePutBindingResponse(rsp *http.Response) (*PutBindingResponse, error)

ParsePutBindingResponse parses an HTTP response from a PutBindingWithResponse call

func (PutBindingResponse) ContentType

func (r PutBindingResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PutBindingResponse) GetBody

func (r PutBindingResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PutBindingResponse) GetJSON200

func (r PutBindingResponse) GetJSON200() *PolicyBinding

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PutBindingResponse) GetJSONDefault

func (r PutBindingResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (PutBindingResponse) Status

func (r PutBindingResponse) Status() string

Status returns HTTPResponse.Status

func (PutBindingResponse) StatusCode

func (r PutBindingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutBindingResponse200Headers

type PutBindingResponse200Headers struct {
	XTraceID string
}

PutBindingResponse200Headers the declared response headers of an HTTP 200 response for PutBinding

type PutBindingResponseDefaultHeaders

type PutBindingResponseDefaultHeaders struct {
	XTraceID string
}

PutBindingResponseDefaultHeaders the declared response headers of an HTTP default response for PutBinding

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ResourceReference

type ResourceReference struct {
	Id   string `json:"id"`
	Kind string `json:"kind"`
}

ResourceReference defines model for ResourceReference.

type RevisionSummary

type RevisionSummary struct {
	Digest         string `json:"digest"`
	Id             string `json:"id"`
	PolicyId       string `json:"policyId"`
	PublishedAt    int64  `json:"publishedAt"`
	PublishedBy    string `json:"publishedBy"`
	RevisionNumber int64  `json:"revisionNumber"`
}

RevisionSummary defines model for RevisionSummary.

type RevokeProjectAPIKeyParams

type RevokeProjectAPIKeyParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF RevokeProjectAPIKeyParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

RevokeProjectAPIKeyParams defines parameters for RevokeProjectAPIKey.

type RevokeProjectAPIKeyParamsXGuardrailCSRF

type RevokeProjectAPIKeyParamsXGuardrailCSRF string

RevokeProjectAPIKeyParamsXGuardrailCSRF defines parameters for RevokeProjectAPIKey.

const (
	RevokeProjectAPIKeyParamsXGuardrailCSRFN1 RevokeProjectAPIKeyParamsXGuardrailCSRF = "1"
)

Defines values for RevokeProjectAPIKeyParamsXGuardrailCSRF.

func (RevokeProjectAPIKeyParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the RevokeProjectAPIKeyParamsXGuardrailCSRF enum.

type RevokeProjectAPIKeyResponse

type RevokeProjectAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *RevokeProjectAPIKeyResponse204Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *RevokeProjectAPIKeyResponseDefaultHeaders
}

func ParseRevokeProjectAPIKeyResponse

func ParseRevokeProjectAPIKeyResponse(rsp *http.Response) (*RevokeProjectAPIKeyResponse, error)

ParseRevokeProjectAPIKeyResponse parses an HTTP response from a RevokeProjectAPIKeyWithResponse call

func (RevokeProjectAPIKeyResponse) ContentType

func (r RevokeProjectAPIKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeProjectAPIKeyResponse) GetBody

func (r RevokeProjectAPIKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeProjectAPIKeyResponse) GetJSONDefault

func (r RevokeProjectAPIKeyResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RevokeProjectAPIKeyResponse) Status

Status returns HTTPResponse.Status

func (RevokeProjectAPIKeyResponse) StatusCode

func (r RevokeProjectAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeProjectAPIKeyResponse204Headers

type RevokeProjectAPIKeyResponse204Headers struct {
	XTraceID string
}

RevokeProjectAPIKeyResponse204Headers the declared response headers of an HTTP 204 response for RevokeProjectAPIKey

type RevokeProjectAPIKeyResponseDefaultHeaders

type RevokeProjectAPIKeyResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

RevokeProjectAPIKeyResponseDefaultHeaders the declared response headers of an HTTP default response for RevokeProjectAPIKey

type RotateAPIKeyRequest

type RotateAPIKeyRequest struct {
	ExpectedVersion int64 `json:"expectedVersion"`

	// ExpiresInSeconds Omit to preserve the current expiry
	ExpiresInSeconds *int64 `json:"expiresInSeconds,omitempty"`
}

RotateAPIKeyRequest defines model for RotateAPIKeyRequest.

type RotatePolicySubmissionCredentialResponse

type RotatePolicySubmissionCredentialResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *RunSubmissionCredential
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *RotatePolicySubmissionCredentialResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *RotatePolicySubmissionCredentialResponseDefaultHeaders
}

func ParseRotatePolicySubmissionCredentialResponse

func ParseRotatePolicySubmissionCredentialResponse(rsp *http.Response) (*RotatePolicySubmissionCredentialResponse, error)

ParseRotatePolicySubmissionCredentialResponse parses an HTTP response from a RotatePolicySubmissionCredentialWithResponse call

func (RotatePolicySubmissionCredentialResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RotatePolicySubmissionCredentialResponse) GetBody

GetBody returns the raw response body bytes

func (RotatePolicySubmissionCredentialResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (RotatePolicySubmissionCredentialResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RotatePolicySubmissionCredentialResponse) Status

Status returns HTTPResponse.Status

func (RotatePolicySubmissionCredentialResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RotatePolicySubmissionCredentialResponse201Headers

type RotatePolicySubmissionCredentialResponse201Headers struct {
	XTraceID string
}

RotatePolicySubmissionCredentialResponse201Headers the declared response headers of an HTTP 201 response for RotatePolicySubmissionCredential

type RotatePolicySubmissionCredentialResponseDefaultHeaders

type RotatePolicySubmissionCredentialResponseDefaultHeaders struct {
	XTraceID string
}

RotatePolicySubmissionCredentialResponseDefaultHeaders the declared response headers of an HTTP default response for RotatePolicySubmissionCredential

type RotateProjectAPIKeyJSONRequestBody

type RotateProjectAPIKeyJSONRequestBody = RotateAPIKeyRequest

RotateProjectAPIKeyJSONRequestBody defines body for RotateProjectAPIKey for application/json ContentType.

type RotateProjectAPIKeyParams

type RotateProjectAPIKeyParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF RotateProjectAPIKeyParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

RotateProjectAPIKeyParams defines parameters for RotateProjectAPIKey.

type RotateProjectAPIKeyParamsXGuardrailCSRF

type RotateProjectAPIKeyParamsXGuardrailCSRF string

RotateProjectAPIKeyParamsXGuardrailCSRF defines parameters for RotateProjectAPIKey.

const (
	RotateProjectAPIKeyParamsXGuardrailCSRFN1 RotateProjectAPIKeyParamsXGuardrailCSRF = "1"
)

Defines values for RotateProjectAPIKeyParamsXGuardrailCSRF.

func (RotateProjectAPIKeyParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the RotateProjectAPIKeyParamsXGuardrailCSRF enum.

type RotateProjectAPIKeyResponse

type RotateProjectAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *APIKeyResult
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *IdentityError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *RotateProjectAPIKeyResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *RotateProjectAPIKeyResponseDefaultHeaders
}

func ParseRotateProjectAPIKeyResponse

func ParseRotateProjectAPIKeyResponse(rsp *http.Response) (*RotateProjectAPIKeyResponse, error)

ParseRotateProjectAPIKeyResponse parses an HTTP response from a RotateProjectAPIKeyWithResponse call

func (RotateProjectAPIKeyResponse) ContentType

func (r RotateProjectAPIKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RotateProjectAPIKeyResponse) GetBody

func (r RotateProjectAPIKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RotateProjectAPIKeyResponse) GetJSON201

func (r RotateProjectAPIKeyResponse) GetJSON201() *APIKeyResult

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (RotateProjectAPIKeyResponse) GetJSONDefault

func (r RotateProjectAPIKeyResponse) GetJSONDefault() *IdentityError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RotateProjectAPIKeyResponse) Status

Status returns HTTPResponse.Status

func (RotateProjectAPIKeyResponse) StatusCode

func (r RotateProjectAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RotateProjectAPIKeyResponse201Headers

type RotateProjectAPIKeyResponse201Headers struct {
	XTraceID string
}

RotateProjectAPIKeyResponse201Headers the declared response headers of an HTTP 201 response for RotateProjectAPIKey

type RotateProjectAPIKeyResponseDefaultHeaders

type RotateProjectAPIKeyResponseDefaultHeaders struct {
	RetryAfter *int
	XTraceID   string
}

RotateProjectAPIKeyResponseDefaultHeaders the declared response headers of an HTTP default response for RotateProjectAPIKey

type RunCursor

type RunCursor = string

RunCursor defines model for RunCursor.

type RunError

type RunError = Error

RunError defines model for RunError.

type RunLimit

type RunLimit = int

RunLimit defines model for RunLimit.

type RunResult

type RunResult string

RunResult defines model for RunResult.

const (
	BLOCKED RunResult = "BLOCKED"
	PASS    RunResult = "PASS"
	UNKNOWN RunResult = "UNKNOWN"
)

Defines values for RunResult.

func (RunResult) Valid

func (e RunResult) Valid() bool

Valid indicates whether the value is a known member of the RunResult enum.

type RunSceneFilter

type RunSceneFilter = SceneKey

RunSceneFilter defines model for RunSceneFilter.

type RunSelection

type RunSelection struct {
	Resources *[]ResourceReference `json:"resources,omitempty"`

	// RevisionMode Present only for binding selections; explains the binding at Run creation.
	RevisionMode *RunSelectionRevisionMode `json:"revisionMode,omitempty"`
	Source       RunSelectionSource        `json:"source"`
}

RunSelection Optional frozen selection details beyond the Policy and final Revision IDs on the Run. New Runs record matched resource bindings only; default and explicit-Revision selection omit this field. Existing evidence or its absence stays unchanged. Resources contain only the matched group.

type RunSelectionRevisionMode

type RunSelectionRevisionMode string

RunSelectionRevisionMode Present only for binding selections; explains the binding at Run creation.

const (
	Active RunSelectionRevisionMode = "active"
	Pinned RunSelectionRevisionMode = "pinned"
)

Defines values for RunSelectionRevisionMode.

func (RunSelectionRevisionMode) Valid

func (e RunSelectionRevisionMode) Valid() bool

Valid indicates whether the value is a known member of the RunSelectionRevisionMode enum.

type RunSelectionSource

type RunSelectionSource string

RunSelectionSource defines model for RunSelection.Source.

const (
	Binding RunSelectionSource = "binding"
)

Defines values for RunSelectionSource.

func (RunSelectionSource) Valid

func (e RunSelectionSource) Valid() bool

Valid indicates whether the value is a known member of the RunSelectionSource enum.

type RunStatus

type RunStatus string

RunStatus defines model for RunStatus.

const (
	RunStatusEXPIRED  RunStatus = "EXPIRED"
	RunStatusFINISHED RunStatus = "FINISHED"
	RunStatusOPEN     RunStatus = "OPEN"
)

Defines values for RunStatus.

func (RunStatus) Valid

func (e RunStatus) Valid() bool

Valid indicates whether the value is a known member of the RunStatus enum.

type RunStatusFilter

type RunStatusFilter = RunStatus

RunStatusFilter defines model for RunStatusFilter.

type RunSubmissionCredential

type RunSubmissionCredential struct {
	ExpiresAt int64  `json:"expiresAt"`
	RunId     string `json:"runId"`

	// Token Plaintext returned only on creation or rotation
	Token string `json:"token"`
}

RunSubmissionCredential defines model for RunSubmissionCredential.

type SavePolicyDraftJSONRequestBody

type SavePolicyDraftJSONRequestBody = PolicyDraftRequest

SavePolicyDraftJSONRequestBody defines body for SavePolicyDraft for application/json ContentType.

type SavePolicyDraftParams

type SavePolicyDraftParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF SavePolicyDraftParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

SavePolicyDraftParams defines parameters for SavePolicyDraft.

type SavePolicyDraftParamsXGuardrailCSRF

type SavePolicyDraftParamsXGuardrailCSRF string

SavePolicyDraftParamsXGuardrailCSRF defines parameters for SavePolicyDraft.

const (
	SavePolicyDraftParamsXGuardrailCSRFN1 SavePolicyDraftParamsXGuardrailCSRF = "1"
)

Defines values for SavePolicyDraftParamsXGuardrailCSRF.

func (SavePolicyDraftParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the SavePolicyDraftParamsXGuardrailCSRF enum.

type SavePolicyDraftResponse

type SavePolicyDraftResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PolicyRevision
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SavePolicyDraftResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *SavePolicyDraftResponseDefaultHeaders
}

func ParseSavePolicyDraftResponse

func ParseSavePolicyDraftResponse(rsp *http.Response) (*SavePolicyDraftResponse, error)

ParseSavePolicyDraftResponse parses an HTTP response from a SavePolicyDraftWithResponse call

func (SavePolicyDraftResponse) ContentType

func (r SavePolicyDraftResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SavePolicyDraftResponse) GetBody

func (r SavePolicyDraftResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SavePolicyDraftResponse) GetJSON200

func (r SavePolicyDraftResponse) GetJSON200() *PolicyRevision

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SavePolicyDraftResponse) GetJSONDefault

func (r SavePolicyDraftResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SavePolicyDraftResponse) Status

func (r SavePolicyDraftResponse) Status() string

Status returns HTTPResponse.Status

func (SavePolicyDraftResponse) StatusCode

func (r SavePolicyDraftResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SavePolicyDraftResponse200Headers

type SavePolicyDraftResponse200Headers struct {
	XTraceID string
}

SavePolicyDraftResponse200Headers the declared response headers of an HTTP 200 response for SavePolicyDraft

type SavePolicyDraftResponseDefaultHeaders

type SavePolicyDraftResponseDefaultHeaders struct {
	XTraceID string
}

SavePolicyDraftResponseDefaultHeaders the declared response headers of an HTTP default response for SavePolicyDraft

type SceneKey

type SceneKey = string

SceneKey defines model for SceneKey.

type SceneModel

type SceneModel struct {
	DefaultPolicyId *string  `json:"defaultPolicyId,omitempty"`
	Key             SceneKey `json:"key"`
	Name            string   `json:"name"`
	RunTtlSeconds   int64    `json:"runTtlSeconds"`
}

SceneModel defines model for SceneModel.

type SceneModelList

type SceneModelList = []SceneModel

SceneModelList defines model for SceneModelList.

type ServeMux

type ServeMux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	http.Handler
}

ServeMux is an abstraction of http.ServeMux.

type ServerInterface

type ServerInterface interface {

	// (GET /api/v1alpha1/auth/api-keys)
	ListProjectAPIKeys(w http.ResponseWriter, r *http.Request, params ListProjectAPIKeysParams)

	// (POST /api/v1alpha1/auth/api-keys)
	CreateProjectAPIKey(w http.ResponseWriter, r *http.Request, params CreateProjectAPIKeyParams)

	// (DELETE /api/v1alpha1/auth/api-keys/{keyId})
	RevokeProjectAPIKey(w http.ResponseWriter, r *http.Request, keyId APIKeyID, params RevokeProjectAPIKeyParams)

	// (POST /api/v1alpha1/auth/api-keys/{keyId}/rotation)
	RotateProjectAPIKey(w http.ResponseWriter, r *http.Request, keyId APIKeyID, params RotateProjectAPIKeyParams)

	// (GET /api/v1alpha1/auth/me)
	GetCurrentAdministrator(w http.ResponseWriter, r *http.Request)

	// (PUT /api/v1alpha1/auth/password)
	ChangeAdministratorPassword(w http.ResponseWriter, r *http.Request, params ChangeAdministratorPasswordParams)

	// (DELETE /api/v1alpha1/auth/session)
	LogoutAdministrator(w http.ResponseWriter, r *http.Request, params LogoutAdministratorParams)

	// (POST /api/v1alpha1/auth/session)
	LoginAdministrator(w http.ResponseWriter, r *http.Request, params LoginAdministratorParams)

	// (GET /api/v1alpha1/bootstrap)
	GetBootstrapStatus(w http.ResponseWriter, r *http.Request)

	// (POST /api/v1alpha1/bootstrap)
	BootstrapAdministrator(w http.ResponseWriter, r *http.Request, params BootstrapAdministratorParams)

	// (GET /api/v1alpha1/meta/capabilities)
	GetCapabilities(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1alpha1/meta/version)
	GetVersion(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1alpha1/policies/{policyId})
	GetPolicy(w http.ResponseWriter, r *http.Request, policyId string)

	// (PUT /api/v1alpha1/policies/{policyId}/active-revision)
	ActivatePolicyRevision(w http.ResponseWriter, r *http.Request, policyId string, params ActivatePolicyRevisionParams)

	// (GET /api/v1alpha1/policies/{policyId}/draft)
	GetPolicyDraft(w http.ResponseWriter, r *http.Request, policyId string)

	// (PUT /api/v1alpha1/policies/{policyId}/draft)
	SavePolicyDraft(w http.ResponseWriter, r *http.Request, policyId string, params SavePolicyDraftParams)

	// (POST /api/v1alpha1/policies/{policyId}/draft:publish)
	PublishPolicyDraft(w http.ResponseWriter, r *http.Request, policyId string, params PublishPolicyDraftParams)

	// (GET /api/v1alpha1/policies/{policyId}/revisions)
	ListPolicyRevisions(w http.ResponseWriter, r *http.Request, policyId string, params ListPolicyRevisionsParams)

	// (POST /api/v1alpha1/policies/{policyId}/revisions)
	PublishPolicyRevision(w http.ResponseWriter, r *http.Request, policyId string, params PublishPolicyRevisionParams)

	// (POST /api/v1alpha1/policies/{policyId}:archive)
	ArchivePolicy(w http.ResponseWriter, r *http.Request, policyId string, params ArchivePolicyParams)

	// (POST /api/v1alpha1/policies/{policyId}:unarchive)
	UnarchivePolicy(w http.ResponseWriter, r *http.Request, policyId string, params UnarchivePolicyParams)

	// (GET /api/v1alpha1/policy-revisions/{revisionId})
	GetPolicyRevision(w http.ResponseWriter, r *http.Request, revisionId string)

	// (GET /api/v1alpha1/runs)
	ListManagedPolicyRuns(w http.ResponseWriter, r *http.Request, params ListManagedPolicyRunsParams)

	// (GET /api/v1alpha1/runs/{runId})
	GetManagedPolicyRun(w http.ResponseWriter, r *http.Request, runId string)

	// (GET /api/v1alpha1/runs/{runId}/submissions)
	ListManagedRunSubmissions(w http.ResponseWriter, r *http.Request, runId string, params ListManagedRunSubmissionsParams)

	// (GET /api/v1alpha1/runs/{runId}/submissions/{submissionId})
	GetManagedRunSubmission(w http.ResponseWriter, r *http.Request, runId string, submissionId string)

	// (GET /api/v1alpha1/scenes)
	ListSceneModels(w http.ResponseWriter, r *http.Request)

	// (GET /api/v1alpha1/scenes/{key})
	GetSceneModel(w http.ResponseWriter, r *http.Request, key string)

	// (PATCH /api/v1alpha1/scenes/{key})
	SetSceneTTL(w http.ResponseWriter, r *http.Request, key string, params SetSceneTTLParams)

	// (GET /api/v1alpha1/scenes/{key}/bindings)
	ListBindings(w http.ResponseWriter, r *http.Request, key string, params ListBindingsParams)

	// (DELETE /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId})
	DeleteBinding(w http.ResponseWriter, r *http.Request, key string, kind string, resourceId string, params DeleteBindingParams)

	// (PUT /api/v1alpha1/scenes/{key}/bindings/{kind}/{resourceId})
	PutBinding(w http.ResponseWriter, r *http.Request, key string, kind string, resourceId string, params PutBindingParams)

	// (PUT /api/v1alpha1/scenes/{key}/default-policy)
	SetDefaultPolicy(w http.ResponseWriter, r *http.Request, key string, params SetDefaultPolicyParams)

	// (GET /api/v1alpha1/scenes/{key}/policies)
	ListPolicies(w http.ResponseWriter, r *http.Request, key string)

	// (POST /api/v1alpha1/scenes/{key}/policies)
	CreatePolicy(w http.ResponseWriter, r *http.Request, key string, params CreatePolicyParams)

	// (POST /api/v1alpha1/scenes/{key}:initialize)
	InitializeScene(w http.ResponseWriter, r *http.Request, key string, params InitializeSceneParams)

	// (GET /livez)
	GetLiveness(w http.ResponseWriter, r *http.Request)

	// (GET /openapi.yaml)
	GetOpenAPI(w http.ResponseWriter, r *http.Request)

	// (GET /readyz)
	GetReadiness(w http.ResponseWriter, r *http.Request)

	// (GET /runtime/v1alpha1/identity)
	GetMachineIdentity(w http.ResponseWriter, r *http.Request)

	// (GET /runtime/v1alpha1/runs)
	ListPolicyRuns(w http.ResponseWriter, r *http.Request, params ListPolicyRunsParams)

	// (POST /runtime/v1alpha1/runs)
	CreatePolicyRun(w http.ResponseWriter, r *http.Request, params CreatePolicyRunParams)

	// (GET /runtime/v1alpha1/runs/{runId})
	GetPolicyRun(w http.ResponseWriter, r *http.Request, runId string)

	// (GET /runtime/v1alpha1/runs/{runId}/policy-revision)
	GetRunPolicyRevision(w http.ResponseWriter, r *http.Request, runId string)

	// (POST /runtime/v1alpha1/runs/{runId}/submission-credential:rotate)
	RotatePolicySubmissionCredential(w http.ResponseWriter, r *http.Request, runId string)

	// (POST /runtime/v1alpha1/runs/{runId}/submissions)
	SubmitSnapshot(w http.ResponseWriter, r *http.Request, runId string, params SubmitSnapshotParams)

	// (GET /runtime/v1alpha1/runs/{runId}/submissions/{submissionId})
	GetRunSubmission(w http.ResponseWriter, r *http.Request, runId string, submissionId string)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) ActivatePolicyRevision

func (siw *ServerInterfaceWrapper) ActivatePolicyRevision(w http.ResponseWriter, r *http.Request)

ActivatePolicyRevision operation middleware

func (*ServerInterfaceWrapper) ArchivePolicy

func (siw *ServerInterfaceWrapper) ArchivePolicy(w http.ResponseWriter, r *http.Request)

ArchivePolicy operation middleware

func (*ServerInterfaceWrapper) BootstrapAdministrator

func (siw *ServerInterfaceWrapper) BootstrapAdministrator(w http.ResponseWriter, r *http.Request)

BootstrapAdministrator operation middleware

func (*ServerInterfaceWrapper) ChangeAdministratorPassword

func (siw *ServerInterfaceWrapper) ChangeAdministratorPassword(w http.ResponseWriter, r *http.Request)

ChangeAdministratorPassword operation middleware

func (*ServerInterfaceWrapper) CreatePolicy

func (siw *ServerInterfaceWrapper) CreatePolicy(w http.ResponseWriter, r *http.Request)

CreatePolicy operation middleware

func (*ServerInterfaceWrapper) CreatePolicyRun

func (siw *ServerInterfaceWrapper) CreatePolicyRun(w http.ResponseWriter, r *http.Request)

CreatePolicyRun operation middleware

func (*ServerInterfaceWrapper) CreateProjectAPIKey

func (siw *ServerInterfaceWrapper) CreateProjectAPIKey(w http.ResponseWriter, r *http.Request)

CreateProjectAPIKey operation middleware

func (*ServerInterfaceWrapper) DeleteBinding

func (siw *ServerInterfaceWrapper) DeleteBinding(w http.ResponseWriter, r *http.Request)

DeleteBinding operation middleware

func (*ServerInterfaceWrapper) GetBootstrapStatus

func (siw *ServerInterfaceWrapper) GetBootstrapStatus(w http.ResponseWriter, r *http.Request)

GetBootstrapStatus operation middleware

func (*ServerInterfaceWrapper) GetCapabilities

func (siw *ServerInterfaceWrapper) GetCapabilities(w http.ResponseWriter, r *http.Request)

GetCapabilities operation middleware

func (*ServerInterfaceWrapper) GetCurrentAdministrator

func (siw *ServerInterfaceWrapper) GetCurrentAdministrator(w http.ResponseWriter, r *http.Request)

GetCurrentAdministrator operation middleware

func (*ServerInterfaceWrapper) GetLiveness

func (siw *ServerInterfaceWrapper) GetLiveness(w http.ResponseWriter, r *http.Request)

GetLiveness operation middleware

func (*ServerInterfaceWrapper) GetMachineIdentity

func (siw *ServerInterfaceWrapper) GetMachineIdentity(w http.ResponseWriter, r *http.Request)

GetMachineIdentity operation middleware

func (*ServerInterfaceWrapper) GetManagedPolicyRun

func (siw *ServerInterfaceWrapper) GetManagedPolicyRun(w http.ResponseWriter, r *http.Request)

GetManagedPolicyRun operation middleware

func (*ServerInterfaceWrapper) GetManagedRunSubmission

func (siw *ServerInterfaceWrapper) GetManagedRunSubmission(w http.ResponseWriter, r *http.Request)

GetManagedRunSubmission operation middleware

func (*ServerInterfaceWrapper) GetOpenAPI

func (siw *ServerInterfaceWrapper) GetOpenAPI(w http.ResponseWriter, r *http.Request)

GetOpenAPI operation middleware

func (*ServerInterfaceWrapper) GetPolicy

func (siw *ServerInterfaceWrapper) GetPolicy(w http.ResponseWriter, r *http.Request)

GetPolicy operation middleware

func (*ServerInterfaceWrapper) GetPolicyDraft

func (siw *ServerInterfaceWrapper) GetPolicyDraft(w http.ResponseWriter, r *http.Request)

GetPolicyDraft operation middleware

func (*ServerInterfaceWrapper) GetPolicyRevision

func (siw *ServerInterfaceWrapper) GetPolicyRevision(w http.ResponseWriter, r *http.Request)

GetPolicyRevision operation middleware

func (*ServerInterfaceWrapper) GetPolicyRun

func (siw *ServerInterfaceWrapper) GetPolicyRun(w http.ResponseWriter, r *http.Request)

GetPolicyRun operation middleware

func (*ServerInterfaceWrapper) GetReadiness

func (siw *ServerInterfaceWrapper) GetReadiness(w http.ResponseWriter, r *http.Request)

GetReadiness operation middleware

func (*ServerInterfaceWrapper) GetRunPolicyRevision

func (siw *ServerInterfaceWrapper) GetRunPolicyRevision(w http.ResponseWriter, r *http.Request)

GetRunPolicyRevision operation middleware

func (*ServerInterfaceWrapper) GetRunSubmission

func (siw *ServerInterfaceWrapper) GetRunSubmission(w http.ResponseWriter, r *http.Request)

GetRunSubmission operation middleware

func (*ServerInterfaceWrapper) GetSceneModel

func (siw *ServerInterfaceWrapper) GetSceneModel(w http.ResponseWriter, r *http.Request)

GetSceneModel operation middleware

func (*ServerInterfaceWrapper) GetVersion

func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)

GetVersion operation middleware

func (*ServerInterfaceWrapper) InitializeScene

func (siw *ServerInterfaceWrapper) InitializeScene(w http.ResponseWriter, r *http.Request)

InitializeScene operation middleware

func (*ServerInterfaceWrapper) ListBindings

func (siw *ServerInterfaceWrapper) ListBindings(w http.ResponseWriter, r *http.Request)

ListBindings operation middleware

func (*ServerInterfaceWrapper) ListManagedPolicyRuns

func (siw *ServerInterfaceWrapper) ListManagedPolicyRuns(w http.ResponseWriter, r *http.Request)

ListManagedPolicyRuns operation middleware

func (*ServerInterfaceWrapper) ListManagedRunSubmissions

func (siw *ServerInterfaceWrapper) ListManagedRunSubmissions(w http.ResponseWriter, r *http.Request)

ListManagedRunSubmissions operation middleware

func (*ServerInterfaceWrapper) ListPolicies

func (siw *ServerInterfaceWrapper) ListPolicies(w http.ResponseWriter, r *http.Request)

ListPolicies operation middleware

func (*ServerInterfaceWrapper) ListPolicyRevisions

func (siw *ServerInterfaceWrapper) ListPolicyRevisions(w http.ResponseWriter, r *http.Request)

ListPolicyRevisions operation middleware

func (*ServerInterfaceWrapper) ListPolicyRuns

func (siw *ServerInterfaceWrapper) ListPolicyRuns(w http.ResponseWriter, r *http.Request)

ListPolicyRuns operation middleware

func (*ServerInterfaceWrapper) ListProjectAPIKeys

func (siw *ServerInterfaceWrapper) ListProjectAPIKeys(w http.ResponseWriter, r *http.Request)

ListProjectAPIKeys operation middleware

func (*ServerInterfaceWrapper) ListSceneModels

func (siw *ServerInterfaceWrapper) ListSceneModels(w http.ResponseWriter, r *http.Request)

ListSceneModels operation middleware

func (*ServerInterfaceWrapper) LoginAdministrator

func (siw *ServerInterfaceWrapper) LoginAdministrator(w http.ResponseWriter, r *http.Request)

LoginAdministrator operation middleware

func (*ServerInterfaceWrapper) LogoutAdministrator

func (siw *ServerInterfaceWrapper) LogoutAdministrator(w http.ResponseWriter, r *http.Request)

LogoutAdministrator operation middleware

func (*ServerInterfaceWrapper) PublishPolicyDraft

func (siw *ServerInterfaceWrapper) PublishPolicyDraft(w http.ResponseWriter, r *http.Request)

PublishPolicyDraft operation middleware

func (*ServerInterfaceWrapper) PublishPolicyRevision

func (siw *ServerInterfaceWrapper) PublishPolicyRevision(w http.ResponseWriter, r *http.Request)

PublishPolicyRevision operation middleware

func (*ServerInterfaceWrapper) PutBinding

func (siw *ServerInterfaceWrapper) PutBinding(w http.ResponseWriter, r *http.Request)

PutBinding operation middleware

func (*ServerInterfaceWrapper) RevokeProjectAPIKey

func (siw *ServerInterfaceWrapper) RevokeProjectAPIKey(w http.ResponseWriter, r *http.Request)

RevokeProjectAPIKey operation middleware

func (*ServerInterfaceWrapper) RotatePolicySubmissionCredential

func (siw *ServerInterfaceWrapper) RotatePolicySubmissionCredential(w http.ResponseWriter, r *http.Request)

RotatePolicySubmissionCredential operation middleware

func (*ServerInterfaceWrapper) RotateProjectAPIKey

func (siw *ServerInterfaceWrapper) RotateProjectAPIKey(w http.ResponseWriter, r *http.Request)

RotateProjectAPIKey operation middleware

func (*ServerInterfaceWrapper) SavePolicyDraft

func (siw *ServerInterfaceWrapper) SavePolicyDraft(w http.ResponseWriter, r *http.Request)

SavePolicyDraft operation middleware

func (*ServerInterfaceWrapper) SetDefaultPolicy

func (siw *ServerInterfaceWrapper) SetDefaultPolicy(w http.ResponseWriter, r *http.Request)

SetDefaultPolicy operation middleware

func (*ServerInterfaceWrapper) SetSceneTTL

func (siw *ServerInterfaceWrapper) SetSceneTTL(w http.ResponseWriter, r *http.Request)

SetSceneTTL operation middleware

func (*ServerInterfaceWrapper) SubmitSnapshot

func (siw *ServerInterfaceWrapper) SubmitSnapshot(w http.ResponseWriter, r *http.Request)

SubmitSnapshot operation middleware

func (*ServerInterfaceWrapper) UnarchivePolicy

func (siw *ServerInterfaceWrapper) UnarchivePolicy(w http.ResponseWriter, r *http.Request)

UnarchivePolicy operation middleware

type SetDefaultPolicyJSONRequestBody

type SetDefaultPolicyJSONRequestBody = SetDefaultPolicyRequest

SetDefaultPolicyJSONRequestBody defines body for SetDefaultPolicy for application/json ContentType.

type SetDefaultPolicyParams

type SetDefaultPolicyParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF SetDefaultPolicyParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

SetDefaultPolicyParams defines parameters for SetDefaultPolicy.

type SetDefaultPolicyParamsXGuardrailCSRF

type SetDefaultPolicyParamsXGuardrailCSRF string

SetDefaultPolicyParamsXGuardrailCSRF defines parameters for SetDefaultPolicy.

const (
	SetDefaultPolicyParamsXGuardrailCSRFN1 SetDefaultPolicyParamsXGuardrailCSRF = "1"
)

Defines values for SetDefaultPolicyParamsXGuardrailCSRF.

func (SetDefaultPolicyParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the SetDefaultPolicyParamsXGuardrailCSRF enum.

type SetDefaultPolicyRequest

type SetDefaultPolicyRequest struct {
	ExpectedDefaultPolicyId *string `json:"expectedDefaultPolicyId"`
	PolicyId                string  `json:"policyId"`
}

SetDefaultPolicyRequest defines model for SetDefaultPolicyRequest.

type SetDefaultPolicyResponse

type SetDefaultPolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SceneModel
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SetDefaultPolicyResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *SetDefaultPolicyResponseDefaultHeaders
}

func ParseSetDefaultPolicyResponse

func ParseSetDefaultPolicyResponse(rsp *http.Response) (*SetDefaultPolicyResponse, error)

ParseSetDefaultPolicyResponse parses an HTTP response from a SetDefaultPolicyWithResponse call

func (SetDefaultPolicyResponse) ContentType

func (r SetDefaultPolicyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetDefaultPolicyResponse) GetBody

func (r SetDefaultPolicyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetDefaultPolicyResponse) GetJSON200

func (r SetDefaultPolicyResponse) GetJSON200() *SceneModel

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetDefaultPolicyResponse) GetJSONDefault

func (r SetDefaultPolicyResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetDefaultPolicyResponse) Status

func (r SetDefaultPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (SetDefaultPolicyResponse) StatusCode

func (r SetDefaultPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetDefaultPolicyResponse200Headers

type SetDefaultPolicyResponse200Headers struct {
	XTraceID string
}

SetDefaultPolicyResponse200Headers the declared response headers of an HTTP 200 response for SetDefaultPolicy

type SetDefaultPolicyResponseDefaultHeaders

type SetDefaultPolicyResponseDefaultHeaders struct {
	XTraceID string
}

SetDefaultPolicyResponseDefaultHeaders the declared response headers of an HTTP default response for SetDefaultPolicy

type SetSceneTTLJSONRequestBody

type SetSceneTTLJSONRequestBody = SetSceneTTLRequest

SetSceneTTLJSONRequestBody defines body for SetSceneTTL for application/json ContentType.

type SetSceneTTLParams

type SetSceneTTLParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF SetSceneTTLParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

SetSceneTTLParams defines parameters for SetSceneTTL.

type SetSceneTTLParamsXGuardrailCSRF

type SetSceneTTLParamsXGuardrailCSRF string

SetSceneTTLParamsXGuardrailCSRF defines parameters for SetSceneTTL.

const (
	SetSceneTTLParamsXGuardrailCSRFN1 SetSceneTTLParamsXGuardrailCSRF = "1"
)

Defines values for SetSceneTTLParamsXGuardrailCSRF.

func (SetSceneTTLParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the SetSceneTTLParamsXGuardrailCSRF enum.

type SetSceneTTLRequest

type SetSceneTTLRequest struct {
	RunTtlSeconds int64 `json:"runTtlSeconds"`
}

SetSceneTTLRequest defines model for SetSceneTTLRequest.

type SetSceneTTLResponse

type SetSceneTTLResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SceneModel
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SetSceneTTLResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *SetSceneTTLResponseDefaultHeaders
}

func ParseSetSceneTTLResponse

func ParseSetSceneTTLResponse(rsp *http.Response) (*SetSceneTTLResponse, error)

ParseSetSceneTTLResponse parses an HTTP response from a SetSceneTTLWithResponse call

func (SetSceneTTLResponse) ContentType

func (r SetSceneTTLResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetSceneTTLResponse) GetBody

func (r SetSceneTTLResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetSceneTTLResponse) GetJSON200

func (r SetSceneTTLResponse) GetJSON200() *SceneModel

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetSceneTTLResponse) GetJSONDefault

func (r SetSceneTTLResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetSceneTTLResponse) Status

func (r SetSceneTTLResponse) Status() string

Status returns HTTPResponse.Status

func (SetSceneTTLResponse) StatusCode

func (r SetSceneTTLResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetSceneTTLResponse200Headers

type SetSceneTTLResponse200Headers struct {
	XTraceID string
}

SetSceneTTLResponse200Headers the declared response headers of an HTTP 200 response for SetSceneTTL

type SetSceneTTLResponseDefaultHeaders

type SetSceneTTLResponseDefaultHeaders struct {
	XTraceID string
}

SetSceneTTLResponseDefaultHeaders the declared response headers of an HTTP default response for SetSceneTTL

type SnapshotCheck

type SnapshotCheck struct {
	CheckId  string             `json:"checkId"`
	Evidence []SnapshotEvidence `json:"evidence"`
	Summary  string             `json:"summary"`
	Verdict  RunResult          `json:"verdict"`
}

SnapshotCheck defines model for SnapshotCheck.

type SnapshotEvidence

type SnapshotEvidence struct {
	ObservedAt    time.Time `json:"observedAt"`
	QuerySummary  string    `json:"querySummary"`
	Reference     *string   `json:"reference,omitempty"`
	RequirementId string    `json:"requirementId"`
	ResultSummary string    `json:"resultSummary"`
}

SnapshotEvidence defines model for SnapshotEvidence.

type SnapshotSubmission

type SnapshotSubmission struct {
	BaseSubmissionNo int64     `json:"baseSubmissionNo"`
	CreatedAt        int64     `json:"createdAt"`
	FinishRun        bool      `json:"finishRun"`
	Id               string    `json:"id"`
	RunId            string    `json:"runId"`
	SubmissionNo     int64     `json:"submissionNo"`
	Summary          string    `json:"summary"`
	Verdict          RunResult `json:"verdict"`
}

SnapshotSubmission defines model for SnapshotSubmission.

type SnapshotSubmitRequest

type SnapshotSubmitRequest struct {
	BaseSubmissionNo int64           `json:"baseSubmissionNo"`
	Checks           []SnapshotCheck `json:"checks"`
	FinishRun        bool            `json:"finishRun"`
	Summary          string          `json:"summary"`
	Verdict          RunResult       `json:"verdict"`
}

SnapshotSubmitRequest defines model for SnapshotSubmitRequest.

type SpecError

type SpecError = Error

SpecError defines model for SpecError.

type StdHTTPServerOptions

type StdHTTPServerOptions struct {
	BaseURL          string
	BaseRouter       ServeMux
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StorageCapability

type StorageCapability struct {
	// MultiInstance Whether this release supports multiple service instances sharing the active database
	MultiInstance bool                          `json:"multiInstance"`
	SupportLevel  StorageCapabilitySupportLevel `json:"supportLevel"`
}

StorageCapability Non-sensitive operating envelope of the active storage adapter

type StorageCapabilitySupportLevel

type StorageCapabilitySupportLevel string

StorageCapabilitySupportLevel defines model for StorageCapability.SupportLevel.

const (
	OfficialLocal  StorageCapabilitySupportLevel = "official-local"
	OfficialShared StorageCapabilitySupportLevel = "official-shared"
)

Defines values for StorageCapabilitySupportLevel.

func (StorageCapabilitySupportLevel) Valid

Valid indicates whether the value is a known member of the StorageCapabilitySupportLevel enum.

type StoredSubmission

type StoredSubmission struct {
	BaseSubmissionNo int64                 `json:"baseSubmissionNo"`
	CreatedAt        int64                 `json:"createdAt"`
	FinishRun        bool                  `json:"finishRun"`
	Id               string                `json:"id"`
	RunId            string                `json:"runId"`
	Snapshot         SnapshotSubmitRequest `json:"snapshot"`
	SubmissionNo     int64                 `json:"submissionNo"`
	Summary          string                `json:"summary"`
	Verdict          RunResult             `json:"verdict"`
}

StoredSubmission defines model for StoredSubmission.

type SubmissionPage

type SubmissionPage struct {
	Items      []SnapshotSubmission `json:"items"`
	NextBefore *int64               `json:"nextBefore,omitempty"`
}

SubmissionPage defines model for SubmissionPage.

type SubmitSnapshotJSONRequestBody

type SubmitSnapshotJSONRequestBody = SnapshotSubmitRequest

SubmitSnapshotJSONRequestBody defines body for SubmitSnapshot for application/json ContentType.

type SubmitSnapshotParams

type SubmitSnapshotParams struct {
	// IdempotencyKey Stable caller operation ID; scoped to the authenticated Project and not a credential or Run ID
	IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}

SubmitSnapshotParams defines parameters for SubmitSnapshot.

type SubmitSnapshotResponse

type SubmitSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SnapshotSubmission
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *SnapshotSubmission
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *RunError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SubmitSnapshotResponse200Headers
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *SubmitSnapshotResponse201Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *SubmitSnapshotResponseDefaultHeaders
}

func ParseSubmitSnapshotResponse

func ParseSubmitSnapshotResponse(rsp *http.Response) (*SubmitSnapshotResponse, error)

ParseSubmitSnapshotResponse parses an HTTP response from a SubmitSnapshotWithResponse call

func (SubmitSnapshotResponse) ContentType

func (r SubmitSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubmitSnapshotResponse) GetBody

func (r SubmitSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SubmitSnapshotResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SubmitSnapshotResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (SubmitSnapshotResponse) GetJSONDefault

func (r SubmitSnapshotResponse) GetJSONDefault() *RunError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SubmitSnapshotResponse) Status

func (r SubmitSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (SubmitSnapshotResponse) StatusCode

func (r SubmitSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SubmitSnapshotResponse200Headers

type SubmitSnapshotResponse200Headers struct {
	XTraceID string
}

SubmitSnapshotResponse200Headers the declared response headers of an HTTP 200 response for SubmitSnapshot

type SubmitSnapshotResponse201Headers

type SubmitSnapshotResponse201Headers struct {
	XTraceID string
}

SubmitSnapshotResponse201Headers the declared response headers of an HTTP 201 response for SubmitSnapshot

type SubmitSnapshotResponseDefaultHeaders

type SubmitSnapshotResponseDefaultHeaders struct {
	XTraceID string
}

SubmitSnapshotResponseDefaultHeaders the declared response headers of an HTTP default response for SubmitSnapshot

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnarchivePolicyParams

type UnarchivePolicyParams struct {
	// XGuardrailCSRF Required for all management mutations. Browser requests must also pass exact Origin/Host and Sec-Fetch-Site checks. No cross-origin CORS is enabled.
	XGuardrailCSRF UnarchivePolicyParamsXGuardrailCSRF `json:"X-Guardrail-CSRF"`
}

UnarchivePolicyParams defines parameters for UnarchivePolicy.

type UnarchivePolicyParamsXGuardrailCSRF

type UnarchivePolicyParamsXGuardrailCSRF string

UnarchivePolicyParamsXGuardrailCSRF defines parameters for UnarchivePolicy.

const (
	UnarchivePolicyParamsXGuardrailCSRFN1 UnarchivePolicyParamsXGuardrailCSRF = "1"
)

Defines values for UnarchivePolicyParamsXGuardrailCSRF.

func (UnarchivePolicyParamsXGuardrailCSRF) Valid

Valid indicates whether the value is a known member of the UnarchivePolicyParamsXGuardrailCSRF enum.

type UnarchivePolicyResponse

type UnarchivePolicyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Policy
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *SpecError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UnarchivePolicyResponse200Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UnarchivePolicyResponseDefaultHeaders
}

func ParseUnarchivePolicyResponse

func ParseUnarchivePolicyResponse(rsp *http.Response) (*UnarchivePolicyResponse, error)

ParseUnarchivePolicyResponse parses an HTTP response from a UnarchivePolicyWithResponse call

func (UnarchivePolicyResponse) ContentType

func (r UnarchivePolicyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnarchivePolicyResponse) GetBody

func (r UnarchivePolicyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnarchivePolicyResponse) GetJSON200

func (r UnarchivePolicyResponse) GetJSON200() *Policy

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UnarchivePolicyResponse) GetJSONDefault

func (r UnarchivePolicyResponse) GetJSONDefault() *SpecError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UnarchivePolicyResponse) Status

func (r UnarchivePolicyResponse) Status() string

Status returns HTTPResponse.Status

func (UnarchivePolicyResponse) StatusCode

func (r UnarchivePolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnarchivePolicyResponse200Headers

type UnarchivePolicyResponse200Headers struct {
	XTraceID string
}

UnarchivePolicyResponse200Headers the declared response headers of an HTTP 200 response for UnarchivePolicy

type UnarchivePolicyResponseDefaultHeaders

type UnarchivePolicyResponseDefaultHeaders struct {
	XTraceID string
}

UnarchivePolicyResponseDefaultHeaders the declared response headers of an HTTP default response for UnarchivePolicy

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type User

type User struct {
	Id          string `json:"id"`
	ProjectId   string `json:"projectId"`
	Username    string `json:"username"`
	WorkspaceId string `json:"workspaceId"`
}

User defines model for User.

type Version

type Version struct {
	Version string `json:"version"`
}

Version defines model for Version.

Directories

Path Synopsis
Command patchgen removes three generated net/http registrations that cannot be represented by ServeMux wildcard syntax.
Command patchgen removes three generated net/http registrations that cannot be represented by ServeMux wildcard syntax.

Jump to

Keyboard shortcuts

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