gwadminapi

package
v2.4.0 Latest Latest
Warning

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

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

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

Documentation

Overview

Package gwadminapi is the client of the gw-admin API, the control plane of an on-prem Event Gateway (OnPremEventGateway).

gwadminapi.gen.go is generated, do not edit it. It was generated from version 1.11.0 of the OpenAPI spec of the gw-admin API, in the Kong platform-api repository (branch feat/hardeen-certs-get, commit b3733c63, not merged yet), with

oapi-codegen (v2.8.0) -generate types,client -package gwadminapi -o gwadminapi.gen.go openapi.yaml

To update it, generate it again from the new spec version and update the version and commit above.

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteEventGatewayDataPlaneCertificateRequest

func NewDeleteEventGatewayDataPlaneCertificateRequest(server string, gatewayId openapi_types.UUID, certificateId openapi_types.UUID) (*http.Request, error)

NewDeleteEventGatewayDataPlaneCertificateRequest constructs an http.Request for the DeleteEventGatewayDataPlaneCertificate method

func NewDeleteEventGatewayRequest

func NewDeleteEventGatewayRequest(server string, gatewayId openapi_types.UUID) (*http.Request, error)

NewDeleteEventGatewayRequest constructs an http.Request for the DeleteEventGateway method

func NewGetEventGatewayDataPlaneCertificateRequest

func NewGetEventGatewayDataPlaneCertificateRequest(server string, gatewayId openapi_types.UUID, certificateId openapi_types.UUID) (*http.Request, error)

NewGetEventGatewayDataPlaneCertificateRequest constructs an http.Request for the GetEventGatewayDataPlaneCertificate method

func NewGetEventGatewayEntitiesRequest

func NewGetEventGatewayEntitiesRequest(server string, gatewayId openapi_types.UUID) (*http.Request, error)

NewGetEventGatewayEntitiesRequest constructs an http.Request for the GetEventGatewayEntities method

func NewListEventGatewayDataPlaneCertificatesRequest

func NewListEventGatewayDataPlaneCertificatesRequest(server string, gatewayId openapi_types.UUID) (*http.Request, error)

NewListEventGatewayDataPlaneCertificatesRequest constructs an http.Request for the ListEventGatewayDataPlaneCertificates method

func NewSetExpectedEventGatewaysRequest

func NewSetExpectedEventGatewaysRequest(server string, body SetExpectedEventGatewaysJSONRequestBody) (*http.Request, error)

NewSetExpectedEventGatewaysRequest calls the generic SetExpectedEventGateways builder with application/json body

func NewSetExpectedEventGatewaysRequestWithBody

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

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

func NewUpdateEventGatewayDataPlaneCertificateRequest

func NewUpdateEventGatewayDataPlaneCertificateRequest(server string, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, body UpdateEventGatewayDataPlaneCertificateJSONRequestBody) (*http.Request, error)

NewUpdateEventGatewayDataPlaneCertificateRequest calls the generic UpdateEventGatewayDataPlaneCertificate builder with application/json body

func NewUpdateEventGatewayDataPlaneCertificateRequestWithBody

func NewUpdateEventGatewayDataPlaneCertificateRequestWithBody(server string, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

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

func NewUpdateEventGatewayEntitiesRequest

func NewUpdateEventGatewayEntitiesRequest(server string, gatewayId openapi_types.UUID, body UpdateEventGatewayEntitiesJSONRequestBody) (*http.Request, error)

NewUpdateEventGatewayEntitiesRequest calls the generic UpdateEventGatewayEntities builder with application/json body

func NewUpdateEventGatewayEntitiesRequestWithBody

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

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

func NewUpdateEventGatewayRequest

func NewUpdateEventGatewayRequest(server string, gatewayId openapi_types.UUID, body UpdateEventGatewayJSONRequestBody) (*http.Request, error)

NewUpdateEventGatewayRequest calls the generic UpdateEventGateway builder with application/json body

func NewUpdateEventGatewayRequestWithBody

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

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

Types

type BackendClusterAuthenticationAnonymous

type BackendClusterAuthenticationAnonymous struct {
	// Type The type of authentication scheme.
	Type BackendClusterAuthenticationAnonymousType `json:"type"`
}

BackendClusterAuthenticationAnonymous Anonymous authentication scheme for the backend cluster.

type BackendClusterAuthenticationAnonymousType

type BackendClusterAuthenticationAnonymousType string

BackendClusterAuthenticationAnonymousType The type of authentication scheme.

const (
	BackendClusterAuthenticationAnonymousTypeAnonymous BackendClusterAuthenticationAnonymousType = "anonymous"
)

Defines values for BackendClusterAuthenticationAnonymousType.

func (BackendClusterAuthenticationAnonymousType) Valid

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

type BackendClusterAuthenticationSaslAwsIam

type BackendClusterAuthenticationSaslAwsIam struct {
	SaslAwsIam BackendClusterAuthenticationSaslAwsIam_SaslAwsIam `json:"sasl_aws_iam"`
	Type       BackendClusterAuthenticationSaslAwsIamType        `json:"type"`
}

BackendClusterAuthenticationSaslAwsIam AWS IAM-based OAUTHBEARER authentication scheme for the backend cluster, for example when connecting to Amazon MSK with IAM authentication.

**Requires a minimum runtime version of `1.3`**.

Example: {"sasl_aws_iam":{"type":"default_provider_chain"},"type":"sasl_aws_iam"}

type BackendClusterAuthenticationSaslAwsIamAssumeRole

type BackendClusterAuthenticationSaslAwsIamAssumeRole struct {
	// Arn The [ARN](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns)
	// of the IAM role to assume, formatted as `arn:aws:iam::<account-id>:role/<role-name>`.
	//
	//
	// Example: arn:aws:iam::123456789012:role/example-role
	Arn string `json:"arn"`

	// SessionName The session name to attach to the assumed role session. The value becomes part of the assumed
	// role user ARN, queryable as `arn:aws:sts::<account-id>:assumed-role/<role-name>/<session-name>`.
	SessionName *string                                              `json:"session_name,omitempty"`
	Type        BackendClusterAuthenticationSaslAwsIamAssumeRoleType `json:"type"`
}

BackendClusterAuthenticationSaslAwsIamAssumeRole Configures whether to authenticate using credentials obtained by first assuming a role, using the AWS default credentials provider chain

**Requires a minimum runtime version of `1.3`**.

type BackendClusterAuthenticationSaslAwsIamAssumeRoleType

type BackendClusterAuthenticationSaslAwsIamAssumeRoleType string

BackendClusterAuthenticationSaslAwsIamAssumeRoleType defines model for BackendClusterAuthenticationSaslAwsIamAssumeRole.Type.

const (
	AssumeRole BackendClusterAuthenticationSaslAwsIamAssumeRoleType = "assume_role"
)

Defines values for BackendClusterAuthenticationSaslAwsIamAssumeRoleType.

func (BackendClusterAuthenticationSaslAwsIamAssumeRoleType) Valid

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

type BackendClusterAuthenticationSaslAwsIamDefaultProviderChain

type BackendClusterAuthenticationSaslAwsIamDefaultProviderChain struct {
	Type BackendClusterAuthenticationSaslAwsIamDefaultProviderChainType `json:"type"`
}

BackendClusterAuthenticationSaslAwsIamDefaultProviderChain Configures whether to authenticate using credentials obtained from the AWS default credentials provider chain

**Requires a minimum runtime version of `1.3`**.

type BackendClusterAuthenticationSaslAwsIamDefaultProviderChainType

type BackendClusterAuthenticationSaslAwsIamDefaultProviderChainType string

BackendClusterAuthenticationSaslAwsIamDefaultProviderChainType defines model for BackendClusterAuthenticationSaslAwsIamDefaultProviderChain.Type.

const (
	DefaultProviderChain BackendClusterAuthenticationSaslAwsIamDefaultProviderChainType = "default_provider_chain"
)

Defines values for BackendClusterAuthenticationSaslAwsIamDefaultProviderChainType.

func (BackendClusterAuthenticationSaslAwsIamDefaultProviderChainType) Valid

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

type BackendClusterAuthenticationSaslAwsIamType

type BackendClusterAuthenticationSaslAwsIamType string

BackendClusterAuthenticationSaslAwsIamType defines model for BackendClusterAuthenticationSaslAwsIam.Type.

const (
	SaslAwsIam BackendClusterAuthenticationSaslAwsIamType = "sasl_aws_iam"
)

Defines values for BackendClusterAuthenticationSaslAwsIamType.

func (BackendClusterAuthenticationSaslAwsIamType) Valid

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

type BackendClusterAuthenticationSaslAwsIam_SaslAwsIam

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

BackendClusterAuthenticationSaslAwsIam_SaslAwsIam defines model for BackendClusterAuthenticationSaslAwsIam.SaslAwsIam.

func (BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) AsBackendClusterAuthenticationSaslAwsIamAssumeRole

func (t BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) AsBackendClusterAuthenticationSaslAwsIamAssumeRole() (BackendClusterAuthenticationSaslAwsIamAssumeRole, error)

AsBackendClusterAuthenticationSaslAwsIamAssumeRole returns the union data inside the BackendClusterAuthenticationSaslAwsIam_SaslAwsIam as a BackendClusterAuthenticationSaslAwsIamAssumeRole

func (BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) AsBackendClusterAuthenticationSaslAwsIamDefaultProviderChain

func (t BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) AsBackendClusterAuthenticationSaslAwsIamDefaultProviderChain() (BackendClusterAuthenticationSaslAwsIamDefaultProviderChain, error)

AsBackendClusterAuthenticationSaslAwsIamDefaultProviderChain returns the union data inside the BackendClusterAuthenticationSaslAwsIam_SaslAwsIam as a BackendClusterAuthenticationSaslAwsIamDefaultProviderChain

func (BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) Discriminator

func (*BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) FromBackendClusterAuthenticationSaslAwsIamAssumeRole

func (t *BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) FromBackendClusterAuthenticationSaslAwsIamAssumeRole(v BackendClusterAuthenticationSaslAwsIamAssumeRole) error

FromBackendClusterAuthenticationSaslAwsIamAssumeRole overwrites any union data inside the BackendClusterAuthenticationSaslAwsIam_SaslAwsIam as the provided BackendClusterAuthenticationSaslAwsIamAssumeRole

func (*BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) FromBackendClusterAuthenticationSaslAwsIamDefaultProviderChain

func (t *BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) FromBackendClusterAuthenticationSaslAwsIamDefaultProviderChain(v BackendClusterAuthenticationSaslAwsIamDefaultProviderChain) error

FromBackendClusterAuthenticationSaslAwsIamDefaultProviderChain overwrites any union data inside the BackendClusterAuthenticationSaslAwsIam_SaslAwsIam as the provided BackendClusterAuthenticationSaslAwsIamDefaultProviderChain

func (BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) MarshalJSON

func (*BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) MergeBackendClusterAuthenticationSaslAwsIamAssumeRole

func (t *BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) MergeBackendClusterAuthenticationSaslAwsIamAssumeRole(v BackendClusterAuthenticationSaslAwsIamAssumeRole) error

MergeBackendClusterAuthenticationSaslAwsIamAssumeRole performs a merge with any union data inside the BackendClusterAuthenticationSaslAwsIam_SaslAwsIam, using the provided BackendClusterAuthenticationSaslAwsIamAssumeRole

func (*BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) MergeBackendClusterAuthenticationSaslAwsIamDefaultProviderChain

func (t *BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) MergeBackendClusterAuthenticationSaslAwsIamDefaultProviderChain(v BackendClusterAuthenticationSaslAwsIamDefaultProviderChain) error

MergeBackendClusterAuthenticationSaslAwsIamDefaultProviderChain performs a merge with any union data inside the BackendClusterAuthenticationSaslAwsIam_SaslAwsIam, using the provided BackendClusterAuthenticationSaslAwsIamDefaultProviderChain

func (*BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) UnmarshalJSON

func (BackendClusterAuthenticationSaslAwsIam_SaslAwsIam) ValueByDiscriminator

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

type BackendClusterAuthenticationSaslPlain

type BackendClusterAuthenticationSaslPlain struct {
	// Password A sensitive value containing the secret or a reference to a secret as a template string expression.
	// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
	// If provided as an expression, the expression itself is stored and returned by the API.
	//
	//
	// Example: ${vault.env['MY_ENV_VAR']}
	Password GatewaySecret                             `json:"password"`
	Type     BackendClusterAuthenticationSaslPlainType `json:"type"`

	// Username A literal value or a reference to an existing secret as a template string expression.
	// The value is stored and returned by the API as-is, not treated as sensitive information.
	Username GatewaySecretReferenceOrLiteral `json:"username"`
}

BackendClusterAuthenticationSaslPlain SASL/PLAIN authentication scheme for the backend cluster.

type BackendClusterAuthenticationSaslPlainType

type BackendClusterAuthenticationSaslPlainType string

BackendClusterAuthenticationSaslPlainType defines model for BackendClusterAuthenticationSaslPlain.Type.

const (
	BackendClusterAuthenticationSaslPlainTypeSaslPlain BackendClusterAuthenticationSaslPlainType = "sasl_plain"
)

Defines values for BackendClusterAuthenticationSaslPlainType.

func (BackendClusterAuthenticationSaslPlainType) Valid

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

type BackendClusterAuthenticationSaslScram

type BackendClusterAuthenticationSaslScram struct {
	// Algorithm The algorithm used for SASL/SCRAM authentication.
	Algorithm BackendClusterAuthenticationSaslScramAlgorithm `json:"algorithm"`

	// Password A sensitive value containing the secret or a reference to a secret as a template string expression.
	// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
	// If provided as an expression, the expression itself is stored and returned by the API.
	//
	//
	// Example: ${vault.env['MY_ENV_VAR']}
	Password GatewaySecret                             `json:"password"`
	Type     BackendClusterAuthenticationSaslScramType `json:"type"`

	// Username A literal value or a reference to an existing secret as a template string expression.
	// The value is stored and returned by the API as-is, not treated as sensitive information.
	Username GatewaySecretReferenceOrLiteral `json:"username"`
}

BackendClusterAuthenticationSaslScram SASL/SCRAM authentication scheme for the backend cluster.

type BackendClusterAuthenticationSaslScramAlgorithm

type BackendClusterAuthenticationSaslScramAlgorithm string

BackendClusterAuthenticationSaslScramAlgorithm The algorithm used for SASL/SCRAM authentication.

const (
	BackendClusterAuthenticationSaslScramAlgorithmSha256 BackendClusterAuthenticationSaslScramAlgorithm = "sha256"
	BackendClusterAuthenticationSaslScramAlgorithmSha512 BackendClusterAuthenticationSaslScramAlgorithm = "sha512"
)

Defines values for BackendClusterAuthenticationSaslScramAlgorithm.

func (BackendClusterAuthenticationSaslScramAlgorithm) Valid

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

type BackendClusterAuthenticationSaslScramType

type BackendClusterAuthenticationSaslScramType string

BackendClusterAuthenticationSaslScramType defines model for BackendClusterAuthenticationSaslScram.Type.

const (
	BackendClusterAuthenticationSaslScramTypeSaslScram BackendClusterAuthenticationSaslScramType = "sasl_scram"
)

Defines values for BackendClusterAuthenticationSaslScramType.

func (BackendClusterAuthenticationSaslScramType) Valid

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

type BackendClusterAuthenticationScheme

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

BackendClusterAuthenticationScheme defines model for BackendClusterAuthenticationScheme.

func (BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationAnonymous

func (t BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationAnonymous() (BackendClusterAuthenticationAnonymous, error)

AsBackendClusterAuthenticationAnonymous returns the union data inside the BackendClusterAuthenticationScheme as a BackendClusterAuthenticationAnonymous

func (BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationSaslAwsIam

func (t BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationSaslAwsIam() (BackendClusterAuthenticationSaslAwsIam, error)

AsBackendClusterAuthenticationSaslAwsIam returns the union data inside the BackendClusterAuthenticationScheme as a BackendClusterAuthenticationSaslAwsIam

func (BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationSaslPlain

func (t BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationSaslPlain() (BackendClusterAuthenticationSaslPlain, error)

AsBackendClusterAuthenticationSaslPlain returns the union data inside the BackendClusterAuthenticationScheme as a BackendClusterAuthenticationSaslPlain

func (BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationSaslScram

func (t BackendClusterAuthenticationScheme) AsBackendClusterAuthenticationSaslScram() (BackendClusterAuthenticationSaslScram, error)

AsBackendClusterAuthenticationSaslScram returns the union data inside the BackendClusterAuthenticationScheme as a BackendClusterAuthenticationSaslScram

func (BackendClusterAuthenticationScheme) Discriminator

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

func (*BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationAnonymous

func (t *BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationAnonymous(v BackendClusterAuthenticationAnonymous) error

FromBackendClusterAuthenticationAnonymous overwrites any union data inside the BackendClusterAuthenticationScheme as the provided BackendClusterAuthenticationAnonymous

func (*BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationSaslAwsIam

func (t *BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationSaslAwsIam(v BackendClusterAuthenticationSaslAwsIam) error

FromBackendClusterAuthenticationSaslAwsIam overwrites any union data inside the BackendClusterAuthenticationScheme as the provided BackendClusterAuthenticationSaslAwsIam

func (*BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationSaslPlain

func (t *BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationSaslPlain(v BackendClusterAuthenticationSaslPlain) error

FromBackendClusterAuthenticationSaslPlain overwrites any union data inside the BackendClusterAuthenticationScheme as the provided BackendClusterAuthenticationSaslPlain

func (*BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationSaslScram

func (t *BackendClusterAuthenticationScheme) FromBackendClusterAuthenticationSaslScram(v BackendClusterAuthenticationSaslScram) error

FromBackendClusterAuthenticationSaslScram overwrites any union data inside the BackendClusterAuthenticationScheme as the provided BackendClusterAuthenticationSaslScram

func (BackendClusterAuthenticationScheme) MarshalJSON

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

func (*BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationAnonymous

func (t *BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationAnonymous(v BackendClusterAuthenticationAnonymous) error

MergeBackendClusterAuthenticationAnonymous performs a merge with any union data inside the BackendClusterAuthenticationScheme, using the provided BackendClusterAuthenticationAnonymous

func (*BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationSaslAwsIam

func (t *BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationSaslAwsIam(v BackendClusterAuthenticationSaslAwsIam) error

MergeBackendClusterAuthenticationSaslAwsIam performs a merge with any union data inside the BackendClusterAuthenticationScheme, using the provided BackendClusterAuthenticationSaslAwsIam

func (*BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationSaslPlain

func (t *BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationSaslPlain(v BackendClusterAuthenticationSaslPlain) error

MergeBackendClusterAuthenticationSaslPlain performs a merge with any union data inside the BackendClusterAuthenticationScheme, using the provided BackendClusterAuthenticationSaslPlain

func (*BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationSaslScram

func (t *BackendClusterAuthenticationScheme) MergeBackendClusterAuthenticationSaslScram(v BackendClusterAuthenticationSaslScram) error

MergeBackendClusterAuthenticationSaslScram performs a merge with any union data inside the BackendClusterAuthenticationScheme, using the provided BackendClusterAuthenticationSaslScram

func (*BackendClusterAuthenticationScheme) UnmarshalJSON

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

func (BackendClusterAuthenticationScheme) ValueByDiscriminator

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

type BackendClusterName

type BackendClusterName = string

BackendClusterName The unique name of the backend cluster.

type BackendClusterReferenceById

type BackendClusterReferenceById struct {
	// Id The unique identifier of the backend cluster.
	Id openapi_types.UUID `json:"id"`
}

BackendClusterReferenceById defines model for BackendClusterReferenceById.

type BackendClusterReferenceByName

type BackendClusterReferenceByName struct {
	// Name The unique name of the backend cluster.
	Name BackendClusterName `json:"name"`
}

BackendClusterReferenceByName defines model for BackendClusterReferenceByName.

type BackendClusterReferenceModify

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

BackendClusterReferenceModify The backend cluster associated with the virtual cluster.

Either `id` or `name` must be provided. Following changes to the backend cluster name won't affect the reference, as the system will create the entities relationship by `id`.

func (BackendClusterReferenceModify) AsBackendClusterReferenceById

func (t BackendClusterReferenceModify) AsBackendClusterReferenceById() (BackendClusterReferenceById, error)

AsBackendClusterReferenceById returns the union data inside the BackendClusterReferenceModify as a BackendClusterReferenceById

func (BackendClusterReferenceModify) AsBackendClusterReferenceByName

func (t BackendClusterReferenceModify) AsBackendClusterReferenceByName() (BackendClusterReferenceByName, error)

AsBackendClusterReferenceByName returns the union data inside the BackendClusterReferenceModify as a BackendClusterReferenceByName

func (*BackendClusterReferenceModify) FromBackendClusterReferenceById

func (t *BackendClusterReferenceModify) FromBackendClusterReferenceById(v BackendClusterReferenceById) error

FromBackendClusterReferenceById overwrites any union data inside the BackendClusterReferenceModify as the provided BackendClusterReferenceById

func (*BackendClusterReferenceModify) FromBackendClusterReferenceByName

func (t *BackendClusterReferenceModify) FromBackendClusterReferenceByName(v BackendClusterReferenceByName) error

FromBackendClusterReferenceByName overwrites any union data inside the BackendClusterReferenceModify as the provided BackendClusterReferenceByName

func (BackendClusterReferenceModify) MarshalJSON

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

func (*BackendClusterReferenceModify) MergeBackendClusterReferenceById

func (t *BackendClusterReferenceModify) MergeBackendClusterReferenceById(v BackendClusterReferenceById) error

MergeBackendClusterReferenceById performs a merge with any union data inside the BackendClusterReferenceModify, using the provided BackendClusterReferenceById

func (*BackendClusterReferenceModify) MergeBackendClusterReferenceByName

func (t *BackendClusterReferenceModify) MergeBackendClusterReferenceByName(v BackendClusterReferenceByName) error

MergeBackendClusterReferenceByName performs a merge with any union data inside the BackendClusterReferenceModify, using the provided BackendClusterReferenceByName

func (*BackendClusterReferenceModify) UnmarshalJSON

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

type BackendClusterTLS

type BackendClusterTLS struct {
	// CaBundle A literal value or a reference to an existing secret as a template string expression.
	// The value is stored and returned by the API as-is, not treated as sensitive information.
	CaBundle *GatewaySecretReferenceOrLiteral `json:"ca_bundle,omitempty"`

	// ClientIdentity Client mTLS configuration.
	//
	// **Requires a minimum runtime version of `1.1`**.
	ClientIdentity *struct {
		// Certificate A literal value or a reference to an existing secret as a template string expression.
		// The value is stored and returned by the API as-is, not treated as sensitive information.
		Certificate GatewaySecretReferenceOrLiteral `json:"certificate"`

		// Key A sensitive value containing the secret or a reference to a secret as a template string expression.
		// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
		// If provided as an expression, the expression itself is stored and returned by the API.
		//
		//
		// Example: ${vault.env['MY_ENV_VAR']}
		Key GatewaySecret `json:"key"`
	} `json:"client_identity,omitempty"`

	// Enabled If true, TLS is enabled for connections to this backend cluster. If false, TLS is explicitly disabled.
	Enabled bool `json:"enabled"`

	// InsecureSkipVerify If true, skip certificate verification. It's not secure to use for production.
	InsecureSkipVerify *bool `json:"insecure_skip_verify,omitempty"`

	// TlsVersions List of supported TLS versions.
	TlsVersions *[]BackendClusterTLSTlsVersions `json:"tls_versions,omitempty"`
}

BackendClusterTLS defines model for BackendClusterTLS.

type BackendClusterTLSTlsVersions

type BackendClusterTLSTlsVersions string

BackendClusterTLSTlsVersions defines model for BackendClusterTLS.TlsVersions.

const (
	Tls12 BackendClusterTLSTlsVersions = "tls12"
	Tls13 BackendClusterTLSTlsVersions = "tls13"
)

Defines values for BackendClusterTLSTlsVersions.

func (BackendClusterTLSTlsVersions) Valid

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

type BackendMetadataUpdateIntervalSeconds

type BackendMetadataUpdateIntervalSeconds = int

BackendMetadataUpdateIntervalSeconds The interval at which metadata is updated in seconds.

type BadRequest

type BadRequest = BadRequestError

BadRequest standard error

type BadRequestError

type BadRequestError struct {
	// Detail A human readable explanation specific to this occurence of the problem.
	// This field may contain request/entity data to help the user understand
	// what went wrong. Enclose variable values in square brackets. Should be
	// provided as "Sentence case" for direct use in the UI.
	Detail *string `json:"detail,omitempty"`

	// Instance Used to return the correlation ID back to the user, in the format
	// kong:trace:<correlation_id>. This helps us find the relevant logs
	// when a customer reports an issue.
	Instance *string `json:"instance,omitempty"`

	// InvalidParameters invalid parameters
	InvalidParameters InvalidParameters `json:"invalid_parameters"`

	// Status The HTTP status code of the error. Useful when passing the response
	// body to child properties in a frontend UI. Must be returned as an integer.
	Status *BadRequestErrorStatus `json:"status,omitempty"`

	// Title A short, human-readable summary of the problem. It should not
	// change between occurences of a problem, except for localization.
	// Should be provided as "Sentence case" for direct use in the UI.
	Title *string `json:"title,omitempty"`

	// Type The error type.
	Type *string `json:"type,omitempty"`
}

BadRequestError standard error

type BadRequestErrorStatus

type BadRequestErrorStatus int

BadRequestErrorStatus The HTTP status code of the error. Useful when passing the response body to child properties in a frontend UI. Must be returned as an integer.

const (
	N400 BadRequestErrorStatus = 400
)

Defines values for BadRequestErrorStatus.

func (BadRequestErrorStatus) Valid

func (e BadRequestErrorStatus) Valid() bool

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

type BootstrapServers

type BootstrapServers = []string

BootstrapServers A list of cluster bootstrap servers in the format address:port.

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

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

DeleteEventGateway Delete Event Gateway

Delete an individual gateway.

Corresponds with DELETE /event-gateways/{gatewayId} (the `DeleteEventGateway` operationId).

func (*Client) DeleteEventGatewayDataPlaneCertificate

func (c *Client) DeleteEventGatewayDataPlaneCertificate(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteEventGatewayDataPlaneCertificate Delete Event Gateway DataPlane Certificate

Delete an individual dataplane certificate scoped to a gateway.

Corresponds with DELETE /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `DeleteEventGatewayDataPlaneCertificate` operationId).

func (*Client) GetEventGatewayDataPlaneCertificate

func (c *Client) GetEventGatewayDataPlaneCertificate(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetEventGatewayDataPlaneCertificate Get Event Gateway DataPlane Certificate

Returns an individual dataplane certificate scoped to a gateway.

Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `GetEventGatewayDataPlaneCertificate` operationId).

func (*Client) GetEventGatewayEntities

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

GetEventGatewayEntities Get Event Gateway Entities

Returns the entities scoped to an individual gateway.

Corresponds with GET /event-gateways/{gatewayId}/entities (the `GetEventGatewayEntities` operationId).

func (*Client) ListEventGatewayDataPlaneCertificates

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

ListEventGatewayDataPlaneCertificates List Event Gateway DataPlane Certificates

Returns the dataplane certificates scoped to an individual gateway.

Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates (the `ListEventGatewayDataPlaneCertificates` operationId).

func (*Client) SetExpectedEventGateways

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

SetExpectedEventGateways Set Expected Event Gateways

Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.

Takes a body of the `application/json` content type.

Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).

func (*Client) SetExpectedEventGatewaysWithBody

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

SetExpectedEventGatewaysWithBody Set Expected Event Gateways

Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.

Takes any type of body and a specified content type.

Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).

func (*Client) UpdateEventGateway

func (c *Client) UpdateEventGateway(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEventGateway Update Event Gateway

Update an individual gateway.

Takes a body of the `application/json` content type.

Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).

func (*Client) UpdateEventGatewayDataPlaneCertificate

func (c *Client) UpdateEventGatewayDataPlaneCertificate(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, body UpdateEventGatewayDataPlaneCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEventGatewayDataPlaneCertificate Update Event Gateway DataPlane Certificate

Create or update an individual dataplane certificate scoped to a gateway.

Takes a body of the `application/json` content type.

Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).

func (*Client) UpdateEventGatewayDataPlaneCertificateWithBody

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

UpdateEventGatewayDataPlaneCertificateWithBody Update Event Gateway DataPlane Certificate

Create or update an individual dataplane certificate scoped to a gateway.

Takes any type of body and a specified content type.

Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).

func (*Client) UpdateEventGatewayEntities

func (c *Client) UpdateEventGatewayEntities(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayEntitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEventGatewayEntities Update Event Gateway Entities

Update the entities scoped to an individual gateway.

Takes a body of the `application/json` content type.

Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).

func (*Client) UpdateEventGatewayEntitiesWithBody

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

UpdateEventGatewayEntitiesWithBody Update Event Gateway Entities

Update the entities scoped to an individual gateway.

Takes any type of body and a specified content type.

Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).

func (*Client) UpdateEventGatewayWithBody

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

UpdateEventGatewayWithBody Update Event Gateway

Update an individual gateway.

Takes any type of body and a specified content type.

Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).

type ClientInterface

type ClientInterface interface {

	// DeleteEventGateway Delete Event Gateway
	//
	// Delete an individual gateway.
	//
	// Corresponds with DELETE /event-gateways/{gatewayId} (the `DeleteEventGateway` operationId).
	DeleteEventGateway(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEventGatewayWithBody Update Event Gateway
	//
	// Update an individual gateway.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).
	UpdateEventGatewayWithBody(ctx context.Context, gatewayId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEventGateway Update Event Gateway
	//
	// Update an individual gateway.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).
	UpdateEventGateway(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEventGatewayDataPlaneCertificates List Event Gateway DataPlane Certificates
	//
	// Returns the dataplane certificates scoped to an individual gateway.
	//
	// Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates (the `ListEventGatewayDataPlaneCertificates` operationId).
	ListEventGatewayDataPlaneCertificates(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteEventGatewayDataPlaneCertificate Delete Event Gateway DataPlane Certificate
	//
	// Delete an individual dataplane certificate scoped to a gateway.
	//
	// Corresponds with DELETE /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `DeleteEventGatewayDataPlaneCertificate` operationId).
	DeleteEventGatewayDataPlaneCertificate(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEventGatewayDataPlaneCertificate Get Event Gateway DataPlane Certificate
	//
	// Returns an individual dataplane certificate scoped to a gateway.
	//
	// Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `GetEventGatewayDataPlaneCertificate` operationId).
	GetEventGatewayDataPlaneCertificate(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEventGatewayDataPlaneCertificateWithBody Update Event Gateway DataPlane Certificate
	//
	// Create or update an individual dataplane certificate scoped to a gateway.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).
	UpdateEventGatewayDataPlaneCertificateWithBody(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEventGatewayDataPlaneCertificate Update Event Gateway DataPlane Certificate
	//
	// Create or update an individual dataplane certificate scoped to a gateway.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).
	UpdateEventGatewayDataPlaneCertificate(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, body UpdateEventGatewayDataPlaneCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEventGatewayEntities Get Event Gateway Entities
	//
	// Returns the entities scoped to an individual gateway.
	//
	// Corresponds with GET /event-gateways/{gatewayId}/entities (the `GetEventGatewayEntities` operationId).
	GetEventGatewayEntities(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEventGatewayEntitiesWithBody Update Event Gateway Entities
	//
	// Update the entities scoped to an individual gateway.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).
	UpdateEventGatewayEntitiesWithBody(ctx context.Context, gatewayId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEventGatewayEntities Update Event Gateway Entities
	//
	// Update the entities scoped to an individual gateway.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).
	UpdateEventGatewayEntities(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayEntitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetExpectedEventGatewaysWithBody Set Expected Event Gateways
	//
	// Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).
	SetExpectedEventGatewaysWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetExpectedEventGateways Set Expected Event Gateways
	//
	// Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).
	SetExpectedEventGateways(ctx context.Context, body SetExpectedEventGatewaysJSONRequestBody, 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) DeleteEventGatewayDataPlaneCertificateWithResponse

func (c *ClientWithResponses) DeleteEventGatewayDataPlaneCertificateWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteEventGatewayDataPlaneCertificateResponse, error)

DeleteEventGatewayDataPlaneCertificateWithResponse Delete Event Gateway DataPlane Certificate

Delete an individual dataplane certificate scoped to a gateway.

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

Corresponds with DELETE /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `DeleteEventGatewayDataPlaneCertificate` operationId).

func (*ClientWithResponses) DeleteEventGatewayWithResponse

func (c *ClientWithResponses) DeleteEventGatewayWithResponse(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteEventGatewayResponse, error)

DeleteEventGatewayWithResponse Delete Event Gateway

Delete an individual gateway.

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

Corresponds with DELETE /event-gateways/{gatewayId} (the `DeleteEventGateway` operationId).

func (*ClientWithResponses) GetEventGatewayDataPlaneCertificateWithResponse

func (c *ClientWithResponses) GetEventGatewayDataPlaneCertificateWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventGatewayDataPlaneCertificateResponse, error)

GetEventGatewayDataPlaneCertificateWithResponse Get Event Gateway DataPlane Certificate

Returns an individual dataplane certificate scoped to a gateway.

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

Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `GetEventGatewayDataPlaneCertificate` operationId).

func (*ClientWithResponses) GetEventGatewayEntitiesWithResponse

func (c *ClientWithResponses) GetEventGatewayEntitiesWithResponse(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventGatewayEntitiesResponse, error)

GetEventGatewayEntitiesWithResponse Get Event Gateway Entities

Returns the entities scoped to an individual gateway.

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

Corresponds with GET /event-gateways/{gatewayId}/entities (the `GetEventGatewayEntities` operationId).

func (*ClientWithResponses) ListEventGatewayDataPlaneCertificatesWithResponse

func (c *ClientWithResponses) ListEventGatewayDataPlaneCertificatesWithResponse(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListEventGatewayDataPlaneCertificatesResponse, error)

ListEventGatewayDataPlaneCertificatesWithResponse List Event Gateway DataPlane Certificates

Returns the dataplane certificates scoped to an individual gateway.

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

Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates (the `ListEventGatewayDataPlaneCertificates` operationId).

func (*ClientWithResponses) SetExpectedEventGatewaysWithBodyWithResponse

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

SetExpectedEventGatewaysWithBodyWithResponse Set Expected Event Gateways

Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).

func (*ClientWithResponses) SetExpectedEventGatewaysWithResponse

func (c *ClientWithResponses) SetExpectedEventGatewaysWithResponse(ctx context.Context, body SetExpectedEventGatewaysJSONRequestBody, reqEditors ...RequestEditorFn) (*SetExpectedEventGatewaysResponse, error)

SetExpectedEventGatewaysWithResponse Set Expected Event Gateways

Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).

func (*ClientWithResponses) UpdateEventGatewayDataPlaneCertificateWithBodyWithResponse

func (c *ClientWithResponses) UpdateEventGatewayDataPlaneCertificateWithBodyWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEventGatewayDataPlaneCertificateResponse, error)

UpdateEventGatewayDataPlaneCertificateWithBodyWithResponse Update Event Gateway DataPlane Certificate

Create or update an individual dataplane certificate scoped to a gateway.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).

func (*ClientWithResponses) UpdateEventGatewayDataPlaneCertificateWithResponse

func (c *ClientWithResponses) UpdateEventGatewayDataPlaneCertificateWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, body UpdateEventGatewayDataPlaneCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEventGatewayDataPlaneCertificateResponse, error)

UpdateEventGatewayDataPlaneCertificateWithResponse Update Event Gateway DataPlane Certificate

Create or update an individual dataplane certificate scoped to a gateway.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).

func (*ClientWithResponses) UpdateEventGatewayEntitiesWithBodyWithResponse

func (c *ClientWithResponses) UpdateEventGatewayEntitiesWithBodyWithResponse(ctx context.Context, gatewayId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEventGatewayEntitiesResponse, error)

UpdateEventGatewayEntitiesWithBodyWithResponse Update Event Gateway Entities

Update the entities scoped to an individual gateway.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).

func (*ClientWithResponses) UpdateEventGatewayEntitiesWithResponse

func (c *ClientWithResponses) UpdateEventGatewayEntitiesWithResponse(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayEntitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEventGatewayEntitiesResponse, error)

UpdateEventGatewayEntitiesWithResponse Update Event Gateway Entities

Update the entities scoped to an individual gateway.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).

func (*ClientWithResponses) UpdateEventGatewayWithBodyWithResponse

func (c *ClientWithResponses) UpdateEventGatewayWithBodyWithResponse(ctx context.Context, gatewayId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEventGatewayResponse, error)

UpdateEventGatewayWithBodyWithResponse Update Event Gateway

Update an individual gateway.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).

func (*ClientWithResponses) UpdateEventGatewayWithResponse

func (c *ClientWithResponses) UpdateEventGatewayWithResponse(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEventGatewayResponse, error)

UpdateEventGatewayWithResponse Update Event Gateway

Update an individual gateway.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// DeleteEventGatewayWithResponse Delete Event Gateway
	//
	// Delete an individual gateway.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /event-gateways/{gatewayId} (the `DeleteEventGateway` operationId).
	DeleteEventGatewayWithResponse(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteEventGatewayResponse, error)

	// UpdateEventGatewayWithBodyWithResponse Update Event Gateway
	//
	// Update an individual gateway.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).
	UpdateEventGatewayWithBodyWithResponse(ctx context.Context, gatewayId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEventGatewayResponse, error)

	// UpdateEventGatewayWithResponse Update Event Gateway
	//
	// Update an individual gateway.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /event-gateways/{gatewayId} (the `UpdateEventGateway` operationId).
	UpdateEventGatewayWithResponse(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEventGatewayResponse, error)

	// ListEventGatewayDataPlaneCertificatesWithResponse List Event Gateway DataPlane Certificates
	//
	// Returns the dataplane certificates scoped to an individual gateway.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates (the `ListEventGatewayDataPlaneCertificates` operationId).
	ListEventGatewayDataPlaneCertificatesWithResponse(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListEventGatewayDataPlaneCertificatesResponse, error)

	// DeleteEventGatewayDataPlaneCertificateWithResponse Delete Event Gateway DataPlane Certificate
	//
	// Delete an individual dataplane certificate scoped to a gateway.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `DeleteEventGatewayDataPlaneCertificate` operationId).
	DeleteEventGatewayDataPlaneCertificateWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteEventGatewayDataPlaneCertificateResponse, error)

	// GetEventGatewayDataPlaneCertificateWithResponse Get Event Gateway DataPlane Certificate
	//
	// Returns an individual dataplane certificate scoped to a gateway.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `GetEventGatewayDataPlaneCertificate` operationId).
	GetEventGatewayDataPlaneCertificateWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventGatewayDataPlaneCertificateResponse, error)

	// UpdateEventGatewayDataPlaneCertificateWithBodyWithResponse Update Event Gateway DataPlane Certificate
	//
	// Create or update an individual dataplane certificate scoped to a gateway.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).
	UpdateEventGatewayDataPlaneCertificateWithBodyWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEventGatewayDataPlaneCertificateResponse, error)

	// UpdateEventGatewayDataPlaneCertificateWithResponse Update Event Gateway DataPlane Certificate
	//
	// Create or update an individual dataplane certificate scoped to a gateway.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/data-plane-certificates/{certificateId} (the `UpdateEventGatewayDataPlaneCertificate` operationId).
	UpdateEventGatewayDataPlaneCertificateWithResponse(ctx context.Context, gatewayId openapi_types.UUID, certificateId openapi_types.UUID, body UpdateEventGatewayDataPlaneCertificateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEventGatewayDataPlaneCertificateResponse, error)

	// GetEventGatewayEntitiesWithResponse Get Event Gateway Entities
	//
	// Returns the entities scoped to an individual gateway.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /event-gateways/{gatewayId}/entities (the `GetEventGatewayEntities` operationId).
	GetEventGatewayEntitiesWithResponse(ctx context.Context, gatewayId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEventGatewayEntitiesResponse, error)

	// UpdateEventGatewayEntitiesWithBodyWithResponse Update Event Gateway Entities
	//
	// Update the entities scoped to an individual gateway.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).
	UpdateEventGatewayEntitiesWithBodyWithResponse(ctx context.Context, gatewayId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEventGatewayEntitiesResponse, error)

	// UpdateEventGatewayEntitiesWithResponse Update Event Gateway Entities
	//
	// Update the entities scoped to an individual gateway.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /event-gateways/{gatewayId}/entities (the `UpdateEventGatewayEntities` operationId).
	UpdateEventGatewayEntitiesWithResponse(ctx context.Context, gatewayId openapi_types.UUID, body UpdateEventGatewayEntitiesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEventGatewayEntitiesResponse, error)

	// SetExpectedEventGatewaysWithBodyWithResponse Set Expected Event Gateways
	//
	// Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).
	SetExpectedEventGatewaysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetExpectedEventGatewaysResponse, error)

	// SetExpectedEventGatewaysWithResponse Set Expected Event Gateways
	//
	// Replace the set of Event Gateways that are expected to exist. The request body is the complete set: any previously sent identifier that is absent from the request is no longer expected.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /expected-event-gateways (the `SetExpectedEventGateways` operationId).
	SetExpectedEventGatewaysWithResponse(ctx context.Context, body SetExpectedEventGatewaysJSONRequestBody, reqEditors ...RequestEditorFn) (*SetExpectedEventGatewaysResponse, error)
}

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

type ConsumeFailureMode

type ConsumeFailureMode string

ConsumeFailureMode Describes how to handle a failure in a policy applied to consumed records. * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it. * `skip` - the record is not delivered to the client. * `passthrough` - passes the record to the client even though policy execution failed. * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).

**Requires a minimum runtime version of `1.2`**.

const (
	ConsumeFailureModeError       ConsumeFailureMode = "error"
	ConsumeFailureModeMark        ConsumeFailureMode = "mark"
	ConsumeFailureModePassthrough ConsumeFailureMode = "passthrough"
	ConsumeFailureModeSkip        ConsumeFailureMode = "skip"
)

Defines values for ConsumeFailureMode.

func (ConsumeFailureMode) Valid

func (e ConsumeFailureMode) Valid() bool

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

type ConsumeKeyValidationAction deprecated

type ConsumeKeyValidationAction string

ConsumeKeyValidationAction Deprecated. Use `failure_mode`.

Defines a behavior when record key is not valid.

  • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema.
  • skip - skips delivering a record.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

const (
	ConsumeKeyValidationActionMark ConsumeKeyValidationAction = "mark"
	ConsumeKeyValidationActionSkip ConsumeKeyValidationAction = "skip"
)

Defines values for ConsumeKeyValidationAction.

func (ConsumeKeyValidationAction) Valid

func (e ConsumeKeyValidationAction) Valid() bool

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

type ConsumeValueValidationAction deprecated

type ConsumeValueValidationAction string

ConsumeValueValidationAction Deprecated. Use `failure_mode`.

Defines a behavior when record value is not valid.

  • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema.
  • skip - skips delivering a record.

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

const (
	ConsumeValueValidationActionMark ConsumeValueValidationAction = "mark"
	ConsumeValueValidationActionSkip ConsumeValueValidationAction = "skip"
)

Defines values for ConsumeValueValidationAction.

func (ConsumeValueValidationAction) Valid

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

type CreatedAtOnPrem

type CreatedAtOnPrem = time.Time

CreatedAtOnPrem The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.

Example: 2022-11-04T20:10:06Z

type DecryptionRecordPart

type DecryptionRecordPart string

DecryptionRecordPart * key - decrypt the record key * value - decrypt the record value

const (
	DecryptionRecordPartKey   DecryptionRecordPart = "key"
	DecryptionRecordPartValue DecryptionRecordPart = "value"
)

Defines values for DecryptionRecordPart.

func (DecryptionRecordPart) Valid

func (e DecryptionRecordPart) Valid() bool

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

type DeleteEventGatewayDataPlaneCertificateResponse

type DeleteEventGatewayDataPlaneCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseDeleteEventGatewayDataPlaneCertificateResponse

func ParseDeleteEventGatewayDataPlaneCertificateResponse(rsp *http.Response) (*DeleteEventGatewayDataPlaneCertificateResponse, error)

ParseDeleteEventGatewayDataPlaneCertificateResponse parses an HTTP response from a DeleteEventGatewayDataPlaneCertificateWithResponse call

func (DeleteEventGatewayDataPlaneCertificateResponse) ContentType

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

func (DeleteEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON401

func (r DeleteEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON403

func (r DeleteEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON404

func (r DeleteEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteEventGatewayDataPlaneCertificateResponse) GetBody

GetBody returns the raw response body bytes

func (DeleteEventGatewayDataPlaneCertificateResponse) Status

Status returns HTTPResponse.Status

func (DeleteEventGatewayDataPlaneCertificateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteEventGatewayResponse

type DeleteEventGatewayResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseDeleteEventGatewayResponse

func ParseDeleteEventGatewayResponse(rsp *http.Response) (*DeleteEventGatewayResponse, error)

ParseDeleteEventGatewayResponse parses an HTTP response from a DeleteEventGatewayWithResponse call

func (DeleteEventGatewayResponse) ContentType

func (r DeleteEventGatewayResponse) ContentType() string

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

func (DeleteEventGatewayResponse) GetApplicationproblemJSON401

func (r DeleteEventGatewayResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteEventGatewayResponse) GetApplicationproblemJSON403

func (r DeleteEventGatewayResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteEventGatewayResponse) GetApplicationproblemJSON404

func (r DeleteEventGatewayResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteEventGatewayResponse) GetBody

func (r DeleteEventGatewayResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteEventGatewayResponse) Status

Status returns HTTPResponse.Status

func (DeleteEventGatewayResponse) StatusCode

func (r DeleteEventGatewayResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EncryptionFailureMode

type EncryptionFailureMode string

EncryptionFailureMode Describes how to handle failing encryption or decryption. Use `error` if the record should be rejected if encryption or decryption fails. Use `passthrough` to ignore encryption or decryption failure and continue proxying the record.

const (
	EncryptionFailureModeError       EncryptionFailureMode = "error"
	EncryptionFailureModePassthrough EncryptionFailureMode = "passthrough"
)

Defines values for EncryptionFailureMode.

func (EncryptionFailureMode) Valid

func (e EncryptionFailureMode) Valid() bool

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

type EncryptionKey

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

EncryptionKey The key to use for encryption.

func (EncryptionKey) AsEncryptionKeyAWS

func (t EncryptionKey) AsEncryptionKeyAWS() (EncryptionKeyAWS, error)

AsEncryptionKeyAWS returns the union data inside the EncryptionKey as a EncryptionKeyAWS

func (EncryptionKey) AsEncryptionKeyStatic

func (t EncryptionKey) AsEncryptionKeyStatic() (EncryptionKeyStatic, error)

AsEncryptionKeyStatic returns the union data inside the EncryptionKey as a EncryptionKeyStatic

func (EncryptionKey) Discriminator

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

func (*EncryptionKey) FromEncryptionKeyAWS

func (t *EncryptionKey) FromEncryptionKeyAWS(v EncryptionKeyAWS) error

FromEncryptionKeyAWS overwrites any union data inside the EncryptionKey as the provided EncryptionKeyAWS

func (*EncryptionKey) FromEncryptionKeyStatic

func (t *EncryptionKey) FromEncryptionKeyStatic(v EncryptionKeyStatic) error

FromEncryptionKeyStatic overwrites any union data inside the EncryptionKey as the provided EncryptionKeyStatic

func (EncryptionKey) MarshalJSON

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

func (*EncryptionKey) MergeEncryptionKeyAWS

func (t *EncryptionKey) MergeEncryptionKeyAWS(v EncryptionKeyAWS) error

MergeEncryptionKeyAWS performs a merge with any union data inside the EncryptionKey, using the provided EncryptionKeyAWS

func (*EncryptionKey) MergeEncryptionKeyStatic

func (t *EncryptionKey) MergeEncryptionKeyStatic(v EncryptionKeyStatic) error

MergeEncryptionKeyStatic performs a merge with any union data inside the EncryptionKey, using the provided EncryptionKeyStatic

func (*EncryptionKey) UnmarshalJSON

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

func (EncryptionKey) ValueByDiscriminator

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

type EncryptionKeyAWS

type EncryptionKeyAWS struct {
	// Arn The AWS KMS key ARN.
	Arn  string               `json:"arn"`
	Type EncryptionKeyAWSType `json:"type"`
}

EncryptionKeyAWS The AWS KMS key to use for encryption.

Example: {"arn":"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab","type":"aws"}

type EncryptionKeyAWSType

type EncryptionKeyAWSType string

EncryptionKeyAWSType defines model for EncryptionKeyAWS.Type.

const (
	EncryptionKeyAWSTypeAws EncryptionKeyAWSType = "aws"
)

Defines values for EncryptionKeyAWSType.

func (EncryptionKeyAWSType) Valid

func (e EncryptionKeyAWSType) Valid() bool

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

type EncryptionKeyStatic

type EncryptionKeyStatic struct {
	// Key A static encryption key reference, either by ID or by value.
	Key  EncryptionKeyStaticReference `json:"key"`
	Type EncryptionKeyStaticType      `json:"type"`
}

EncryptionKeyStatic A static encryption key.

type EncryptionKeyStaticReference

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

EncryptionKeyStaticReference A static encryption key reference, either by ID or by value.

func (EncryptionKeyStaticReference) AsEncryptionKeyStaticReferenceById

func (t EncryptionKeyStaticReference) AsEncryptionKeyStaticReferenceById() (EncryptionKeyStaticReferenceById, error)

AsEncryptionKeyStaticReferenceById returns the union data inside the EncryptionKeyStaticReference as a EncryptionKeyStaticReferenceById

func (EncryptionKeyStaticReference) AsEncryptionKeyStaticReferenceByName

func (t EncryptionKeyStaticReference) AsEncryptionKeyStaticReferenceByName() (EncryptionKeyStaticReferenceByName, error)

AsEncryptionKeyStaticReferenceByName returns the union data inside the EncryptionKeyStaticReference as a EncryptionKeyStaticReferenceByName

func (*EncryptionKeyStaticReference) FromEncryptionKeyStaticReferenceById

func (t *EncryptionKeyStaticReference) FromEncryptionKeyStaticReferenceById(v EncryptionKeyStaticReferenceById) error

FromEncryptionKeyStaticReferenceById overwrites any union data inside the EncryptionKeyStaticReference as the provided EncryptionKeyStaticReferenceById

func (*EncryptionKeyStaticReference) FromEncryptionKeyStaticReferenceByName

func (t *EncryptionKeyStaticReference) FromEncryptionKeyStaticReferenceByName(v EncryptionKeyStaticReferenceByName) error

FromEncryptionKeyStaticReferenceByName overwrites any union data inside the EncryptionKeyStaticReference as the provided EncryptionKeyStaticReferenceByName

func (EncryptionKeyStaticReference) MarshalJSON

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

func (*EncryptionKeyStaticReference) MergeEncryptionKeyStaticReferenceById

func (t *EncryptionKeyStaticReference) MergeEncryptionKeyStaticReferenceById(v EncryptionKeyStaticReferenceById) error

MergeEncryptionKeyStaticReferenceById performs a merge with any union data inside the EncryptionKeyStaticReference, using the provided EncryptionKeyStaticReferenceById

func (*EncryptionKeyStaticReference) MergeEncryptionKeyStaticReferenceByName

func (t *EncryptionKeyStaticReference) MergeEncryptionKeyStaticReferenceByName(v EncryptionKeyStaticReferenceByName) error

MergeEncryptionKeyStaticReferenceByName performs a merge with any union data inside the EncryptionKeyStaticReference, using the provided EncryptionKeyStaticReferenceByName

func (*EncryptionKeyStaticReference) UnmarshalJSON

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

type EncryptionKeyStaticReferenceById

type EncryptionKeyStaticReferenceById struct {
	// Id The ID of the static key defined in the key source.
	Id openapi_types.UUID `json:"id"`
}

EncryptionKeyStaticReferenceById A static encryption key reference by ID.

type EncryptionKeyStaticReferenceByName

type EncryptionKeyStaticReferenceByName struct {
	// Name The name of the static key defined in the key source.
	Name string `json:"name"`
}

EncryptionKeyStaticReferenceByName A static encryption key reference by name.

type EncryptionKeyStaticType

type EncryptionKeyStaticType string

EncryptionKeyStaticType defines model for EncryptionKeyStatic.Type.

const (
	EncryptionKeyStaticTypeStatic EncryptionKeyStaticType = "static"
)

Defines values for EncryptionKeyStaticType.

func (EncryptionKeyStaticType) Valid

func (e EncryptionKeyStaticType) Valid() bool

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

type EncryptionRecordPart

type EncryptionRecordPart string

EncryptionRecordPart * key - encrypt the record key * value - encrypt the record value

const (
	EncryptionRecordPartKey   EncryptionRecordPart = "key"
	EncryptionRecordPartValue EncryptionRecordPart = "value"
)

Defines values for EncryptionRecordPart.

func (EncryptionRecordPart) Valid

func (e EncryptionRecordPart) Valid() bool

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

type EventGatewayACLOperation

type EventGatewayACLOperation struct {
	Name EventGatewayACLOperationName `json:"name"`
}

EventGatewayACLOperation An Event Gateway operation to match against in an ACL rule.

type EventGatewayACLOperationName

type EventGatewayACLOperationName string

EventGatewayACLOperationName defines model for EventGatewayACLOperation.Name.

const (
	EventGatewayACLOperationNameAll             EventGatewayACLOperationName = "all"
	EventGatewayACLOperationNameAlter           EventGatewayACLOperationName = "alter"
	EventGatewayACLOperationNameAlterConfigs    EventGatewayACLOperationName = "alter_configs"
	EventGatewayACLOperationNameCreate          EventGatewayACLOperationName = "create"
	EventGatewayACLOperationNameDelete          EventGatewayACLOperationName = "delete"
	EventGatewayACLOperationNameDescribe        EventGatewayACLOperationName = "describe"
	EventGatewayACLOperationNameDescribeConfigs EventGatewayACLOperationName = "describe_configs"
	EventGatewayACLOperationNameIdempotentWrite EventGatewayACLOperationName = "idempotent_write"
	EventGatewayACLOperationNameRead            EventGatewayACLOperationName = "read"
	EventGatewayACLOperationNameWrite           EventGatewayACLOperationName = "write"
)

Defines values for EventGatewayACLOperationName.

func (EventGatewayACLOperationName) Valid

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

type EventGatewayACLPolicyConfig

type EventGatewayACLPolicyConfig struct {
	// Rules Every ACL rule in this list applies independently.
	Rules []EventGatewayACLRule `json:"rules"`
}

EventGatewayACLPolicyConfig Apply ACLs to virtual cluster traffic.

type EventGatewayACLResourceName

type EventGatewayACLResourceName struct {
	// Match Currently supported are exact matches and globs.
	// All `*` characters are interpreted as globs, i.e. they match zero or more of any character.
	Match string `json:"match"`
}

EventGatewayACLResourceName An Event Gateway resource name to match against in an ACL rule.

type EventGatewayACLRule

type EventGatewayACLRule struct {
	// Action How to handle the request if the rule matches
	Action EventGatewayACLRuleAction `json:"action"`

	// Operations Types of Kafka operations to match against. Note that not every operation can apply to every resource type.
	Operations []EventGatewayACLOperation `json:"operations"`

	// ResourceNames If any of these entries match, the resource name matches for this rule. A maximum of 50 entries are allowed.
	ResourceNames EventGatewayACLRule_ResourceNames `json:"resource_names"`

	// ResourceType This rule applies to access only for type of resource
	ResourceType EventGatewayACLRuleResourceType `json:"resource_type"`
}

EventGatewayACLRule A Kafka ACL rule to apply to virtual cluster traffic

type EventGatewayACLRuleAction

type EventGatewayACLRuleAction string

EventGatewayACLRuleAction How to handle the request if the rule matches

const (
	Allow EventGatewayACLRuleAction = "allow"
	Deny  EventGatewayACLRuleAction = "deny"
)

Defines values for EventGatewayACLRuleAction.

func (EventGatewayACLRuleAction) Valid

func (e EventGatewayACLRuleAction) Valid() bool

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

type EventGatewayACLRuleResourceNamesDynamicArray

type EventGatewayACLRuleResourceNamesDynamicArray = string

EventGatewayACLRuleResourceNamesDynamicArray This expression should evaluate to an array of glob patterns, equivalent to the `match` values in the static array form of `resource_names`.

**Requires a minimum runtime version of `1.1`**.

Example: context.auth.token.claims["topics"]

type EventGatewayACLRuleResourceNamesStaticArray

type EventGatewayACLRuleResourceNamesStaticArray = []EventGatewayACLResourceName

EventGatewayACLRuleResourceNamesStaticArray A static list of resource name globs to match against resources when applying an ACL policy.

Example: [{"match":"orders-*"},{"match":"payments-*"}]

type EventGatewayACLRuleResourceType

type EventGatewayACLRuleResourceType string

EventGatewayACLRuleResourceType This rule applies to access only for type of resource

const (
	Cluster         EventGatewayACLRuleResourceType = "cluster"
	Group           EventGatewayACLRuleResourceType = "group"
	Topic           EventGatewayACLRuleResourceType = "topic"
	TransactionalId EventGatewayACLRuleResourceType = "transactional_id"
)

Defines values for EventGatewayACLRuleResourceType.

func (EventGatewayACLRuleResourceType) Valid

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

type EventGatewayACLRule_ResourceNames

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

EventGatewayACLRule_ResourceNames If any of these entries match, the resource name matches for this rule. A maximum of 50 entries are allowed.

func (EventGatewayACLRule_ResourceNames) AsEventGatewayACLRuleResourceNamesDynamicArray

func (t EventGatewayACLRule_ResourceNames) AsEventGatewayACLRuleResourceNamesDynamicArray() (EventGatewayACLRuleResourceNamesDynamicArray, error)

AsEventGatewayACLRuleResourceNamesDynamicArray returns the union data inside the EventGatewayACLRule_ResourceNames as a EventGatewayACLRuleResourceNamesDynamicArray

func (EventGatewayACLRule_ResourceNames) AsEventGatewayACLRuleResourceNamesStaticArray

func (t EventGatewayACLRule_ResourceNames) AsEventGatewayACLRuleResourceNamesStaticArray() (EventGatewayACLRuleResourceNamesStaticArray, error)

AsEventGatewayACLRuleResourceNamesStaticArray returns the union data inside the EventGatewayACLRule_ResourceNames as a EventGatewayACLRuleResourceNamesStaticArray

func (*EventGatewayACLRule_ResourceNames) FromEventGatewayACLRuleResourceNamesDynamicArray

func (t *EventGatewayACLRule_ResourceNames) FromEventGatewayACLRuleResourceNamesDynamicArray(v EventGatewayACLRuleResourceNamesDynamicArray) error

FromEventGatewayACLRuleResourceNamesDynamicArray overwrites any union data inside the EventGatewayACLRule_ResourceNames as the provided EventGatewayACLRuleResourceNamesDynamicArray

func (*EventGatewayACLRule_ResourceNames) FromEventGatewayACLRuleResourceNamesStaticArray

func (t *EventGatewayACLRule_ResourceNames) FromEventGatewayACLRuleResourceNamesStaticArray(v EventGatewayACLRuleResourceNamesStaticArray) error

FromEventGatewayACLRuleResourceNamesStaticArray overwrites any union data inside the EventGatewayACLRule_ResourceNames as the provided EventGatewayACLRuleResourceNamesStaticArray

func (EventGatewayACLRule_ResourceNames) MarshalJSON

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

func (*EventGatewayACLRule_ResourceNames) MergeEventGatewayACLRuleResourceNamesDynamicArray

func (t *EventGatewayACLRule_ResourceNames) MergeEventGatewayACLRuleResourceNamesDynamicArray(v EventGatewayACLRuleResourceNamesDynamicArray) error

MergeEventGatewayACLRuleResourceNamesDynamicArray performs a merge with any union data inside the EventGatewayACLRule_ResourceNames, using the provided EventGatewayACLRuleResourceNamesDynamicArray

func (*EventGatewayACLRule_ResourceNames) MergeEventGatewayACLRuleResourceNamesStaticArray

func (t *EventGatewayACLRule_ResourceNames) MergeEventGatewayACLRuleResourceNamesStaticArray(v EventGatewayACLRuleResourceNamesStaticArray) error

MergeEventGatewayACLRuleResourceNamesStaticArray performs a merge with any union data inside the EventGatewayACLRule_ResourceNames, using the provided EventGatewayACLRuleResourceNamesStaticArray

func (*EventGatewayACLRule_ResourceNames) UnmarshalJSON

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

type EventGatewayACLsPolicy

type EventGatewayACLsPolicy struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// Example: context.auth.principal.name == "this-user"
	Condition *string `json:"condition,omitempty"`

	// Config Apply ACLs to virtual cluster traffic.
	Config EventGatewayACLPolicyConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayACLsPolicyType `json:"type"`
}

EventGatewayACLsPolicy Apply Kafka ACLs to virtual cluster traffic.

type EventGatewayACLsPolicyType

type EventGatewayACLsPolicyType string

EventGatewayACLsPolicyType The type name of the policy.

const (
	Acls EventGatewayACLsPolicyType = "acls"
)

Defines values for EventGatewayACLsPolicyType.

func (EventGatewayACLsPolicyType) Valid

func (e EventGatewayACLsPolicyType) Valid() bool

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

type EventGatewayAWSKeySource

type EventGatewayAWSKeySource struct {
	Type EventGatewayAWSKeySourceType `json:"type"`
}

EventGatewayAWSKeySource A key source that uses an AWS KMS to find a symmetric key. Load KMS credentials from the environment.

See [aws docs](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credproviders.html#credproviders-default-credentials-provider-chain) for more information about how credential retrieval.

type EventGatewayAWSKeySourceType

type EventGatewayAWSKeySourceType string

EventGatewayAWSKeySourceType defines model for EventGatewayAWSKeySource.Type.

const (
	EventGatewayAWSKeySourceTypeAws EventGatewayAWSKeySourceType = "aws"
)

Defines values for EventGatewayAWSKeySourceType.

func (EventGatewayAWSKeySourceType) Valid

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

type EventGatewayAlterClientQuotasRequestRules

type EventGatewayAlterClientQuotasRequestRules struct {
	// Rules Every rule in this list is evaluated independently against each quota operation in the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayAlterClientQuotasRule           `json:"rules"`
	Type  EventGatewayAlterClientQuotasRequestRulesType `json:"type"`
}

EventGatewayAlterClientQuotasRequestRules The rules to apply to Kafka `AlterClientQuotas` requests.

Example: {"rules":[{"action":"reject","description":"Limit how much the producer quota can be raised.","rule":"context.op.key != 'producer_byte_rate' || context.op.remove || context.op.value \u003c= 10485760"}],"type":"alter_client_quotas"}

type EventGatewayAlterClientQuotasRequestRulesType

type EventGatewayAlterClientQuotasRequestRulesType string

EventGatewayAlterClientQuotasRequestRulesType defines model for EventGatewayAlterClientQuotasRequestRules.Type.

const (
	AlterClientQuotas EventGatewayAlterClientQuotasRequestRulesType = "alter_client_quotas"
)

Defines values for EventGatewayAlterClientQuotasRequestRulesType.

func (EventGatewayAlterClientQuotasRequestRulesType) Valid

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

type EventGatewayAlterClientQuotasRule

type EventGatewayAlterClientQuotasRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.op.key != 'producer_byte_rate' || context.op.remove || context.op.value <= 10485760
	Rule string `json:"rule"`
}

EventGatewayAlterClientQuotasRule defines model for EventGatewayAlterClientQuotasRule.

type EventGatewayAlterConfigsRequestRules

type EventGatewayAlterConfigsRequestRules struct {
	// Rules Every rule in this list is evaluated independently against each resource in the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayAlterConfigsRule           `json:"rules"`
	Type  EventGatewayAlterConfigsRequestRulesType `json:"type"`
}

EventGatewayAlterConfigsRequestRules The rules to apply to Kafka `AlterConfigs` requests.

Example: {"rules":[{"action":"reject","description":"Broker-level config changes are not allowed.","rule":"context.resource.type != 'BROKER'"},{"action":"reject","description":"The retention.ms config must remain 24h (86400000); a full alter must include it.","rule":"context.resource.type != 'TOPIC' || ('retention.ms' in context.resource.configs \u0026\u0026 context.resource.configs['retention.ms'] == \"86400000\")"}],"type":"alter_configs"}

type EventGatewayAlterConfigsRequestRulesType

type EventGatewayAlterConfigsRequestRulesType string

EventGatewayAlterConfigsRequestRulesType defines model for EventGatewayAlterConfigsRequestRules.Type.

const (
	EventGatewayAlterConfigsRequestRulesTypeAlterConfigs EventGatewayAlterConfigsRequestRulesType = "alter_configs"
)

Defines values for EventGatewayAlterConfigsRequestRulesType.

func (EventGatewayAlterConfigsRequestRulesType) Valid

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

type EventGatewayAlterConfigsRule

type EventGatewayAlterConfigsRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.resource.type != 'BROKER'
	Rule string `json:"rule"`
}

EventGatewayAlterConfigsRule defines model for EventGatewayAlterConfigsRule.

type EventGatewayAlterUserScramCredentialsRequestRules

type EventGatewayAlterUserScramCredentialsRequestRules struct {
	// Rules Every rule in this list is evaluated independently against each credential in the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayAlterUserScramCredentialsRule           `json:"rules"`
	Type  EventGatewayAlterUserScramCredentialsRequestRulesType `json:"type"`
}

EventGatewayAlterUserScramCredentialsRequestRules The rules to apply to Kafka `AlterUserScramCredentials` requests.

Example: {"rules":[{"action":"reject","description":"Require new credentials to use SCRAM-SHA-256.","rule":"context.credential.mechanism != 'SCRAM-SHA-256'"}],"type":"alter_user_scram_credentials"}

type EventGatewayAlterUserScramCredentialsRequestRulesType

type EventGatewayAlterUserScramCredentialsRequestRulesType string

EventGatewayAlterUserScramCredentialsRequestRulesType defines model for EventGatewayAlterUserScramCredentialsRequestRules.Type.

const (
	AlterUserScramCredentials EventGatewayAlterUserScramCredentialsRequestRulesType = "alter_user_scram_credentials"
)

Defines values for EventGatewayAlterUserScramCredentialsRequestRulesType.

func (EventGatewayAlterUserScramCredentialsRequestRulesType) Valid

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

type EventGatewayAlterUserScramCredentialsRule

type EventGatewayAlterUserScramCredentialsRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.credential.mechanism != 'SCRAM-SHA-256'
	Rule string `json:"rule"`
}

EventGatewayAlterUserScramCredentialsRule defines model for EventGatewayAlterUserScramCredentialsRule.

type EventGatewayBackendClusterOnPrem

type EventGatewayBackendClusterOnPrem struct {
	Authentication BackendClusterAuthenticationScheme `json:"authentication"`

	// BootstrapServers A list of cluster bootstrap servers in the format address:port.
	BootstrapServers BootstrapServers `json:"bootstrap_servers"`

	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A human-readable description of the backend cluster.
	Description *string `json:"description,omitempty"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`

	// InsecureAllowAnonymousVirtualClusterAuth If true, virtual clusters can have allow anonymous authentication and use this backend cluster.
	// This setting is not recommended for production use as it may create privilege escalation vulnerabilities.
	InsecureAllowAnonymousVirtualClusterAuth *bool `json:"insecure_allow_anonymous_virtual_cluster_auth,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// MetadataUpdateIntervalSeconds The interval at which metadata is updated in seconds.
	MetadataUpdateIntervalSeconds *BackendMetadataUpdateIntervalSeconds `json:"metadata_update_interval_seconds,omitempty"`

	// Name The unique name of the backend cluster.
	Name BackendClusterName `json:"name"`
	Tls  BackendClusterTLS  `json:"tls"`
}

EventGatewayBackendClusterOnPrem An Event Gateway backend cluster, extended with the unique identifier and creation timestamp for on-prem deployments.

type EventGatewayClusterPolicyModify

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

EventGatewayClusterPolicyModify The typed schema of the cluster policy to modify it.

func (EventGatewayClusterPolicyModify) AsEventGatewayACLsPolicy

func (t EventGatewayClusterPolicyModify) AsEventGatewayACLsPolicy() (EventGatewayACLsPolicy, error)

AsEventGatewayACLsPolicy returns the union data inside the EventGatewayClusterPolicyModify as a EventGatewayACLsPolicy

func (EventGatewayClusterPolicyModify) AsEventGatewayRequestRuleValidatorPolicy

func (t EventGatewayClusterPolicyModify) AsEventGatewayRequestRuleValidatorPolicy() (EventGatewayRequestRuleValidatorPolicy, error)

AsEventGatewayRequestRuleValidatorPolicy returns the union data inside the EventGatewayClusterPolicyModify as a EventGatewayRequestRuleValidatorPolicy

func (EventGatewayClusterPolicyModify) Discriminator

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

func (*EventGatewayClusterPolicyModify) FromEventGatewayACLsPolicy

func (t *EventGatewayClusterPolicyModify) FromEventGatewayACLsPolicy(v EventGatewayACLsPolicy) error

FromEventGatewayACLsPolicy overwrites any union data inside the EventGatewayClusterPolicyModify as the provided EventGatewayACLsPolicy

func (*EventGatewayClusterPolicyModify) FromEventGatewayRequestRuleValidatorPolicy

func (t *EventGatewayClusterPolicyModify) FromEventGatewayRequestRuleValidatorPolicy(v EventGatewayRequestRuleValidatorPolicy) error

FromEventGatewayRequestRuleValidatorPolicy overwrites any union data inside the EventGatewayClusterPolicyModify as the provided EventGatewayRequestRuleValidatorPolicy

func (EventGatewayClusterPolicyModify) MarshalJSON

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

func (*EventGatewayClusterPolicyModify) MergeEventGatewayACLsPolicy

func (t *EventGatewayClusterPolicyModify) MergeEventGatewayACLsPolicy(v EventGatewayACLsPolicy) error

MergeEventGatewayACLsPolicy performs a merge with any union data inside the EventGatewayClusterPolicyModify, using the provided EventGatewayACLsPolicy

func (*EventGatewayClusterPolicyModify) MergeEventGatewayRequestRuleValidatorPolicy

func (t *EventGatewayClusterPolicyModify) MergeEventGatewayRequestRuleValidatorPolicy(v EventGatewayRequestRuleValidatorPolicy) error

MergeEventGatewayRequestRuleValidatorPolicy performs a merge with any union data inside the EventGatewayClusterPolicyModify, using the provided EventGatewayRequestRuleValidatorPolicy

func (*EventGatewayClusterPolicyModify) UnmarshalJSON

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

func (EventGatewayClusterPolicyModify) ValueByDiscriminator

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

type EventGatewayClusterPolicyOnPrem

type EventGatewayClusterPolicyOnPrem struct {
	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`
	// contains filtered or unexported fields
}

EventGatewayClusterPolicyOnPrem defines model for EventGatewayClusterPolicyOnPrem.

func (EventGatewayClusterPolicyOnPrem) AsEventGatewayACLsPolicy

func (t EventGatewayClusterPolicyOnPrem) AsEventGatewayACLsPolicy() (EventGatewayACLsPolicy, error)

AsEventGatewayACLsPolicy returns the union data inside the EventGatewayClusterPolicyOnPrem as a EventGatewayACLsPolicy

func (EventGatewayClusterPolicyOnPrem) AsEventGatewayRequestRuleValidatorPolicy

func (t EventGatewayClusterPolicyOnPrem) AsEventGatewayRequestRuleValidatorPolicy() (EventGatewayRequestRuleValidatorPolicy, error)

AsEventGatewayRequestRuleValidatorPolicy returns the union data inside the EventGatewayClusterPolicyOnPrem as a EventGatewayRequestRuleValidatorPolicy

func (EventGatewayClusterPolicyOnPrem) Discriminator

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

func (*EventGatewayClusterPolicyOnPrem) FromEventGatewayACLsPolicy

func (t *EventGatewayClusterPolicyOnPrem) FromEventGatewayACLsPolicy(v EventGatewayACLsPolicy) error

FromEventGatewayACLsPolicy overwrites any union data inside the EventGatewayClusterPolicyOnPrem as the provided EventGatewayACLsPolicy

func (*EventGatewayClusterPolicyOnPrem) FromEventGatewayRequestRuleValidatorPolicy

func (t *EventGatewayClusterPolicyOnPrem) FromEventGatewayRequestRuleValidatorPolicy(v EventGatewayRequestRuleValidatorPolicy) error

FromEventGatewayRequestRuleValidatorPolicy overwrites any union data inside the EventGatewayClusterPolicyOnPrem as the provided EventGatewayRequestRuleValidatorPolicy

func (EventGatewayClusterPolicyOnPrem) MarshalJSON

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

func (*EventGatewayClusterPolicyOnPrem) MergeEventGatewayACLsPolicy

func (t *EventGatewayClusterPolicyOnPrem) MergeEventGatewayACLsPolicy(v EventGatewayACLsPolicy) error

MergeEventGatewayACLsPolicy performs a merge with any union data inside the EventGatewayClusterPolicyOnPrem, using the provided EventGatewayACLsPolicy

func (*EventGatewayClusterPolicyOnPrem) MergeEventGatewayRequestRuleValidatorPolicy

func (t *EventGatewayClusterPolicyOnPrem) MergeEventGatewayRequestRuleValidatorPolicy(v EventGatewayRequestRuleValidatorPolicy) error

MergeEventGatewayRequestRuleValidatorPolicy performs a merge with any union data inside the EventGatewayClusterPolicyOnPrem, using the provided EventGatewayRequestRuleValidatorPolicy

func (*EventGatewayClusterPolicyOnPrem) UnmarshalJSON

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

func (EventGatewayClusterPolicyOnPrem) ValueByDiscriminator

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

type EventGatewayConsumePolicyCreate

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

EventGatewayConsumePolicyCreate The typed schema of the consume policy to modify it.

func (EventGatewayConsumePolicyCreate) AsEventGatewayConsumeSchemaValidationPolicy

func (t EventGatewayConsumePolicyCreate) AsEventGatewayConsumeSchemaValidationPolicy() (EventGatewayConsumeSchemaValidationPolicy, error)

AsEventGatewayConsumeSchemaValidationPolicy returns the union data inside the EventGatewayConsumePolicyCreate as a EventGatewayConsumeSchemaValidationPolicy

func (EventGatewayConsumePolicyCreate) AsEventGatewayDecryptPolicy

func (t EventGatewayConsumePolicyCreate) AsEventGatewayDecryptPolicy() (EventGatewayDecryptPolicy, error)

AsEventGatewayDecryptPolicy returns the union data inside the EventGatewayConsumePolicyCreate as a EventGatewayDecryptPolicy

func (EventGatewayConsumePolicyCreate) AsEventGatewayModifyHeadersPolicyCreate

func (t EventGatewayConsumePolicyCreate) AsEventGatewayModifyHeadersPolicyCreate() (EventGatewayModifyHeadersPolicyCreate, error)

AsEventGatewayModifyHeadersPolicyCreate returns the union data inside the EventGatewayConsumePolicyCreate as a EventGatewayModifyHeadersPolicyCreate

func (EventGatewayConsumePolicyCreate) AsEventGatewayParsedRecordDecryptFieldsPolicyCreate

func (t EventGatewayConsumePolicyCreate) AsEventGatewayParsedRecordDecryptFieldsPolicyCreate() (EventGatewayParsedRecordDecryptFieldsPolicyCreate, error)

AsEventGatewayParsedRecordDecryptFieldsPolicyCreate returns the union data inside the EventGatewayConsumePolicyCreate as a EventGatewayParsedRecordDecryptFieldsPolicyCreate

func (EventGatewayConsumePolicyCreate) AsEventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (t EventGatewayConsumePolicyCreate) AsEventGatewayParsedRecordMaskFieldsConsumePolicyCreate() (EventGatewayParsedRecordMaskFieldsConsumePolicyCreate, error)

AsEventGatewayParsedRecordMaskFieldsConsumePolicyCreate returns the union data inside the EventGatewayConsumePolicyCreate as a EventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (EventGatewayConsumePolicyCreate) AsEventGatewayParsedRecordTranscodeConsumePolicyCreate

func (t EventGatewayConsumePolicyCreate) AsEventGatewayParsedRecordTranscodeConsumePolicyCreate() (EventGatewayParsedRecordTranscodeConsumePolicyCreate, error)

AsEventGatewayParsedRecordTranscodeConsumePolicyCreate returns the union data inside the EventGatewayConsumePolicyCreate as a EventGatewayParsedRecordTranscodeConsumePolicyCreate

func (EventGatewayConsumePolicyCreate) AsEventGatewaySkipRecordPolicyCreate

func (t EventGatewayConsumePolicyCreate) AsEventGatewaySkipRecordPolicyCreate() (EventGatewaySkipRecordPolicyCreate, error)

AsEventGatewaySkipRecordPolicyCreate returns the union data inside the EventGatewayConsumePolicyCreate as a EventGatewaySkipRecordPolicyCreate

func (EventGatewayConsumePolicyCreate) Discriminator

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

func (*EventGatewayConsumePolicyCreate) FromEventGatewayConsumeSchemaValidationPolicy

func (t *EventGatewayConsumePolicyCreate) FromEventGatewayConsumeSchemaValidationPolicy(v EventGatewayConsumeSchemaValidationPolicy) error

FromEventGatewayConsumeSchemaValidationPolicy overwrites any union data inside the EventGatewayConsumePolicyCreate as the provided EventGatewayConsumeSchemaValidationPolicy

func (*EventGatewayConsumePolicyCreate) FromEventGatewayDecryptPolicy

func (t *EventGatewayConsumePolicyCreate) FromEventGatewayDecryptPolicy(v EventGatewayDecryptPolicy) error

FromEventGatewayDecryptPolicy overwrites any union data inside the EventGatewayConsumePolicyCreate as the provided EventGatewayDecryptPolicy

func (*EventGatewayConsumePolicyCreate) FromEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayConsumePolicyCreate) FromEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

FromEventGatewayModifyHeadersPolicyCreate overwrites any union data inside the EventGatewayConsumePolicyCreate as the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayConsumePolicyCreate) FromEventGatewayParsedRecordDecryptFieldsPolicyCreate

func (t *EventGatewayConsumePolicyCreate) FromEventGatewayParsedRecordDecryptFieldsPolicyCreate(v EventGatewayParsedRecordDecryptFieldsPolicyCreate) error

FromEventGatewayParsedRecordDecryptFieldsPolicyCreate overwrites any union data inside the EventGatewayConsumePolicyCreate as the provided EventGatewayParsedRecordDecryptFieldsPolicyCreate

func (*EventGatewayConsumePolicyCreate) FromEventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (t *EventGatewayConsumePolicyCreate) FromEventGatewayParsedRecordMaskFieldsConsumePolicyCreate(v EventGatewayParsedRecordMaskFieldsConsumePolicyCreate) error

FromEventGatewayParsedRecordMaskFieldsConsumePolicyCreate overwrites any union data inside the EventGatewayConsumePolicyCreate as the provided EventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (*EventGatewayConsumePolicyCreate) FromEventGatewayParsedRecordTranscodeConsumePolicyCreate

func (t *EventGatewayConsumePolicyCreate) FromEventGatewayParsedRecordTranscodeConsumePolicyCreate(v EventGatewayParsedRecordTranscodeConsumePolicyCreate) error

FromEventGatewayParsedRecordTranscodeConsumePolicyCreate overwrites any union data inside the EventGatewayConsumePolicyCreate as the provided EventGatewayParsedRecordTranscodeConsumePolicyCreate

func (*EventGatewayConsumePolicyCreate) FromEventGatewaySkipRecordPolicyCreate

func (t *EventGatewayConsumePolicyCreate) FromEventGatewaySkipRecordPolicyCreate(v EventGatewaySkipRecordPolicyCreate) error

FromEventGatewaySkipRecordPolicyCreate overwrites any union data inside the EventGatewayConsumePolicyCreate as the provided EventGatewaySkipRecordPolicyCreate

func (EventGatewayConsumePolicyCreate) MarshalJSON

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

func (*EventGatewayConsumePolicyCreate) MergeEventGatewayConsumeSchemaValidationPolicy

func (t *EventGatewayConsumePolicyCreate) MergeEventGatewayConsumeSchemaValidationPolicy(v EventGatewayConsumeSchemaValidationPolicy) error

MergeEventGatewayConsumeSchemaValidationPolicy performs a merge with any union data inside the EventGatewayConsumePolicyCreate, using the provided EventGatewayConsumeSchemaValidationPolicy

func (*EventGatewayConsumePolicyCreate) MergeEventGatewayDecryptPolicy

func (t *EventGatewayConsumePolicyCreate) MergeEventGatewayDecryptPolicy(v EventGatewayDecryptPolicy) error

MergeEventGatewayDecryptPolicy performs a merge with any union data inside the EventGatewayConsumePolicyCreate, using the provided EventGatewayDecryptPolicy

func (*EventGatewayConsumePolicyCreate) MergeEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayConsumePolicyCreate) MergeEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

MergeEventGatewayModifyHeadersPolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyCreate, using the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayConsumePolicyCreate) MergeEventGatewayParsedRecordDecryptFieldsPolicyCreate

func (t *EventGatewayConsumePolicyCreate) MergeEventGatewayParsedRecordDecryptFieldsPolicyCreate(v EventGatewayParsedRecordDecryptFieldsPolicyCreate) error

MergeEventGatewayParsedRecordDecryptFieldsPolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyCreate, using the provided EventGatewayParsedRecordDecryptFieldsPolicyCreate

func (*EventGatewayConsumePolicyCreate) MergeEventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (t *EventGatewayConsumePolicyCreate) MergeEventGatewayParsedRecordMaskFieldsConsumePolicyCreate(v EventGatewayParsedRecordMaskFieldsConsumePolicyCreate) error

MergeEventGatewayParsedRecordMaskFieldsConsumePolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyCreate, using the provided EventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (*EventGatewayConsumePolicyCreate) MergeEventGatewayParsedRecordTranscodeConsumePolicyCreate

func (t *EventGatewayConsumePolicyCreate) MergeEventGatewayParsedRecordTranscodeConsumePolicyCreate(v EventGatewayParsedRecordTranscodeConsumePolicyCreate) error

MergeEventGatewayParsedRecordTranscodeConsumePolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyCreate, using the provided EventGatewayParsedRecordTranscodeConsumePolicyCreate

func (*EventGatewayConsumePolicyCreate) MergeEventGatewaySkipRecordPolicyCreate

func (t *EventGatewayConsumePolicyCreate) MergeEventGatewaySkipRecordPolicyCreate(v EventGatewaySkipRecordPolicyCreate) error

MergeEventGatewaySkipRecordPolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyCreate, using the provided EventGatewaySkipRecordPolicyCreate

func (*EventGatewayConsumePolicyCreate) UnmarshalJSON

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

func (EventGatewayConsumePolicyCreate) ValueByDiscriminator

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

type EventGatewayConsumePolicyOnPrem

type EventGatewayConsumePolicyOnPrem struct {
	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`
	// contains filtered or unexported fields
}

EventGatewayConsumePolicyOnPrem defines model for EventGatewayConsumePolicyOnPrem.

func (EventGatewayConsumePolicyOnPrem) AsEventGatewayConsumeSchemaValidationPolicy

func (t EventGatewayConsumePolicyOnPrem) AsEventGatewayConsumeSchemaValidationPolicy() (EventGatewayConsumeSchemaValidationPolicy, error)

AsEventGatewayConsumeSchemaValidationPolicy returns the union data inside the EventGatewayConsumePolicyOnPrem as a EventGatewayConsumeSchemaValidationPolicy

func (EventGatewayConsumePolicyOnPrem) AsEventGatewayDecryptPolicy

func (t EventGatewayConsumePolicyOnPrem) AsEventGatewayDecryptPolicy() (EventGatewayDecryptPolicy, error)

AsEventGatewayDecryptPolicy returns the union data inside the EventGatewayConsumePolicyOnPrem as a EventGatewayDecryptPolicy

func (EventGatewayConsumePolicyOnPrem) AsEventGatewayModifyHeadersPolicyCreate

func (t EventGatewayConsumePolicyOnPrem) AsEventGatewayModifyHeadersPolicyCreate() (EventGatewayModifyHeadersPolicyCreate, error)

AsEventGatewayModifyHeadersPolicyCreate returns the union data inside the EventGatewayConsumePolicyOnPrem as a EventGatewayModifyHeadersPolicyCreate

func (EventGatewayConsumePolicyOnPrem) AsEventGatewayParsedRecordDecryptFieldsPolicyCreate

func (t EventGatewayConsumePolicyOnPrem) AsEventGatewayParsedRecordDecryptFieldsPolicyCreate() (EventGatewayParsedRecordDecryptFieldsPolicyCreate, error)

AsEventGatewayParsedRecordDecryptFieldsPolicyCreate returns the union data inside the EventGatewayConsumePolicyOnPrem as a EventGatewayParsedRecordDecryptFieldsPolicyCreate

func (EventGatewayConsumePolicyOnPrem) AsEventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (t EventGatewayConsumePolicyOnPrem) AsEventGatewayParsedRecordMaskFieldsConsumePolicyCreate() (EventGatewayParsedRecordMaskFieldsConsumePolicyCreate, error)

AsEventGatewayParsedRecordMaskFieldsConsumePolicyCreate returns the union data inside the EventGatewayConsumePolicyOnPrem as a EventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (EventGatewayConsumePolicyOnPrem) AsEventGatewayParsedRecordTranscodeConsumePolicyCreate

func (t EventGatewayConsumePolicyOnPrem) AsEventGatewayParsedRecordTranscodeConsumePolicyCreate() (EventGatewayParsedRecordTranscodeConsumePolicyCreate, error)

AsEventGatewayParsedRecordTranscodeConsumePolicyCreate returns the union data inside the EventGatewayConsumePolicyOnPrem as a EventGatewayParsedRecordTranscodeConsumePolicyCreate

func (EventGatewayConsumePolicyOnPrem) AsEventGatewaySkipRecordPolicyCreate

func (t EventGatewayConsumePolicyOnPrem) AsEventGatewaySkipRecordPolicyCreate() (EventGatewaySkipRecordPolicyCreate, error)

AsEventGatewaySkipRecordPolicyCreate returns the union data inside the EventGatewayConsumePolicyOnPrem as a EventGatewaySkipRecordPolicyCreate

func (EventGatewayConsumePolicyOnPrem) Discriminator

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

func (*EventGatewayConsumePolicyOnPrem) FromEventGatewayConsumeSchemaValidationPolicy

func (t *EventGatewayConsumePolicyOnPrem) FromEventGatewayConsumeSchemaValidationPolicy(v EventGatewayConsumeSchemaValidationPolicy) error

FromEventGatewayConsumeSchemaValidationPolicy overwrites any union data inside the EventGatewayConsumePolicyOnPrem as the provided EventGatewayConsumeSchemaValidationPolicy

func (*EventGatewayConsumePolicyOnPrem) FromEventGatewayDecryptPolicy

func (t *EventGatewayConsumePolicyOnPrem) FromEventGatewayDecryptPolicy(v EventGatewayDecryptPolicy) error

FromEventGatewayDecryptPolicy overwrites any union data inside the EventGatewayConsumePolicyOnPrem as the provided EventGatewayDecryptPolicy

func (*EventGatewayConsumePolicyOnPrem) FromEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) FromEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

FromEventGatewayModifyHeadersPolicyCreate overwrites any union data inside the EventGatewayConsumePolicyOnPrem as the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayConsumePolicyOnPrem) FromEventGatewayParsedRecordDecryptFieldsPolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) FromEventGatewayParsedRecordDecryptFieldsPolicyCreate(v EventGatewayParsedRecordDecryptFieldsPolicyCreate) error

FromEventGatewayParsedRecordDecryptFieldsPolicyCreate overwrites any union data inside the EventGatewayConsumePolicyOnPrem as the provided EventGatewayParsedRecordDecryptFieldsPolicyCreate

func (*EventGatewayConsumePolicyOnPrem) FromEventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) FromEventGatewayParsedRecordMaskFieldsConsumePolicyCreate(v EventGatewayParsedRecordMaskFieldsConsumePolicyCreate) error

FromEventGatewayParsedRecordMaskFieldsConsumePolicyCreate overwrites any union data inside the EventGatewayConsumePolicyOnPrem as the provided EventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (*EventGatewayConsumePolicyOnPrem) FromEventGatewayParsedRecordTranscodeConsumePolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) FromEventGatewayParsedRecordTranscodeConsumePolicyCreate(v EventGatewayParsedRecordTranscodeConsumePolicyCreate) error

FromEventGatewayParsedRecordTranscodeConsumePolicyCreate overwrites any union data inside the EventGatewayConsumePolicyOnPrem as the provided EventGatewayParsedRecordTranscodeConsumePolicyCreate

func (*EventGatewayConsumePolicyOnPrem) FromEventGatewaySkipRecordPolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) FromEventGatewaySkipRecordPolicyCreate(v EventGatewaySkipRecordPolicyCreate) error

FromEventGatewaySkipRecordPolicyCreate overwrites any union data inside the EventGatewayConsumePolicyOnPrem as the provided EventGatewaySkipRecordPolicyCreate

func (EventGatewayConsumePolicyOnPrem) MarshalJSON

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

func (*EventGatewayConsumePolicyOnPrem) MergeEventGatewayConsumeSchemaValidationPolicy

func (t *EventGatewayConsumePolicyOnPrem) MergeEventGatewayConsumeSchemaValidationPolicy(v EventGatewayConsumeSchemaValidationPolicy) error

MergeEventGatewayConsumeSchemaValidationPolicy performs a merge with any union data inside the EventGatewayConsumePolicyOnPrem, using the provided EventGatewayConsumeSchemaValidationPolicy

func (*EventGatewayConsumePolicyOnPrem) MergeEventGatewayDecryptPolicy

func (t *EventGatewayConsumePolicyOnPrem) MergeEventGatewayDecryptPolicy(v EventGatewayDecryptPolicy) error

MergeEventGatewayDecryptPolicy performs a merge with any union data inside the EventGatewayConsumePolicyOnPrem, using the provided EventGatewayDecryptPolicy

func (*EventGatewayConsumePolicyOnPrem) MergeEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) MergeEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

MergeEventGatewayModifyHeadersPolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyOnPrem, using the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayConsumePolicyOnPrem) MergeEventGatewayParsedRecordDecryptFieldsPolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) MergeEventGatewayParsedRecordDecryptFieldsPolicyCreate(v EventGatewayParsedRecordDecryptFieldsPolicyCreate) error

MergeEventGatewayParsedRecordDecryptFieldsPolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyOnPrem, using the provided EventGatewayParsedRecordDecryptFieldsPolicyCreate

func (*EventGatewayConsumePolicyOnPrem) MergeEventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) MergeEventGatewayParsedRecordMaskFieldsConsumePolicyCreate(v EventGatewayParsedRecordMaskFieldsConsumePolicyCreate) error

MergeEventGatewayParsedRecordMaskFieldsConsumePolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyOnPrem, using the provided EventGatewayParsedRecordMaskFieldsConsumePolicyCreate

func (*EventGatewayConsumePolicyOnPrem) MergeEventGatewayParsedRecordTranscodeConsumePolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) MergeEventGatewayParsedRecordTranscodeConsumePolicyCreate(v EventGatewayParsedRecordTranscodeConsumePolicyCreate) error

MergeEventGatewayParsedRecordTranscodeConsumePolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyOnPrem, using the provided EventGatewayParsedRecordTranscodeConsumePolicyCreate

func (*EventGatewayConsumePolicyOnPrem) MergeEventGatewaySkipRecordPolicyCreate

func (t *EventGatewayConsumePolicyOnPrem) MergeEventGatewaySkipRecordPolicyCreate(v EventGatewaySkipRecordPolicyCreate) error

MergeEventGatewaySkipRecordPolicyCreate performs a merge with any union data inside the EventGatewayConsumePolicyOnPrem, using the provided EventGatewaySkipRecordPolicyCreate

func (*EventGatewayConsumePolicyOnPrem) UnmarshalJSON

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

func (EventGatewayConsumePolicyOnPrem) ValueByDiscriminator

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

type EventGatewayConsumeSchemaValidationPolicy

type EventGatewayConsumeSchemaValidationPolicy struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// Example: context.topic.name.endsWith("my_suffix") && record.headers["x-flag"] == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the consume schema validation policy.
	Config EventGatewayConsumeSchemaValidationPolicyConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayConsumeSchemaValidationPolicyType `json:"type"`
}

EventGatewayConsumeSchemaValidationPolicy A policy that validates consume messages against a schema registry.

type EventGatewayConsumeSchemaValidationPolicyConfig

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

EventGatewayConsumeSchemaValidationPolicyConfig The configuration of the consume schema validation policy.

func (EventGatewayConsumeSchemaValidationPolicyConfig) AsEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig

func (t EventGatewayConsumeSchemaValidationPolicyConfig) AsEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig() (EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig, error)

AsEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig returns the union data inside the EventGatewayConsumeSchemaValidationPolicyConfig as a EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig

func (EventGatewayConsumeSchemaValidationPolicyConfig) AsEventGatewayConsumeSchemaValidationPolicyJsonConfig

func (t EventGatewayConsumeSchemaValidationPolicyConfig) AsEventGatewayConsumeSchemaValidationPolicyJsonConfig() (EventGatewayConsumeSchemaValidationPolicyJsonConfig, error)

AsEventGatewayConsumeSchemaValidationPolicyJsonConfig returns the union data inside the EventGatewayConsumeSchemaValidationPolicyConfig as a EventGatewayConsumeSchemaValidationPolicyJsonConfig

func (EventGatewayConsumeSchemaValidationPolicyConfig) AsEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig

func (t EventGatewayConsumeSchemaValidationPolicyConfig) AsEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig() (EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig, error)

AsEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig returns the union data inside the EventGatewayConsumeSchemaValidationPolicyConfig as a EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig

func (EventGatewayConsumeSchemaValidationPolicyConfig) Discriminator

func (*EventGatewayConsumeSchemaValidationPolicyConfig) FromEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig

func (t *EventGatewayConsumeSchemaValidationPolicyConfig) FromEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig(v EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig) error

FromEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig overwrites any union data inside the EventGatewayConsumeSchemaValidationPolicyConfig as the provided EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig

func (*EventGatewayConsumeSchemaValidationPolicyConfig) FromEventGatewayConsumeSchemaValidationPolicyJsonConfig

func (t *EventGatewayConsumeSchemaValidationPolicyConfig) FromEventGatewayConsumeSchemaValidationPolicyJsonConfig(v EventGatewayConsumeSchemaValidationPolicyJsonConfig) error

FromEventGatewayConsumeSchemaValidationPolicyJsonConfig overwrites any union data inside the EventGatewayConsumeSchemaValidationPolicyConfig as the provided EventGatewayConsumeSchemaValidationPolicyJsonConfig

func (*EventGatewayConsumeSchemaValidationPolicyConfig) FromEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig

func (t *EventGatewayConsumeSchemaValidationPolicyConfig) FromEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig(v EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig) error

FromEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig overwrites any union data inside the EventGatewayConsumeSchemaValidationPolicyConfig as the provided EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig

func (EventGatewayConsumeSchemaValidationPolicyConfig) MarshalJSON

func (*EventGatewayConsumeSchemaValidationPolicyConfig) MergeEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig

func (t *EventGatewayConsumeSchemaValidationPolicyConfig) MergeEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig(v EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig) error

MergeEventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig performs a merge with any union data inside the EventGatewayConsumeSchemaValidationPolicyConfig, using the provided EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig

func (*EventGatewayConsumeSchemaValidationPolicyConfig) MergeEventGatewayConsumeSchemaValidationPolicyJsonConfig

func (t *EventGatewayConsumeSchemaValidationPolicyConfig) MergeEventGatewayConsumeSchemaValidationPolicyJsonConfig(v EventGatewayConsumeSchemaValidationPolicyJsonConfig) error

MergeEventGatewayConsumeSchemaValidationPolicyJsonConfig performs a merge with any union data inside the EventGatewayConsumeSchemaValidationPolicyConfig, using the provided EventGatewayConsumeSchemaValidationPolicyJsonConfig

func (*EventGatewayConsumeSchemaValidationPolicyConfig) MergeEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig

func (t *EventGatewayConsumeSchemaValidationPolicyConfig) MergeEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig(v EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig) error

MergeEventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig performs a merge with any union data inside the EventGatewayConsumeSchemaValidationPolicyConfig, using the provided EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig

func (*EventGatewayConsumeSchemaValidationPolicyConfig) UnmarshalJSON

func (EventGatewayConsumeSchemaValidationPolicyConfig) ValueByDiscriminator

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

type EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig

type EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to consumed records.
	// * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it.
	// * `skip` - the record is not delivered to the client.
	// * `passthrough` - passes the record to the client even though policy execution failed.
	// * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode *ConsumeFailureMode `json:"failure_mode,omitempty"`

	// Key Defines the schema for a record key or value, inline.
	//
	// **Requires a minimum runtime version of `1.3`**.
	Key *SchemaValidationInlineSchemaConfig `json:"key,omitempty"`

	// KeyValidationAction Deprecated. Use `failure_mode`.
	//
	// Defines a behavior when record key is not valid.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	// * skip - skips delivering a record.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	KeyValidationAction *ConsumeKeyValidationAction                                     `json:"key_validation_action,omitempty"`
	Type                EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigType `json:"type"`

	// ValidateKey If true, validate the record key.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateKey *bool `json:"validate_key,omitempty"`

	// ValidateValue If true, validate the record value.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateValue *bool `json:"validate_value,omitempty"`

	// Value Defines the schema for a record key or value, inline.
	//
	// **Requires a minimum runtime version of `1.3`**.
	Value *SchemaValidationInlineSchemaConfig `json:"value,omitempty"`

	// ValueValidationAction Deprecated. Use `failure_mode`.
	//
	// Defines a behavior when record value is not valid.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	// * skip - skips delivering a record.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ValueValidationAction *ConsumeValueValidationAction `json:"value_validation_action,omitempty"`
}

EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig The configuration of the consume schema validation policy when using an inline schema.

**Requires a minimum runtime version of `1.3`**.

type EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigType

type EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigType string

EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigType defines model for EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfig.Type.

const (
	EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigTypeInlineSchema EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigType = "inline_schema"
)

Defines values for EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigType.

func (EventGatewayConsumeSchemaValidationPolicyInlineSchemaConfigType) Valid

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

type EventGatewayConsumeSchemaValidationPolicyJsonConfig

type EventGatewayConsumeSchemaValidationPolicyJsonConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to consumed records.
	// * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it.
	// * `skip` - the record is not delivered to the client.
	// * `passthrough` - passes the record to the client even though policy execution failed.
	// * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode *ConsumeFailureMode `json:"failure_mode,omitempty"`

	// KeyValidationAction Deprecated. Use `failure_mode`.
	//
	// Defines a behavior when record key is not valid.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	// * skip - skips delivering a record.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	KeyValidationAction *ConsumeKeyValidationAction `json:"key_validation_action,omitempty"`

	// SchemaRegistry A reference to a schema Registry.
	SchemaRegistry *SchemaRegistryReference                                `json:"schema_registry,omitempty"`
	Type           EventGatewayConsumeSchemaValidationPolicyJsonConfigType `json:"type"`

	// ValidateKey If true, validate the record key.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateKey *bool `json:"validate_key,omitempty"`

	// ValidateValue If true, validate the record value.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateValue *bool `json:"validate_value,omitempty"`

	// ValueValidationAction Deprecated. Use `failure_mode`.
	//
	// Defines a behavior when record value is not valid.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	// * skip - skips delivering a record.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ValueValidationAction *ConsumeValueValidationAction `json:"value_validation_action,omitempty"`
}

EventGatewayConsumeSchemaValidationPolicyJsonConfig The configuration of the consume schema validation policy when using JSON parsing without schema.

type EventGatewayConsumeSchemaValidationPolicyJsonConfigType

type EventGatewayConsumeSchemaValidationPolicyJsonConfigType string

EventGatewayConsumeSchemaValidationPolicyJsonConfigType defines model for EventGatewayConsumeSchemaValidationPolicyJsonConfig.Type.

const (
	EventGatewayConsumeSchemaValidationPolicyJsonConfigTypeJson EventGatewayConsumeSchemaValidationPolicyJsonConfigType = "json"
)

Defines values for EventGatewayConsumeSchemaValidationPolicyJsonConfigType.

func (EventGatewayConsumeSchemaValidationPolicyJsonConfigType) Valid

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

type EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig

type EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to consumed records.
	// * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it.
	// * `skip` - the record is not delivered to the client.
	// * `passthrough` - passes the record to the client even though policy execution failed.
	// * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode *ConsumeFailureMode `json:"failure_mode,omitempty"`

	// KeyValidationAction Deprecated. Use `failure_mode`.
	//
	// Defines a behavior when record key is not valid.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	// * skip - skips delivering a record.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	KeyValidationAction *ConsumeKeyValidationAction `json:"key_validation_action,omitempty"`

	// SchemaRegistry A reference to a schema Registry.
	SchemaRegistry *SchemaRegistryReference                                          `json:"schema_registry,omitempty"`
	Type           EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigType `json:"type"`

	// ValidateKey If true, validate the record key.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateKey *bool `json:"validate_key,omitempty"`

	// ValidateValue If true, validate the record value.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateValue *bool `json:"validate_value,omitempty"`

	// ValueValidationAction Deprecated. Use `failure_mode`.
	//
	// Defines a behavior when record value is not valid.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	// * skip - skips delivering a record.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ValueValidationAction *ConsumeValueValidationAction `json:"value_validation_action,omitempty"`
}

EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig The configuration of the consume schema validation policy when using a schema registry.

type EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigType

type EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigType string

EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigType defines model for EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfig.Type.

const (
	EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigTypeConfluentSchemaRegistry EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigType = "confluent_schema_registry"
)

Defines values for EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigType.

func (EventGatewayConsumeSchemaValidationPolicySchemaRegistryConfigType) Valid

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

type EventGatewayConsumeSchemaValidationPolicyType

type EventGatewayConsumeSchemaValidationPolicyType string

EventGatewayConsumeSchemaValidationPolicyType The type name of the policy.

const (
	EventGatewayConsumeSchemaValidationPolicyTypeSchemaValidation EventGatewayConsumeSchemaValidationPolicyType = "schema_validation"
)

Defines values for EventGatewayConsumeSchemaValidationPolicyType.

func (EventGatewayConsumeSchemaValidationPolicyType) Valid

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

type EventGatewayConsumerGroupHeartbeatRequestRules

type EventGatewayConsumerGroupHeartbeatRequestRules struct {
	// Rules Every rule in this list is evaluated independently against the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayConsumerGroupHeartbeatRule           `json:"rules"`
	Type  EventGatewayConsumerGroupHeartbeatRequestRulesType `json:"type"`
}

EventGatewayConsumerGroupHeartbeatRequestRules The rules to apply to Kafka `ConsumerGroupHeartbeat` requests.

Example: {"rules":[{"action":"reject","description":"Enforce the consumer group naming convention.","rule":"context.group.id.startsWith('team-a.')"}],"type":"consumer_group_heartbeat"}

type EventGatewayConsumerGroupHeartbeatRequestRulesType

type EventGatewayConsumerGroupHeartbeatRequestRulesType string

EventGatewayConsumerGroupHeartbeatRequestRulesType defines model for EventGatewayConsumerGroupHeartbeatRequestRules.Type.

const (
	ConsumerGroupHeartbeat EventGatewayConsumerGroupHeartbeatRequestRulesType = "consumer_group_heartbeat"
)

Defines values for EventGatewayConsumerGroupHeartbeatRequestRulesType.

func (EventGatewayConsumerGroupHeartbeatRequestRulesType) Valid

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

type EventGatewayConsumerGroupHeartbeatRule

type EventGatewayConsumerGroupHeartbeatRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.group.id.startsWith('team-a.')
	Rule string `json:"rule"`
}

EventGatewayConsumerGroupHeartbeatRule defines model for EventGatewayConsumerGroupHeartbeatRule.

type EventGatewayCreatePartitionsRequestRules

type EventGatewayCreatePartitionsRequestRules struct {
	// Rules Every rule in this list is evaluated independently against each topic in the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayCreatePartitionsRule           `json:"rules"`
	Type  EventGatewayCreatePartitionsRequestRulesType `json:"type"`
}

EventGatewayCreatePartitionsRequestRules The rules to apply to Kafka `CreatePartitions` requests.

Example: {"rules":[{"action":"reject","description":"Limit the total number of partitions per topic.","rule":"context.topic.count \u003c= 50"}],"type":"create_partitions"}

type EventGatewayCreatePartitionsRequestRulesType

type EventGatewayCreatePartitionsRequestRulesType string

EventGatewayCreatePartitionsRequestRulesType defines model for EventGatewayCreatePartitionsRequestRules.Type.

const (
	CreatePartitions EventGatewayCreatePartitionsRequestRulesType = "create_partitions"
)

Defines values for EventGatewayCreatePartitionsRequestRulesType.

func (EventGatewayCreatePartitionsRequestRulesType) Valid

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

type EventGatewayCreatePartitionsRule

type EventGatewayCreatePartitionsRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.topic.count <= 50
	Rule string `json:"rule"`
}

EventGatewayCreatePartitionsRule defines model for EventGatewayCreatePartitionsRule.

type EventGatewayCreateTopicsRequestRules

type EventGatewayCreateTopicsRequestRules struct {
	// Rules Every rule in this list is evaluated independently against each topic in the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayCreateTopicsRule           `json:"rules"`
	Type  EventGatewayCreateTopicsRequestRulesType `json:"type"`
}

EventGatewayCreateTopicsRequestRules The rules to apply to Kafka `CreateTopics` requests.

When at least one `create_topics` rule is configured, Event Gateway turns auto topic creation off on `Metadata` requests, because clients could use it to bypass the rules.

Example: {"rules":[{"action":"reject","description":"Enforce the topic naming convention and a partition limit.","rule":"context.topic.name.startsWith('team-a.') \u0026\u0026 context.topic.num_partitions \u003c= 50"}],"type":"create_topics"}

type EventGatewayCreateTopicsRequestRulesType

type EventGatewayCreateTopicsRequestRulesType string

EventGatewayCreateTopicsRequestRulesType defines model for EventGatewayCreateTopicsRequestRules.Type.

const (
	CreateTopics EventGatewayCreateTopicsRequestRulesType = "create_topics"
)

Defines values for EventGatewayCreateTopicsRequestRulesType.

func (EventGatewayCreateTopicsRequestRulesType) Valid

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

type EventGatewayCreateTopicsRule

type EventGatewayCreateTopicsRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.topic.name.startsWith('team-a.') && context.topic.num_partitions <= 50
	Rule string `json:"rule"`
}

EventGatewayCreateTopicsRule defines model for EventGatewayCreateTopicsRule.

type EventGatewayDataPlaneCertificateOnPrem

type EventGatewayDataPlaneCertificateOnPrem struct {
	// Certificate JSON escaped string of the certificate.
	Certificate string `json:"certificate"`

	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A description of the certificate.
	Description *string `json:"description,omitempty"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`

	// Name The name to identify of the certificate.
	Name *string `json:"name,omitempty"`
}

EventGatewayDataPlaneCertificateOnPrem An Event Gateway dataplane certificate, extended with the unique identifier and creation timestamp for on-prem deployments.

type EventGatewayDecryptPolicy

type EventGatewayDecryptPolicy struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// Example: context.topic.name.endsWith("my_suffix") && record.headers["x-flag"] == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the decrypt policy.
	Config EventGatewayDecryptPolicyConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayDecryptPolicyType `json:"type"`
}

EventGatewayDecryptPolicy Decrypts Kafka records or keys using AES_256_GCM. Keys are therefore 256 bits long.

type EventGatewayDecryptPolicyConfig

type EventGatewayDecryptPolicyConfig struct {
	// FailureMode Describes how to handle failing encryption or decryption.
	// Use `error` if the record should be rejected if encryption or decryption fails.
	// Use `passthrough` to ignore encryption or decryption failure and continue proxying the record.
	FailureMode EncryptionFailureMode `json:"failure_mode"`

	// KeySources Describes how to find a symmetric key for decryption.
	KeySources []EventGatewayKeySource `json:"key_sources"`

	// PartOfRecord Describes the parts of a record to decrypt.
	PartOfRecord []DecryptionRecordPart `json:"part_of_record"`
}

EventGatewayDecryptPolicyConfig The configuration of the decrypt policy.

type EventGatewayDecryptPolicyType

type EventGatewayDecryptPolicyType string

EventGatewayDecryptPolicyType The type name of the policy.

const (
	Decrypt EventGatewayDecryptPolicyType = "decrypt"
)

Defines values for EventGatewayDecryptPolicyType.

func (EventGatewayDecryptPolicyType) Valid

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

type EventGatewayEncryptConfig

type EventGatewayEncryptConfig struct {
	// EncryptionKey The key to use for encryption.
	EncryptionKey EncryptionKey `json:"encryption_key"`

	// FailureMode Describes how to handle failing encryption or decryption.
	// Use `error` if the record should be rejected if encryption or decryption fails.
	// Use `passthrough` to ignore encryption or decryption failure and continue proxying the record.
	FailureMode EncryptionFailureMode `json:"failure_mode"`

	// PartOfRecord Describes the parts of a record to encrypt.
	PartOfRecord []EncryptionRecordPart `json:"part_of_record"`
}

EventGatewayEncryptConfig The configuration of the encrypt policy.

type EventGatewayEncryptPolicy

type EventGatewayEncryptPolicy struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// Example: context.topic.name.endsWith("my_suffix") && record.headers["x-flag"] == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the encrypt policy.
	Config EventGatewayEncryptConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayEncryptPolicyType `json:"type"`
}

EventGatewayEncryptPolicy Encrypts Kafka records or keys using AES_256_GCM. Keys are therefore 256 bits long.

type EventGatewayEncryptPolicyType

type EventGatewayEncryptPolicyType string

EventGatewayEncryptPolicyType The type name of the policy.

const (
	Encrypt EventGatewayEncryptPolicyType = "encrypt"
)

Defines values for EventGatewayEncryptPolicyType.

func (EventGatewayEncryptPolicyType) Valid

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

type EventGatewayFetchRequestRules

type EventGatewayFetchRequestRules struct {
	// Rules Every rule in this list is evaluated independently against the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayFetchRule           `json:"rules"`
	Type  EventGatewayFetchRequestRulesType `json:"type"`
}

EventGatewayFetchRequestRules The rules to apply to Kafka `Fetch` requests.

Example: {"rules":[{"action":"reject","description":"Require sane fetch size bounds.","rule":"context.fetch.min_bytes \u003e= 1024 \u0026\u0026 context.fetch.max_bytes \u003c= 10485760"}],"type":"fetch"}

type EventGatewayFetchRequestRulesType

type EventGatewayFetchRequestRulesType string

EventGatewayFetchRequestRulesType defines model for EventGatewayFetchRequestRules.Type.

const (
	Fetch EventGatewayFetchRequestRulesType = "fetch"
)

Defines values for EventGatewayFetchRequestRulesType.

func (EventGatewayFetchRequestRulesType) Valid

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

type EventGatewayFetchRule

type EventGatewayFetchRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.fetch.min_bytes >= 1024 && context.fetch.max_bytes <= 10485760
	Rule string `json:"rule"`
}

EventGatewayFetchRule defines model for EventGatewayFetchRule.

type EventGatewayIncrementalAlterConfigsRequestRules

type EventGatewayIncrementalAlterConfigsRequestRules struct {
	// Rules Every rule in this list is evaluated independently against each configuration entry in the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayIncrementalAlterConfigsRule           `json:"rules"`
	Type  EventGatewayIncrementalAlterConfigsRequestRulesType `json:"type"`
}

EventGatewayIncrementalAlterConfigsRequestRules The rules to apply to Kafka `IncrementalAlterConfigs` requests.

Example: {"rules":[{"action":"reject","description":"Broker-level config changes are not allowed.","rule":"context.resource.type != 'BROKER'"},{"action":"reject","description":"The retention.ms config may only be SET to 24h (86400000).","rule":"context.resource.type != 'TOPIC' || context.config.name != 'retention.ms' || (context.config.operation == 'SET' \u0026\u0026 context.config.value == \"86400000\")"},{"action":"reject","description":"The retention.ms config cannot be removed.","rule":"!(context.resource.type == 'TOPIC' \u0026\u0026 context.config.name == 'retention.ms' \u0026\u0026 context.config.operation == 'DELETE')"}],"type":"incremental_alter_configs"}

type EventGatewayIncrementalAlterConfigsRequestRulesType

type EventGatewayIncrementalAlterConfigsRequestRulesType string

EventGatewayIncrementalAlterConfigsRequestRulesType defines model for EventGatewayIncrementalAlterConfigsRequestRules.Type.

const (
	IncrementalAlterConfigs EventGatewayIncrementalAlterConfigsRequestRulesType = "incremental_alter_configs"
)

Defines values for EventGatewayIncrementalAlterConfigsRequestRulesType.

func (EventGatewayIncrementalAlterConfigsRequestRulesType) Valid

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

type EventGatewayIncrementalAlterConfigsRule

type EventGatewayIncrementalAlterConfigsRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.resource.type != 'BROKER'
	Rule string `json:"rule"`
}

EventGatewayIncrementalAlterConfigsRule defines model for EventGatewayIncrementalAlterConfigsRule.

type EventGatewayJoinGroupRequestRules

type EventGatewayJoinGroupRequestRules struct {
	// Rules Every rule in this list is evaluated independently against the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayJoinGroupRule           `json:"rules"`
	Type  EventGatewayJoinGroupRequestRulesType `json:"type"`
}

EventGatewayJoinGroupRequestRules The rules to apply to Kafka `JoinGroup` requests.

Example: {"rules":[{"action":"reject","description":"Enforce the consumer group naming convention.","rule":"context.group.id.startsWith('team-a.')"}],"type":"join_group"}

type EventGatewayJoinGroupRequestRulesType

type EventGatewayJoinGroupRequestRulesType string

EventGatewayJoinGroupRequestRulesType defines model for EventGatewayJoinGroupRequestRules.Type.

const (
	JoinGroup EventGatewayJoinGroupRequestRulesType = "join_group"
)

Defines values for EventGatewayJoinGroupRequestRulesType.

func (EventGatewayJoinGroupRequestRulesType) Valid

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

type EventGatewayJoinGroupRule

type EventGatewayJoinGroupRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.group.id.startsWith('team-a.')
	Rule string `json:"rule"`
}

EventGatewayJoinGroupRule defines model for EventGatewayJoinGroupRule.

type EventGatewayKeySource

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

EventGatewayKeySource A key source that describes how to find a symmetric key for encryption or decryption. It can be an AWS KMS key source that uses a KMS to find a symmetric key, or a static key source that uses a static symmetric key provided as secrets.

func (EventGatewayKeySource) AsEventGatewayAWSKeySource

func (t EventGatewayKeySource) AsEventGatewayAWSKeySource() (EventGatewayAWSKeySource, error)

AsEventGatewayAWSKeySource returns the union data inside the EventGatewayKeySource as a EventGatewayAWSKeySource

func (EventGatewayKeySource) AsEventGatewayStaticKeySource

func (t EventGatewayKeySource) AsEventGatewayStaticKeySource() (EventGatewayStaticKeySource, error)

AsEventGatewayStaticKeySource returns the union data inside the EventGatewayKeySource as a EventGatewayStaticKeySource

func (EventGatewayKeySource) Discriminator

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

func (*EventGatewayKeySource) FromEventGatewayAWSKeySource

func (t *EventGatewayKeySource) FromEventGatewayAWSKeySource(v EventGatewayAWSKeySource) error

FromEventGatewayAWSKeySource overwrites any union data inside the EventGatewayKeySource as the provided EventGatewayAWSKeySource

func (*EventGatewayKeySource) FromEventGatewayStaticKeySource

func (t *EventGatewayKeySource) FromEventGatewayStaticKeySource(v EventGatewayStaticKeySource) error

FromEventGatewayStaticKeySource overwrites any union data inside the EventGatewayKeySource as the provided EventGatewayStaticKeySource

func (EventGatewayKeySource) MarshalJSON

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

func (*EventGatewayKeySource) MergeEventGatewayAWSKeySource

func (t *EventGatewayKeySource) MergeEventGatewayAWSKeySource(v EventGatewayAWSKeySource) error

MergeEventGatewayAWSKeySource performs a merge with any union data inside the EventGatewayKeySource, using the provided EventGatewayAWSKeySource

func (*EventGatewayKeySource) MergeEventGatewayStaticKeySource

func (t *EventGatewayKeySource) MergeEventGatewayStaticKeySource(v EventGatewayStaticKeySource) error

MergeEventGatewayStaticKeySource performs a merge with any union data inside the EventGatewayKeySource, using the provided EventGatewayStaticKeySource

func (*EventGatewayKeySource) UnmarshalJSON

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

func (EventGatewayKeySource) ValueByDiscriminator

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

type EventGatewayListenerAddresses

type EventGatewayListenerAddresses = []string

EventGatewayListenerAddresses Which address or addresses to listen on. `0.0.0.0` means all addresses on the host. `::` means all addresses on the host in IPv6.

If `0.0.0.0` or `::` is used, there can't be other extra addresses defined.
WARNING: there are use cases where listening on all addresses is insecure. So use this with caution.

`localhost` means only the localhost ipv4 address.

type EventGatewayListenerOnPrem

type EventGatewayListenerOnPrem struct {
	// Addresses Which address or addresses to listen on.
	// `0.0.0.0` means all addresses on the host.
	// `::` means all addresses on the host in IPv6.
	//
	//   If `0.0.0.0` or `::` is used, there can't be other extra addresses defined.
	//   WARNING: there are use cases where listening on all addresses is insecure. So use this with caution.
	//
	//   `localhost` means only the localhost ipv4 address.
	Addresses EventGatewayListenerAddresses `json:"addresses"`

	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A human-readable description of the listener.
	Description *string `json:"description,omitempty"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

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

	// Policies The policies scoped to the listener.
	Policies []EventGatewayListenerPolicyOnPrem `json:"policies"`

	// Ports Which port or ports to listen on.
	// There can be multiple ways to define ports:
	//   - as a single port, e.g. 9092
	//   - as a range of ports, e.g. 9092-9094
	//
	// It's possible to combine both, e.g. [9092, "9093-9095", 9096].
	Ports EventGatewayListenerPorts `json:"ports"`
}

EventGatewayListenerOnPrem An Event Gateway listener, extended with the unique identifier, creation timestamp, and scoped listener policies for on-prem deployments.

type EventGatewayListenerPolicyCreate

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

EventGatewayListenerPolicyCreate The typed schema of the listener policy to modify it.

func (EventGatewayListenerPolicyCreate) AsEventGatewayTLSListenerPolicy

func (t EventGatewayListenerPolicyCreate) AsEventGatewayTLSListenerPolicy() (EventGatewayTLSListenerPolicy, error)

AsEventGatewayTLSListenerPolicy returns the union data inside the EventGatewayListenerPolicyCreate as a EventGatewayTLSListenerPolicy

func (EventGatewayListenerPolicyCreate) AsForwardToVirtualClusterPolicy

func (t EventGatewayListenerPolicyCreate) AsForwardToVirtualClusterPolicy() (ForwardToVirtualClusterPolicy, error)

AsForwardToVirtualClusterPolicy returns the union data inside the EventGatewayListenerPolicyCreate as a ForwardToVirtualClusterPolicy

func (EventGatewayListenerPolicyCreate) Discriminator

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

func (*EventGatewayListenerPolicyCreate) FromEventGatewayTLSListenerPolicy

func (t *EventGatewayListenerPolicyCreate) FromEventGatewayTLSListenerPolicy(v EventGatewayTLSListenerPolicy) error

FromEventGatewayTLSListenerPolicy overwrites any union data inside the EventGatewayListenerPolicyCreate as the provided EventGatewayTLSListenerPolicy

func (*EventGatewayListenerPolicyCreate) FromForwardToVirtualClusterPolicy

func (t *EventGatewayListenerPolicyCreate) FromForwardToVirtualClusterPolicy(v ForwardToVirtualClusterPolicy) error

FromForwardToVirtualClusterPolicy overwrites any union data inside the EventGatewayListenerPolicyCreate as the provided ForwardToVirtualClusterPolicy

func (EventGatewayListenerPolicyCreate) MarshalJSON

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

func (*EventGatewayListenerPolicyCreate) MergeEventGatewayTLSListenerPolicy

func (t *EventGatewayListenerPolicyCreate) MergeEventGatewayTLSListenerPolicy(v EventGatewayTLSListenerPolicy) error

MergeEventGatewayTLSListenerPolicy performs a merge with any union data inside the EventGatewayListenerPolicyCreate, using the provided EventGatewayTLSListenerPolicy

func (*EventGatewayListenerPolicyCreate) MergeForwardToVirtualClusterPolicy

func (t *EventGatewayListenerPolicyCreate) MergeForwardToVirtualClusterPolicy(v ForwardToVirtualClusterPolicy) error

MergeForwardToVirtualClusterPolicy performs a merge with any union data inside the EventGatewayListenerPolicyCreate, using the provided ForwardToVirtualClusterPolicy

func (*EventGatewayListenerPolicyCreate) UnmarshalJSON

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

func (EventGatewayListenerPolicyCreate) ValueByDiscriminator

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

type EventGatewayListenerPolicyOnPrem

type EventGatewayListenerPolicyOnPrem struct {
	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`
	// contains filtered or unexported fields
}

EventGatewayListenerPolicyOnPrem defines model for EventGatewayListenerPolicyOnPrem.

func (EventGatewayListenerPolicyOnPrem) AsEventGatewayTLSListenerPolicy

func (t EventGatewayListenerPolicyOnPrem) AsEventGatewayTLSListenerPolicy() (EventGatewayTLSListenerPolicy, error)

AsEventGatewayTLSListenerPolicy returns the union data inside the EventGatewayListenerPolicyOnPrem as a EventGatewayTLSListenerPolicy

func (EventGatewayListenerPolicyOnPrem) AsForwardToVirtualClusterPolicy

func (t EventGatewayListenerPolicyOnPrem) AsForwardToVirtualClusterPolicy() (ForwardToVirtualClusterPolicy, error)

AsForwardToVirtualClusterPolicy returns the union data inside the EventGatewayListenerPolicyOnPrem as a ForwardToVirtualClusterPolicy

func (EventGatewayListenerPolicyOnPrem) Discriminator

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

func (*EventGatewayListenerPolicyOnPrem) FromEventGatewayTLSListenerPolicy

func (t *EventGatewayListenerPolicyOnPrem) FromEventGatewayTLSListenerPolicy(v EventGatewayTLSListenerPolicy) error

FromEventGatewayTLSListenerPolicy overwrites any union data inside the EventGatewayListenerPolicyOnPrem as the provided EventGatewayTLSListenerPolicy

func (*EventGatewayListenerPolicyOnPrem) FromForwardToVirtualClusterPolicy

func (t *EventGatewayListenerPolicyOnPrem) FromForwardToVirtualClusterPolicy(v ForwardToVirtualClusterPolicy) error

FromForwardToVirtualClusterPolicy overwrites any union data inside the EventGatewayListenerPolicyOnPrem as the provided ForwardToVirtualClusterPolicy

func (EventGatewayListenerPolicyOnPrem) MarshalJSON

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

func (*EventGatewayListenerPolicyOnPrem) MergeEventGatewayTLSListenerPolicy

func (t *EventGatewayListenerPolicyOnPrem) MergeEventGatewayTLSListenerPolicy(v EventGatewayTLSListenerPolicy) error

MergeEventGatewayTLSListenerPolicy performs a merge with any union data inside the EventGatewayListenerPolicyOnPrem, using the provided EventGatewayTLSListenerPolicy

func (*EventGatewayListenerPolicyOnPrem) MergeForwardToVirtualClusterPolicy

func (t *EventGatewayListenerPolicyOnPrem) MergeForwardToVirtualClusterPolicy(v ForwardToVirtualClusterPolicy) error

MergeForwardToVirtualClusterPolicy performs a merge with any union data inside the EventGatewayListenerPolicyOnPrem, using the provided ForwardToVirtualClusterPolicy

func (*EventGatewayListenerPolicyOnPrem) UnmarshalJSON

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

func (EventGatewayListenerPolicyOnPrem) ValueByDiscriminator

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

type EventGatewayListenerPort

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

EventGatewayListenerPort defines model for EventGatewayListenerPort.

func (EventGatewayListenerPort) AsEventGatewayListenerPortInteger

func (t EventGatewayListenerPort) AsEventGatewayListenerPortInteger() (EventGatewayListenerPortInteger, error)

AsEventGatewayListenerPortInteger returns the union data inside the EventGatewayListenerPort as a EventGatewayListenerPortInteger

func (EventGatewayListenerPort) AsEventGatewayListenerPortString

func (t EventGatewayListenerPort) AsEventGatewayListenerPortString() (EventGatewayListenerPortString, error)

AsEventGatewayListenerPortString returns the union data inside the EventGatewayListenerPort as a EventGatewayListenerPortString

func (*EventGatewayListenerPort) FromEventGatewayListenerPortInteger

func (t *EventGatewayListenerPort) FromEventGatewayListenerPortInteger(v EventGatewayListenerPortInteger) error

FromEventGatewayListenerPortInteger overwrites any union data inside the EventGatewayListenerPort as the provided EventGatewayListenerPortInteger

func (*EventGatewayListenerPort) FromEventGatewayListenerPortString

func (t *EventGatewayListenerPort) FromEventGatewayListenerPortString(v EventGatewayListenerPortString) error

FromEventGatewayListenerPortString overwrites any union data inside the EventGatewayListenerPort as the provided EventGatewayListenerPortString

func (EventGatewayListenerPort) MarshalJSON

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

func (*EventGatewayListenerPort) MergeEventGatewayListenerPortInteger

func (t *EventGatewayListenerPort) MergeEventGatewayListenerPortInteger(v EventGatewayListenerPortInteger) error

MergeEventGatewayListenerPortInteger performs a merge with any union data inside the EventGatewayListenerPort, using the provided EventGatewayListenerPortInteger

func (*EventGatewayListenerPort) MergeEventGatewayListenerPortString

func (t *EventGatewayListenerPort) MergeEventGatewayListenerPortString(v EventGatewayListenerPortString) error

MergeEventGatewayListenerPortString performs a merge with any union data inside the EventGatewayListenerPort, using the provided EventGatewayListenerPortString

func (*EventGatewayListenerPort) UnmarshalJSON

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

type EventGatewayListenerPortInteger

type EventGatewayListenerPortInteger = int

EventGatewayListenerPortInteger defines model for EventGatewayListenerPortInteger.

type EventGatewayListenerPortString

type EventGatewayListenerPortString = string

EventGatewayListenerPortString A port or a range of ports in the format 9092 or 9092-9094.

type EventGatewayListenerPorts

type EventGatewayListenerPorts = []EventGatewayListenerPort

EventGatewayListenerPorts Which port or ports to listen on. There can be multiple ways to define ports:

  • as a single port, e.g. 9092
  • as a range of ports, e.g. 9092-9094

It's possible to combine both, e.g. [9092, "9093-9095", 9096].

type EventGatewayMaskEmailDomainKeepAll

type EventGatewayMaskEmailDomainKeepAll struct {
	Type EventGatewayMaskEmailDomainKeepAllType `json:"type"`
}

EventGatewayMaskEmailDomainKeepAll Keeps the whole domain unmasked.

type EventGatewayMaskEmailDomainKeepAllType

type EventGatewayMaskEmailDomainKeepAllType string

EventGatewayMaskEmailDomainKeepAllType defines model for EventGatewayMaskEmailDomainKeepAll.Type.

const (
	KeepAll EventGatewayMaskEmailDomainKeepAllType = "keep_all"
)

Defines values for EventGatewayMaskEmailDomainKeepAllType.

func (EventGatewayMaskEmailDomainKeepAllType) Valid

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

type EventGatewayMaskEmailDomainStrategy

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

EventGatewayMaskEmailDomainStrategy The strategy used to redact the domain of an email address.

func (EventGatewayMaskEmailDomainStrategy) AsEventGatewayMaskEmailDomainKeepAll

func (t EventGatewayMaskEmailDomainStrategy) AsEventGatewayMaskEmailDomainKeepAll() (EventGatewayMaskEmailDomainKeepAll, error)

AsEventGatewayMaskEmailDomainKeepAll returns the union data inside the EventGatewayMaskEmailDomainStrategy as a EventGatewayMaskEmailDomainKeepAll

func (EventGatewayMaskEmailDomainStrategy) AsEventGatewayMaskStrategyKeepChars

func (t EventGatewayMaskEmailDomainStrategy) AsEventGatewayMaskStrategyKeepChars() (EventGatewayMaskStrategyKeepChars, error)

AsEventGatewayMaskStrategyKeepChars returns the union data inside the EventGatewayMaskEmailDomainStrategy as a EventGatewayMaskStrategyKeepChars

func (EventGatewayMaskEmailDomainStrategy) AsEventGatewayMaskStrategyReplace

func (t EventGatewayMaskEmailDomainStrategy) AsEventGatewayMaskStrategyReplace() (EventGatewayMaskStrategyReplace, error)

AsEventGatewayMaskStrategyReplace returns the union data inside the EventGatewayMaskEmailDomainStrategy as a EventGatewayMaskStrategyReplace

func (EventGatewayMaskEmailDomainStrategy) Discriminator

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

func (*EventGatewayMaskEmailDomainStrategy) FromEventGatewayMaskEmailDomainKeepAll

func (t *EventGatewayMaskEmailDomainStrategy) FromEventGatewayMaskEmailDomainKeepAll(v EventGatewayMaskEmailDomainKeepAll) error

FromEventGatewayMaskEmailDomainKeepAll overwrites any union data inside the EventGatewayMaskEmailDomainStrategy as the provided EventGatewayMaskEmailDomainKeepAll

func (*EventGatewayMaskEmailDomainStrategy) FromEventGatewayMaskStrategyKeepChars

func (t *EventGatewayMaskEmailDomainStrategy) FromEventGatewayMaskStrategyKeepChars(v EventGatewayMaskStrategyKeepChars) error

FromEventGatewayMaskStrategyKeepChars overwrites any union data inside the EventGatewayMaskEmailDomainStrategy as the provided EventGatewayMaskStrategyKeepChars

func (*EventGatewayMaskEmailDomainStrategy) FromEventGatewayMaskStrategyReplace

func (t *EventGatewayMaskEmailDomainStrategy) FromEventGatewayMaskStrategyReplace(v EventGatewayMaskStrategyReplace) error

FromEventGatewayMaskStrategyReplace overwrites any union data inside the EventGatewayMaskEmailDomainStrategy as the provided EventGatewayMaskStrategyReplace

func (EventGatewayMaskEmailDomainStrategy) MarshalJSON

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

func (*EventGatewayMaskEmailDomainStrategy) MergeEventGatewayMaskEmailDomainKeepAll

func (t *EventGatewayMaskEmailDomainStrategy) MergeEventGatewayMaskEmailDomainKeepAll(v EventGatewayMaskEmailDomainKeepAll) error

MergeEventGatewayMaskEmailDomainKeepAll performs a merge with any union data inside the EventGatewayMaskEmailDomainStrategy, using the provided EventGatewayMaskEmailDomainKeepAll

func (*EventGatewayMaskEmailDomainStrategy) MergeEventGatewayMaskStrategyKeepChars

func (t *EventGatewayMaskEmailDomainStrategy) MergeEventGatewayMaskStrategyKeepChars(v EventGatewayMaskStrategyKeepChars) error

MergeEventGatewayMaskStrategyKeepChars performs a merge with any union data inside the EventGatewayMaskEmailDomainStrategy, using the provided EventGatewayMaskStrategyKeepChars

func (*EventGatewayMaskEmailDomainStrategy) MergeEventGatewayMaskStrategyReplace

func (t *EventGatewayMaskEmailDomainStrategy) MergeEventGatewayMaskStrategyReplace(v EventGatewayMaskStrategyReplace) error

MergeEventGatewayMaskStrategyReplace performs a merge with any union data inside the EventGatewayMaskEmailDomainStrategy, using the provided EventGatewayMaskStrategyReplace

func (*EventGatewayMaskEmailDomainStrategy) UnmarshalJSON

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

func (EventGatewayMaskEmailDomainStrategy) ValueByDiscriminator

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

type EventGatewayMaskEmailLocalPartStrategy

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

EventGatewayMaskEmailLocalPartStrategy The strategy used to redact the local part of an email address.

func (EventGatewayMaskEmailLocalPartStrategy) AsEventGatewayMaskStrategyKeepChars

func (t EventGatewayMaskEmailLocalPartStrategy) AsEventGatewayMaskStrategyKeepChars() (EventGatewayMaskStrategyKeepChars, error)

AsEventGatewayMaskStrategyKeepChars returns the union data inside the EventGatewayMaskEmailLocalPartStrategy as a EventGatewayMaskStrategyKeepChars

func (EventGatewayMaskEmailLocalPartStrategy) AsEventGatewayMaskStrategyReplace

func (t EventGatewayMaskEmailLocalPartStrategy) AsEventGatewayMaskStrategyReplace() (EventGatewayMaskStrategyReplace, error)

AsEventGatewayMaskStrategyReplace returns the union data inside the EventGatewayMaskEmailLocalPartStrategy as a EventGatewayMaskStrategyReplace

func (EventGatewayMaskEmailLocalPartStrategy) Discriminator

func (*EventGatewayMaskEmailLocalPartStrategy) FromEventGatewayMaskStrategyKeepChars

func (t *EventGatewayMaskEmailLocalPartStrategy) FromEventGatewayMaskStrategyKeepChars(v EventGatewayMaskStrategyKeepChars) error

FromEventGatewayMaskStrategyKeepChars overwrites any union data inside the EventGatewayMaskEmailLocalPartStrategy as the provided EventGatewayMaskStrategyKeepChars

func (*EventGatewayMaskEmailLocalPartStrategy) FromEventGatewayMaskStrategyReplace

func (t *EventGatewayMaskEmailLocalPartStrategy) FromEventGatewayMaskStrategyReplace(v EventGatewayMaskStrategyReplace) error

FromEventGatewayMaskStrategyReplace overwrites any union data inside the EventGatewayMaskEmailLocalPartStrategy as the provided EventGatewayMaskStrategyReplace

func (EventGatewayMaskEmailLocalPartStrategy) MarshalJSON

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

func (*EventGatewayMaskEmailLocalPartStrategy) MergeEventGatewayMaskStrategyKeepChars

func (t *EventGatewayMaskEmailLocalPartStrategy) MergeEventGatewayMaskStrategyKeepChars(v EventGatewayMaskStrategyKeepChars) error

MergeEventGatewayMaskStrategyKeepChars performs a merge with any union data inside the EventGatewayMaskEmailLocalPartStrategy, using the provided EventGatewayMaskStrategyKeepChars

func (*EventGatewayMaskEmailLocalPartStrategy) MergeEventGatewayMaskStrategyReplace

func (t *EventGatewayMaskEmailLocalPartStrategy) MergeEventGatewayMaskStrategyReplace(v EventGatewayMaskStrategyReplace) error

MergeEventGatewayMaskStrategyReplace performs a merge with any union data inside the EventGatewayMaskEmailLocalPartStrategy, using the provided EventGatewayMaskStrategyReplace

func (*EventGatewayMaskEmailLocalPartStrategy) UnmarshalJSON

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

func (EventGatewayMaskEmailLocalPartStrategy) ValueByDiscriminator

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

type EventGatewayMaskStrategy

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

EventGatewayMaskStrategy The strategy used to redact a matched field value.

func (EventGatewayMaskStrategy) AsEventGatewayMaskStrategyEmail

func (t EventGatewayMaskStrategy) AsEventGatewayMaskStrategyEmail() (EventGatewayMaskStrategyEmail, error)

AsEventGatewayMaskStrategyEmail returns the union data inside the EventGatewayMaskStrategy as a EventGatewayMaskStrategyEmail

func (EventGatewayMaskStrategy) AsEventGatewayMaskStrategyKeepChars

func (t EventGatewayMaskStrategy) AsEventGatewayMaskStrategyKeepChars() (EventGatewayMaskStrategyKeepChars, error)

AsEventGatewayMaskStrategyKeepChars returns the union data inside the EventGatewayMaskStrategy as a EventGatewayMaskStrategyKeepChars

func (EventGatewayMaskStrategy) AsEventGatewayMaskStrategyReplace

func (t EventGatewayMaskStrategy) AsEventGatewayMaskStrategyReplace() (EventGatewayMaskStrategyReplace, error)

AsEventGatewayMaskStrategyReplace returns the union data inside the EventGatewayMaskStrategy as a EventGatewayMaskStrategyReplace

func (EventGatewayMaskStrategy) Discriminator

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

func (*EventGatewayMaskStrategy) FromEventGatewayMaskStrategyEmail

func (t *EventGatewayMaskStrategy) FromEventGatewayMaskStrategyEmail(v EventGatewayMaskStrategyEmail) error

FromEventGatewayMaskStrategyEmail overwrites any union data inside the EventGatewayMaskStrategy as the provided EventGatewayMaskStrategyEmail

func (*EventGatewayMaskStrategy) FromEventGatewayMaskStrategyKeepChars

func (t *EventGatewayMaskStrategy) FromEventGatewayMaskStrategyKeepChars(v EventGatewayMaskStrategyKeepChars) error

FromEventGatewayMaskStrategyKeepChars overwrites any union data inside the EventGatewayMaskStrategy as the provided EventGatewayMaskStrategyKeepChars

func (*EventGatewayMaskStrategy) FromEventGatewayMaskStrategyReplace

func (t *EventGatewayMaskStrategy) FromEventGatewayMaskStrategyReplace(v EventGatewayMaskStrategyReplace) error

FromEventGatewayMaskStrategyReplace overwrites any union data inside the EventGatewayMaskStrategy as the provided EventGatewayMaskStrategyReplace

func (EventGatewayMaskStrategy) MarshalJSON

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

func (*EventGatewayMaskStrategy) MergeEventGatewayMaskStrategyEmail

func (t *EventGatewayMaskStrategy) MergeEventGatewayMaskStrategyEmail(v EventGatewayMaskStrategyEmail) error

MergeEventGatewayMaskStrategyEmail performs a merge with any union data inside the EventGatewayMaskStrategy, using the provided EventGatewayMaskStrategyEmail

func (*EventGatewayMaskStrategy) MergeEventGatewayMaskStrategyKeepChars

func (t *EventGatewayMaskStrategy) MergeEventGatewayMaskStrategyKeepChars(v EventGatewayMaskStrategyKeepChars) error

MergeEventGatewayMaskStrategyKeepChars performs a merge with any union data inside the EventGatewayMaskStrategy, using the provided EventGatewayMaskStrategyKeepChars

func (*EventGatewayMaskStrategy) MergeEventGatewayMaskStrategyReplace

func (t *EventGatewayMaskStrategy) MergeEventGatewayMaskStrategyReplace(v EventGatewayMaskStrategyReplace) error

MergeEventGatewayMaskStrategyReplace performs a merge with any union data inside the EventGatewayMaskStrategy, using the provided EventGatewayMaskStrategyReplace

func (*EventGatewayMaskStrategy) UnmarshalJSON

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

func (EventGatewayMaskStrategy) ValueByDiscriminator

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

type EventGatewayMaskStrategyEmail

type EventGatewayMaskStrategyEmail struct {
	// Domain The strategy used to redact the domain of an email address.
	Domain EventGatewayMaskEmailDomainStrategy `json:"domain"`

	// LocalPart The strategy used to redact the local part of an email address.
	LocalPart EventGatewayMaskEmailLocalPartStrategy `json:"local_part"`
	Type      EventGatewayMaskStrategyEmailType      `json:"type"`
}

EventGatewayMaskStrategyEmail Masks an email address by applying a separate strategy to the local part and to the domain.

type EventGatewayMaskStrategyEmailType

type EventGatewayMaskStrategyEmailType string

EventGatewayMaskStrategyEmailType defines model for EventGatewayMaskStrategyEmail.Type.

const (
	Email EventGatewayMaskStrategyEmailType = "email"
)

Defines values for EventGatewayMaskStrategyEmailType.

func (EventGatewayMaskStrategyEmailType) Valid

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

type EventGatewayMaskStrategyKeepChars

type EventGatewayMaskStrategyKeepChars struct {
	// First Number of leading characters to keep unmasked.
	First *int `json:"first,omitempty"`

	// Last Number of trailing characters to keep unmasked.
	Last *int `json:"last,omitempty"`

	// Phrase The phrase that replaces the masked middle of the value.
	Phrase string                                `json:"phrase"`
	Type   EventGatewayMaskStrategyKeepCharsType `json:"type"`
}

EventGatewayMaskStrategyKeepChars Keeps a number of leading and/or trailing characters and replaces the middle with a fixed phrase. If `first + last` is greater than or equal to the value length, the whole value is replaced with the phrase, so it never shows more characters than the original value. The phrase is fixed, so the masked output does not leak the value length.

type EventGatewayMaskStrategyKeepCharsType

type EventGatewayMaskStrategyKeepCharsType string

EventGatewayMaskStrategyKeepCharsType defines model for EventGatewayMaskStrategyKeepChars.Type.

const (
	KeepChars EventGatewayMaskStrategyKeepCharsType = "keep_chars"
)

Defines values for EventGatewayMaskStrategyKeepCharsType.

func (EventGatewayMaskStrategyKeepCharsType) Valid

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

type EventGatewayMaskStrategyReplace

type EventGatewayMaskStrategyReplace struct {
	// Phrase The phrase to replace the value with.
	Phrase string                              `json:"phrase"`
	Type   EventGatewayMaskStrategyReplaceType `json:"type"`
}

EventGatewayMaskStrategyReplace Replaces the whole value with a fixed phrase. The masked length does not reflect the original value length.

type EventGatewayMaskStrategyReplaceType

type EventGatewayMaskStrategyReplaceType string

EventGatewayMaskStrategyReplaceType defines model for EventGatewayMaskStrategyReplace.Type.

const (
	Replace EventGatewayMaskStrategyReplaceType = "replace"
)

Defines values for EventGatewayMaskStrategyReplaceType.

func (EventGatewayMaskStrategyReplaceType) Valid

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

type EventGatewayModifyHeaderAction

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

EventGatewayModifyHeaderAction An action that modifies a header.

func (EventGatewayModifyHeaderAction) AsEventGatewayModifyHeaderRemoveAction

func (t EventGatewayModifyHeaderAction) AsEventGatewayModifyHeaderRemoveAction() (EventGatewayModifyHeaderRemoveAction, error)

AsEventGatewayModifyHeaderRemoveAction returns the union data inside the EventGatewayModifyHeaderAction as a EventGatewayModifyHeaderRemoveAction

func (EventGatewayModifyHeaderAction) AsEventGatewayModifyHeaderSetAction

func (t EventGatewayModifyHeaderAction) AsEventGatewayModifyHeaderSetAction() (EventGatewayModifyHeaderSetAction, error)

AsEventGatewayModifyHeaderSetAction returns the union data inside the EventGatewayModifyHeaderAction as a EventGatewayModifyHeaderSetAction

func (EventGatewayModifyHeaderAction) Discriminator

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

func (*EventGatewayModifyHeaderAction) FromEventGatewayModifyHeaderRemoveAction

func (t *EventGatewayModifyHeaderAction) FromEventGatewayModifyHeaderRemoveAction(v EventGatewayModifyHeaderRemoveAction) error

FromEventGatewayModifyHeaderRemoveAction overwrites any union data inside the EventGatewayModifyHeaderAction as the provided EventGatewayModifyHeaderRemoveAction

func (*EventGatewayModifyHeaderAction) FromEventGatewayModifyHeaderSetAction

func (t *EventGatewayModifyHeaderAction) FromEventGatewayModifyHeaderSetAction(v EventGatewayModifyHeaderSetAction) error

FromEventGatewayModifyHeaderSetAction overwrites any union data inside the EventGatewayModifyHeaderAction as the provided EventGatewayModifyHeaderSetAction

func (EventGatewayModifyHeaderAction) MarshalJSON

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

func (*EventGatewayModifyHeaderAction) MergeEventGatewayModifyHeaderRemoveAction

func (t *EventGatewayModifyHeaderAction) MergeEventGatewayModifyHeaderRemoveAction(v EventGatewayModifyHeaderRemoveAction) error

MergeEventGatewayModifyHeaderRemoveAction performs a merge with any union data inside the EventGatewayModifyHeaderAction, using the provided EventGatewayModifyHeaderRemoveAction

func (*EventGatewayModifyHeaderAction) MergeEventGatewayModifyHeaderSetAction

func (t *EventGatewayModifyHeaderAction) MergeEventGatewayModifyHeaderSetAction(v EventGatewayModifyHeaderSetAction) error

MergeEventGatewayModifyHeaderSetAction performs a merge with any union data inside the EventGatewayModifyHeaderAction, using the provided EventGatewayModifyHeaderSetAction

func (*EventGatewayModifyHeaderAction) UnmarshalJSON

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

func (EventGatewayModifyHeaderAction) ValueByDiscriminator

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

type EventGatewayModifyHeaderRemoveAction

type EventGatewayModifyHeaderRemoveAction struct {
	// Key The key of the header to remove.
	Key string                                 `json:"key"`
	Op  EventGatewayModifyHeaderRemoveActionOp `json:"op"`
}

EventGatewayModifyHeaderRemoveAction An action that removes a header by key.

type EventGatewayModifyHeaderRemoveActionOp

type EventGatewayModifyHeaderRemoveActionOp string

EventGatewayModifyHeaderRemoveActionOp defines model for EventGatewayModifyHeaderRemoveAction.Op.

const (
	Remove EventGatewayModifyHeaderRemoveActionOp = "remove"
)

Defines values for EventGatewayModifyHeaderRemoveActionOp.

func (EventGatewayModifyHeaderRemoveActionOp) Valid

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

type EventGatewayModifyHeaderSetAction

type EventGatewayModifyHeaderSetAction struct {
	// Key The key of the header to set.
	Key string                              `json:"key"`
	Op  EventGatewayModifyHeaderSetActionOp `json:"op"`

	// Value The value of the header to set.
	Value string `json:"value"`
}

EventGatewayModifyHeaderSetAction An action that sets a header key and value.

type EventGatewayModifyHeaderSetActionOp

type EventGatewayModifyHeaderSetActionOp string

EventGatewayModifyHeaderSetActionOp defines model for EventGatewayModifyHeaderSetAction.Op.

const (
	Set EventGatewayModifyHeaderSetActionOp = "set"
)

Defines values for EventGatewayModifyHeaderSetActionOp.

func (EventGatewayModifyHeaderSetActionOp) Valid

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

type EventGatewayModifyHeadersPolicyCreate

type EventGatewayModifyHeadersPolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the modify headers policy.
	Config struct {
		// Actions Actions are run in sequential order and act on individual headers.
		Actions *[]EventGatewayModifyHeaderAction `json:"actions,omitempty"`
	} `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy, if any.
	ParentPolicyId *openapi_types.UUID `json:"parent_policy_id,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayModifyHeadersPolicyCreateType `json:"type"`
}

EventGatewayModifyHeadersPolicyCreate A policy that modifies headers for requests.

type EventGatewayModifyHeadersPolicyCreateType

type EventGatewayModifyHeadersPolicyCreateType string

EventGatewayModifyHeadersPolicyCreateType The type name of the policy.

const (
	ModifyHeaders EventGatewayModifyHeadersPolicyCreateType = "modify_headers"
)

Defines values for EventGatewayModifyHeadersPolicyCreateType.

func (EventGatewayModifyHeadersPolicyCreateType) Valid

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

type EventGatewayOffsetCommitRequestRules

type EventGatewayOffsetCommitRequestRules struct {
	// Rules Every rule in this list is evaluated independently against the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayOffsetCommitRule           `json:"rules"`
	Type  EventGatewayOffsetCommitRequestRulesType `json:"type"`
}

EventGatewayOffsetCommitRequestRules The rules to apply to Kafka `OffsetCommit` requests.

Example: {"rules":[{"action":"reject","description":"Enforce the consumer group naming convention.","rule":"context.group.id.startsWith('team-a.')"}],"type":"offset_commit"}

type EventGatewayOffsetCommitRequestRulesType

type EventGatewayOffsetCommitRequestRulesType string

EventGatewayOffsetCommitRequestRulesType defines model for EventGatewayOffsetCommitRequestRules.Type.

const (
	OffsetCommit EventGatewayOffsetCommitRequestRulesType = "offset_commit"
)

Defines values for EventGatewayOffsetCommitRequestRulesType.

func (EventGatewayOffsetCommitRequestRulesType) Valid

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

type EventGatewayOffsetCommitRule

type EventGatewayOffsetCommitRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.group.id.startsWith("team-a.")
	Rule string `json:"rule"`
}

EventGatewayOffsetCommitRule defines model for EventGatewayOffsetCommitRule.

type EventGatewayOffsetFetchRequestRules

type EventGatewayOffsetFetchRequestRules struct {
	// Rules Every rule in this list is evaluated independently against the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayOffsetFetchRule           `json:"rules"`
	Type  EventGatewayOffsetFetchRequestRulesType `json:"type"`
}

EventGatewayOffsetFetchRequestRules The rules to apply to Kafka `OffsetFetch` requests.

Example: {"rules":[{"action":"reject","description":"Enforce the consumer group naming convention.","rule":"context.group.id.startsWith('team-a.')"}],"type":"offset_fetch"}

type EventGatewayOffsetFetchRequestRulesType

type EventGatewayOffsetFetchRequestRulesType string

EventGatewayOffsetFetchRequestRulesType defines model for EventGatewayOffsetFetchRequestRules.Type.

const (
	OffsetFetch EventGatewayOffsetFetchRequestRulesType = "offset_fetch"
)

Defines values for EventGatewayOffsetFetchRequestRulesType.

func (EventGatewayOffsetFetchRequestRulesType) Valid

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

type EventGatewayOffsetFetchRule

type EventGatewayOffsetFetchRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.group.id.startsWith('team-a.')
	Rule string `json:"rule"`
}

EventGatewayOffsetFetchRule defines model for EventGatewayOffsetFetchRule.

type EventGatewayParsedRecordDecryptFieldsConfig

type EventGatewayParsedRecordDecryptFieldsConfig struct {
	// DecryptFields Selects fields of a parsed record for decryption.
	DecryptFields EventGatewayParsedRecordDecryptionSelector `json:"decrypt_fields"`

	// FailureMode Describes how to handle a failure in a policy applied to consumed records.
	// * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it.
	// * `skip` - the record is not delivered to the client.
	// * `passthrough` - passes the record to the client even though policy execution failed.
	// * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode ConsumeFailureMode `json:"failure_mode"`

	// KeySources Describes how to find a symmetric key for decryption.
	KeySources []EventGatewayKeySource `json:"key_sources"`
}

EventGatewayParsedRecordDecryptFieldsConfig The configuration of the decrypt parsed record fields policy.

type EventGatewayParsedRecordDecryptFieldsPolicyCreate

type EventGatewayParsedRecordDecryptFieldsPolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the decrypt parsed record fields policy.
	Config EventGatewayParsedRecordDecryptFieldsConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy.
	ParentPolicyId openapi_types.UUID `json:"parent_policy_id"`

	// Type The type name of the policy.
	Type EventGatewayParsedRecordDecryptFieldsPolicyCreateType `json:"type"`
}

EventGatewayParsedRecordDecryptFieldsPolicyCreate Decrypts fields of parsed Kafka records using AES_256_GCM. Keys are therefore 256 bits long.

Note this policy can only be used as a child of a `EventGatewayConsumeSchemaValidationPolicy` policy.

**Requires a minimum runtime version of `1.2`**.

type EventGatewayParsedRecordDecryptFieldsPolicyCreateType

type EventGatewayParsedRecordDecryptFieldsPolicyCreateType string

EventGatewayParsedRecordDecryptFieldsPolicyCreateType The type name of the policy.

const (
	DecryptFields EventGatewayParsedRecordDecryptFieldsPolicyCreateType = "decrypt_fields"
)

Defines values for EventGatewayParsedRecordDecryptFieldsPolicyCreateType.

func (EventGatewayParsedRecordDecryptFieldsPolicyCreateType) Valid

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

type EventGatewayParsedRecordDecryptionSelector

type EventGatewayParsedRecordDecryptionSelector struct {
	// Paths Selects which fields of the parsed record to decrypt. A maximum of 50 path entries are allowed.
	Paths EventGatewayParsedRecordDecryptionSelector_Paths `json:"paths"`
}

EventGatewayParsedRecordDecryptionSelector Selects fields of a parsed record for decryption.

type EventGatewayParsedRecordDecryptionSelector_Paths

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

EventGatewayParsedRecordDecryptionSelector_Paths Selects which fields of the parsed record to decrypt. A maximum of 50 path entries are allowed.

func (EventGatewayParsedRecordDecryptionSelector_Paths) AsEventGatewayParsedRecordFieldPathsArray

AsEventGatewayParsedRecordFieldPathsArray returns the union data inside the EventGatewayParsedRecordDecryptionSelector_Paths as a EventGatewayParsedRecordFieldPathsArray

func (EventGatewayParsedRecordDecryptionSelector_Paths) AsEventGatewayParsedRecordFieldPathsExpression

func (t EventGatewayParsedRecordDecryptionSelector_Paths) AsEventGatewayParsedRecordFieldPathsExpression() (EventGatewayParsedRecordFieldPathsExpression, error)

AsEventGatewayParsedRecordFieldPathsExpression returns the union data inside the EventGatewayParsedRecordDecryptionSelector_Paths as a EventGatewayParsedRecordFieldPathsExpression

func (*EventGatewayParsedRecordDecryptionSelector_Paths) FromEventGatewayParsedRecordFieldPathsArray

FromEventGatewayParsedRecordFieldPathsArray overwrites any union data inside the EventGatewayParsedRecordDecryptionSelector_Paths as the provided EventGatewayParsedRecordFieldPathsArray

func (*EventGatewayParsedRecordDecryptionSelector_Paths) FromEventGatewayParsedRecordFieldPathsExpression

func (t *EventGatewayParsedRecordDecryptionSelector_Paths) FromEventGatewayParsedRecordFieldPathsExpression(v EventGatewayParsedRecordFieldPathsExpression) error

FromEventGatewayParsedRecordFieldPathsExpression overwrites any union data inside the EventGatewayParsedRecordDecryptionSelector_Paths as the provided EventGatewayParsedRecordFieldPathsExpression

func (EventGatewayParsedRecordDecryptionSelector_Paths) MarshalJSON

func (*EventGatewayParsedRecordDecryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsArray

func (t *EventGatewayParsedRecordDecryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsArray(v EventGatewayParsedRecordFieldPathsArray) error

MergeEventGatewayParsedRecordFieldPathsArray performs a merge with any union data inside the EventGatewayParsedRecordDecryptionSelector_Paths, using the provided EventGatewayParsedRecordFieldPathsArray

func (*EventGatewayParsedRecordDecryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsExpression

func (t *EventGatewayParsedRecordDecryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsExpression(v EventGatewayParsedRecordFieldPathsExpression) error

MergeEventGatewayParsedRecordFieldPathsExpression performs a merge with any union data inside the EventGatewayParsedRecordDecryptionSelector_Paths, using the provided EventGatewayParsedRecordFieldPathsExpression

func (*EventGatewayParsedRecordDecryptionSelector_Paths) UnmarshalJSON

type EventGatewayParsedRecordEncryptFieldsConfig

type EventGatewayParsedRecordEncryptFieldsConfig struct {
	// EncryptFields Selects which fields to encrypt and with what keys.
	EncryptFields []EventGatewayParsedRecordEncryptionSelector `json:"encrypt_fields"`

	// FailureMode Describes how to handle a failure in a policy applied to produced records.
	// * `reject` - rejects the record batch.
	// * `passthrough` - passes the record silently to the backend cluster even though policy execution failed.
	// * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode ProduceFailureMode `json:"failure_mode"`
}

EventGatewayParsedRecordEncryptFieldsConfig The configuration of the encrypt parsed record policy.

type EventGatewayParsedRecordEncryptFieldsPolicyCreate

type EventGatewayParsedRecordEncryptFieldsPolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the encrypt parsed record policy.
	Config EventGatewayParsedRecordEncryptFieldsConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy.
	ParentPolicyId openapi_types.UUID `json:"parent_policy_id"`

	// Type The type name of the policy.
	Type EventGatewayParsedRecordEncryptFieldsPolicyCreateType `json:"type"`
}

EventGatewayParsedRecordEncryptFieldsPolicyCreate Encrypts fields of parsed Kafka records using AES_256_GCM. Keys are therefore 256 bits long.

Note this policy can only be used as a child of a `EventGatewayProduceSchemaValidationPolicy` policy.

**Requires a minimum runtime version of `1.2`**.

type EventGatewayParsedRecordEncryptFieldsPolicyCreateType

type EventGatewayParsedRecordEncryptFieldsPolicyCreateType string

EventGatewayParsedRecordEncryptFieldsPolicyCreateType The type name of the policy.

const (
	EncryptFields EventGatewayParsedRecordEncryptFieldsPolicyCreateType = "encrypt_fields"
)

Defines values for EventGatewayParsedRecordEncryptFieldsPolicyCreateType.

func (EventGatewayParsedRecordEncryptFieldsPolicyCreateType) Valid

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

type EventGatewayParsedRecordEncryptionSelector

type EventGatewayParsedRecordEncryptionSelector struct {
	// EncryptionKey The key to use for encryption.
	EncryptionKey EncryptionKey `json:"encryption_key"`

	// Paths Selects which fields of the parsed record to encrypt. A maximum of 50 path entries are allowed.
	Paths EventGatewayParsedRecordEncryptionSelector_Paths `json:"paths"`
}

EventGatewayParsedRecordEncryptionSelector Selects fields of a parsed record for encryption and defines what key to encrypt them with.

type EventGatewayParsedRecordEncryptionSelector_Paths

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

EventGatewayParsedRecordEncryptionSelector_Paths Selects which fields of the parsed record to encrypt. A maximum of 50 path entries are allowed.

func (EventGatewayParsedRecordEncryptionSelector_Paths) AsEventGatewayParsedRecordFieldPathsArray

AsEventGatewayParsedRecordFieldPathsArray returns the union data inside the EventGatewayParsedRecordEncryptionSelector_Paths as a EventGatewayParsedRecordFieldPathsArray

func (EventGatewayParsedRecordEncryptionSelector_Paths) AsEventGatewayParsedRecordFieldPathsExpression

func (t EventGatewayParsedRecordEncryptionSelector_Paths) AsEventGatewayParsedRecordFieldPathsExpression() (EventGatewayParsedRecordFieldPathsExpression, error)

AsEventGatewayParsedRecordFieldPathsExpression returns the union data inside the EventGatewayParsedRecordEncryptionSelector_Paths as a EventGatewayParsedRecordFieldPathsExpression

func (*EventGatewayParsedRecordEncryptionSelector_Paths) FromEventGatewayParsedRecordFieldPathsArray

FromEventGatewayParsedRecordFieldPathsArray overwrites any union data inside the EventGatewayParsedRecordEncryptionSelector_Paths as the provided EventGatewayParsedRecordFieldPathsArray

func (*EventGatewayParsedRecordEncryptionSelector_Paths) FromEventGatewayParsedRecordFieldPathsExpression

func (t *EventGatewayParsedRecordEncryptionSelector_Paths) FromEventGatewayParsedRecordFieldPathsExpression(v EventGatewayParsedRecordFieldPathsExpression) error

FromEventGatewayParsedRecordFieldPathsExpression overwrites any union data inside the EventGatewayParsedRecordEncryptionSelector_Paths as the provided EventGatewayParsedRecordFieldPathsExpression

func (EventGatewayParsedRecordEncryptionSelector_Paths) MarshalJSON

func (*EventGatewayParsedRecordEncryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsArray

func (t *EventGatewayParsedRecordEncryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsArray(v EventGatewayParsedRecordFieldPathsArray) error

MergeEventGatewayParsedRecordFieldPathsArray performs a merge with any union data inside the EventGatewayParsedRecordEncryptionSelector_Paths, using the provided EventGatewayParsedRecordFieldPathsArray

func (*EventGatewayParsedRecordEncryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsExpression

func (t *EventGatewayParsedRecordEncryptionSelector_Paths) MergeEventGatewayParsedRecordFieldPathsExpression(v EventGatewayParsedRecordFieldPathsExpression) error

MergeEventGatewayParsedRecordFieldPathsExpression performs a merge with any union data inside the EventGatewayParsedRecordEncryptionSelector_Paths, using the provided EventGatewayParsedRecordFieldPathsExpression

func (*EventGatewayParsedRecordEncryptionSelector_Paths) UnmarshalJSON

type EventGatewayParsedRecordFieldPathsArray

type EventGatewayParsedRecordFieldPathsArray = []struct {
	// Match A field selector. It can select nested fields and array entries.
	//
	// Currently supported are exact matches.
	//
	//
	// Example: someObject.someArray[1].fieldName
	Match string `json:"match"`
}

EventGatewayParsedRecordFieldPathsArray defines model for EventGatewayParsedRecordFieldPathsArray.

type EventGatewayParsedRecordFieldPathsExpression

type EventGatewayParsedRecordFieldPathsExpression = string

EventGatewayParsedRecordFieldPathsExpression This expression should evaluate to an array of exact field paths, equivalent to the `match` values in the array variant.

Example: ${context.auth.type == 'sasl_oauth_bearer' ? ['credentials.accessToken', 'credentials.refreshToken'] : ['credentials.password']}

type EventGatewayParsedRecordMaskFieldsConsumeConfig

type EventGatewayParsedRecordMaskFieldsConsumeConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to consumed records.
	// * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it.
	// * `skip` - the record is not delivered to the client.
	// * `passthrough` - passes the record to the client even though policy execution failed.
	// * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode ConsumeFailureMode `json:"failure_mode"`

	// MaskFields Selects which fields to mask and how to mask them.
	MaskFields []EventGatewayParsedRecordMaskSelector `json:"mask_fields"`
}

EventGatewayParsedRecordMaskFieldsConsumeConfig The configuration of the mask parsed record fields consume policy.

type EventGatewayParsedRecordMaskFieldsConsumePolicyCreate

type EventGatewayParsedRecordMaskFieldsConsumePolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the mask parsed record fields consume policy.
	Config EventGatewayParsedRecordMaskFieldsConsumeConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy.
	ParentPolicyId openapi_types.UUID `json:"parent_policy_id"`

	// Type The type name of the policy.
	Type EventGatewayParsedRecordMaskFieldsConsumePolicyCreateType `json:"type"`
}

EventGatewayParsedRecordMaskFieldsConsumePolicyCreate Redacts string fields of parsed Kafka records using a configurable masking strategy.

Only string fields may be selected. Selecting a field that does not exist is ignored; selecting a field that is not a string is a policy error handled by `failure_mode`.

Note this policy can only be used as a child of a `EventGatewayConsumeSchemaValidationPolicy` policy.

**Requires a minimum runtime version of `1.3`**.

type EventGatewayParsedRecordMaskFieldsConsumePolicyCreateType

type EventGatewayParsedRecordMaskFieldsConsumePolicyCreateType string

EventGatewayParsedRecordMaskFieldsConsumePolicyCreateType The type name of the policy.

const (
	EventGatewayParsedRecordMaskFieldsConsumePolicyCreateTypeMaskFields EventGatewayParsedRecordMaskFieldsConsumePolicyCreateType = "mask_fields"
)

Defines values for EventGatewayParsedRecordMaskFieldsConsumePolicyCreateType.

func (EventGatewayParsedRecordMaskFieldsConsumePolicyCreateType) Valid

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

type EventGatewayParsedRecordMaskFieldsProduceConfig

type EventGatewayParsedRecordMaskFieldsProduceConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to produced records.
	// * `reject` - rejects the record batch.
	// * `passthrough` - passes the record silently to the backend cluster even though policy execution failed.
	// * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode ProduceFailureMode `json:"failure_mode"`

	// MaskFields Selects which fields to mask and how to mask them.
	MaskFields []EventGatewayParsedRecordMaskSelector `json:"mask_fields"`
}

EventGatewayParsedRecordMaskFieldsProduceConfig The configuration of the mask record fields produce policy.

type EventGatewayParsedRecordMaskFieldsProducePolicyCreate

type EventGatewayParsedRecordMaskFieldsProducePolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the mask record fields produce policy.
	Config EventGatewayParsedRecordMaskFieldsProduceConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy.
	ParentPolicyId openapi_types.UUID `json:"parent_policy_id"`

	// Type The type name of the policy.
	Type EventGatewayParsedRecordMaskFieldsProducePolicyCreateType `json:"type"`
}

EventGatewayParsedRecordMaskFieldsProducePolicyCreate Redacts string fields of parsed Kafka records using a configurable masking strategy.

Only string fields may be selected. Selecting a field that does not exist is ignored; selecting a field that is not a string is a policy error handled by `failure_mode`.

Note this policy can only be used as a child of a `EventGatewayProduceSchemaValidationPolicy` policy.

**Requires a minimum runtime version of `1.3`**.

type EventGatewayParsedRecordMaskFieldsProducePolicyCreateType

type EventGatewayParsedRecordMaskFieldsProducePolicyCreateType string

EventGatewayParsedRecordMaskFieldsProducePolicyCreateType The type name of the policy.

const (
	EventGatewayParsedRecordMaskFieldsProducePolicyCreateTypeMaskFields EventGatewayParsedRecordMaskFieldsProducePolicyCreateType = "mask_fields"
)

Defines values for EventGatewayParsedRecordMaskFieldsProducePolicyCreateType.

func (EventGatewayParsedRecordMaskFieldsProducePolicyCreateType) Valid

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

type EventGatewayParsedRecordMaskSelector

type EventGatewayParsedRecordMaskSelector struct {
	// Paths Selects which fields of the parsed record to mask. A maximum of 50 path entries are allowed.
	Paths EventGatewayParsedRecordMaskSelector_Paths `json:"paths"`

	// Strategy The strategy used to redact a matched field value.
	Strategy EventGatewayMaskStrategy `json:"strategy"`
}

EventGatewayParsedRecordMaskSelector Selects fields of a parsed record for masking and defines the strategy used to redact them.

type EventGatewayParsedRecordMaskSelector_Paths

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

EventGatewayParsedRecordMaskSelector_Paths Selects which fields of the parsed record to mask. A maximum of 50 path entries are allowed.

func (EventGatewayParsedRecordMaskSelector_Paths) AsEventGatewayParsedRecordFieldPathsArray

func (t EventGatewayParsedRecordMaskSelector_Paths) AsEventGatewayParsedRecordFieldPathsArray() (EventGatewayParsedRecordFieldPathsArray, error)

AsEventGatewayParsedRecordFieldPathsArray returns the union data inside the EventGatewayParsedRecordMaskSelector_Paths as a EventGatewayParsedRecordFieldPathsArray

func (EventGatewayParsedRecordMaskSelector_Paths) AsEventGatewayParsedRecordFieldPathsExpression

func (t EventGatewayParsedRecordMaskSelector_Paths) AsEventGatewayParsedRecordFieldPathsExpression() (EventGatewayParsedRecordFieldPathsExpression, error)

AsEventGatewayParsedRecordFieldPathsExpression returns the union data inside the EventGatewayParsedRecordMaskSelector_Paths as a EventGatewayParsedRecordFieldPathsExpression

func (*EventGatewayParsedRecordMaskSelector_Paths) FromEventGatewayParsedRecordFieldPathsArray

func (t *EventGatewayParsedRecordMaskSelector_Paths) FromEventGatewayParsedRecordFieldPathsArray(v EventGatewayParsedRecordFieldPathsArray) error

FromEventGatewayParsedRecordFieldPathsArray overwrites any union data inside the EventGatewayParsedRecordMaskSelector_Paths as the provided EventGatewayParsedRecordFieldPathsArray

func (*EventGatewayParsedRecordMaskSelector_Paths) FromEventGatewayParsedRecordFieldPathsExpression

func (t *EventGatewayParsedRecordMaskSelector_Paths) FromEventGatewayParsedRecordFieldPathsExpression(v EventGatewayParsedRecordFieldPathsExpression) error

FromEventGatewayParsedRecordFieldPathsExpression overwrites any union data inside the EventGatewayParsedRecordMaskSelector_Paths as the provided EventGatewayParsedRecordFieldPathsExpression

func (EventGatewayParsedRecordMaskSelector_Paths) MarshalJSON

func (*EventGatewayParsedRecordMaskSelector_Paths) MergeEventGatewayParsedRecordFieldPathsArray

func (t *EventGatewayParsedRecordMaskSelector_Paths) MergeEventGatewayParsedRecordFieldPathsArray(v EventGatewayParsedRecordFieldPathsArray) error

MergeEventGatewayParsedRecordFieldPathsArray performs a merge with any union data inside the EventGatewayParsedRecordMaskSelector_Paths, using the provided EventGatewayParsedRecordFieldPathsArray

func (*EventGatewayParsedRecordMaskSelector_Paths) MergeEventGatewayParsedRecordFieldPathsExpression

func (t *EventGatewayParsedRecordMaskSelector_Paths) MergeEventGatewayParsedRecordFieldPathsExpression(v EventGatewayParsedRecordFieldPathsExpression) error

MergeEventGatewayParsedRecordFieldPathsExpression performs a merge with any union data inside the EventGatewayParsedRecordMaskSelector_Paths, using the provided EventGatewayParsedRecordFieldPathsExpression

func (*EventGatewayParsedRecordMaskSelector_Paths) UnmarshalJSON

type EventGatewayParsedRecordTranscodeConsumeConfig

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

EventGatewayParsedRecordTranscodeConsumeConfig The configuration of the transcode parsed record policy applied to consumed records.

func (EventGatewayParsedRecordTranscodeConsumeConfig) AsEventGatewayParsedRecordTranscodeConsumeConfigAvro

func (t EventGatewayParsedRecordTranscodeConsumeConfig) AsEventGatewayParsedRecordTranscodeConsumeConfigAvro() (EventGatewayParsedRecordTranscodeConsumeConfigAvro, error)

AsEventGatewayParsedRecordTranscodeConsumeConfigAvro returns the union data inside the EventGatewayParsedRecordTranscodeConsumeConfig as a EventGatewayParsedRecordTranscodeConsumeConfigAvro

func (EventGatewayParsedRecordTranscodeConsumeConfig) AsEventGatewayParsedRecordTranscodeConsumeConfigJson

func (t EventGatewayParsedRecordTranscodeConsumeConfig) AsEventGatewayParsedRecordTranscodeConsumeConfigJson() (EventGatewayParsedRecordTranscodeConsumeConfigJson, error)

AsEventGatewayParsedRecordTranscodeConsumeConfigJson returns the union data inside the EventGatewayParsedRecordTranscodeConsumeConfig as a EventGatewayParsedRecordTranscodeConsumeConfigJson

func (EventGatewayParsedRecordTranscodeConsumeConfig) Discriminator

func (*EventGatewayParsedRecordTranscodeConsumeConfig) FromEventGatewayParsedRecordTranscodeConsumeConfigAvro

func (t *EventGatewayParsedRecordTranscodeConsumeConfig) FromEventGatewayParsedRecordTranscodeConsumeConfigAvro(v EventGatewayParsedRecordTranscodeConsumeConfigAvro) error

FromEventGatewayParsedRecordTranscodeConsumeConfigAvro overwrites any union data inside the EventGatewayParsedRecordTranscodeConsumeConfig as the provided EventGatewayParsedRecordTranscodeConsumeConfigAvro

func (*EventGatewayParsedRecordTranscodeConsumeConfig) FromEventGatewayParsedRecordTranscodeConsumeConfigJson

func (t *EventGatewayParsedRecordTranscodeConsumeConfig) FromEventGatewayParsedRecordTranscodeConsumeConfigJson(v EventGatewayParsedRecordTranscodeConsumeConfigJson) error

FromEventGatewayParsedRecordTranscodeConsumeConfigJson overwrites any union data inside the EventGatewayParsedRecordTranscodeConsumeConfig as the provided EventGatewayParsedRecordTranscodeConsumeConfigJson

func (EventGatewayParsedRecordTranscodeConsumeConfig) MarshalJSON

func (*EventGatewayParsedRecordTranscodeConsumeConfig) MergeEventGatewayParsedRecordTranscodeConsumeConfigAvro

func (t *EventGatewayParsedRecordTranscodeConsumeConfig) MergeEventGatewayParsedRecordTranscodeConsumeConfigAvro(v EventGatewayParsedRecordTranscodeConsumeConfigAvro) error

MergeEventGatewayParsedRecordTranscodeConsumeConfigAvro performs a merge with any union data inside the EventGatewayParsedRecordTranscodeConsumeConfig, using the provided EventGatewayParsedRecordTranscodeConsumeConfigAvro

func (*EventGatewayParsedRecordTranscodeConsumeConfig) MergeEventGatewayParsedRecordTranscodeConsumeConfigJson

func (t *EventGatewayParsedRecordTranscodeConsumeConfig) MergeEventGatewayParsedRecordTranscodeConsumeConfigJson(v EventGatewayParsedRecordTranscodeConsumeConfigJson) error

MergeEventGatewayParsedRecordTranscodeConsumeConfigJson performs a merge with any union data inside the EventGatewayParsedRecordTranscodeConsumeConfig, using the provided EventGatewayParsedRecordTranscodeConsumeConfigJson

func (*EventGatewayParsedRecordTranscodeConsumeConfig) UnmarshalJSON

func (EventGatewayParsedRecordTranscodeConsumeConfig) ValueByDiscriminator

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

type EventGatewayParsedRecordTranscodeConsumeConfigAvro

type EventGatewayParsedRecordTranscodeConsumeConfigAvro struct {
	// FailureMode Describes how to handle a failure in a policy applied to consumed records.
	// * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it.
	// * `skip` - the record is not delivered to the client.
	// * `passthrough` - passes the record to the client even though policy execution failed.
	// * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode ConsumeFailureMode `json:"failure_mode"`

	// OnUnknownField Describes how to handle JSON fields that are not defined in the target schema.
	// * `fail` - the transcoding fails. The policy `failure_mode` determines how the failure is handled.
	// * `drop` - the unknown fields are removed from the transcoded value.
	//
	// **Requires a minimum runtime version of `1.3`**.
	OnUnknownField *TranscodeOnUnknownField `json:"on_unknown_field,omitempty"`

	// OutputFormat The serialization format to convert the record value into.
	OutputFormat EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormat `json:"output_format"`

	// SchemaSource Determines how to look up the schema to use for the transcoded output data.
	// Leave this unset if the output data schema isn't needed.
	SchemaSource EventGatewayParsedRecordTranscodeSchemaSource `json:"schema_source"`
}

EventGatewayParsedRecordTranscodeConsumeConfigAvro The configuration of the transcode parsed record policy when converting consumed records to Avro. Avro requires a schema to serialize the record value, so `schema_source` must be set.

type EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormat

type EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormat string

EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormat The serialization format to convert the record value into.

const (
	EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormatAvro EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormat = "avro"
)

Defines values for EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormat.

func (EventGatewayParsedRecordTranscodeConsumeConfigAvroOutputFormat) Valid

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

type EventGatewayParsedRecordTranscodeConsumeConfigJson

type EventGatewayParsedRecordTranscodeConsumeConfigJson struct {
	// FailureMode Describes how to handle a failure in a policy applied to consumed records.
	// * `error` - the batch is not delivered to the client. Use sparingly: erroring on a batch causes clients to get stuck on the problematic offset and requires manual intervention to skip it.
	// * `skip` - the record is not delivered to the client.
	// * `passthrough` - passes the record to the client even though policy execution failed.
	// * `mark` - passes the record to the client but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode ConsumeFailureMode `json:"failure_mode"`

	// OnUnknownField Describes how to handle JSON fields that are not defined in the target schema.
	// * `fail` - the transcoding fails. The policy `failure_mode` determines how the failure is handled.
	// * `drop` - the unknown fields are removed from the transcoded value.
	//
	// **Requires a minimum runtime version of `1.3`**.
	OnUnknownField *TranscodeOnUnknownField `json:"on_unknown_field,omitempty"`

	// OutputFormat The serialization format to convert the record value into.
	OutputFormat EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormat `json:"output_format"`

	// SchemaSource Determines how to look up the schema to use for the transcoded output data.
	// Leave this unset if the output data schema isn't needed.
	SchemaSource *EventGatewayParsedRecordTranscodeSchemaSource `json:"schema_source,omitempty"`
}

EventGatewayParsedRecordTranscodeConsumeConfigJson The configuration of the transcode parsed record policy when converting consumed records to JSON.

type EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormat

type EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormat string

EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormat The serialization format to convert the record value into.

const (
	EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormatJson EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormat = "json"
)

Defines values for EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormat.

func (EventGatewayParsedRecordTranscodeConsumeConfigJsonOutputFormat) Valid

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

type EventGatewayParsedRecordTranscodeConsumePolicyCreate

type EventGatewayParsedRecordTranscodeConsumePolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the transcode parsed record policy applied to consumed records.
	Config EventGatewayParsedRecordTranscodeConsumeConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy.
	ParentPolicyId openapi_types.UUID `json:"parent_policy_id"`

	// Type The type name of the policy.
	Type EventGatewayParsedRecordTranscodeConsumePolicyCreateType `json:"type"`
}

EventGatewayParsedRecordTranscodeConsumePolicyCreate Converts an already schema-validated record value into a different serialization format before it is returned to the consumer.

Note this policy can only be used as a child of a `EventGatewayConsumeSchemaValidationPolicy` policy.

**Requires a minimum runtime version of `1.3`**.

type EventGatewayParsedRecordTranscodeConsumePolicyCreateType

type EventGatewayParsedRecordTranscodeConsumePolicyCreateType string

EventGatewayParsedRecordTranscodeConsumePolicyCreateType The type name of the policy.

const (
	EventGatewayParsedRecordTranscodeConsumePolicyCreateTypeTranscode EventGatewayParsedRecordTranscodeConsumePolicyCreateType = "transcode"
)

Defines values for EventGatewayParsedRecordTranscodeConsumePolicyCreateType.

func (EventGatewayParsedRecordTranscodeConsumePolicyCreateType) Valid

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

type EventGatewayParsedRecordTranscodeProduceConfig

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

EventGatewayParsedRecordTranscodeProduceConfig The configuration of the transcode parsed record policy applied to produced records.

func (EventGatewayParsedRecordTranscodeProduceConfig) AsEventGatewayParsedRecordTranscodeProduceConfigAvro

func (t EventGatewayParsedRecordTranscodeProduceConfig) AsEventGatewayParsedRecordTranscodeProduceConfigAvro() (EventGatewayParsedRecordTranscodeProduceConfigAvro, error)

AsEventGatewayParsedRecordTranscodeProduceConfigAvro returns the union data inside the EventGatewayParsedRecordTranscodeProduceConfig as a EventGatewayParsedRecordTranscodeProduceConfigAvro

func (EventGatewayParsedRecordTranscodeProduceConfig) Discriminator

func (*EventGatewayParsedRecordTranscodeProduceConfig) FromEventGatewayParsedRecordTranscodeProduceConfigAvro

func (t *EventGatewayParsedRecordTranscodeProduceConfig) FromEventGatewayParsedRecordTranscodeProduceConfigAvro(v EventGatewayParsedRecordTranscodeProduceConfigAvro) error

FromEventGatewayParsedRecordTranscodeProduceConfigAvro overwrites any union data inside the EventGatewayParsedRecordTranscodeProduceConfig as the provided EventGatewayParsedRecordTranscodeProduceConfigAvro

func (EventGatewayParsedRecordTranscodeProduceConfig) MarshalJSON

func (*EventGatewayParsedRecordTranscodeProduceConfig) MergeEventGatewayParsedRecordTranscodeProduceConfigAvro

func (t *EventGatewayParsedRecordTranscodeProduceConfig) MergeEventGatewayParsedRecordTranscodeProduceConfigAvro(v EventGatewayParsedRecordTranscodeProduceConfigAvro) error

MergeEventGatewayParsedRecordTranscodeProduceConfigAvro performs a merge with any union data inside the EventGatewayParsedRecordTranscodeProduceConfig, using the provided EventGatewayParsedRecordTranscodeProduceConfigAvro

func (*EventGatewayParsedRecordTranscodeProduceConfig) UnmarshalJSON

func (EventGatewayParsedRecordTranscodeProduceConfig) ValueByDiscriminator

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

type EventGatewayParsedRecordTranscodeProduceConfigAvro

type EventGatewayParsedRecordTranscodeProduceConfigAvro struct {
	// FailureMode Describes how to handle a failure in a policy applied to produced records.
	// * `reject` - rejects the record batch.
	// * `passthrough` - passes the record silently to the backend cluster even though policy execution failed.
	// * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode ProduceFailureMode `json:"failure_mode"`

	// OnUnknownField Describes how to handle JSON fields that are not defined in the target schema.
	// * `fail` - the transcoding fails. The policy `failure_mode` determines how the failure is handled.
	// * `drop` - the unknown fields are removed from the transcoded value.
	//
	// **Requires a minimum runtime version of `1.3`**.
	OnUnknownField *TranscodeOnUnknownField `json:"on_unknown_field,omitempty"`

	// OutputFormat The serialization format to convert the record value into.
	OutputFormat EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormat `json:"output_format"`

	// SchemaSource Determines how to look up the schema to use for the transcoded output data.
	// Leave this unset if the output data schema isn't needed.
	SchemaSource EventGatewayParsedRecordTranscodeSchemaSource `json:"schema_source"`
}

EventGatewayParsedRecordTranscodeProduceConfigAvro The configuration of the transcode parsed record policy when converting produced records to Avro. Avro requires a schema to serialize the record value, so `schema_source` must be set.

type EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormat

type EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormat string

EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormat The serialization format to convert the record value into.

const (
	EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormatAvro EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormat = "avro"
)

Defines values for EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormat.

func (EventGatewayParsedRecordTranscodeProduceConfigAvroOutputFormat) Valid

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

type EventGatewayParsedRecordTranscodeProducePolicyCreate

type EventGatewayParsedRecordTranscodeProducePolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the transcode parsed record policy applied to produced records.
	Config EventGatewayParsedRecordTranscodeProduceConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy.
	ParentPolicyId openapi_types.UUID `json:"parent_policy_id"`

	// Type The type name of the policy.
	Type EventGatewayParsedRecordTranscodeProducePolicyCreateType `json:"type"`
}

EventGatewayParsedRecordTranscodeProducePolicyCreate Converts an already schema-validated record value into a different serialization format before it is produced to the backend cluster.

Note this policy can only be used as a child of a `EventGatewayProduceSchemaValidationPolicy` policy.

**Requires a minimum runtime version of `1.3`**.

type EventGatewayParsedRecordTranscodeProducePolicyCreateType

type EventGatewayParsedRecordTranscodeProducePolicyCreateType string

EventGatewayParsedRecordTranscodeProducePolicyCreateType The type name of the policy.

const (
	EventGatewayParsedRecordTranscodeProducePolicyCreateTypeTranscode EventGatewayParsedRecordTranscodeProducePolicyCreateType = "transcode"
)

Defines values for EventGatewayParsedRecordTranscodeProducePolicyCreateType.

func (EventGatewayParsedRecordTranscodeProducePolicyCreateType) Valid

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

type EventGatewayParsedRecordTranscodeSchemaRefDestination

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

EventGatewayParsedRecordTranscodeSchemaRefDestination Defines how to record the schema id for the transcoded output data. See the [Confluent docs](https://docs.confluent.io/platform/current/schema-registry/fundamentals/serdes-develop/index.html#wire-format) for more about the wire format.

func (EventGatewayParsedRecordTranscodeSchemaRefDestination) AsEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat

func (t EventGatewayParsedRecordTranscodeSchemaRefDestination) AsEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat() (EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat, error)

AsEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat returns the union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination as a EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat

func (EventGatewayParsedRecordTranscodeSchemaRefDestination) AsEventGatewayParsedRecordTranscodeSchemaRefDestinationNone

func (t EventGatewayParsedRecordTranscodeSchemaRefDestination) AsEventGatewayParsedRecordTranscodeSchemaRefDestinationNone() (EventGatewayParsedRecordTranscodeSchemaRefDestinationNone, error)

AsEventGatewayParsedRecordTranscodeSchemaRefDestinationNone returns the union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination as a EventGatewayParsedRecordTranscodeSchemaRefDestinationNone

func (EventGatewayParsedRecordTranscodeSchemaRefDestination) AsEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader

func (t EventGatewayParsedRecordTranscodeSchemaRefDestination) AsEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader() (EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader, error)

AsEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader returns the union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination as a EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader

func (EventGatewayParsedRecordTranscodeSchemaRefDestination) Discriminator

func (*EventGatewayParsedRecordTranscodeSchemaRefDestination) FromEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat

func (t *EventGatewayParsedRecordTranscodeSchemaRefDestination) FromEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat(v EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat) error

FromEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat overwrites any union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination as the provided EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat

func (*EventGatewayParsedRecordTranscodeSchemaRefDestination) FromEventGatewayParsedRecordTranscodeSchemaRefDestinationNone

func (t *EventGatewayParsedRecordTranscodeSchemaRefDestination) FromEventGatewayParsedRecordTranscodeSchemaRefDestinationNone(v EventGatewayParsedRecordTranscodeSchemaRefDestinationNone) error

FromEventGatewayParsedRecordTranscodeSchemaRefDestinationNone overwrites any union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination as the provided EventGatewayParsedRecordTranscodeSchemaRefDestinationNone

func (*EventGatewayParsedRecordTranscodeSchemaRefDestination) FromEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader

func (t *EventGatewayParsedRecordTranscodeSchemaRefDestination) FromEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader(v EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader) error

FromEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader overwrites any union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination as the provided EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader

func (EventGatewayParsedRecordTranscodeSchemaRefDestination) MarshalJSON

func (*EventGatewayParsedRecordTranscodeSchemaRefDestination) MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat

func (t *EventGatewayParsedRecordTranscodeSchemaRefDestination) MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat(v EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat) error

MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat performs a merge with any union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination, using the provided EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat

func (*EventGatewayParsedRecordTranscodeSchemaRefDestination) MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationNone

func (t *EventGatewayParsedRecordTranscodeSchemaRefDestination) MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationNone(v EventGatewayParsedRecordTranscodeSchemaRefDestinationNone) error

MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationNone performs a merge with any union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination, using the provided EventGatewayParsedRecordTranscodeSchemaRefDestinationNone

func (*EventGatewayParsedRecordTranscodeSchemaRefDestination) MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader

func (t *EventGatewayParsedRecordTranscodeSchemaRefDestination) MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader(v EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader) error

MergeEventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader performs a merge with any union data inside the EventGatewayParsedRecordTranscodeSchemaRefDestination, using the provided EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader

func (*EventGatewayParsedRecordTranscodeSchemaRefDestination) UnmarshalJSON

func (EventGatewayParsedRecordTranscodeSchemaRefDestination) ValueByDiscriminator

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

type EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat

type EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat struct {
	Type EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormatType `json:"type"`
}

EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat Prefixes the structured data bytes with a reference to the schema.

type EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormatType

type EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormatType string

EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormatType defines model for EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormat.Type.

const (
	ConfluentFormat EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormatType = "confluent_format"
)

Defines values for EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormatType.

func (EventGatewayParsedRecordTranscodeSchemaRefDestinationConfluentFormatType) Valid

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

type EventGatewayParsedRecordTranscodeSchemaRefDestinationNone

type EventGatewayParsedRecordTranscodeSchemaRefDestinationNone struct {
	Type EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneType `json:"type"`
}

EventGatewayParsedRecordTranscodeSchemaRefDestinationNone Do not persist the schema anywhere.

type EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneType

type EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneType string

EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneType defines model for EventGatewayParsedRecordTranscodeSchemaRefDestinationNone.Type.

const (
	EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneTypeNone EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneType = "none"
)

Defines values for EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneType.

func (EventGatewayParsedRecordTranscodeSchemaRefDestinationNoneType) Valid

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

type EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader

type EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader struct {
	// Name The name is compatible with Confluent's serializer by default but can be changed.
	Name *string                                                               `json:"name,omitempty"`
	Type EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeaderType `json:"type"`
}

EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader Puts the schema reference in a record header.

type EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeaderType

type EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeaderType string

EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeaderType defines model for EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeader.Type.

Defines values for EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeaderType.

func (EventGatewayParsedRecordTranscodeSchemaRefDestinationRecordHeaderType) Valid

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

type EventGatewayParsedRecordTranscodeSchemaSource

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

EventGatewayParsedRecordTranscodeSchemaSource Determines how to look up the schema to use for the transcoded output data. Leave this unset if the output data schema isn't needed.

func (EventGatewayParsedRecordTranscodeSchemaSource) AsEventGatewayParsedRecordTranscodeSchemaSourceInline

func (t EventGatewayParsedRecordTranscodeSchemaSource) AsEventGatewayParsedRecordTranscodeSchemaSourceInline() (EventGatewayParsedRecordTranscodeSchemaSourceInline, error)

AsEventGatewayParsedRecordTranscodeSchemaSourceInline returns the union data inside the EventGatewayParsedRecordTranscodeSchemaSource as a EventGatewayParsedRecordTranscodeSchemaSourceInline

func (EventGatewayParsedRecordTranscodeSchemaSource) AsEventGatewayParsedRecordTranscodeSchemaSourceReference

func (t EventGatewayParsedRecordTranscodeSchemaSource) AsEventGatewayParsedRecordTranscodeSchemaSourceReference() (EventGatewayParsedRecordTranscodeSchemaSourceReference, error)

AsEventGatewayParsedRecordTranscodeSchemaSourceReference returns the union data inside the EventGatewayParsedRecordTranscodeSchemaSource as a EventGatewayParsedRecordTranscodeSchemaSourceReference

func (EventGatewayParsedRecordTranscodeSchemaSource) Discriminator

func (*EventGatewayParsedRecordTranscodeSchemaSource) FromEventGatewayParsedRecordTranscodeSchemaSourceInline

func (t *EventGatewayParsedRecordTranscodeSchemaSource) FromEventGatewayParsedRecordTranscodeSchemaSourceInline(v EventGatewayParsedRecordTranscodeSchemaSourceInline) error

FromEventGatewayParsedRecordTranscodeSchemaSourceInline overwrites any union data inside the EventGatewayParsedRecordTranscodeSchemaSource as the provided EventGatewayParsedRecordTranscodeSchemaSourceInline

func (*EventGatewayParsedRecordTranscodeSchemaSource) FromEventGatewayParsedRecordTranscodeSchemaSourceReference

func (t *EventGatewayParsedRecordTranscodeSchemaSource) FromEventGatewayParsedRecordTranscodeSchemaSourceReference(v EventGatewayParsedRecordTranscodeSchemaSourceReference) error

FromEventGatewayParsedRecordTranscodeSchemaSourceReference overwrites any union data inside the EventGatewayParsedRecordTranscodeSchemaSource as the provided EventGatewayParsedRecordTranscodeSchemaSourceReference

func (EventGatewayParsedRecordTranscodeSchemaSource) MarshalJSON

func (*EventGatewayParsedRecordTranscodeSchemaSource) MergeEventGatewayParsedRecordTranscodeSchemaSourceInline

func (t *EventGatewayParsedRecordTranscodeSchemaSource) MergeEventGatewayParsedRecordTranscodeSchemaSourceInline(v EventGatewayParsedRecordTranscodeSchemaSourceInline) error

MergeEventGatewayParsedRecordTranscodeSchemaSourceInline performs a merge with any union data inside the EventGatewayParsedRecordTranscodeSchemaSource, using the provided EventGatewayParsedRecordTranscodeSchemaSourceInline

func (*EventGatewayParsedRecordTranscodeSchemaSource) MergeEventGatewayParsedRecordTranscodeSchemaSourceReference

func (t *EventGatewayParsedRecordTranscodeSchemaSource) MergeEventGatewayParsedRecordTranscodeSchemaSourceReference(v EventGatewayParsedRecordTranscodeSchemaSourceReference) error

MergeEventGatewayParsedRecordTranscodeSchemaSourceReference performs a merge with any union data inside the EventGatewayParsedRecordTranscodeSchemaSource, using the provided EventGatewayParsedRecordTranscodeSchemaSourceReference

func (*EventGatewayParsedRecordTranscodeSchemaSource) UnmarshalJSON

func (EventGatewayParsedRecordTranscodeSchemaSource) ValueByDiscriminator

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

type EventGatewayParsedRecordTranscodeSchemaSourceInline

type EventGatewayParsedRecordTranscodeSchemaSourceInline struct {
	// Inline The raw schema text (e.g. an Avro JSON schema) to use for the transcoded output data.
	Inline string                                                  `json:"inline"`
	Type   EventGatewayParsedRecordTranscodeSchemaSourceInlineType `json:"type"`
}

EventGatewayParsedRecordTranscodeSchemaSourceInline A schema embedded directly in the policy configuration.

type EventGatewayParsedRecordTranscodeSchemaSourceInlineType

type EventGatewayParsedRecordTranscodeSchemaSourceInlineType string

EventGatewayParsedRecordTranscodeSchemaSourceInlineType defines model for EventGatewayParsedRecordTranscodeSchemaSourceInline.Type.

Defines values for EventGatewayParsedRecordTranscodeSchemaSourceInlineType.

func (EventGatewayParsedRecordTranscodeSchemaSourceInlineType) Valid

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

type EventGatewayParsedRecordTranscodeSchemaSourceReference

type EventGatewayParsedRecordTranscodeSchemaSourceReference struct {
	// SchemaRefDestination Defines how to record the schema id for the transcoded output data. See the
	// [Confluent docs](https://docs.confluent.io/platform/current/schema-registry/fundamentals/serdes-develop/index.html#wire-format)
	// for more about the wire format.
	SchemaRefDestination EventGatewayParsedRecordTranscodeSchemaRefDestination `json:"schema_ref_destination"`

	// SchemaRegistry A reference to a schema Registry.
	SchemaRegistry SchemaRegistryReference `json:"schema_registry"`

	// Subject An expression that computes the schema registry subject of the output data's schema.
	//
	// Example: context.topic.name + '-value'
	Subject string                                                     `json:"subject"`
	Type    EventGatewayParsedRecordTranscodeSchemaSourceReferenceType `json:"type"`

	// Version An expression that computes the schema registry version of the output data's schema.
	//
	// Example: 'latest'
	Version string `json:"version"`
}

EventGatewayParsedRecordTranscodeSchemaSourceReference References a schema registered in a schema registry, computing the subject and version to use.

type EventGatewayParsedRecordTranscodeSchemaSourceReferenceType

type EventGatewayParsedRecordTranscodeSchemaSourceReferenceType string

EventGatewayParsedRecordTranscodeSchemaSourceReferenceType defines model for EventGatewayParsedRecordTranscodeSchemaSourceReference.Type.

Defines values for EventGatewayParsedRecordTranscodeSchemaSourceReferenceType.

func (EventGatewayParsedRecordTranscodeSchemaSourceReferenceType) Valid

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

type EventGatewayProducePolicyCreate

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

EventGatewayProducePolicyCreate The typed schema of the produce policy to modify it.

func (EventGatewayProducePolicyCreate) AsEventGatewayEncryptPolicy

func (t EventGatewayProducePolicyCreate) AsEventGatewayEncryptPolicy() (EventGatewayEncryptPolicy, error)

AsEventGatewayEncryptPolicy returns the union data inside the EventGatewayProducePolicyCreate as a EventGatewayEncryptPolicy

func (EventGatewayProducePolicyCreate) AsEventGatewayModifyHeadersPolicyCreate

func (t EventGatewayProducePolicyCreate) AsEventGatewayModifyHeadersPolicyCreate() (EventGatewayModifyHeadersPolicyCreate, error)

AsEventGatewayModifyHeadersPolicyCreate returns the union data inside the EventGatewayProducePolicyCreate as a EventGatewayModifyHeadersPolicyCreate

func (EventGatewayProducePolicyCreate) AsEventGatewayParsedRecordEncryptFieldsPolicyCreate

func (t EventGatewayProducePolicyCreate) AsEventGatewayParsedRecordEncryptFieldsPolicyCreate() (EventGatewayParsedRecordEncryptFieldsPolicyCreate, error)

AsEventGatewayParsedRecordEncryptFieldsPolicyCreate returns the union data inside the EventGatewayProducePolicyCreate as a EventGatewayParsedRecordEncryptFieldsPolicyCreate

func (EventGatewayProducePolicyCreate) AsEventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (t EventGatewayProducePolicyCreate) AsEventGatewayParsedRecordMaskFieldsProducePolicyCreate() (EventGatewayParsedRecordMaskFieldsProducePolicyCreate, error)

AsEventGatewayParsedRecordMaskFieldsProducePolicyCreate returns the union data inside the EventGatewayProducePolicyCreate as a EventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (EventGatewayProducePolicyCreate) AsEventGatewayParsedRecordTranscodeProducePolicyCreate

func (t EventGatewayProducePolicyCreate) AsEventGatewayParsedRecordTranscodeProducePolicyCreate() (EventGatewayParsedRecordTranscodeProducePolicyCreate, error)

AsEventGatewayParsedRecordTranscodeProducePolicyCreate returns the union data inside the EventGatewayProducePolicyCreate as a EventGatewayParsedRecordTranscodeProducePolicyCreate

func (EventGatewayProducePolicyCreate) AsEventGatewayProduceSchemaValidationPolicy

func (t EventGatewayProducePolicyCreate) AsEventGatewayProduceSchemaValidationPolicy() (EventGatewayProduceSchemaValidationPolicy, error)

AsEventGatewayProduceSchemaValidationPolicy returns the union data inside the EventGatewayProducePolicyCreate as a EventGatewayProduceSchemaValidationPolicy

func (EventGatewayProducePolicyCreate) Discriminator

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

func (*EventGatewayProducePolicyCreate) FromEventGatewayEncryptPolicy

func (t *EventGatewayProducePolicyCreate) FromEventGatewayEncryptPolicy(v EventGatewayEncryptPolicy) error

FromEventGatewayEncryptPolicy overwrites any union data inside the EventGatewayProducePolicyCreate as the provided EventGatewayEncryptPolicy

func (*EventGatewayProducePolicyCreate) FromEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayProducePolicyCreate) FromEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

FromEventGatewayModifyHeadersPolicyCreate overwrites any union data inside the EventGatewayProducePolicyCreate as the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayProducePolicyCreate) FromEventGatewayParsedRecordEncryptFieldsPolicyCreate

func (t *EventGatewayProducePolicyCreate) FromEventGatewayParsedRecordEncryptFieldsPolicyCreate(v EventGatewayParsedRecordEncryptFieldsPolicyCreate) error

FromEventGatewayParsedRecordEncryptFieldsPolicyCreate overwrites any union data inside the EventGatewayProducePolicyCreate as the provided EventGatewayParsedRecordEncryptFieldsPolicyCreate

func (*EventGatewayProducePolicyCreate) FromEventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (t *EventGatewayProducePolicyCreate) FromEventGatewayParsedRecordMaskFieldsProducePolicyCreate(v EventGatewayParsedRecordMaskFieldsProducePolicyCreate) error

FromEventGatewayParsedRecordMaskFieldsProducePolicyCreate overwrites any union data inside the EventGatewayProducePolicyCreate as the provided EventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (*EventGatewayProducePolicyCreate) FromEventGatewayParsedRecordTranscodeProducePolicyCreate

func (t *EventGatewayProducePolicyCreate) FromEventGatewayParsedRecordTranscodeProducePolicyCreate(v EventGatewayParsedRecordTranscodeProducePolicyCreate) error

FromEventGatewayParsedRecordTranscodeProducePolicyCreate overwrites any union data inside the EventGatewayProducePolicyCreate as the provided EventGatewayParsedRecordTranscodeProducePolicyCreate

func (*EventGatewayProducePolicyCreate) FromEventGatewayProduceSchemaValidationPolicy

func (t *EventGatewayProducePolicyCreate) FromEventGatewayProduceSchemaValidationPolicy(v EventGatewayProduceSchemaValidationPolicy) error

FromEventGatewayProduceSchemaValidationPolicy overwrites any union data inside the EventGatewayProducePolicyCreate as the provided EventGatewayProduceSchemaValidationPolicy

func (EventGatewayProducePolicyCreate) MarshalJSON

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

func (*EventGatewayProducePolicyCreate) MergeEventGatewayEncryptPolicy

func (t *EventGatewayProducePolicyCreate) MergeEventGatewayEncryptPolicy(v EventGatewayEncryptPolicy) error

MergeEventGatewayEncryptPolicy performs a merge with any union data inside the EventGatewayProducePolicyCreate, using the provided EventGatewayEncryptPolicy

func (*EventGatewayProducePolicyCreate) MergeEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayProducePolicyCreate) MergeEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

MergeEventGatewayModifyHeadersPolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyCreate, using the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayProducePolicyCreate) MergeEventGatewayParsedRecordEncryptFieldsPolicyCreate

func (t *EventGatewayProducePolicyCreate) MergeEventGatewayParsedRecordEncryptFieldsPolicyCreate(v EventGatewayParsedRecordEncryptFieldsPolicyCreate) error

MergeEventGatewayParsedRecordEncryptFieldsPolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyCreate, using the provided EventGatewayParsedRecordEncryptFieldsPolicyCreate

func (*EventGatewayProducePolicyCreate) MergeEventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (t *EventGatewayProducePolicyCreate) MergeEventGatewayParsedRecordMaskFieldsProducePolicyCreate(v EventGatewayParsedRecordMaskFieldsProducePolicyCreate) error

MergeEventGatewayParsedRecordMaskFieldsProducePolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyCreate, using the provided EventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (*EventGatewayProducePolicyCreate) MergeEventGatewayParsedRecordTranscodeProducePolicyCreate

func (t *EventGatewayProducePolicyCreate) MergeEventGatewayParsedRecordTranscodeProducePolicyCreate(v EventGatewayParsedRecordTranscodeProducePolicyCreate) error

MergeEventGatewayParsedRecordTranscodeProducePolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyCreate, using the provided EventGatewayParsedRecordTranscodeProducePolicyCreate

func (*EventGatewayProducePolicyCreate) MergeEventGatewayProduceSchemaValidationPolicy

func (t *EventGatewayProducePolicyCreate) MergeEventGatewayProduceSchemaValidationPolicy(v EventGatewayProduceSchemaValidationPolicy) error

MergeEventGatewayProduceSchemaValidationPolicy performs a merge with any union data inside the EventGatewayProducePolicyCreate, using the provided EventGatewayProduceSchemaValidationPolicy

func (*EventGatewayProducePolicyCreate) UnmarshalJSON

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

func (EventGatewayProducePolicyCreate) ValueByDiscriminator

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

type EventGatewayProducePolicyOnPrem

type EventGatewayProducePolicyOnPrem struct {
	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`
	// contains filtered or unexported fields
}

EventGatewayProducePolicyOnPrem defines model for EventGatewayProducePolicyOnPrem.

func (EventGatewayProducePolicyOnPrem) AsEventGatewayEncryptPolicy

func (t EventGatewayProducePolicyOnPrem) AsEventGatewayEncryptPolicy() (EventGatewayEncryptPolicy, error)

AsEventGatewayEncryptPolicy returns the union data inside the EventGatewayProducePolicyOnPrem as a EventGatewayEncryptPolicy

func (EventGatewayProducePolicyOnPrem) AsEventGatewayModifyHeadersPolicyCreate

func (t EventGatewayProducePolicyOnPrem) AsEventGatewayModifyHeadersPolicyCreate() (EventGatewayModifyHeadersPolicyCreate, error)

AsEventGatewayModifyHeadersPolicyCreate returns the union data inside the EventGatewayProducePolicyOnPrem as a EventGatewayModifyHeadersPolicyCreate

func (EventGatewayProducePolicyOnPrem) AsEventGatewayParsedRecordEncryptFieldsPolicyCreate

func (t EventGatewayProducePolicyOnPrem) AsEventGatewayParsedRecordEncryptFieldsPolicyCreate() (EventGatewayParsedRecordEncryptFieldsPolicyCreate, error)

AsEventGatewayParsedRecordEncryptFieldsPolicyCreate returns the union data inside the EventGatewayProducePolicyOnPrem as a EventGatewayParsedRecordEncryptFieldsPolicyCreate

func (EventGatewayProducePolicyOnPrem) AsEventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (t EventGatewayProducePolicyOnPrem) AsEventGatewayParsedRecordMaskFieldsProducePolicyCreate() (EventGatewayParsedRecordMaskFieldsProducePolicyCreate, error)

AsEventGatewayParsedRecordMaskFieldsProducePolicyCreate returns the union data inside the EventGatewayProducePolicyOnPrem as a EventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (EventGatewayProducePolicyOnPrem) AsEventGatewayParsedRecordTranscodeProducePolicyCreate

func (t EventGatewayProducePolicyOnPrem) AsEventGatewayParsedRecordTranscodeProducePolicyCreate() (EventGatewayParsedRecordTranscodeProducePolicyCreate, error)

AsEventGatewayParsedRecordTranscodeProducePolicyCreate returns the union data inside the EventGatewayProducePolicyOnPrem as a EventGatewayParsedRecordTranscodeProducePolicyCreate

func (EventGatewayProducePolicyOnPrem) AsEventGatewayProduceSchemaValidationPolicy

func (t EventGatewayProducePolicyOnPrem) AsEventGatewayProduceSchemaValidationPolicy() (EventGatewayProduceSchemaValidationPolicy, error)

AsEventGatewayProduceSchemaValidationPolicy returns the union data inside the EventGatewayProducePolicyOnPrem as a EventGatewayProduceSchemaValidationPolicy

func (EventGatewayProducePolicyOnPrem) Discriminator

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

func (*EventGatewayProducePolicyOnPrem) FromEventGatewayEncryptPolicy

func (t *EventGatewayProducePolicyOnPrem) FromEventGatewayEncryptPolicy(v EventGatewayEncryptPolicy) error

FromEventGatewayEncryptPolicy overwrites any union data inside the EventGatewayProducePolicyOnPrem as the provided EventGatewayEncryptPolicy

func (*EventGatewayProducePolicyOnPrem) FromEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayProducePolicyOnPrem) FromEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

FromEventGatewayModifyHeadersPolicyCreate overwrites any union data inside the EventGatewayProducePolicyOnPrem as the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayProducePolicyOnPrem) FromEventGatewayParsedRecordEncryptFieldsPolicyCreate

func (t *EventGatewayProducePolicyOnPrem) FromEventGatewayParsedRecordEncryptFieldsPolicyCreate(v EventGatewayParsedRecordEncryptFieldsPolicyCreate) error

FromEventGatewayParsedRecordEncryptFieldsPolicyCreate overwrites any union data inside the EventGatewayProducePolicyOnPrem as the provided EventGatewayParsedRecordEncryptFieldsPolicyCreate

func (*EventGatewayProducePolicyOnPrem) FromEventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (t *EventGatewayProducePolicyOnPrem) FromEventGatewayParsedRecordMaskFieldsProducePolicyCreate(v EventGatewayParsedRecordMaskFieldsProducePolicyCreate) error

FromEventGatewayParsedRecordMaskFieldsProducePolicyCreate overwrites any union data inside the EventGatewayProducePolicyOnPrem as the provided EventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (*EventGatewayProducePolicyOnPrem) FromEventGatewayParsedRecordTranscodeProducePolicyCreate

func (t *EventGatewayProducePolicyOnPrem) FromEventGatewayParsedRecordTranscodeProducePolicyCreate(v EventGatewayParsedRecordTranscodeProducePolicyCreate) error

FromEventGatewayParsedRecordTranscodeProducePolicyCreate overwrites any union data inside the EventGatewayProducePolicyOnPrem as the provided EventGatewayParsedRecordTranscodeProducePolicyCreate

func (*EventGatewayProducePolicyOnPrem) FromEventGatewayProduceSchemaValidationPolicy

func (t *EventGatewayProducePolicyOnPrem) FromEventGatewayProduceSchemaValidationPolicy(v EventGatewayProduceSchemaValidationPolicy) error

FromEventGatewayProduceSchemaValidationPolicy overwrites any union data inside the EventGatewayProducePolicyOnPrem as the provided EventGatewayProduceSchemaValidationPolicy

func (EventGatewayProducePolicyOnPrem) MarshalJSON

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

func (*EventGatewayProducePolicyOnPrem) MergeEventGatewayEncryptPolicy

func (t *EventGatewayProducePolicyOnPrem) MergeEventGatewayEncryptPolicy(v EventGatewayEncryptPolicy) error

MergeEventGatewayEncryptPolicy performs a merge with any union data inside the EventGatewayProducePolicyOnPrem, using the provided EventGatewayEncryptPolicy

func (*EventGatewayProducePolicyOnPrem) MergeEventGatewayModifyHeadersPolicyCreate

func (t *EventGatewayProducePolicyOnPrem) MergeEventGatewayModifyHeadersPolicyCreate(v EventGatewayModifyHeadersPolicyCreate) error

MergeEventGatewayModifyHeadersPolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyOnPrem, using the provided EventGatewayModifyHeadersPolicyCreate

func (*EventGatewayProducePolicyOnPrem) MergeEventGatewayParsedRecordEncryptFieldsPolicyCreate

func (t *EventGatewayProducePolicyOnPrem) MergeEventGatewayParsedRecordEncryptFieldsPolicyCreate(v EventGatewayParsedRecordEncryptFieldsPolicyCreate) error

MergeEventGatewayParsedRecordEncryptFieldsPolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyOnPrem, using the provided EventGatewayParsedRecordEncryptFieldsPolicyCreate

func (*EventGatewayProducePolicyOnPrem) MergeEventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (t *EventGatewayProducePolicyOnPrem) MergeEventGatewayParsedRecordMaskFieldsProducePolicyCreate(v EventGatewayParsedRecordMaskFieldsProducePolicyCreate) error

MergeEventGatewayParsedRecordMaskFieldsProducePolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyOnPrem, using the provided EventGatewayParsedRecordMaskFieldsProducePolicyCreate

func (*EventGatewayProducePolicyOnPrem) MergeEventGatewayParsedRecordTranscodeProducePolicyCreate

func (t *EventGatewayProducePolicyOnPrem) MergeEventGatewayParsedRecordTranscodeProducePolicyCreate(v EventGatewayParsedRecordTranscodeProducePolicyCreate) error

MergeEventGatewayParsedRecordTranscodeProducePolicyCreate performs a merge with any union data inside the EventGatewayProducePolicyOnPrem, using the provided EventGatewayParsedRecordTranscodeProducePolicyCreate

func (*EventGatewayProducePolicyOnPrem) MergeEventGatewayProduceSchemaValidationPolicy

func (t *EventGatewayProducePolicyOnPrem) MergeEventGatewayProduceSchemaValidationPolicy(v EventGatewayProduceSchemaValidationPolicy) error

MergeEventGatewayProduceSchemaValidationPolicy performs a merge with any union data inside the EventGatewayProducePolicyOnPrem, using the provided EventGatewayProduceSchemaValidationPolicy

func (*EventGatewayProducePolicyOnPrem) UnmarshalJSON

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

func (EventGatewayProducePolicyOnPrem) ValueByDiscriminator

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

type EventGatewayProduceRequestRules

type EventGatewayProduceRequestRules struct {
	// Rules Every rule in this list is evaluated independently against the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayProduceRule           `json:"rules"`
	Type  EventGatewayProduceRequestRulesType `json:"type"`
}

EventGatewayProduceRequestRules The rules to apply to Kafka `Produce` requests.

Example: {"rules":[{"action":"reject","description":"Require acknowledgement from all in-sync replicas.","rule":"context.produce.acks == -1"}],"type":"produce"}

type EventGatewayProduceRequestRulesType

type EventGatewayProduceRequestRulesType string

EventGatewayProduceRequestRulesType defines model for EventGatewayProduceRequestRules.Type.

const (
	Produce EventGatewayProduceRequestRulesType = "produce"
)

Defines values for EventGatewayProduceRequestRulesType.

func (EventGatewayProduceRequestRulesType) Valid

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

type EventGatewayProduceRule

type EventGatewayProduceRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.produce.acks == -1
	Rule string `json:"rule"`
}

EventGatewayProduceRule defines model for EventGatewayProduceRule.

type EventGatewayProduceSchemaValidationPolicy

type EventGatewayProduceSchemaValidationPolicy struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// Example: context.topic.name.endsWith("my_suffix") && record.headers["x-flag"] == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the produce schema validation policy.
	Config EventGatewayProduceSchemaValidationPolicyConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayProduceSchemaValidationPolicyType `json:"type"`
}

EventGatewayProduceSchemaValidationPolicy A policy that validates produce messages against a schema registry.

type EventGatewayProduceSchemaValidationPolicyConfig

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

EventGatewayProduceSchemaValidationPolicyConfig The configuration of the produce schema validation policy.

func (EventGatewayProduceSchemaValidationPolicyConfig) AsEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig

func (t EventGatewayProduceSchemaValidationPolicyConfig) AsEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig() (EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig, error)

AsEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig returns the union data inside the EventGatewayProduceSchemaValidationPolicyConfig as a EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig

func (EventGatewayProduceSchemaValidationPolicyConfig) AsEventGatewayProduceSchemaValidationPolicyJsonConfig

func (t EventGatewayProduceSchemaValidationPolicyConfig) AsEventGatewayProduceSchemaValidationPolicyJsonConfig() (EventGatewayProduceSchemaValidationPolicyJsonConfig, error)

AsEventGatewayProduceSchemaValidationPolicyJsonConfig returns the union data inside the EventGatewayProduceSchemaValidationPolicyConfig as a EventGatewayProduceSchemaValidationPolicyJsonConfig

func (EventGatewayProduceSchemaValidationPolicyConfig) AsEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

func (t EventGatewayProduceSchemaValidationPolicyConfig) AsEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig() (EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig, error)

AsEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig returns the union data inside the EventGatewayProduceSchemaValidationPolicyConfig as a EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

func (EventGatewayProduceSchemaValidationPolicyConfig) Discriminator

func (*EventGatewayProduceSchemaValidationPolicyConfig) FromEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig

func (t *EventGatewayProduceSchemaValidationPolicyConfig) FromEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig(v EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig) error

FromEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig overwrites any union data inside the EventGatewayProduceSchemaValidationPolicyConfig as the provided EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig

func (*EventGatewayProduceSchemaValidationPolicyConfig) FromEventGatewayProduceSchemaValidationPolicyJsonConfig

func (t *EventGatewayProduceSchemaValidationPolicyConfig) FromEventGatewayProduceSchemaValidationPolicyJsonConfig(v EventGatewayProduceSchemaValidationPolicyJsonConfig) error

FromEventGatewayProduceSchemaValidationPolicyJsonConfig overwrites any union data inside the EventGatewayProduceSchemaValidationPolicyConfig as the provided EventGatewayProduceSchemaValidationPolicyJsonConfig

func (*EventGatewayProduceSchemaValidationPolicyConfig) FromEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

func (t *EventGatewayProduceSchemaValidationPolicyConfig) FromEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig(v EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig) error

FromEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig overwrites any union data inside the EventGatewayProduceSchemaValidationPolicyConfig as the provided EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

func (EventGatewayProduceSchemaValidationPolicyConfig) MarshalJSON

func (*EventGatewayProduceSchemaValidationPolicyConfig) MergeEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig

func (t *EventGatewayProduceSchemaValidationPolicyConfig) MergeEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig(v EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig) error

MergeEventGatewayProduceSchemaValidationPolicyInlineSchemaConfig performs a merge with any union data inside the EventGatewayProduceSchemaValidationPolicyConfig, using the provided EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig

func (*EventGatewayProduceSchemaValidationPolicyConfig) MergeEventGatewayProduceSchemaValidationPolicyJsonConfig

func (t *EventGatewayProduceSchemaValidationPolicyConfig) MergeEventGatewayProduceSchemaValidationPolicyJsonConfig(v EventGatewayProduceSchemaValidationPolicyJsonConfig) error

MergeEventGatewayProduceSchemaValidationPolicyJsonConfig performs a merge with any union data inside the EventGatewayProduceSchemaValidationPolicyConfig, using the provided EventGatewayProduceSchemaValidationPolicyJsonConfig

func (*EventGatewayProduceSchemaValidationPolicyConfig) MergeEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

func (t *EventGatewayProduceSchemaValidationPolicyConfig) MergeEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig(v EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig) error

MergeEventGatewayProduceSchemaValidationPolicySchemaRegistryConfig performs a merge with any union data inside the EventGatewayProduceSchemaValidationPolicyConfig, using the provided EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

func (*EventGatewayProduceSchemaValidationPolicyConfig) UnmarshalJSON

func (EventGatewayProduceSchemaValidationPolicyConfig) ValueByDiscriminator

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

type EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig

type EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to produced records.
	// * `reject` - rejects the record batch.
	// * `passthrough` - passes the record silently to the backend cluster even though policy execution failed.
	// * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode *ProduceFailureMode `json:"failure_mode,omitempty"`

	// Key Defines the schema for a record key or value, inline.
	//
	// **Requires a minimum runtime version of `1.3`**.
	Key *SchemaValidationInlineSchemaConfig `json:"key,omitempty"`

	// KeyValidationAction Defines a behavior when record key is not valid.
	// * reject - rejects a batch for topic partition. Only available for produce.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	KeyValidationAction *ProduceKeyValidationAction                                     `json:"key_validation_action,omitempty"`
	Type                EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigType `json:"type"`

	// ValidateKey If true, validate the record key.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateKey *bool `json:"validate_key,omitempty"`

	// ValidateValue If true, validate the record value.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateValue *bool `json:"validate_value,omitempty"`

	// Value Defines the schema for a record key or value, inline.
	//
	// **Requires a minimum runtime version of `1.3`**.
	Value *SchemaValidationInlineSchemaConfig `json:"value,omitempty"`

	// ValueValidationAction Defines a behavior when record value is not valid.
	// * reject - rejects a batch for topic partition. Only available for produce.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	ValueValidationAction *ProduceValueValidationAction `json:"value_validation_action,omitempty"`
}

EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig The configuration of the produce schema validation policy when using an inline schema.

**Requires a minimum runtime version of `1.3`**.

type EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigType

type EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigType string

EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigType defines model for EventGatewayProduceSchemaValidationPolicyInlineSchemaConfig.Type.

const (
	EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigTypeInlineSchema EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigType = "inline_schema"
)

Defines values for EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigType.

func (EventGatewayProduceSchemaValidationPolicyInlineSchemaConfigType) Valid

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

type EventGatewayProduceSchemaValidationPolicyJsonConfig

type EventGatewayProduceSchemaValidationPolicyJsonConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to produced records.
	// * `reject` - rejects the record batch.
	// * `passthrough` - passes the record silently to the backend cluster even though policy execution failed.
	// * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode *ProduceFailureMode `json:"failure_mode,omitempty"`

	// KeyValidationAction Defines a behavior when record key is not valid.
	// * reject - rejects a batch for topic partition. Only available for produce.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	KeyValidationAction *ProduceKeyValidationAction `json:"key_validation_action,omitempty"`

	// SchemaRegistry A reference to a schema Registry.
	SchemaRegistry *SchemaRegistryReference                                `json:"schema_registry,omitempty"`
	Type           EventGatewayProduceSchemaValidationPolicyJsonConfigType `json:"type"`

	// ValidateKey If true, validate the record key.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateKey *bool `json:"validate_key,omitempty"`

	// ValidateValue If true, validate the record value.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateValue *bool `json:"validate_value,omitempty"`

	// ValueValidationAction Defines a behavior when record value is not valid.
	// * reject - rejects a batch for topic partition. Only available for produce.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	ValueValidationAction *ProduceValueValidationAction `json:"value_validation_action,omitempty"`
}

EventGatewayProduceSchemaValidationPolicyJsonConfig The configuration of the produce schema validation policy when using JSON parsing without schema.

type EventGatewayProduceSchemaValidationPolicyJsonConfigType

type EventGatewayProduceSchemaValidationPolicyJsonConfigType string

EventGatewayProduceSchemaValidationPolicyJsonConfigType defines model for EventGatewayProduceSchemaValidationPolicyJsonConfig.Type.

const (
	EventGatewayProduceSchemaValidationPolicyJsonConfigTypeJson EventGatewayProduceSchemaValidationPolicyJsonConfigType = "json"
)

Defines values for EventGatewayProduceSchemaValidationPolicyJsonConfigType.

func (EventGatewayProduceSchemaValidationPolicyJsonConfigType) Valid

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

type EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig

type EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig struct {
	// FailureMode Describes how to handle a failure in a policy applied to produced records.
	// * `reject` - rejects the record batch.
	// * `passthrough` - passes the record silently to the backend cluster even though policy execution failed.
	// * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode *ProduceFailureMode `json:"failure_mode,omitempty"`

	// KeyValidationAction Defines a behavior when record key is not valid.
	// * reject - rejects a batch for topic partition. Only available for produce.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	KeyValidationAction *ProduceKeyValidationAction `json:"key_validation_action,omitempty"`

	// SchemaRegistry A reference to a schema Registry.
	SchemaRegistry *SchemaRegistryReference                                          `json:"schema_registry,omitempty"`
	Type           EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigType `json:"type"`

	// ValidateKey If true, validate the record key.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateKey *bool `json:"validate_key,omitempty"`

	// ValidateValue If true, validate the record value.
	//
	// **Requires a minimum runtime version of `1.2`**.
	ValidateValue *bool `json:"validate_value,omitempty"`

	// ValueValidationAction Defines a behavior when record value is not valid.
	// * reject - rejects a batch for topic partition. Only available for produce.
	// * mark - marks a record with kong/server header and client ID value
	//   to help to identify the clients violating schema.
	ValueValidationAction *ProduceValueValidationAction `json:"value_validation_action,omitempty"`
}

EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig The configuration of the produce schema validation policy when using a schema registry.

type EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigType

type EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigType string

EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigType defines model for EventGatewayProduceSchemaValidationPolicySchemaRegistryConfig.Type.

const (
	EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigTypeConfluentSchemaRegistry EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigType = "confluent_schema_registry"
)

Defines values for EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigType.

func (EventGatewayProduceSchemaValidationPolicySchemaRegistryConfigType) Valid

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

type EventGatewayProduceSchemaValidationPolicyType

type EventGatewayProduceSchemaValidationPolicyType string

EventGatewayProduceSchemaValidationPolicyType The type name of the policy.

const (
	EventGatewayProduceSchemaValidationPolicyTypeSchemaValidation EventGatewayProduceSchemaValidationPolicyType = "schema_validation"
)

Defines values for EventGatewayProduceSchemaValidationPolicyType.

func (EventGatewayProduceSchemaValidationPolicyType) Valid

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

type EventGatewayRequestRuleAction

type EventGatewayRequestRuleAction string

EventGatewayRequestRuleAction What to do when a rule evaluates to `false`.

`reject` fails the request with the `POLICY_VIOLATION` error code. `passthrough` lets the request continue, but logs the violation in the same way as `reject`.

const (
	EventGatewayRequestRuleActionPassthrough EventGatewayRequestRuleAction = "passthrough"
	EventGatewayRequestRuleActionReject      EventGatewayRequestRuleAction = "reject"
)

Defines values for EventGatewayRequestRuleAction.

func (EventGatewayRequestRuleAction) Valid

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

type EventGatewayRequestRuleValidatorConfig

type EventGatewayRequestRuleValidatorConfig struct {
	// Requests The rules to apply, grouped by Kafka request type. A request type can occur more than
	// once in this list. Every entry for the type applies, in list order.
	// Requests of a type that is not in this list are not validated.
	// A maximum of 100 entries are allowed.
	Requests []EventGatewayRequestRules `json:"requests"`
}

EventGatewayRequestRuleValidatorConfig The configuration of the request rule validator policy.

type EventGatewayRequestRuleValidatorPolicy

type EventGatewayRequestRuleValidatorPolicy struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// Example: context.auth.principal.name == "this-user"
	Condition *string `json:"condition,omitempty"`

	// Config The configuration of the request rule validator policy.
	Config EventGatewayRequestRuleValidatorConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayRequestRuleValidatorPolicyType `json:"type"`
}

EventGatewayRequestRuleValidatorPolicy Validates the content of Kafka requests against a list of rules.

Use this policy to enforce conventions that Kafka ACLs cannot express, because ACLs cannot read the content of a request. For example, a maximum number of partitions, a topic naming convention, or a minimum number of acknowledgements on produce.

Each rule describes the valid state of the request. The action of the rule runs when the rule evaluates to `false`.

**Requires a minimum runtime version of `1.3`**.

type EventGatewayRequestRuleValidatorPolicyType

type EventGatewayRequestRuleValidatorPolicyType string

EventGatewayRequestRuleValidatorPolicyType The type name of the policy.

const (
	RequestRuleValidator EventGatewayRequestRuleValidatorPolicyType = "request_rule_validator"
)

Defines values for EventGatewayRequestRuleValidatorPolicyType.

func (EventGatewayRequestRuleValidatorPolicyType) Valid

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

type EventGatewayRequestRules

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

EventGatewayRequestRules The rules to apply to one Kafka request type.

func (EventGatewayRequestRules) AsEventGatewayAlterClientQuotasRequestRules

func (t EventGatewayRequestRules) AsEventGatewayAlterClientQuotasRequestRules() (EventGatewayAlterClientQuotasRequestRules, error)

AsEventGatewayAlterClientQuotasRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayAlterClientQuotasRequestRules

func (EventGatewayRequestRules) AsEventGatewayAlterConfigsRequestRules

func (t EventGatewayRequestRules) AsEventGatewayAlterConfigsRequestRules() (EventGatewayAlterConfigsRequestRules, error)

AsEventGatewayAlterConfigsRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayAlterConfigsRequestRules

func (EventGatewayRequestRules) AsEventGatewayAlterUserScramCredentialsRequestRules

func (t EventGatewayRequestRules) AsEventGatewayAlterUserScramCredentialsRequestRules() (EventGatewayAlterUserScramCredentialsRequestRules, error)

AsEventGatewayAlterUserScramCredentialsRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayAlterUserScramCredentialsRequestRules

func (EventGatewayRequestRules) AsEventGatewayConsumerGroupHeartbeatRequestRules

func (t EventGatewayRequestRules) AsEventGatewayConsumerGroupHeartbeatRequestRules() (EventGatewayConsumerGroupHeartbeatRequestRules, error)

AsEventGatewayConsumerGroupHeartbeatRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayConsumerGroupHeartbeatRequestRules

func (EventGatewayRequestRules) AsEventGatewayCreatePartitionsRequestRules

func (t EventGatewayRequestRules) AsEventGatewayCreatePartitionsRequestRules() (EventGatewayCreatePartitionsRequestRules, error)

AsEventGatewayCreatePartitionsRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayCreatePartitionsRequestRules

func (EventGatewayRequestRules) AsEventGatewayCreateTopicsRequestRules

func (t EventGatewayRequestRules) AsEventGatewayCreateTopicsRequestRules() (EventGatewayCreateTopicsRequestRules, error)

AsEventGatewayCreateTopicsRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayCreateTopicsRequestRules

func (EventGatewayRequestRules) AsEventGatewayFetchRequestRules

func (t EventGatewayRequestRules) AsEventGatewayFetchRequestRules() (EventGatewayFetchRequestRules, error)

AsEventGatewayFetchRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayFetchRequestRules

func (EventGatewayRequestRules) AsEventGatewayIncrementalAlterConfigsRequestRules

func (t EventGatewayRequestRules) AsEventGatewayIncrementalAlterConfigsRequestRules() (EventGatewayIncrementalAlterConfigsRequestRules, error)

AsEventGatewayIncrementalAlterConfigsRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayIncrementalAlterConfigsRequestRules

func (EventGatewayRequestRules) AsEventGatewayJoinGroupRequestRules

func (t EventGatewayRequestRules) AsEventGatewayJoinGroupRequestRules() (EventGatewayJoinGroupRequestRules, error)

AsEventGatewayJoinGroupRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayJoinGroupRequestRules

func (EventGatewayRequestRules) AsEventGatewayOffsetCommitRequestRules

func (t EventGatewayRequestRules) AsEventGatewayOffsetCommitRequestRules() (EventGatewayOffsetCommitRequestRules, error)

AsEventGatewayOffsetCommitRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayOffsetCommitRequestRules

func (EventGatewayRequestRules) AsEventGatewayOffsetFetchRequestRules

func (t EventGatewayRequestRules) AsEventGatewayOffsetFetchRequestRules() (EventGatewayOffsetFetchRequestRules, error)

AsEventGatewayOffsetFetchRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayOffsetFetchRequestRules

func (EventGatewayRequestRules) AsEventGatewayProduceRequestRules

func (t EventGatewayRequestRules) AsEventGatewayProduceRequestRules() (EventGatewayProduceRequestRules, error)

AsEventGatewayProduceRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayProduceRequestRules

func (EventGatewayRequestRules) AsEventGatewayTxnOffsetCommitRequestRules

func (t EventGatewayRequestRules) AsEventGatewayTxnOffsetCommitRequestRules() (EventGatewayTxnOffsetCommitRequestRules, error)

AsEventGatewayTxnOffsetCommitRequestRules returns the union data inside the EventGatewayRequestRules as a EventGatewayTxnOffsetCommitRequestRules

func (EventGatewayRequestRules) Discriminator

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

func (*EventGatewayRequestRules) FromEventGatewayAlterClientQuotasRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayAlterClientQuotasRequestRules(v EventGatewayAlterClientQuotasRequestRules) error

FromEventGatewayAlterClientQuotasRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayAlterClientQuotasRequestRules

func (*EventGatewayRequestRules) FromEventGatewayAlterConfigsRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayAlterConfigsRequestRules(v EventGatewayAlterConfigsRequestRules) error

FromEventGatewayAlterConfigsRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayAlterConfigsRequestRules

func (*EventGatewayRequestRules) FromEventGatewayAlterUserScramCredentialsRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayAlterUserScramCredentialsRequestRules(v EventGatewayAlterUserScramCredentialsRequestRules) error

FromEventGatewayAlterUserScramCredentialsRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayAlterUserScramCredentialsRequestRules

func (*EventGatewayRequestRules) FromEventGatewayConsumerGroupHeartbeatRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayConsumerGroupHeartbeatRequestRules(v EventGatewayConsumerGroupHeartbeatRequestRules) error

FromEventGatewayConsumerGroupHeartbeatRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayConsumerGroupHeartbeatRequestRules

func (*EventGatewayRequestRules) FromEventGatewayCreatePartitionsRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayCreatePartitionsRequestRules(v EventGatewayCreatePartitionsRequestRules) error

FromEventGatewayCreatePartitionsRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayCreatePartitionsRequestRules

func (*EventGatewayRequestRules) FromEventGatewayCreateTopicsRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayCreateTopicsRequestRules(v EventGatewayCreateTopicsRequestRules) error

FromEventGatewayCreateTopicsRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayCreateTopicsRequestRules

func (*EventGatewayRequestRules) FromEventGatewayFetchRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayFetchRequestRules(v EventGatewayFetchRequestRules) error

FromEventGatewayFetchRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayFetchRequestRules

func (*EventGatewayRequestRules) FromEventGatewayIncrementalAlterConfigsRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayIncrementalAlterConfigsRequestRules(v EventGatewayIncrementalAlterConfigsRequestRules) error

FromEventGatewayIncrementalAlterConfigsRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayIncrementalAlterConfigsRequestRules

func (*EventGatewayRequestRules) FromEventGatewayJoinGroupRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayJoinGroupRequestRules(v EventGatewayJoinGroupRequestRules) error

FromEventGatewayJoinGroupRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayJoinGroupRequestRules

func (*EventGatewayRequestRules) FromEventGatewayOffsetCommitRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayOffsetCommitRequestRules(v EventGatewayOffsetCommitRequestRules) error

FromEventGatewayOffsetCommitRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayOffsetCommitRequestRules

func (*EventGatewayRequestRules) FromEventGatewayOffsetFetchRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayOffsetFetchRequestRules(v EventGatewayOffsetFetchRequestRules) error

FromEventGatewayOffsetFetchRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayOffsetFetchRequestRules

func (*EventGatewayRequestRules) FromEventGatewayProduceRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayProduceRequestRules(v EventGatewayProduceRequestRules) error

FromEventGatewayProduceRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayProduceRequestRules

func (*EventGatewayRequestRules) FromEventGatewayTxnOffsetCommitRequestRules

func (t *EventGatewayRequestRules) FromEventGatewayTxnOffsetCommitRequestRules(v EventGatewayTxnOffsetCommitRequestRules) error

FromEventGatewayTxnOffsetCommitRequestRules overwrites any union data inside the EventGatewayRequestRules as the provided EventGatewayTxnOffsetCommitRequestRules

func (EventGatewayRequestRules) MarshalJSON

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

func (*EventGatewayRequestRules) MergeEventGatewayAlterClientQuotasRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayAlterClientQuotasRequestRules(v EventGatewayAlterClientQuotasRequestRules) error

MergeEventGatewayAlterClientQuotasRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayAlterClientQuotasRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayAlterConfigsRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayAlterConfigsRequestRules(v EventGatewayAlterConfigsRequestRules) error

MergeEventGatewayAlterConfigsRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayAlterConfigsRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayAlterUserScramCredentialsRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayAlterUserScramCredentialsRequestRules(v EventGatewayAlterUserScramCredentialsRequestRules) error

MergeEventGatewayAlterUserScramCredentialsRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayAlterUserScramCredentialsRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayConsumerGroupHeartbeatRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayConsumerGroupHeartbeatRequestRules(v EventGatewayConsumerGroupHeartbeatRequestRules) error

MergeEventGatewayConsumerGroupHeartbeatRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayConsumerGroupHeartbeatRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayCreatePartitionsRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayCreatePartitionsRequestRules(v EventGatewayCreatePartitionsRequestRules) error

MergeEventGatewayCreatePartitionsRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayCreatePartitionsRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayCreateTopicsRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayCreateTopicsRequestRules(v EventGatewayCreateTopicsRequestRules) error

MergeEventGatewayCreateTopicsRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayCreateTopicsRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayFetchRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayFetchRequestRules(v EventGatewayFetchRequestRules) error

MergeEventGatewayFetchRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayFetchRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayIncrementalAlterConfigsRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayIncrementalAlterConfigsRequestRules(v EventGatewayIncrementalAlterConfigsRequestRules) error

MergeEventGatewayIncrementalAlterConfigsRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayIncrementalAlterConfigsRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayJoinGroupRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayJoinGroupRequestRules(v EventGatewayJoinGroupRequestRules) error

MergeEventGatewayJoinGroupRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayJoinGroupRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayOffsetCommitRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayOffsetCommitRequestRules(v EventGatewayOffsetCommitRequestRules) error

MergeEventGatewayOffsetCommitRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayOffsetCommitRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayOffsetFetchRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayOffsetFetchRequestRules(v EventGatewayOffsetFetchRequestRules) error

MergeEventGatewayOffsetFetchRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayOffsetFetchRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayProduceRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayProduceRequestRules(v EventGatewayProduceRequestRules) error

MergeEventGatewayProduceRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayProduceRequestRules

func (*EventGatewayRequestRules) MergeEventGatewayTxnOffsetCommitRequestRules

func (t *EventGatewayRequestRules) MergeEventGatewayTxnOffsetCommitRequestRules(v EventGatewayTxnOffsetCommitRequestRules) error

MergeEventGatewayTxnOffsetCommitRequestRules performs a merge with any union data inside the EventGatewayRequestRules, using the provided EventGatewayTxnOffsetCommitRequestRules

func (*EventGatewayRequestRules) UnmarshalJSON

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

func (EventGatewayRequestRules) ValueByDiscriminator

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

type EventGatewaySchemaRegistryOnPrem

type EventGatewaySchemaRegistryOnPrem struct {
	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`
	// contains filtered or unexported fields
}

EventGatewaySchemaRegistryOnPrem defines model for EventGatewaySchemaRegistryOnPrem.

func (EventGatewaySchemaRegistryOnPrem) AsSchemaRegistryConfluent

func (t EventGatewaySchemaRegistryOnPrem) AsSchemaRegistryConfluent() (SchemaRegistryConfluent, error)

AsSchemaRegistryConfluent returns the union data inside the EventGatewaySchemaRegistryOnPrem as a SchemaRegistryConfluent

func (EventGatewaySchemaRegistryOnPrem) Discriminator

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

func (*EventGatewaySchemaRegistryOnPrem) FromSchemaRegistryConfluent

func (t *EventGatewaySchemaRegistryOnPrem) FromSchemaRegistryConfluent(v SchemaRegistryConfluent) error

FromSchemaRegistryConfluent overwrites any union data inside the EventGatewaySchemaRegistryOnPrem as the provided SchemaRegistryConfluent

func (EventGatewaySchemaRegistryOnPrem) MarshalJSON

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

func (*EventGatewaySchemaRegistryOnPrem) MergeSchemaRegistryConfluent

func (t *EventGatewaySchemaRegistryOnPrem) MergeSchemaRegistryConfluent(v SchemaRegistryConfluent) error

MergeSchemaRegistryConfluent performs a merge with any union data inside the EventGatewaySchemaRegistryOnPrem, using the provided SchemaRegistryConfluent

func (*EventGatewaySchemaRegistryOnPrem) UnmarshalJSON

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

func (EventGatewaySchemaRegistryOnPrem) ValueByDiscriminator

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

type EventGatewaySkipRecordPolicyCreate

type EventGatewaySkipRecordPolicyCreate struct {
	// Condition A string containing the boolean expression that determines whether the policy is applied.
	//
	// When the policy is applied as a child policy of schema_validation, the expression can also reference
	// `record.value` fields.
	//
	//
	// Example: record.value.content.foo.bar == "a-value"
	Condition *string `json:"condition,omitempty"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// ParentPolicyId The unique identifier of the parent schema validation policy, if any.
	ParentPolicyId *openapi_types.UUID `json:"parent_policy_id,omitempty"`

	// Type The type name of the policy.
	Type EventGatewaySkipRecordPolicyCreateType `json:"type"`
}

EventGatewaySkipRecordPolicyCreate A policy that skips processing of a record.

type EventGatewaySkipRecordPolicyCreateType

type EventGatewaySkipRecordPolicyCreateType string

EventGatewaySkipRecordPolicyCreateType The type name of the policy.

const (
	SkipRecord EventGatewaySkipRecordPolicyCreateType = "skip_record"
)

Defines values for EventGatewaySkipRecordPolicyCreateType.

func (EventGatewaySkipRecordPolicyCreateType) Valid

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

type EventGatewayStaticKeyCreate

type EventGatewayStaticKeyCreate struct {
	// Description A human-readable description of the static key.
	Description *string `json:"description,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name The unique name of the static key.
	Name string `json:"name"`

	// Value A sensitive value containing the secret or a reference to a secret as a template string expression.
	// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
	// If provided as an expression, the expression itself is stored and returned by the API.
	//
	//
	// Example: ${vault.env['MY_ENV_VAR']}
	Value GatewaySecret `json:"value"`
}

EventGatewayStaticKeyCreate A symmetric key with its secret value for creation.

type EventGatewayStaticKeyOnPrem

type EventGatewayStaticKeyOnPrem struct {
	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A human-readable description of the static key.
	Description *string `json:"description,omitempty"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name The unique name of the static key.
	Name string `json:"name"`

	// Value A sensitive value containing the secret or a reference to a secret as a template string expression.
	// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
	// If provided as an expression, the expression itself is stored and returned by the API.
	//
	//
	// Example: ${vault.env['MY_ENV_VAR']}
	Value GatewaySecret `json:"value"`
}

EventGatewayStaticKeyOnPrem defines model for EventGatewayStaticKeyOnPrem.

type EventGatewayStaticKeySource

type EventGatewayStaticKeySource struct {
	Type EventGatewayStaticKeySourceType `json:"type"`
}

EventGatewayStaticKeySource A key source that uses static symmetric keys.

type EventGatewayStaticKeySourceType

type EventGatewayStaticKeySourceType string

EventGatewayStaticKeySourceType defines model for EventGatewayStaticKeySource.Type.

const (
	EventGatewayStaticKeySourceTypeStatic EventGatewayStaticKeySourceType = "static"
)

Defines values for EventGatewayStaticKeySourceType.

func (EventGatewayStaticKeySourceType) Valid

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

type EventGatewayTLSListenerPolicy

type EventGatewayTLSListenerPolicy struct {
	Config EventGatewayTLSListenerPolicyConfig `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type EventGatewayTLSListenerPolicyType `json:"type"`
}

EventGatewayTLSListenerPolicy The TLS Server policy defines the certificates and keys used by the gateway server when the client connects to the gateway over TLS.

While it is possible to have multiple TLS policies on a listener, only one can be active at a time.

type EventGatewayTLSListenerPolicyConfig

type EventGatewayTLSListenerPolicyConfig struct {
	// AllowPlaintext If false, only TLS connections are allowed. If true, both TLS and plaintext connections are allowed.
	AllowPlaintext *bool            `json:"allow_plaintext,omitempty"`
	Certificates   []TLSCertificate `json:"certificates"`

	// ClientAuthentication Configures mutual TLS (mTLS) client certificate verification. When set, the gateway
	// requests or requires clients to present a certificate during the TLS handshake.
	//
	// **Requires a minimum runtime version of `1.1`**.
	ClientAuthentication *struct {
		// Mode * required - Reject TLS connections without a valid client certificate.
		// * requested - Request a client certificate during the TLS handshake, but allow connections without one (falls back to other configured authentication methods). If a certificate is presented but cannot be verified, the connection is closed.
		Mode EventGatewayTLSListenerPolicyConfigClientAuthenticationMode `json:"mode"`

		// PrincipalMapping An expression that extracts a principal identifier from a verified client certificate.
		// This expression must evaluate to a string.
		//
		// **Requires a minimum runtime version of `1.1`**.
		//
		// Example: ${context.certificate.subject['CN'] ? context.certificate.subject['CN'] : context.certificate.sans.uri[0]}
		PrincipalMapping *string `json:"principal_mapping,omitempty"`

		// TlsTrustBundles TLS trust bundles contain CA certificate bundles used to verify client certificates.
		// All bundles are merged into a single trust store; a client certificate is accepted if it
		// chains to any trusted CA across all bundles.
		TlsTrustBundles []TLSTrustBundleReference `json:"tls_trust_bundles"`
	} `json:"client_authentication,omitempty"`

	// Versions A range of TLS versions.
	Versions *TLSVersionRange `json:"versions,omitempty"`
}

EventGatewayTLSListenerPolicyConfig defines model for EventGatewayTLSListenerPolicyConfig.

type EventGatewayTLSListenerPolicyConfigClientAuthenticationMode

type EventGatewayTLSListenerPolicyConfigClientAuthenticationMode string

EventGatewayTLSListenerPolicyConfigClientAuthenticationMode * required - Reject TLS connections without a valid client certificate. * requested - Request a client certificate during the TLS handshake, but allow connections without one (falls back to other configured authentication methods). If a certificate is presented but cannot be verified, the connection is closed.

const (
	EventGatewayTLSListenerPolicyConfigClientAuthenticationModeRequested EventGatewayTLSListenerPolicyConfigClientAuthenticationMode = "requested"
	EventGatewayTLSListenerPolicyConfigClientAuthenticationModeRequired  EventGatewayTLSListenerPolicyConfigClientAuthenticationMode = "required"
)

Defines values for EventGatewayTLSListenerPolicyConfigClientAuthenticationMode.

func (EventGatewayTLSListenerPolicyConfigClientAuthenticationMode) Valid

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

type EventGatewayTLSListenerPolicyType

type EventGatewayTLSListenerPolicyType string

EventGatewayTLSListenerPolicyType The type name of the policy.

const (
	TlsServer EventGatewayTLSListenerPolicyType = "tls_server"
)

Defines values for EventGatewayTLSListenerPolicyType.

func (EventGatewayTLSListenerPolicyType) Valid

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

type EventGatewayTLSTrustBundleOnPrem

type EventGatewayTLSTrustBundleOnPrem struct {
	Config TLSTrustBundleConfig `json:"config"`

	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A human-readable description of the TLS trust bundle.
	Description *string `json:"description,omitempty"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name The unique name of the TLS trust bundle.
	Name TLSTrustBundleName `json:"name"`
}

EventGatewayTLSTrustBundleOnPrem An Event Gateway TLS trust bundle, extended with the unique identifier and creation timestamp for on-prem deployments.

type EventGatewayTxnOffsetCommitRequestRules

type EventGatewayTxnOffsetCommitRequestRules struct {
	// Rules Every rule in this list is evaluated independently against the request.
	// A rule that evaluates to `false` runs its action.
	// A maximum of 10 rules are allowed.
	Rules []EventGatewayTxnOffsetCommitRule           `json:"rules"`
	Type  EventGatewayTxnOffsetCommitRequestRulesType `json:"type"`
}

EventGatewayTxnOffsetCommitRequestRules The rules to apply to Kafka `TxnOffsetCommit` requests.

Example: {"rules":[{"action":"reject","description":"Enforce the consumer group naming convention.","rule":"context.group.id.startsWith('team-a.')"}],"type":"txn_offset_commit"}

type EventGatewayTxnOffsetCommitRequestRulesType

type EventGatewayTxnOffsetCommitRequestRulesType string

EventGatewayTxnOffsetCommitRequestRulesType defines model for EventGatewayTxnOffsetCommitRequestRules.Type.

const (
	TxnOffsetCommit EventGatewayTxnOffsetCommitRequestRulesType = "txn_offset_commit"
)

Defines values for EventGatewayTxnOffsetCommitRequestRulesType.

func (EventGatewayTxnOffsetCommitRequestRulesType) Valid

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

type EventGatewayTxnOffsetCommitRule

type EventGatewayTxnOffsetCommitRule struct {
	// Action What to do when a rule evaluates to `false`.
	//
	// `reject` fails the request with the `POLICY_VIOLATION` error code.
	// `passthrough` lets the request continue, but logs the violation in the same way as `reject`.
	Action EventGatewayRequestRuleAction `json:"action"`

	// Description An explanation of the rule. Event Gateway writes this text to the logs when the request
	// violates the rule, because the rule expression alone does not show the intent.
	Description string `json:"description"`

	// Rule A boolean expression that describes the valid state of the request.
	// The action runs when the expression evaluates to `false`.
	// An expression that cannot be evaluated, for example because a value has an unexpected
	// format, also counts as `false`.
	//
	//
	// Example: context.group.id.startsWith('team-a.')
	Rule string `json:"rule"`
}

EventGatewayTxnOffsetCommitRule defines model for EventGatewayTxnOffsetCommitRule.

type EventGatewayVirtualClusterOnPrem

type EventGatewayVirtualClusterOnPrem struct {
	// AclMode Configures whether or not ACL policies are enforced on the gateway.
	// - `enforce_on_gateway` means the gateway enforces its own ACL policies for this virtual cluster
	//   and does not forward ACL-related commands to the backend cluster.
	//   Note that if there are no ACL policies configured, all access is denied.
	// - `passthrough` tells the gateway to forward all ACL-related commands.
	AclMode VirtualClusterACLMode `json:"acl_mode"`

	// Authentication How to handle authentication from clients.
	//
	// It tries to authenticate with every rule sequentially one by one.
	// It succeeds on the first match, and fails if no rule matches.
	Authentication VirtualClusterAuthenticationSchemes `json:"authentication"`

	// ClusterPolicies The cluster policies scoped to the virtual cluster.
	ClusterPolicies []EventGatewayClusterPolicyOnPrem `json:"cluster_policies"`

	// ConsumePolicies The consume policies scoped to the virtual cluster.
	ConsumePolicies []EventGatewayConsumePolicyOnPrem `json:"consume_policies"`

	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A human-readable description of the virtual cluster.
	Description *string `json:"description,omitempty"`

	// Destination The backend cluster associated with the virtual cluster.
	//
	// Either `id` or `name` must be provided. Following changes to the backend cluster name won't affect the
	// reference, as the system will create the entities relationship by `id`.
	Destination BackendClusterReferenceModify `json:"destination"`

	// DnsLabel The DNS label used in the bootstrap server URL to identify the virtual cluster when using SNI routing.
	// The format follows the RFC1035: 1-63 chars, lowercase alphanumeric or '-', must start and end with an alphanumeric character.
	//
	// Example: vcluster-1
	DnsLabel VirtualClusterDNSLabel `json:"dns_label"`

	// Id A version 4 UUID.
	//
	// Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
	Id UUIDv4 `json:"id"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name The name of the virtual cluster.
	Name VirtualClusterName `json:"name"`

	// Namespace Namespace allows to implement multitenancy using a single backend cluster.
	// It allows to either hide or enforce a static prefix on resources (topics, consumer group IDs, transaction IDs).
	Namespace *VirtualClusterNamespace `json:"namespace,omitempty"`

	// ProducePolicies The produce policies scoped to the virtual cluster.
	ProducePolicies []EventGatewayProducePolicyOnPrem `json:"produce_policies"`

	// TopicAliases Topic aliases allow exposing backend topics under additional names.
	// An alias creates a new entry point to the same physical data.
	// The alias `topic` field references namespace-visible names (if namespace is configured).
	// Aliases are independent of namespace and can be used without it.
	//
	// **Requires a minimum runtime version of `1.2`**.
	TopicAliases *[]VirtualClusterTopicAlias `json:"topic_aliases,omitempty"`
}

EventGatewayVirtualClusterOnPrem An Event Gateway virtual cluster, extended with the unique identifier, creation timestamp, and scoped cluster, consume, and produce policies for on-prem deployments.

type ExpectedEventGateways

type ExpectedEventGateways struct {
	// EventGatewayIds The identifiers of the expected Event Gateways.
	EventGatewayIds []UUIDv4 `json:"event_gateway_ids"`
}

ExpectedEventGateways The complete set of Event Gateways that are expected to exist.

Example: {"event_gateway_ids":["9524ec7d-36d9-465d-a8c5-83a3c9390458","b1c7f0e2-8d3a-4f19-9b6c-2e5a71d04c83"]}

type FetchKongIdentityPrincipal

type FetchKongIdentityPrincipal struct {
	// Directory Kong Identity directory to use for principal lookup.
	Directory string `json:"directory"`

	// FailureMode Behavior when the Kong Identity principal lookup fails.
	// * `error` - fail the authentication if the principal lookup fails.
	// * `ignore` - proceed without principal metadata if the lookup fails.
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode FetchKongIdentityPrincipalFailureMode `json:"failure_mode"`

	// FetchBy Defines how to look up the principal in Kong Identity.
	//
	// **Requires a minimum runtime version of `1.2`**.
	FetchBy FetchKongIdentityPrincipalFetchBy `json:"fetch_by"`
}

FetchKongIdentityPrincipal Fetches principal metadata from Kong Identity after successful authentication. The principal is looked up by a custom key matched against the authenticated identity.

**Requires a minimum runtime version of `1.2`**.

type FetchKongIdentityPrincipalFailureMode

type FetchKongIdentityPrincipalFailureMode string

FetchKongIdentityPrincipalFailureMode Behavior when the Kong Identity principal lookup fails. * `error` - fail the authentication if the principal lookup fails. * `ignore` - proceed without principal metadata if the lookup fails.

**Requires a minimum runtime version of `1.2`**.

const (
	FetchKongIdentityPrincipalFailureModeError  FetchKongIdentityPrincipalFailureMode = "error"
	FetchKongIdentityPrincipalFailureModeIgnore FetchKongIdentityPrincipalFailureMode = "ignore"
)

Defines values for FetchKongIdentityPrincipalFailureMode.

func (FetchKongIdentityPrincipalFailureMode) Valid

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

type FetchKongIdentityPrincipalFetchBy

type FetchKongIdentityPrincipalFetchBy struct {
	// Key The metadata key in Kong Identity to match the authenticated identity against.
	// Value for the lookup is a `username` in case of `sasl_plain` or `sasl_scram`.
	// In case of `client_certificate` it's a principal mapped by the listener TLSServer policy.
	Key string `json:"key"`
}

FetchKongIdentityPrincipalFetchBy Defines how to look up the principal in Kong Identity.

**Requires a minimum runtime version of `1.2`**.

type FetchKongIdentityPrincipalOauthBearer

type FetchKongIdentityPrincipalOauthBearer struct {
	// Directory Kong Identity directory to use for principal lookup.
	Directory string `json:"directory"`

	// FailureMode Behavior when the Kong Identity principal lookup fails.
	// * `error` - fail the authentication if the principal lookup fails.
	// * `ignore` - proceed without principal metadata if the lookup fails.
	//
	// **Requires a minimum runtime version of `1.2`**.
	FailureMode FetchKongIdentityPrincipalFailureMode `json:"failure_mode"`
}

FetchKongIdentityPrincipalOauthBearer Fetches principal metadata from Kong Identity after successful OAUTHBEARER authentication. The principal is looked up by the iss and sub claims from the JWT token.

**Requires a minimum runtime version of `1.2`**.

type Forbidden

type Forbidden = ForbiddenError

Forbidden standard error

type ForbiddenError

type ForbiddenError struct {
	// Detail A human readable explanation specific to this occurence of the problem.
	// This field may contain request/entity data to help the user understand
	// what went wrong. Enclose variable values in square brackets. Should be
	// provided as "Sentence case" for direct use in the UI.
	//
	//
	// Example: Forbidden
	Detail *string `json:"detail,omitempty"`

	// Instance Used to return the correlation ID back to the user, in the format
	// kong:trace:<correlation_id>. This helps us find the relevant logs
	// when a customer reports an issue.
	//
	//
	// Example: kong:trace:1234567890
	Instance *string `json:"instance,omitempty"`

	// Status The HTTP status code of the error. Useful when passing the response
	// body to child properties in a frontend UI. Must be returned as an integer.
	//
	//
	// Example: 403
	Status *ForbiddenErrorStatus `json:"status,omitempty"`

	// Title A short, human-readable summary of the problem. It should not
	// change between occurences of a problem, except for localization.
	// Should be provided as "Sentence case" for direct use in the UI.
	//
	//
	// Example: Forbidden
	Title *string `json:"title,omitempty"`

	// Type The error type.
	//
	// Example: https://httpstatuses.com/403
	Type *string `json:"type,omitempty"`
}

ForbiddenError standard error

type ForbiddenErrorStatus

type ForbiddenErrorStatus int

ForbiddenErrorStatus The HTTP status code of the error. Useful when passing the response body to child properties in a frontend UI. Must be returned as an integer.

Example: 403

const (
	N403 ForbiddenErrorStatus = 403
)

Defines values for ForbiddenErrorStatus.

func (ForbiddenErrorStatus) Valid

func (e ForbiddenErrorStatus) Valid() bool

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

type ForwardToClusterByPortMappingConfig

type ForwardToClusterByPortMappingConfig struct {
	// AdvertisedHost Virtual brokers are advertised to clients using this host. Any kind of host supported by kafka can be used. If not defined, it's listen_address. If listen_address is `0.0.0.0` it's the destination IP of the TCP connection.
	AdvertisedHost string `json:"advertised_host"`

	// BootstrapPort If set to `at_start`, the first port will be used as a bootstrap port.
	// It provides a stable endpoint to use as the bootstrap server for clients, regardless of broker
	// IDs in the cluster.
	//
	// Additionally, it offsets all ports by one, so for example, if there are 3 brokers (id=1, id=2, id=3)
	// then we will use 4 ports: 9092 (bootstrap), 9093 (id=1), 9094 (id=2), 9095 (id=3)
	// With `none` we will use 3 ports: 9092 (id=1), 9093 (id=2), 9094 (id=3).
	BootstrapPort *ForwardToClusterByPortMappingConfigBootstrapPort `json:"bootstrap_port,omitempty"`

	// Destination A reference to a virtual cluster.
	Destination VirtualClusterReference `json:"destination"`

	// MinBrokerId The lowest broker node ID in the cluster.
	MinBrokerId *int                                    `json:"min_broker_id,omitempty"`
	Type        ForwardToClusterByPortMappingConfigType `json:"type"`
}

ForwardToClusterByPortMappingConfig The configuration to forward request to `destination` and rewrite ports accordingly. All broker ids must fit in the range of ports defined in the listener, if it doesn't the metadata request will return an error.

For example with ports: [9000, "9092-9094", "9100"] and `bootstrap_port: at_start` and brokers with ids 1, 2, 3, 4 we will map: bootstrap to 9000 broker 1 to 9001, broker 2 to 9002, broker 3 to 9003, and broker 4 to 9004 and fail the metadata request as these ports are not open.

However, with the same configuration but with brokers with ids: 92,93,94,100 we will map: bootstrap to 9000, broker 92 to 9092, broker 93 to 9093, broker 94 to 9094, and broker 100 to 9100.

In most cases users should use a single range `["9090-9094"] ` and `bootstrap_port: at_start` and connect with `<host>:9090` as bootstrap server. Being able to use multiple ranges is only useful when when dealing with gaps in broker ids.

It is strongly discouraged to use port mapping in production.

type ForwardToClusterByPortMappingConfigBootstrapPort

type ForwardToClusterByPortMappingConfigBootstrapPort string

ForwardToClusterByPortMappingConfigBootstrapPort If set to `at_start`, the first port will be used as a bootstrap port. It provides a stable endpoint to use as the bootstrap server for clients, regardless of broker IDs in the cluster.

Additionally, it offsets all ports by one, so for example, if there are 3 brokers (id=1, id=2, id=3) then we will use 4 ports: 9092 (bootstrap), 9093 (id=1), 9094 (id=2), 9095 (id=3) With `none` we will use 3 ports: 9092 (id=1), 9093 (id=2), 9094 (id=3).

const (
	ForwardToClusterByPortMappingConfigBootstrapPortAtStart ForwardToClusterByPortMappingConfigBootstrapPort = "at_start"
	ForwardToClusterByPortMappingConfigBootstrapPortNone    ForwardToClusterByPortMappingConfigBootstrapPort = "none"
)

Defines values for ForwardToClusterByPortMappingConfigBootstrapPort.

func (ForwardToClusterByPortMappingConfigBootstrapPort) Valid

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

type ForwardToClusterByPortMappingConfigType

type ForwardToClusterByPortMappingConfigType string

ForwardToClusterByPortMappingConfigType defines model for ForwardToClusterByPortMappingConfig.Type.

const (
	PortMapping ForwardToClusterByPortMappingConfigType = "port_mapping"
)

Defines values for ForwardToClusterByPortMappingConfigType.

func (ForwardToClusterByPortMappingConfigType) Valid

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

type ForwardToClusterBySNIConfig

type ForwardToClusterBySNIConfig struct {
	// AdvertisedPort Virtual brokers are advertised to clients with this port instead of listen_port. Useful when proxy is
	// behind loadbalancer listening on different port.
	AdvertisedPort *int `json:"advertised_port,omitempty"`

	// BrokerHostFormat Configures DNS names assigned to brokers in virtual clusters.
	//
	// - `per_cluster_suffix` is the default and allocates one level in the hierarchy for virtual clusters: `broker-{node_id}.{virtual_cluster}.{sni_suffix}`
	// - `shared_suffix` puts all brokers from every virtual clusters into the same level: `broker-{node_id}-{virtual_cluster}.{sni_suffix}`. This makes it easier to manage certificates for this listener.
	//
	// **Requires a minimum runtime version of `1.1`**.
	BrokerHostFormat *struct {
		Type ForwardToClusterBySNIConfigBrokerHostFormatType `json:"type"`
	} `json:"broker_host_format,omitempty"`

	// SniSuffix Optional suffix for TLS SNI validation.
	//
	// This suffix is concatenated with the virtual cluster "dns.label" label to form the base name for the SNI.
	// If not provided, the virtual cluster "dns.label" label alone is used as the base name for the SNI.
	// For example with sni_suffix: `.example.com` and virtual cluster "dns.label" label: `my-cluster`,
	// the SNI suffix for it is `my-cluster.example.com`.
	// If "dns.label" label is absent on the virtual cluster, the traffic won't be routed there.
	//
	// The bootstrap host is `bootstrap.my-cluster.example.com` and then each broker is addressable at `broker-0.my-cluster.example.com`, `broker-1.my-cluster.example.com`, etc.
	// This means that your deployment needs to have a wildcard certificate for the domain and a DNS resolver that routes `*.my-cluster.example.com` to the proxy.
	//
	// The accepted format is a DNS subdomain starting with either `.` or `-`. For example, `-keg.example.com`, `.keg.example.com`, `.namespace.svc.cluster.local`, and `.localhost` are all valid,
	// while `keg.example.com` is not.
	//
	//
	// Example: .example.com
	SniSuffix *string                         `json:"sni_suffix,omitempty"`
	Type      ForwardToClusterBySNIConfigType `json:"type"`
}

ForwardToClusterBySNIConfig The configuration to forward requests to virtual clusters configured with SNI routing.

type ForwardToClusterBySNIConfigBrokerHostFormatType

type ForwardToClusterBySNIConfigBrokerHostFormatType string

ForwardToClusterBySNIConfigBrokerHostFormatType defines model for ForwardToClusterBySNIConfig.BrokerHostFormat.Type.

const (
	PerClusterSuffix ForwardToClusterBySNIConfigBrokerHostFormatType = "per_cluster_suffix"
	SharedSuffix     ForwardToClusterBySNIConfigBrokerHostFormatType = "shared_suffix"
)

Defines values for ForwardToClusterBySNIConfigBrokerHostFormatType.

func (ForwardToClusterBySNIConfigBrokerHostFormatType) Valid

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

type ForwardToClusterBySNIConfigType

type ForwardToClusterBySNIConfigType string

ForwardToClusterBySNIConfigType defines model for ForwardToClusterBySNIConfig.Type.

const (
	Sni ForwardToClusterBySNIConfigType = "sni"
)

Defines values for ForwardToClusterBySNIConfigType.

func (ForwardToClusterBySNIConfigType) Valid

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

type ForwardToVirtualClusterPolicy

type ForwardToVirtualClusterPolicy struct {
	// Config The configuration of the policy.
	Config ForwardToVirtualClusterPolicy_Config `json:"config"`

	// Description A human-readable description of the policy.
	Description *string `json:"description,omitempty"`

	// Enabled Whether the policy is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name A unique user-defined name of the policy.
	Name *string `json:"name,omitempty"`

	// Type The type name of the policy.
	Type ForwardToVirtualClusterPolicyType `json:"type"`
}

ForwardToVirtualClusterPolicy Forwards requests to virtual clusters configured with port routing or SNI routing. While there can be multiple of these policies configured on a listener, there can only be one instance of `port_mapping`. When multiple policies are configured, the first one that matches the connection is used. If no policy matches, the connection is rejected.

When using `port_mapping`, there must be a mapping port for each broker on the backend cluster see `ForwardToClusterBySNIConfig` for more details.

type ForwardToVirtualClusterPolicyType

type ForwardToVirtualClusterPolicyType string

ForwardToVirtualClusterPolicyType The type name of the policy.

const (
	ForwardToVirtualCluster ForwardToVirtualClusterPolicyType = "forward_to_virtual_cluster"
)

Defines values for ForwardToVirtualClusterPolicyType.

func (ForwardToVirtualClusterPolicyType) Valid

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

type ForwardToVirtualClusterPolicy_Config

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

ForwardToVirtualClusterPolicy_Config The configuration of the policy.

func (ForwardToVirtualClusterPolicy_Config) AsForwardToClusterByPortMappingConfig

func (t ForwardToVirtualClusterPolicy_Config) AsForwardToClusterByPortMappingConfig() (ForwardToClusterByPortMappingConfig, error)

AsForwardToClusterByPortMappingConfig returns the union data inside the ForwardToVirtualClusterPolicy_Config as a ForwardToClusterByPortMappingConfig

func (ForwardToVirtualClusterPolicy_Config) AsForwardToClusterBySNIConfig

func (t ForwardToVirtualClusterPolicy_Config) AsForwardToClusterBySNIConfig() (ForwardToClusterBySNIConfig, error)

AsForwardToClusterBySNIConfig returns the union data inside the ForwardToVirtualClusterPolicy_Config as a ForwardToClusterBySNIConfig

func (ForwardToVirtualClusterPolicy_Config) Discriminator

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

func (*ForwardToVirtualClusterPolicy_Config) FromForwardToClusterByPortMappingConfig

func (t *ForwardToVirtualClusterPolicy_Config) FromForwardToClusterByPortMappingConfig(v ForwardToClusterByPortMappingConfig) error

FromForwardToClusterByPortMappingConfig overwrites any union data inside the ForwardToVirtualClusterPolicy_Config as the provided ForwardToClusterByPortMappingConfig

func (*ForwardToVirtualClusterPolicy_Config) FromForwardToClusterBySNIConfig

func (t *ForwardToVirtualClusterPolicy_Config) FromForwardToClusterBySNIConfig(v ForwardToClusterBySNIConfig) error

FromForwardToClusterBySNIConfig overwrites any union data inside the ForwardToVirtualClusterPolicy_Config as the provided ForwardToClusterBySNIConfig

func (ForwardToVirtualClusterPolicy_Config) MarshalJSON

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

func (*ForwardToVirtualClusterPolicy_Config) MergeForwardToClusterByPortMappingConfig

func (t *ForwardToVirtualClusterPolicy_Config) MergeForwardToClusterByPortMappingConfig(v ForwardToClusterByPortMappingConfig) error

MergeForwardToClusterByPortMappingConfig performs a merge with any union data inside the ForwardToVirtualClusterPolicy_Config, using the provided ForwardToClusterByPortMappingConfig

func (*ForwardToVirtualClusterPolicy_Config) MergeForwardToClusterBySNIConfig

func (t *ForwardToVirtualClusterPolicy_Config) MergeForwardToClusterBySNIConfig(v ForwardToClusterBySNIConfig) error

MergeForwardToClusterBySNIConfig performs a merge with any union data inside the ForwardToVirtualClusterPolicy_Config, using the provided ForwardToClusterBySNIConfig

func (*ForwardToVirtualClusterPolicy_Config) UnmarshalJSON

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

func (ForwardToVirtualClusterPolicy_Config) ValueByDiscriminator

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

type Gateway

type Gateway struct {
	// CreatedAt An ISO-8604 timestamp representation of gateway creation date.
	//
	// Example: 2022-11-04T20:10:06.927Z
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Description A human-readable description of the Gateway.
	Description *GatewayDescription `json:"description,omitempty"`

	// Id The gateway ID.
	//
	// Example: 7f9fd312-a987-4628-b4c5-bb4f4fddd5f7
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name The name of the Gateway.
	Name GatewayName `json:"name"`

	// UpdatedAt An ISO-8604 timestamp representation of gateway update date.
	//
	// Example: 2022-11-04T20:10:06.927Z
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Gateway The gateway object contains information about a Konnect gateway.

type GatewayConfigVersion

type GatewayConfigVersion struct {
	// DataVersion The version of the entities used to bundle the config. Every user change that affects the config increments this version.
	DataVersion int `json:"data_version"`

	// FeatureBitmap The state of all feature flags that impact the config, encoded as bits.
	FeatureBitmap uint64 `json:"feature_bitmap"`

	// OperatorVersion The semantic version of the operator that bundled the config, such as "1.2.0".
	//
	// Example: 1.2.0
	OperatorVersion string `json:"operator_version"`
}

GatewayConfigVersion The version of the config built from the entities.

type GatewayDescription

type GatewayDescription = string

GatewayDescription A human-readable description of the Gateway.

type GatewayEntities

type GatewayEntities struct {
	// ConfigVersion The version of the config built from the entities.
	ConfigVersion GatewayConfigVersion `json:"config_version"`

	// Entities The entities scoped to the gateway.
	Entities GatewayEntitySet `json:"entities"`
}

GatewayEntities The set of entities scoped to a gateway.

type GatewayEntitySet

type GatewayEntitySet struct {
	// BackendClusters The backend clusters scoped to the gateway.
	BackendClusters []EventGatewayBackendClusterOnPrem `json:"backend_clusters"`

	// Listeners The listeners scoped to the gateway.
	Listeners []EventGatewayListenerOnPrem `json:"listeners"`

	// SchemaRegistries The schema registries scoped to the gateway.
	SchemaRegistries []EventGatewaySchemaRegistryOnPrem `json:"schema_registries"`

	// StaticKeys The static keys scoped to the gateway.
	StaticKeys []EventGatewayStaticKeyOnPrem `json:"static_keys"`

	// TlsTrustBundles The TLS trust bundles scoped to the gateway.
	TlsTrustBundles []EventGatewayTLSTrustBundleOnPrem `json:"tls_trust_bundles"`

	// VirtualClusters The virtual clusters scoped to the gateway.
	VirtualClusters []EventGatewayVirtualClusterOnPrem `json:"virtual_clusters"`
}

GatewayEntitySet The entities scoped to the gateway.

type GatewayName

type GatewayName = string

GatewayName The name of the Gateway.

type GatewaySecret

type GatewaySecret = string

GatewaySecret A sensitive value containing the secret or a reference to a secret as a template string expression. If the value is provided as plain text, it is encrypted at rest and omitted from API responses. If provided as an expression, the expression itself is stored and returned by the API.

Example: ${vault.env['MY_ENV_VAR']}

type GatewaySecretReferenceOrLiteral

type GatewaySecretReferenceOrLiteral = string

GatewaySecretReferenceOrLiteral A literal value or a reference to an existing secret as a template string expression. The value is stored and returned by the API as-is, not treated as sensitive information.

type GetEventGatewayDataPlaneCertificateResponse

type GetEventGatewayDataPlaneCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EventGatewayDataPlaneCertificateOnPrem
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseGetEventGatewayDataPlaneCertificateResponse

func ParseGetEventGatewayDataPlaneCertificateResponse(rsp *http.Response) (*GetEventGatewayDataPlaneCertificateResponse, error)

ParseGetEventGatewayDataPlaneCertificateResponse parses an HTTP response from a GetEventGatewayDataPlaneCertificateWithResponse call

func (GetEventGatewayDataPlaneCertificateResponse) ContentType

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

func (GetEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON401

func (r GetEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON403

func (r GetEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON404

func (r GetEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetEventGatewayDataPlaneCertificateResponse) GetBody

GetBody returns the raw response body bytes

func (GetEventGatewayDataPlaneCertificateResponse) GetJSON200

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

func (GetEventGatewayDataPlaneCertificateResponse) Status

Status returns HTTPResponse.Status

func (GetEventGatewayDataPlaneCertificateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetEventGatewayEntitiesResponse

type GetEventGatewayEntitiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GatewayEntities
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseGetEventGatewayEntitiesResponse

func ParseGetEventGatewayEntitiesResponse(rsp *http.Response) (*GetEventGatewayEntitiesResponse, error)

ParseGetEventGatewayEntitiesResponse parses an HTTP response from a GetEventGatewayEntitiesWithResponse call

func (GetEventGatewayEntitiesResponse) ContentType

func (r GetEventGatewayEntitiesResponse) ContentType() string

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

func (GetEventGatewayEntitiesResponse) GetApplicationproblemJSON401

func (r GetEventGatewayEntitiesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetEventGatewayEntitiesResponse) GetApplicationproblemJSON403

func (r GetEventGatewayEntitiesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (GetEventGatewayEntitiesResponse) GetApplicationproblemJSON404

func (r GetEventGatewayEntitiesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (GetEventGatewayEntitiesResponse) GetBody

func (r GetEventGatewayEntitiesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetEventGatewayEntitiesResponse) GetJSON200

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

func (GetEventGatewayEntitiesResponse) Status

Status returns HTTPResponse.Status

func (GetEventGatewayEntitiesResponse) StatusCode

func (r GetEventGatewayEntitiesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InvalidParameterChoiceItem

type InvalidParameterChoiceItem struct {
	Choices *[]string `json:"choices,omitempty"`

	// Field Example: name
	Field *string `json:"field,omitempty"`

	// Reason Example: is a required field
	Reason *string `json:"reason,omitempty"`

	// Rule invalid parameters rules
	Rule *InvalidParameterChoiceItemRule `json:"rule,omitempty"`

	// Source Example: body
	Source *string `json:"source,omitempty"`
}

InvalidParameterChoiceItem defines model for InvalidParameterChoiceItem.

type InvalidParameterChoiceItemRule

type InvalidParameterChoiceItemRule string

InvalidParameterChoiceItemRule invalid parameters rules

const (
	Enum InvalidParameterChoiceItemRule = "enum"
)

Defines values for InvalidParameterChoiceItemRule.

func (InvalidParameterChoiceItemRule) Valid

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

type InvalidParameterDependentItem

type InvalidParameterDependentItem struct {
	Dependents *[]string `json:"dependents,omitempty"`

	// Field Example: name
	Field *string `json:"field,omitempty"`

	// Reason Example: is a required field
	Reason *string `json:"reason,omitempty"`

	// Rule invalid parameters rules
	Rule *InvalidParameterDependentItemRule `json:"rule,omitempty"`

	// Source Example: body
	Source *string `json:"source,omitempty"`
}

InvalidParameterDependentItem defines model for InvalidParameterDependentItem.

type InvalidParameterDependentItemRule

type InvalidParameterDependentItemRule string

InvalidParameterDependentItemRule invalid parameters rules

const (
	DependentFields InvalidParameterDependentItemRule = "dependent_fields"
)

Defines values for InvalidParameterDependentItemRule.

func (InvalidParameterDependentItemRule) Valid

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

type InvalidParameterMaximumLength

type InvalidParameterMaximumLength struct {
	// Field Example: name
	Field *string `json:"field,omitempty"`

	// Maximum Example: 8
	Maximum int `json:"maximum"`

	// Reason Example: must not have more than 8 characters
	Reason *string `json:"reason,omitempty"`

	// Rule invalid parameters rules
	Rule *InvalidParameterMaximumLengthRule `json:"rule,omitempty"`

	// Source Example: body
	Source *string `json:"source,omitempty"`
}

InvalidParameterMaximumLength defines model for InvalidParameterMaximumLength.

type InvalidParameterMaximumLengthRule

type InvalidParameterMaximumLengthRule string

InvalidParameterMaximumLengthRule invalid parameters rules

const (
	Max       InvalidParameterMaximumLengthRule = "max"
	MaxItems  InvalidParameterMaximumLengthRule = "max_items"
	MaxLength InvalidParameterMaximumLengthRule = "max_length"
)

Defines values for InvalidParameterMaximumLengthRule.

func (InvalidParameterMaximumLengthRule) Valid

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

type InvalidParameterMaximumTime

type InvalidParameterMaximumTime struct {
	// Field Example: to
	Field *string `json:"field,omitempty"`

	// Maximum Example: 2026-10-31T23:59:59Z
	Maximum time.Time `json:"maximum"`

	// Reason Example: must be no later than 2026-10-31T23:59:59Z
	Reason *string `json:"reason,omitempty"`

	// Rule invalid parameters rules
	Rule *InvalidParameterMaximumTimeRule `json:"rule,omitempty"`

	// Source Example: body
	Source *string `json:"source,omitempty"`
}

InvalidParameterMaximumTime defines model for InvalidParameterMaximumTime.

type InvalidParameterMaximumTimeRule

type InvalidParameterMaximumTimeRule string

InvalidParameterMaximumTimeRule invalid parameters rules

const (
	MaxTime InvalidParameterMaximumTimeRule = "max_time"
)

Defines values for InvalidParameterMaximumTimeRule.

func (InvalidParameterMaximumTimeRule) Valid

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

type InvalidParameterMinimumLength

type InvalidParameterMinimumLength struct {
	// Field Example: name
	Field *string `json:"field,omitempty"`

	// Minimum Example: 8
	Minimum int `json:"minimum"`

	// Reason Example: must have at least 8 characters
	Reason *string `json:"reason,omitempty"`

	// Rule invalid parameters rules
	Rule *InvalidParameterMinimumLengthRule `json:"rule,omitempty"`

	// Source Example: body
	Source *string `json:"source,omitempty"`
}

InvalidParameterMinimumLength defines model for InvalidParameterMinimumLength.

type InvalidParameterMinimumLengthRule

type InvalidParameterMinimumLengthRule string

InvalidParameterMinimumLengthRule invalid parameters rules

const (
	Min          InvalidParameterMinimumLengthRule = "min"
	MinDigits    InvalidParameterMinimumLengthRule = "min_digits"
	MinItems     InvalidParameterMinimumLengthRule = "min_items"
	MinLength    InvalidParameterMinimumLengthRule = "min_length"
	MinLowercase InvalidParameterMinimumLengthRule = "min_lowercase"
	MinSymbols   InvalidParameterMinimumLengthRule = "min_symbols"
	MinUppercase InvalidParameterMinimumLengthRule = "min_uppercase"
)

Defines values for InvalidParameterMinimumLengthRule.

func (InvalidParameterMinimumLengthRule) Valid

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

type InvalidParameterMinimumTime

type InvalidParameterMinimumTime struct {
	// Field Example: to
	Field *string `json:"field,omitempty"`

	// Minimum Example: 2026-10-01T00:00:00Z
	Minimum time.Time `json:"minimum"`

	// Reason Example: must be no earlier than 2026-10-01T00:00:00Z
	Reason *string `json:"reason,omitempty"`

	// Rule invalid parameters rules
	Rule *InvalidParameterMinimumTimeRule `json:"rule,omitempty"`

	// Source Example: body
	Source *string `json:"source,omitempty"`
}

InvalidParameterMinimumTime defines model for InvalidParameterMinimumTime.

type InvalidParameterMinimumTimeRule

type InvalidParameterMinimumTimeRule string

InvalidParameterMinimumTimeRule invalid parameters rules

const (
	MinTime InvalidParameterMinimumTimeRule = "min_time"
)

Defines values for InvalidParameterMinimumTimeRule.

func (InvalidParameterMinimumTimeRule) Valid

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

type InvalidParameterStandard

type InvalidParameterStandard struct {
	// Field Example: name
	Field *string `json:"field,omitempty"`

	// Reason Example: is a required field
	Reason *string `json:"reason,omitempty"`

	// Rule invalid parameters rules
	Rule *InvalidRules `json:"rule,omitempty"`

	// Source Example: body
	Source *string `json:"source,omitempty"`
}

InvalidParameterStandard defines model for InvalidParameterStandard.

type InvalidParameters

type InvalidParameters = []InvalidParameters_Item

InvalidParameters invalid parameters

type InvalidParameters_Item

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

InvalidParameters_Item defines model for InvalidParameters.Item.

func (InvalidParameters_Item) AsInvalidParameterChoiceItem

func (t InvalidParameters_Item) AsInvalidParameterChoiceItem() (InvalidParameterChoiceItem, error)

AsInvalidParameterChoiceItem returns the union data inside the InvalidParameters_Item as a InvalidParameterChoiceItem

func (InvalidParameters_Item) AsInvalidParameterDependentItem

func (t InvalidParameters_Item) AsInvalidParameterDependentItem() (InvalidParameterDependentItem, error)

AsInvalidParameterDependentItem returns the union data inside the InvalidParameters_Item as a InvalidParameterDependentItem

func (InvalidParameters_Item) AsInvalidParameterMaximumLength

func (t InvalidParameters_Item) AsInvalidParameterMaximumLength() (InvalidParameterMaximumLength, error)

AsInvalidParameterMaximumLength returns the union data inside the InvalidParameters_Item as a InvalidParameterMaximumLength

func (InvalidParameters_Item) AsInvalidParameterMaximumTime

func (t InvalidParameters_Item) AsInvalidParameterMaximumTime() (InvalidParameterMaximumTime, error)

AsInvalidParameterMaximumTime returns the union data inside the InvalidParameters_Item as a InvalidParameterMaximumTime

func (InvalidParameters_Item) AsInvalidParameterMinimumLength

func (t InvalidParameters_Item) AsInvalidParameterMinimumLength() (InvalidParameterMinimumLength, error)

AsInvalidParameterMinimumLength returns the union data inside the InvalidParameters_Item as a InvalidParameterMinimumLength

func (InvalidParameters_Item) AsInvalidParameterMinimumTime

func (t InvalidParameters_Item) AsInvalidParameterMinimumTime() (InvalidParameterMinimumTime, error)

AsInvalidParameterMinimumTime returns the union data inside the InvalidParameters_Item as a InvalidParameterMinimumTime

func (InvalidParameters_Item) AsInvalidParameterStandard

func (t InvalidParameters_Item) AsInvalidParameterStandard() (InvalidParameterStandard, error)

AsInvalidParameterStandard returns the union data inside the InvalidParameters_Item as a InvalidParameterStandard

func (*InvalidParameters_Item) FromInvalidParameterChoiceItem

func (t *InvalidParameters_Item) FromInvalidParameterChoiceItem(v InvalidParameterChoiceItem) error

FromInvalidParameterChoiceItem overwrites any union data inside the InvalidParameters_Item as the provided InvalidParameterChoiceItem

func (*InvalidParameters_Item) FromInvalidParameterDependentItem

func (t *InvalidParameters_Item) FromInvalidParameterDependentItem(v InvalidParameterDependentItem) error

FromInvalidParameterDependentItem overwrites any union data inside the InvalidParameters_Item as the provided InvalidParameterDependentItem

func (*InvalidParameters_Item) FromInvalidParameterMaximumLength

func (t *InvalidParameters_Item) FromInvalidParameterMaximumLength(v InvalidParameterMaximumLength) error

FromInvalidParameterMaximumLength overwrites any union data inside the InvalidParameters_Item as the provided InvalidParameterMaximumLength

func (*InvalidParameters_Item) FromInvalidParameterMaximumTime

func (t *InvalidParameters_Item) FromInvalidParameterMaximumTime(v InvalidParameterMaximumTime) error

FromInvalidParameterMaximumTime overwrites any union data inside the InvalidParameters_Item as the provided InvalidParameterMaximumTime

func (*InvalidParameters_Item) FromInvalidParameterMinimumLength

func (t *InvalidParameters_Item) FromInvalidParameterMinimumLength(v InvalidParameterMinimumLength) error

FromInvalidParameterMinimumLength overwrites any union data inside the InvalidParameters_Item as the provided InvalidParameterMinimumLength

func (*InvalidParameters_Item) FromInvalidParameterMinimumTime

func (t *InvalidParameters_Item) FromInvalidParameterMinimumTime(v InvalidParameterMinimumTime) error

FromInvalidParameterMinimumTime overwrites any union data inside the InvalidParameters_Item as the provided InvalidParameterMinimumTime

func (*InvalidParameters_Item) FromInvalidParameterStandard

func (t *InvalidParameters_Item) FromInvalidParameterStandard(v InvalidParameterStandard) error

FromInvalidParameterStandard overwrites any union data inside the InvalidParameters_Item as the provided InvalidParameterStandard

func (InvalidParameters_Item) MarshalJSON

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

func (*InvalidParameters_Item) MergeInvalidParameterChoiceItem

func (t *InvalidParameters_Item) MergeInvalidParameterChoiceItem(v InvalidParameterChoiceItem) error

MergeInvalidParameterChoiceItem performs a merge with any union data inside the InvalidParameters_Item, using the provided InvalidParameterChoiceItem

func (*InvalidParameters_Item) MergeInvalidParameterDependentItem

func (t *InvalidParameters_Item) MergeInvalidParameterDependentItem(v InvalidParameterDependentItem) error

MergeInvalidParameterDependentItem performs a merge with any union data inside the InvalidParameters_Item, using the provided InvalidParameterDependentItem

func (*InvalidParameters_Item) MergeInvalidParameterMaximumLength

func (t *InvalidParameters_Item) MergeInvalidParameterMaximumLength(v InvalidParameterMaximumLength) error

MergeInvalidParameterMaximumLength performs a merge with any union data inside the InvalidParameters_Item, using the provided InvalidParameterMaximumLength

func (*InvalidParameters_Item) MergeInvalidParameterMaximumTime

func (t *InvalidParameters_Item) MergeInvalidParameterMaximumTime(v InvalidParameterMaximumTime) error

MergeInvalidParameterMaximumTime performs a merge with any union data inside the InvalidParameters_Item, using the provided InvalidParameterMaximumTime

func (*InvalidParameters_Item) MergeInvalidParameterMinimumLength

func (t *InvalidParameters_Item) MergeInvalidParameterMinimumLength(v InvalidParameterMinimumLength) error

MergeInvalidParameterMinimumLength performs a merge with any union data inside the InvalidParameters_Item, using the provided InvalidParameterMinimumLength

func (*InvalidParameters_Item) MergeInvalidParameterMinimumTime

func (t *InvalidParameters_Item) MergeInvalidParameterMinimumTime(v InvalidParameterMinimumTime) error

MergeInvalidParameterMinimumTime performs a merge with any union data inside the InvalidParameters_Item, using the provided InvalidParameterMinimumTime

func (*InvalidParameters_Item) MergeInvalidParameterStandard

func (t *InvalidParameters_Item) MergeInvalidParameterStandard(v InvalidParameterStandard) error

MergeInvalidParameterStandard performs a merge with any union data inside the InvalidParameters_Item, using the provided InvalidParameterStandard

func (*InvalidParameters_Item) UnmarshalJSON

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

type InvalidRules

type InvalidRules string

InvalidRules invalid parameters rules

const (
	InvalidRulesInvalid                                InvalidRules = "invalid"
	InvalidRulesIsArn                                  InvalidRules = "is_arn"
	InvalidRulesIsArray                                InvalidRules = "is_array"
	InvalidRulesIsBase64                               InvalidRules = "is_base64"
	InvalidRulesIsBoolean                              InvalidRules = "is_boolean"
	InvalidRulesIsDateTime                             InvalidRules = "is_date_time"
	InvalidRulesIsFqdn                                 InvalidRules = "is_fqdn"
	InvalidRulesIsInteger                              InvalidRules = "is_integer"
	InvalidRulesIsLabel                                InvalidRules = "is_label"
	InvalidRulesIsNull                                 InvalidRules = "is_null"
	InvalidRulesIsNumber                               InvalidRules = "is_number"
	InvalidRulesIsObject                               InvalidRules = "is_object"
	InvalidRulesIsString                               InvalidRules = "is_string"
	InvalidRulesIsSupportedNetworkAvailabilityZoneList InvalidRules = "is_supported_network_availability_zone_list"
	InvalidRulesIsSupportedNetworkCidrBlock            InvalidRules = "is_supported_network_cidr_block"
	InvalidRulesIsSupportedProviderRegion              InvalidRules = "is_supported_provider_region"
	InvalidRulesIsUuid                                 InvalidRules = "is_uuid"
	InvalidRulesKeyInvalid                             InvalidRules = "key_invalid"
	InvalidRulesMatchesRegex                           InvalidRules = "matches_regex"
	InvalidRulesMissingReference                       InvalidRules = "missing_reference"
	InvalidRulesRequired                               InvalidRules = "required"
	InvalidRulesType                                   InvalidRules = "type"
	InvalidRulesUnique                                 InvalidRules = "unique"
	InvalidRulesUnknownProperty                        InvalidRules = "unknown_property"
)

Defines values for InvalidRules.

func (InvalidRules) Valid

func (e InvalidRules) Valid() bool

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

type Labels

type Labels map[string]string

Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

Example: {"env":"test"}

type ListEventGatewayDataPlaneCertificatesOnPrem

type ListEventGatewayDataPlaneCertificatesOnPrem struct {
	// Data The dataplane certificates scoped to the gateway.
	Data []EventGatewayDataPlaneCertificateOnPrem `json:"data"`
}

ListEventGatewayDataPlaneCertificatesOnPrem The dataplane certificates scoped to a gateway.

type ListEventGatewayDataPlaneCertificatesResponse

type ListEventGatewayDataPlaneCertificatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ListEventGatewayDataPlaneCertificatesOnPrem
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseListEventGatewayDataPlaneCertificatesResponse

func ParseListEventGatewayDataPlaneCertificatesResponse(rsp *http.Response) (*ListEventGatewayDataPlaneCertificatesResponse, error)

ParseListEventGatewayDataPlaneCertificatesResponse parses an HTTP response from a ListEventGatewayDataPlaneCertificatesWithResponse call

func (ListEventGatewayDataPlaneCertificatesResponse) ContentType

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

func (ListEventGatewayDataPlaneCertificatesResponse) GetApplicationproblemJSON401

func (r ListEventGatewayDataPlaneCertificatesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListEventGatewayDataPlaneCertificatesResponse) GetApplicationproblemJSON403

func (r ListEventGatewayDataPlaneCertificatesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListEventGatewayDataPlaneCertificatesResponse) GetApplicationproblemJSON404

func (r ListEventGatewayDataPlaneCertificatesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ListEventGatewayDataPlaneCertificatesResponse) GetBody

GetBody returns the raw response body bytes

func (ListEventGatewayDataPlaneCertificatesResponse) GetJSON200

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

func (ListEventGatewayDataPlaneCertificatesResponse) Status

Status returns HTTPResponse.Status

func (ListEventGatewayDataPlaneCertificatesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type MinRuntimeVersion

type MinRuntimeVersion = string

MinRuntimeVersion The minimum runtime version supported by the API. This is the lowest version of the data plane release that can be used with the entity model. When not specified, the minimum runtime version will be pinned to the latest available release.

Example: 1.1

type NamespaceExactAllowListItem

type NamespaceExactAllowListItem struct {
	Backend string `json:"backend"`
}

NamespaceExactAllowListItem defines model for NamespaceExactAllowListItem.

type NotFound

type NotFound = NotFoundError

NotFound standard error

type NotFoundError

type NotFoundError struct {
	// Detail A human readable explanation specific to this occurence of the problem.
	// This field may contain request/entity data to help the user understand
	// what went wrong. Enclose variable values in square brackets. Should be
	// provided as "Sentence case" for direct use in the UI.
	//
	//
	// Example: Not found
	Detail *string `json:"detail,omitempty"`

	// Instance Used to return the correlation ID back to the user, in the format
	// kong:trace:<correlation_id>. This helps us find the relevant logs
	// when a customer reports an issue.
	//
	//
	// Example: kong:trace:1234567890
	Instance *string `json:"instance,omitempty"`

	// Status The HTTP status code of the error. Useful when passing the response
	// body to child properties in a frontend UI. Must be returned as an integer.
	//
	//
	// Example: 404
	Status *NotFoundErrorStatus `json:"status,omitempty"`

	// Title A short, human-readable summary of the problem. It should not
	// change between occurences of a problem, except for localization.
	// Should be provided as "Sentence case" for direct use in the UI.
	//
	//
	// Example: Not Found
	Title *string `json:"title,omitempty"`

	// Type The error type.
	//
	// Example: https://httpstatuses.com/404
	Type *string `json:"type,omitempty"`
}

NotFoundError standard error

type NotFoundErrorStatus

type NotFoundErrorStatus int

NotFoundErrorStatus The HTTP status code of the error. Useful when passing the response body to child properties in a frontend UI. Must be returned as an integer.

Example: 404

const (
	N404 NotFoundErrorStatus = 404
)

Defines values for NotFoundErrorStatus.

func (NotFoundErrorStatus) Valid

func (e NotFoundErrorStatus) Valid() bool

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

type ProduceFailureMode

type ProduceFailureMode string

ProduceFailureMode Describes how to handle a failure in a policy applied to produced records. * `reject` - rejects the record batch. * `passthrough` - passes the record silently to the backend cluster even though policy execution failed. * `mark` - passes the record to the backend cluster but marks it with a `kong/policy-failure-<id>` header whose value is the reason for the policy failure (truncated to 512 characters).

**Requires a minimum runtime version of `1.2`**.

const (
	ProduceFailureModeMark        ProduceFailureMode = "mark"
	ProduceFailureModePassthrough ProduceFailureMode = "passthrough"
	ProduceFailureModeReject      ProduceFailureMode = "reject"
)

Defines values for ProduceFailureMode.

func (ProduceFailureMode) Valid

func (e ProduceFailureMode) Valid() bool

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

type ProduceKeyValidationAction

type ProduceKeyValidationAction string

ProduceKeyValidationAction Defines a behavior when record key is not valid.

  • reject - rejects a batch for topic partition. Only available for produce.
  • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema.
const (
	ProduceKeyValidationActionMark   ProduceKeyValidationAction = "mark"
	ProduceKeyValidationActionReject ProduceKeyValidationAction = "reject"
)

Defines values for ProduceKeyValidationAction.

func (ProduceKeyValidationAction) Valid

func (e ProduceKeyValidationAction) Valid() bool

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

type ProduceValueValidationAction

type ProduceValueValidationAction string

ProduceValueValidationAction Defines a behavior when record value is not valid.

  • reject - rejects a batch for topic partition. Only available for produce.
  • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema.
const (
	ProduceValueValidationActionMark   ProduceValueValidationAction = "mark"
	ProduceValueValidationActionReject ProduceValueValidationAction = "reject"
)

Defines values for ProduceValueValidationAction.

func (ProduceValueValidationAction) Valid

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

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type SchemaRegistryAuthenticationBasic

type SchemaRegistryAuthenticationBasic struct {
	// Password A sensitive value containing the secret or a reference to a secret as a template string expression.
	// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
	// If provided as an expression, the expression itself is stored and returned by the API.
	//
	//
	// Example: ${vault.env['MY_ENV_VAR']}
	Password GatewaySecret                         `json:"password"`
	Type     SchemaRegistryAuthenticationBasicType `json:"type"`

	// Username A literal value or a reference to an existing secret as a template string expression.
	// The value is stored and returned by the API as-is, not treated as sensitive information.
	Username GatewaySecretReferenceOrLiteral `json:"username"`
}

SchemaRegistryAuthenticationBasic Basic authentication scheme for the schema registry with username and password.

type SchemaRegistryAuthenticationBasicType

type SchemaRegistryAuthenticationBasicType string

SchemaRegistryAuthenticationBasicType defines model for SchemaRegistryAuthenticationBasic.Type.

const (
	Basic SchemaRegistryAuthenticationBasicType = "basic"
)

Defines values for SchemaRegistryAuthenticationBasicType.

func (SchemaRegistryAuthenticationBasicType) Valid

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

type SchemaRegistryAuthenticationScheme

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

SchemaRegistryAuthenticationScheme The authentication configuration for the schema registry.

func (SchemaRegistryAuthenticationScheme) AsSchemaRegistryAuthenticationBasic

func (t SchemaRegistryAuthenticationScheme) AsSchemaRegistryAuthenticationBasic() (SchemaRegistryAuthenticationBasic, error)

AsSchemaRegistryAuthenticationBasic returns the union data inside the SchemaRegistryAuthenticationScheme as a SchemaRegistryAuthenticationBasic

func (SchemaRegistryAuthenticationScheme) Discriminator

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

func (*SchemaRegistryAuthenticationScheme) FromSchemaRegistryAuthenticationBasic

func (t *SchemaRegistryAuthenticationScheme) FromSchemaRegistryAuthenticationBasic(v SchemaRegistryAuthenticationBasic) error

FromSchemaRegistryAuthenticationBasic overwrites any union data inside the SchemaRegistryAuthenticationScheme as the provided SchemaRegistryAuthenticationBasic

func (SchemaRegistryAuthenticationScheme) MarshalJSON

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

func (*SchemaRegistryAuthenticationScheme) MergeSchemaRegistryAuthenticationBasic

func (t *SchemaRegistryAuthenticationScheme) MergeSchemaRegistryAuthenticationBasic(v SchemaRegistryAuthenticationBasic) error

MergeSchemaRegistryAuthenticationBasic performs a merge with any union data inside the SchemaRegistryAuthenticationScheme, using the provided SchemaRegistryAuthenticationBasic

func (*SchemaRegistryAuthenticationScheme) UnmarshalJSON

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

func (SchemaRegistryAuthenticationScheme) ValueByDiscriminator

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

type SchemaRegistryConfluent

type SchemaRegistryConfluent struct {
	// Config The configuration of [Confluent Schema Registry](https://github.com/confluentinc/schema-registry)
	Config SchemaRegistryConfluentConfig `json:"config"`

	// Description A human-readable description of the virtual cluster.
	Description *string `json:"description,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// Name The unique name of the schema registry.
	Name string `json:"name"`

	// Type The type of the schema registry.
	Type SchemaRegistryConfluentType `json:"type"`
}

SchemaRegistryConfluent A Confluent schema registry.

type SchemaRegistryConfluentConfig

type SchemaRegistryConfluentConfig struct {
	// Authentication The authentication configuration for the schema registry.
	Authentication *SchemaRegistryAuthenticationScheme `json:"authentication,omitempty"`

	// Endpoint The endpoint of the Confluent schema registry.
	Endpoint string `json:"endpoint"`

	// SchemaType The format of the message.
	SchemaType SchemaRegistryConfluentConfigSchemaType `json:"schema_type"`

	// TimeoutSeconds Total time in seconds from establishing connection to receive a response from schema registry.
	TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}

SchemaRegistryConfluentConfig The configuration of [Confluent Schema Registry](https://github.com/confluentinc/schema-registry)

type SchemaRegistryConfluentConfigSchemaType

type SchemaRegistryConfluentConfigSchemaType string

SchemaRegistryConfluentConfigSchemaType The format of the message.

const (
	SchemaRegistryConfluentConfigSchemaTypeAny  SchemaRegistryConfluentConfigSchemaType = "any"
	SchemaRegistryConfluentConfigSchemaTypeAvro SchemaRegistryConfluentConfigSchemaType = "avro"
	SchemaRegistryConfluentConfigSchemaTypeJson SchemaRegistryConfluentConfigSchemaType = "json"
)

Defines values for SchemaRegistryConfluentConfigSchemaType.

func (SchemaRegistryConfluentConfigSchemaType) Valid

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

type SchemaRegistryConfluentType

type SchemaRegistryConfluentType string

SchemaRegistryConfluentType The type of the schema registry.

const (
	Confluent SchemaRegistryConfluentType = "confluent"
)

Defines values for SchemaRegistryConfluentType.

func (SchemaRegistryConfluentType) Valid

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

type SchemaRegistryCreate

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

SchemaRegistryCreate The typed schema of the schema registry to create it.

func (SchemaRegistryCreate) AsSchemaRegistryConfluent

func (t SchemaRegistryCreate) AsSchemaRegistryConfluent() (SchemaRegistryConfluent, error)

AsSchemaRegistryConfluent returns the union data inside the SchemaRegistryCreate as a SchemaRegistryConfluent

func (SchemaRegistryCreate) Discriminator

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

func (*SchemaRegistryCreate) FromSchemaRegistryConfluent

func (t *SchemaRegistryCreate) FromSchemaRegistryConfluent(v SchemaRegistryConfluent) error

FromSchemaRegistryConfluent overwrites any union data inside the SchemaRegistryCreate as the provided SchemaRegistryConfluent

func (SchemaRegistryCreate) MarshalJSON

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

func (*SchemaRegistryCreate) MergeSchemaRegistryConfluent

func (t *SchemaRegistryCreate) MergeSchemaRegistryConfluent(v SchemaRegistryConfluent) error

MergeSchemaRegistryConfluent performs a merge with any union data inside the SchemaRegistryCreate, using the provided SchemaRegistryConfluent

func (*SchemaRegistryCreate) UnmarshalJSON

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

func (SchemaRegistryCreate) ValueByDiscriminator

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

type SchemaRegistryReference

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

SchemaRegistryReference A reference to a schema Registry.

func (SchemaRegistryReference) AsSchemaRegistryReferenceById

func (t SchemaRegistryReference) AsSchemaRegistryReferenceById() (SchemaRegistryReferenceById, error)

AsSchemaRegistryReferenceById returns the union data inside the SchemaRegistryReference as a SchemaRegistryReferenceById

func (SchemaRegistryReference) AsSchemaRegistryReferenceByName

func (t SchemaRegistryReference) AsSchemaRegistryReferenceByName() (SchemaRegistryReferenceByName, error)

AsSchemaRegistryReferenceByName returns the union data inside the SchemaRegistryReference as a SchemaRegistryReferenceByName

func (*SchemaRegistryReference) FromSchemaRegistryReferenceById

func (t *SchemaRegistryReference) FromSchemaRegistryReferenceById(v SchemaRegistryReferenceById) error

FromSchemaRegistryReferenceById overwrites any union data inside the SchemaRegistryReference as the provided SchemaRegistryReferenceById

func (*SchemaRegistryReference) FromSchemaRegistryReferenceByName

func (t *SchemaRegistryReference) FromSchemaRegistryReferenceByName(v SchemaRegistryReferenceByName) error

FromSchemaRegistryReferenceByName overwrites any union data inside the SchemaRegistryReference as the provided SchemaRegistryReferenceByName

func (SchemaRegistryReference) MarshalJSON

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

func (*SchemaRegistryReference) MergeSchemaRegistryReferenceById

func (t *SchemaRegistryReference) MergeSchemaRegistryReferenceById(v SchemaRegistryReferenceById) error

MergeSchemaRegistryReferenceById performs a merge with any union data inside the SchemaRegistryReference, using the provided SchemaRegistryReferenceById

func (*SchemaRegistryReference) MergeSchemaRegistryReferenceByName

func (t *SchemaRegistryReference) MergeSchemaRegistryReferenceByName(v SchemaRegistryReferenceByName) error

MergeSchemaRegistryReferenceByName performs a merge with any union data inside the SchemaRegistryReference, using the provided SchemaRegistryReferenceByName

func (*SchemaRegistryReference) UnmarshalJSON

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

type SchemaRegistryReferenceById

type SchemaRegistryReferenceById struct {
	// Id The unique identifier of the schema registry.
	Id openapi_types.UUID `json:"id"`
}

SchemaRegistryReferenceById defines model for SchemaRegistryReferenceById.

type SchemaRegistryReferenceByName

type SchemaRegistryReferenceByName struct {
	// Name The unique name of the schema registry.
	Name string `json:"name"`
}

SchemaRegistryReferenceByName Reference a schema registry by its unique name.

type SchemaValidationInlineSchemaConfig

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

SchemaValidationInlineSchemaConfig Defines the schema for a record key or value, inline.

**Requires a minimum runtime version of `1.3`**.

func (SchemaValidationInlineSchemaConfig) AsSchemaValidationInlineSchemaConfigAvro

func (t SchemaValidationInlineSchemaConfig) AsSchemaValidationInlineSchemaConfigAvro() (SchemaValidationInlineSchemaConfigAvro, error)

AsSchemaValidationInlineSchemaConfigAvro returns the union data inside the SchemaValidationInlineSchemaConfig as a SchemaValidationInlineSchemaConfigAvro

func (SchemaValidationInlineSchemaConfig) AsSchemaValidationInlineSchemaConfigJson

func (t SchemaValidationInlineSchemaConfig) AsSchemaValidationInlineSchemaConfigJson() (SchemaValidationInlineSchemaConfigJson, error)

AsSchemaValidationInlineSchemaConfigJson returns the union data inside the SchemaValidationInlineSchemaConfig as a SchemaValidationInlineSchemaConfigJson

func (SchemaValidationInlineSchemaConfig) Discriminator

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

func (*SchemaValidationInlineSchemaConfig) FromSchemaValidationInlineSchemaConfigAvro

func (t *SchemaValidationInlineSchemaConfig) FromSchemaValidationInlineSchemaConfigAvro(v SchemaValidationInlineSchemaConfigAvro) error

FromSchemaValidationInlineSchemaConfigAvro overwrites any union data inside the SchemaValidationInlineSchemaConfig as the provided SchemaValidationInlineSchemaConfigAvro

func (*SchemaValidationInlineSchemaConfig) FromSchemaValidationInlineSchemaConfigJson

func (t *SchemaValidationInlineSchemaConfig) FromSchemaValidationInlineSchemaConfigJson(v SchemaValidationInlineSchemaConfigJson) error

FromSchemaValidationInlineSchemaConfigJson overwrites any union data inside the SchemaValidationInlineSchemaConfig as the provided SchemaValidationInlineSchemaConfigJson

func (SchemaValidationInlineSchemaConfig) MarshalJSON

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

func (*SchemaValidationInlineSchemaConfig) MergeSchemaValidationInlineSchemaConfigAvro

func (t *SchemaValidationInlineSchemaConfig) MergeSchemaValidationInlineSchemaConfigAvro(v SchemaValidationInlineSchemaConfigAvro) error

MergeSchemaValidationInlineSchemaConfigAvro performs a merge with any union data inside the SchemaValidationInlineSchemaConfig, using the provided SchemaValidationInlineSchemaConfigAvro

func (*SchemaValidationInlineSchemaConfig) MergeSchemaValidationInlineSchemaConfigJson

func (t *SchemaValidationInlineSchemaConfig) MergeSchemaValidationInlineSchemaConfigJson(v SchemaValidationInlineSchemaConfigJson) error

MergeSchemaValidationInlineSchemaConfigJson performs a merge with any union data inside the SchemaValidationInlineSchemaConfig, using the provided SchemaValidationInlineSchemaConfigJson

func (*SchemaValidationInlineSchemaConfig) UnmarshalJSON

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

func (SchemaValidationInlineSchemaConfig) ValueByDiscriminator

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

type SchemaValidationInlineSchemaConfigAvro

type SchemaValidationInlineSchemaConfigAvro struct {
	// Schema A schema that applies according to `schema_type`.
	Schema     string                                           `json:"schema"`
	SchemaType SchemaValidationInlineSchemaConfigAvroSchemaType `json:"schema_type"`
}

SchemaValidationInlineSchemaConfigAvro The configuration of an inline schema when using Avro.

**Requires a minimum runtime version of `1.3`**.

type SchemaValidationInlineSchemaConfigAvroSchemaType

type SchemaValidationInlineSchemaConfigAvroSchemaType string

SchemaValidationInlineSchemaConfigAvroSchemaType defines model for SchemaValidationInlineSchemaConfigAvro.SchemaType.

const (
	SchemaValidationInlineSchemaConfigAvroSchemaTypeAvro SchemaValidationInlineSchemaConfigAvroSchemaType = "avro"
)

Defines values for SchemaValidationInlineSchemaConfigAvroSchemaType.

func (SchemaValidationInlineSchemaConfigAvroSchemaType) Valid

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

type SchemaValidationInlineSchemaConfigJson

type SchemaValidationInlineSchemaConfigJson struct {
	// Schema A schema that applies according to `schema_type`.
	Schema     string                                           `json:"schema"`
	SchemaType SchemaValidationInlineSchemaConfigJsonSchemaType `json:"schema_type"`
}

SchemaValidationInlineSchemaConfigJson The configuration of an inline schema when using JSON.

**Requires a minimum runtime version of `1.3`**.

type SchemaValidationInlineSchemaConfigJsonSchemaType

type SchemaValidationInlineSchemaConfigJsonSchemaType string

SchemaValidationInlineSchemaConfigJsonSchemaType defines model for SchemaValidationInlineSchemaConfigJson.SchemaType.

const (
	SchemaValidationInlineSchemaConfigJsonSchemaTypeJson SchemaValidationInlineSchemaConfigJsonSchemaType = "json"
)

Defines values for SchemaValidationInlineSchemaConfigJsonSchemaType.

func (SchemaValidationInlineSchemaConfigJsonSchemaType) Valid

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

type SetExpectedEventGatewaysJSONRequestBody

type SetExpectedEventGatewaysJSONRequestBody = ExpectedEventGateways

SetExpectedEventGatewaysJSONRequestBody defines body for SetExpectedEventGateways for application/json ContentType.

type SetExpectedEventGatewaysResponse

type SetExpectedEventGatewaysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
}

func ParseSetExpectedEventGatewaysResponse

func ParseSetExpectedEventGatewaysResponse(rsp *http.Response) (*SetExpectedEventGatewaysResponse, error)

ParseSetExpectedEventGatewaysResponse parses an HTTP response from a SetExpectedEventGatewaysWithResponse call

func (SetExpectedEventGatewaysResponse) ContentType

func (r SetExpectedEventGatewaysResponse) ContentType() string

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

func (SetExpectedEventGatewaysResponse) GetApplicationproblemJSON400

func (r SetExpectedEventGatewaysResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (SetExpectedEventGatewaysResponse) GetApplicationproblemJSON401

func (r SetExpectedEventGatewaysResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (SetExpectedEventGatewaysResponse) GetApplicationproblemJSON403

func (r SetExpectedEventGatewaysResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (SetExpectedEventGatewaysResponse) GetBody

func (r SetExpectedEventGatewaysResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetExpectedEventGatewaysResponse) Status

Status returns HTTPResponse.Status

func (SetExpectedEventGatewaysResponse) StatusCode

func (r SetExpectedEventGatewaysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TLSCertificate

type TLSCertificate struct {
	// Certificate A literal value or a reference to an existing secret as a template string expression.
	// The value is stored and returned by the API as-is, not treated as sensitive information.
	Certificate GatewaySecretReferenceOrLiteral `json:"certificate"`

	// Key A sensitive value containing the secret or a reference to a secret as a template string expression.
	// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
	// If provided as an expression, the expression itself is stored and returned by the API.
	//
	//
	// Example: ${vault.env['MY_ENV_VAR']}
	Key GatewaySecret `json:"key"`
}

TLSCertificate A TLS certificate and its associated private key.

type TLSTrustBundleConfig

type TLSTrustBundleConfig struct {
	// TrustedCa PEM-encoded list of trusted CA certificates used to verify client certificates.
	// Can be a literal PEM string or a vault reference.
	TrustedCa string `json:"trusted_ca"`
}

TLSTrustBundleConfig defines model for TLSTrustBundleConfig.

type TLSTrustBundleName

type TLSTrustBundleName = string

TLSTrustBundleName The unique name of the TLS trust bundle.

type TLSTrustBundleReference

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

TLSTrustBundleReference A reference to a TLS trust bundle resource.

Either `id` or `name` must be provided. Following changes to the trust bundle name won't affect the reference, as the system will create the entities relationship by `id`.

func (TLSTrustBundleReference) AsTLSTrustBundleReferenceById

func (t TLSTrustBundleReference) AsTLSTrustBundleReferenceById() (TLSTrustBundleReferenceById, error)

AsTLSTrustBundleReferenceById returns the union data inside the TLSTrustBundleReference as a TLSTrustBundleReferenceById

func (TLSTrustBundleReference) AsTLSTrustBundleReferenceByName

func (t TLSTrustBundleReference) AsTLSTrustBundleReferenceByName() (TLSTrustBundleReferenceByName, error)

AsTLSTrustBundleReferenceByName returns the union data inside the TLSTrustBundleReference as a TLSTrustBundleReferenceByName

func (*TLSTrustBundleReference) FromTLSTrustBundleReferenceById

func (t *TLSTrustBundleReference) FromTLSTrustBundleReferenceById(v TLSTrustBundleReferenceById) error

FromTLSTrustBundleReferenceById overwrites any union data inside the TLSTrustBundleReference as the provided TLSTrustBundleReferenceById

func (*TLSTrustBundleReference) FromTLSTrustBundleReferenceByName

func (t *TLSTrustBundleReference) FromTLSTrustBundleReferenceByName(v TLSTrustBundleReferenceByName) error

FromTLSTrustBundleReferenceByName overwrites any union data inside the TLSTrustBundleReference as the provided TLSTrustBundleReferenceByName

func (TLSTrustBundleReference) MarshalJSON

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

func (*TLSTrustBundleReference) MergeTLSTrustBundleReferenceById

func (t *TLSTrustBundleReference) MergeTLSTrustBundleReferenceById(v TLSTrustBundleReferenceById) error

MergeTLSTrustBundleReferenceById performs a merge with any union data inside the TLSTrustBundleReference, using the provided TLSTrustBundleReferenceById

func (*TLSTrustBundleReference) MergeTLSTrustBundleReferenceByName

func (t *TLSTrustBundleReference) MergeTLSTrustBundleReferenceByName(v TLSTrustBundleReferenceByName) error

MergeTLSTrustBundleReferenceByName performs a merge with any union data inside the TLSTrustBundleReference, using the provided TLSTrustBundleReferenceByName

func (*TLSTrustBundleReference) UnmarshalJSON

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

type TLSTrustBundleReferenceById

type TLSTrustBundleReferenceById struct {
	// Id The unique identifier of the TLS trust bundle.
	Id openapi_types.UUID `json:"id"`
}

TLSTrustBundleReferenceById defines model for TLSTrustBundleReferenceById.

type TLSTrustBundleReferenceByName

type TLSTrustBundleReferenceByName struct {
	// Name The unique name of the TLS trust bundle.
	Name TLSTrustBundleName `json:"name"`
}

TLSTrustBundleReferenceByName defines model for TLSTrustBundleReferenceByName.

type TLSVersionRange

type TLSVersionRange struct {
	// Max Maximum TLS version to use.
	Max *TLSVersionRangeMax `json:"max,omitempty"`

	// Min Minimum TLS version to use.
	Min *TLSVersionRangeMin `json:"min,omitempty"`
}

TLSVersionRange A range of TLS versions.

type TLSVersionRangeMax

type TLSVersionRangeMax string

TLSVersionRangeMax Maximum TLS version to use.

const (
	TLSVersionRangeMaxTLSv12 TLSVersionRangeMax = "TLSv1.2"
	TLSVersionRangeMaxTLSv13 TLSVersionRangeMax = "TLSv1.3"
)

Defines values for TLSVersionRangeMax.

func (TLSVersionRangeMax) Valid

func (e TLSVersionRangeMax) Valid() bool

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

type TLSVersionRangeMin

type TLSVersionRangeMin string

TLSVersionRangeMin Minimum TLS version to use.

const (
	TLSVersionRangeMinTLSv12 TLSVersionRangeMin = "TLSv1.2"
	TLSVersionRangeMinTLSv13 TLSVersionRangeMin = "TLSv1.3"
)

Defines values for TLSVersionRangeMin.

func (TLSVersionRangeMin) Valid

func (e TLSVersionRangeMin) Valid() bool

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

type TranscodeOnUnknownField

type TranscodeOnUnknownField string

TranscodeOnUnknownField Describes how to handle JSON fields that are not defined in the target schema. * `fail` - the transcoding fails. The policy `failure_mode` determines how the failure is handled. * `drop` - the unknown fields are removed from the transcoded value.

**Requires a minimum runtime version of `1.3`**.

const (
	Drop TranscodeOnUnknownField = "drop"
	Fail TranscodeOnUnknownField = "fail"
)

Defines values for TranscodeOnUnknownField.

func (TranscodeOnUnknownField) Valid

func (e TranscodeOnUnknownField) Valid() bool

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

type UUIDv4

type UUIDv4 = openapi_types.UUID

UUIDv4 A version 4 UUID.

Example: 9524ec7d-36d9-465d-a8c5-83a3c9390458

type Unauthorized

type Unauthorized = UnauthorizedError

Unauthorized standard error

type UnauthorizedError

type UnauthorizedError struct {
	// Detail A human readable explanation specific to this occurence of the problem.
	// This field may contain request/entity data to help the user understand
	// what went wrong. Enclose variable values in square brackets. Should be
	// provided as "Sentence case" for direct use in the UI.
	//
	//
	// Example: Invalid credentials
	Detail *string `json:"detail,omitempty"`

	// Instance Used to return the correlation ID back to the user, in the format
	// kong:trace:<correlation_id>. This helps us find the relevant logs
	// when a customer reports an issue.
	//
	//
	// Example: kong:trace:1234567890
	Instance *string `json:"instance,omitempty"`

	// Status The HTTP status code of the error. Useful when passing the response
	// body to child properties in a frontend UI. Must be returned as an integer.
	//
	//
	// Example: 401
	Status *UnauthorizedErrorStatus `json:"status,omitempty"`

	// Title A short, human-readable summary of the problem. It should not
	// change between occurences of a problem, except for localization.
	// Should be provided as "Sentence case" for direct use in the UI.
	//
	//
	// Example: Unauthorized
	Title *string `json:"title,omitempty"`

	// Type The error type.
	//
	// Example: https://httpstatuses.com/401
	Type *string `json:"type,omitempty"`
}

UnauthorizedError standard error

type UnauthorizedErrorStatus

type UnauthorizedErrorStatus int

UnauthorizedErrorStatus The HTTP status code of the error. Useful when passing the response body to child properties in a frontend UI. Must be returned as an integer.

Example: 401

const (
	N401 UnauthorizedErrorStatus = 401
)

Defines values for UnauthorizedErrorStatus.

func (UnauthorizedErrorStatus) Valid

func (e UnauthorizedErrorStatus) Valid() bool

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

type UpdateEventGatewayDataPlaneCertificateJSONRequestBody

type UpdateEventGatewayDataPlaneCertificateJSONRequestBody = UpsertEventGatewayDataPlaneCertificateRequestOnPrem

UpdateEventGatewayDataPlaneCertificateJSONRequestBody defines body for UpdateEventGatewayDataPlaneCertificate for application/json ContentType.

type UpdateEventGatewayDataPlaneCertificateResponse

type UpdateEventGatewayDataPlaneCertificateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EventGatewayDataPlaneCertificateOnPrem
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseUpdateEventGatewayDataPlaneCertificateResponse

func ParseUpdateEventGatewayDataPlaneCertificateResponse(rsp *http.Response) (*UpdateEventGatewayDataPlaneCertificateResponse, error)

ParseUpdateEventGatewayDataPlaneCertificateResponse parses an HTTP response from a UpdateEventGatewayDataPlaneCertificateWithResponse call

func (UpdateEventGatewayDataPlaneCertificateResponse) ContentType

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

func (UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON400

func (r UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON401

func (r UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON403

func (r UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON404

func (r UpdateEventGatewayDataPlaneCertificateResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateEventGatewayDataPlaneCertificateResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateEventGatewayDataPlaneCertificateResponse) GetJSON200

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

func (UpdateEventGatewayDataPlaneCertificateResponse) Status

Status returns HTTPResponse.Status

func (UpdateEventGatewayDataPlaneCertificateResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateEventGatewayEntitiesJSONRequestBody

type UpdateEventGatewayEntitiesJSONRequestBody = GatewayEntities

UpdateEventGatewayEntitiesJSONRequestBody defines body for UpdateEventGatewayEntities for application/json ContentType.

type UpdateEventGatewayEntitiesResponse

type UpdateEventGatewayEntitiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GatewayEntities
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseUpdateEventGatewayEntitiesResponse

func ParseUpdateEventGatewayEntitiesResponse(rsp *http.Response) (*UpdateEventGatewayEntitiesResponse, error)

ParseUpdateEventGatewayEntitiesResponse parses an HTTP response from a UpdateEventGatewayEntitiesWithResponse call

func (UpdateEventGatewayEntitiesResponse) ContentType

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

func (UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON400

func (r UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON401

func (r UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON403

func (r UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON404

func (r UpdateEventGatewayEntitiesResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateEventGatewayEntitiesResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateEventGatewayEntitiesResponse) GetJSON200

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

func (UpdateEventGatewayEntitiesResponse) Status

Status returns HTTPResponse.Status

func (UpdateEventGatewayEntitiesResponse) StatusCode

func (r UpdateEventGatewayEntitiesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateEventGatewayJSONRequestBody

type UpdateEventGatewayJSONRequestBody = UpsertGatewayRequestOnPrem

UpdateEventGatewayJSONRequestBody defines body for UpdateEventGateway for application/json ContentType.

type UpdateEventGatewayResponse

type UpdateEventGatewayResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UpdateGatewayResponse
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
}

func ParseUpdateEventGatewayResponse

func ParseUpdateEventGatewayResponse(rsp *http.Response) (*UpdateEventGatewayResponse, error)

ParseUpdateEventGatewayResponse parses an HTTP response from a UpdateEventGatewayWithResponse call

func (UpdateEventGatewayResponse) ContentType

func (r UpdateEventGatewayResponse) ContentType() string

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

func (UpdateEventGatewayResponse) GetApplicationproblemJSON400

func (r UpdateEventGatewayResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (UpdateEventGatewayResponse) GetApplicationproblemJSON401

func (r UpdateEventGatewayResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (UpdateEventGatewayResponse) GetApplicationproblemJSON403

func (r UpdateEventGatewayResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (UpdateEventGatewayResponse) GetApplicationproblemJSON404

func (r UpdateEventGatewayResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (UpdateEventGatewayResponse) GetBody

func (r UpdateEventGatewayResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateEventGatewayResponse) GetJSON200

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

func (UpdateEventGatewayResponse) Status

Status returns HTTPResponse.Status

func (UpdateEventGatewayResponse) StatusCode

func (r UpdateEventGatewayResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateGatewayResponse

type UpdateGatewayResponse = Gateway

UpdateGatewayResponse The gateway object contains information about a Konnect gateway.

type UpsertEventGatewayDataPlaneCertificateRequestOnPrem

type UpsertEventGatewayDataPlaneCertificateRequestOnPrem struct {
	// Certificate JSON escaped string of the certificate.
	Certificate string `json:"certificate"`

	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A description of the certificate.
	Description *string `json:"description,omitempty"`

	// Name The name to identify of the certificate.
	Name *string `json:"name,omitempty"`
}

UpsertEventGatewayDataPlaneCertificateRequestOnPrem The request schema for the upsert dataplane certificate request, extended with the creation timestamp for on-prem deployments.

type UpsertGatewayRequestOnPrem

type UpsertGatewayRequestOnPrem struct {
	// CreatedAt The creation date as a Kubernetes-style creation timestamp: an RFC 3339 date-time in UTC with second precision (no fractional seconds), e.g. 2022-11-04T20:10:06Z.
	//
	// Example: 2022-11-04T20:10:06Z
	CreatedAt CreatedAtOnPrem `json:"created_at"`

	// Description A human-readable description of the Gateway.
	Description *GatewayDescription `json:"description,omitempty"`

	// Labels Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
	//
	// Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
	//
	//
	// Example: {"env":"test"}
	Labels *Labels `json:"labels,omitempty"`

	// MinRuntimeVersion The minimum runtime version supported by the API. This is the lowest version of the data plane
	// release that can be used with the entity model.
	// When not specified, the minimum runtime version will be pinned to the latest available release.
	//
	//
	// Example: 1.1
	MinRuntimeVersion *MinRuntimeVersion `json:"min_runtime_version,omitempty"`

	// Name The name of the Gateway.
	Name GatewayName `json:"name"`
}

UpsertGatewayRequestOnPrem The request schema for the upsert (update) gateway request, extended with the creation timestamp for on-prem deployments.

type VirtualClusterACLMode

type VirtualClusterACLMode string

VirtualClusterACLMode Configures whether or not ACL policies are enforced on the gateway.

  • `enforce_on_gateway` means the gateway enforces its own ACL policies for this virtual cluster and does not forward ACL-related commands to the backend cluster. Note that if there are no ACL policies configured, all access is denied.
  • `passthrough` tells the gateway to forward all ACL-related commands.
const (
	VirtualClusterACLModeEnforceOnGateway VirtualClusterACLMode = "enforce_on_gateway"
	VirtualClusterACLModePassthrough      VirtualClusterACLMode = "passthrough"
)

Defines values for VirtualClusterACLMode.

func (VirtualClusterACLMode) Valid

func (e VirtualClusterACLMode) Valid() bool

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

type VirtualClusterAuthenticationAnonymous

type VirtualClusterAuthenticationAnonymous struct {
	Type VirtualClusterAuthenticationAnonymousType `json:"type"`
}

VirtualClusterAuthenticationAnonymous defines model for VirtualClusterAuthenticationAnonymous.

type VirtualClusterAuthenticationAnonymousType

type VirtualClusterAuthenticationAnonymousType string

VirtualClusterAuthenticationAnonymousType defines model for VirtualClusterAuthenticationAnonymous.Type.

const (
	VirtualClusterAuthenticationAnonymousTypeAnonymous VirtualClusterAuthenticationAnonymousType = "anonymous"
)

Defines values for VirtualClusterAuthenticationAnonymousType.

func (VirtualClusterAuthenticationAnonymousType) Valid

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

type VirtualClusterAuthenticationAudience

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

VirtualClusterAuthenticationAudience defines model for VirtualClusterAuthenticationAudience.

type VirtualClusterAuthenticationClaimsMapping

type VirtualClusterAuthenticationClaimsMapping struct {
	// Scope Maps the scope claim.
	Scope *string `json:"scope,omitempty"`

	// Sub Maps the subject claim.
	Sub *string `json:"sub,omitempty"`
}

VirtualClusterAuthenticationClaimsMapping Maps JWT claims in the case when sub and scope are presented as different claims in your JWT token.

type VirtualClusterAuthenticationClientCertificate

type VirtualClusterAuthenticationClientCertificate struct {
	// FetchKongIdentityPrincipal Fetches principal metadata from Kong Identity after successful authentication.
	// The principal is looked up by a custom key matched against the authenticated identity.
	//
	// **Requires a minimum runtime version of `1.2`**.
	FetchKongIdentityPrincipal *FetchKongIdentityPrincipal                       `json:"fetch_kong_identity_principal,omitempty"`
	Type                       VirtualClusterAuthenticationClientCertificateType `json:"type"`
}

VirtualClusterAuthenticationClientCertificate Client certificate (mTLS) authentication scheme for the virtual cluster.

**Requires a minimum runtime version of `1.1`**.

Example: {"type":"client_certificate"}

type VirtualClusterAuthenticationClientCertificateType

type VirtualClusterAuthenticationClientCertificateType string

VirtualClusterAuthenticationClientCertificateType defines model for VirtualClusterAuthenticationClientCertificate.Type.

const (
	ClientCertificate VirtualClusterAuthenticationClientCertificateType = "client_certificate"
)

Defines values for VirtualClusterAuthenticationClientCertificateType.

func (VirtualClusterAuthenticationClientCertificateType) Valid

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

type VirtualClusterAuthenticationJWKS

type VirtualClusterAuthenticationJWKS struct {
	// CacheExpiration Duration after which the gateway will fetch and cache JWKS.
	CacheExpiration *string `json:"cache_expiration,omitempty"`

	// Endpoint URL for JWKS endpoint.
	Endpoint string `json:"endpoint"`

	// Timeout Total time from establishing connection to receive a response from JWKS endpoint.
	Timeout *string `json:"timeout,omitempty"`
}

VirtualClusterAuthenticationJWKS JSON Web Key Set configuration for verifying token signatures.

type VirtualClusterAuthenticationOauthBearer

type VirtualClusterAuthenticationOauthBearer struct {
	// ClaimsMapping Maps JWT claims in the case when sub and scope are presented as different claims in your JWT token.
	ClaimsMapping *VirtualClusterAuthenticationClaimsMapping `json:"claims_mapping,omitempty"`

	// FetchKongIdentityPrincipal Fetches principal metadata from Kong Identity after successful OAUTHBEARER authentication.
	// The principal is looked up by the iss and sub claims from the JWT token.
	//
	// **Requires a minimum runtime version of `1.2`**.
	FetchKongIdentityPrincipal *FetchKongIdentityPrincipalOauthBearer `json:"fetch_kong_identity_principal,omitempty"`

	// Jwks JSON Web Key Set configuration for verifying token signatures.
	Jwks *VirtualClusterAuthenticationJWKS `json:"jwks,omitempty"`

	// Mediation Methods to mediate authentication:
	// * passthrough - pass authentication from the client through proxy to the backend cluster without any kind of
	//   validation
	// * validate_forward - pass authentication from the client through proxy to the backend cluster.
	//   Proxy does the validation before forwarding it to the client.
	// * terminate - terminate authentication at the proxy level and originate authentication to the backend cluster
	//   using the configuration defined at BackendCluster's authentication.
	//   SASL auth is not originated if authentication on the backend_cluster is not configured.
	Mediation VirtualClusterAuthenticationOauthBearerMediation `json:"mediation"`
	Type      VirtualClusterAuthenticationOauthBearerType      `json:"type"`

	// Validate Validation rules.
	Validate *VirtualClusterAuthenticationValidate `json:"validate,omitempty"`
}

VirtualClusterAuthenticationOauthBearer Oauth Bearer authentication scheme for the virtual cluster.

type VirtualClusterAuthenticationOauthBearerMediation

type VirtualClusterAuthenticationOauthBearerMediation string

VirtualClusterAuthenticationOauthBearerMediation Methods to mediate authentication:

  • passthrough - pass authentication from the client through proxy to the backend cluster without any kind of validation
  • validate_forward - pass authentication from the client through proxy to the backend cluster. Proxy does the validation before forwarding it to the client.
  • terminate - terminate authentication at the proxy level and originate authentication to the backend cluster using the configuration defined at BackendCluster's authentication. SASL auth is not originated if authentication on the backend_cluster is not configured.
const (
	VirtualClusterAuthenticationOauthBearerMediationPassthrough     VirtualClusterAuthenticationOauthBearerMediation = "passthrough"
	VirtualClusterAuthenticationOauthBearerMediationTerminate       VirtualClusterAuthenticationOauthBearerMediation = "terminate"
	VirtualClusterAuthenticationOauthBearerMediationValidateForward VirtualClusterAuthenticationOauthBearerMediation = "validate_forward"
)

Defines values for VirtualClusterAuthenticationOauthBearerMediation.

func (VirtualClusterAuthenticationOauthBearerMediation) Valid

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

type VirtualClusterAuthenticationOauthBearerType

type VirtualClusterAuthenticationOauthBearerType string

VirtualClusterAuthenticationOauthBearerType defines model for VirtualClusterAuthenticationOauthBearer.Type.

const (
	OauthBearer VirtualClusterAuthenticationOauthBearerType = "oauth_bearer"
)

Defines values for VirtualClusterAuthenticationOauthBearerType.

func (VirtualClusterAuthenticationOauthBearerType) Valid

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

type VirtualClusterAuthenticationPrincipal

type VirtualClusterAuthenticationPrincipal struct {
	// Password A sensitive value containing the secret or a reference to a secret as a template string expression.
	// If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
	// If provided as an expression, the expression itself is stored and returned by the API.
	//
	//
	// Example: ${vault.env['MY_ENV_VAR']}
	Password GatewaySecret `json:"password"`

	// Username A literal value or a reference to an existing secret as a template string expression.
	// The value is stored and returned by the API as-is, not treated as sensitive information.
	Username GatewaySecretReferenceOrLiteral `json:"username"`
}

VirtualClusterAuthenticationPrincipal A principal for authentication containing username and password.

type VirtualClusterAuthenticationSaslPlain

type VirtualClusterAuthenticationSaslPlain struct {
	// FetchKongIdentityPrincipal Fetches principal metadata from Kong Identity after successful authentication.
	// The principal is looked up by a custom key matched against the authenticated identity.
	//
	// **Requires a minimum runtime version of `1.2`**.
	FetchKongIdentityPrincipal *FetchKongIdentityPrincipal `json:"fetch_kong_identity_principal,omitempty"`

	// Mediation The mediation type for SASL/PLAIN authentication.
	Mediation VirtualClusterAuthenticationSaslPlainMediation `json:"mediation"`

	// Principals List of principals to be able to authenticate with, used with `terminate` mediation.
	Principals *[]VirtualClusterAuthenticationPrincipal  `json:"principals,omitempty"`
	Type       VirtualClusterAuthenticationSaslPlainType `json:"type"`
}

VirtualClusterAuthenticationSaslPlain SASL/PLAIN authentication scheme for the virtual cluster containing principals with username and password.

type VirtualClusterAuthenticationSaslPlainMediation

type VirtualClusterAuthenticationSaslPlainMediation string

VirtualClusterAuthenticationSaslPlainMediation The mediation type for SASL/PLAIN authentication.

const (
	VirtualClusterAuthenticationSaslPlainMediationPassthrough VirtualClusterAuthenticationSaslPlainMediation = "passthrough"
	VirtualClusterAuthenticationSaslPlainMediationTerminate   VirtualClusterAuthenticationSaslPlainMediation = "terminate"
)

Defines values for VirtualClusterAuthenticationSaslPlainMediation.

func (VirtualClusterAuthenticationSaslPlainMediation) Valid

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

type VirtualClusterAuthenticationSaslPlainType

type VirtualClusterAuthenticationSaslPlainType string

VirtualClusterAuthenticationSaslPlainType defines model for VirtualClusterAuthenticationSaslPlain.Type.

const (
	VirtualClusterAuthenticationSaslPlainTypeSaslPlain VirtualClusterAuthenticationSaslPlainType = "sasl_plain"
)

Defines values for VirtualClusterAuthenticationSaslPlainType.

func (VirtualClusterAuthenticationSaslPlainType) Valid

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

type VirtualClusterAuthenticationSaslScram

type VirtualClusterAuthenticationSaslScram struct {
	// Algorithm The algorithm used for SASL/SCRAM authentication.
	Algorithm VirtualClusterAuthenticationSaslScramAlgorithm `json:"algorithm"`

	// FetchKongIdentityPrincipal Fetches principal metadata from Kong Identity after successful authentication.
	// The principal is looked up by a custom key matched against the authenticated identity.
	//
	// **Requires a minimum runtime version of `1.2`**.
	FetchKongIdentityPrincipal *FetchKongIdentityPrincipal               `json:"fetch_kong_identity_principal,omitempty"`
	Type                       VirtualClusterAuthenticationSaslScramType `json:"type"`
}

VirtualClusterAuthenticationSaslScram SASL/SCRAM authentication scheme for the virtual cluster.

type VirtualClusterAuthenticationSaslScramAlgorithm

type VirtualClusterAuthenticationSaslScramAlgorithm string

VirtualClusterAuthenticationSaslScramAlgorithm The algorithm used for SASL/SCRAM authentication.

const (
	VirtualClusterAuthenticationSaslScramAlgorithmSha256 VirtualClusterAuthenticationSaslScramAlgorithm = "sha256"
	VirtualClusterAuthenticationSaslScramAlgorithmSha512 VirtualClusterAuthenticationSaslScramAlgorithm = "sha512"
)

Defines values for VirtualClusterAuthenticationSaslScramAlgorithm.

func (VirtualClusterAuthenticationSaslScramAlgorithm) Valid

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

type VirtualClusterAuthenticationSaslScramType

type VirtualClusterAuthenticationSaslScramType string

VirtualClusterAuthenticationSaslScramType defines model for VirtualClusterAuthenticationSaslScram.Type.

const (
	VirtualClusterAuthenticationSaslScramTypeSaslScram VirtualClusterAuthenticationSaslScramType = "sasl_scram"
)

Defines values for VirtualClusterAuthenticationSaslScramType.

func (VirtualClusterAuthenticationSaslScramType) Valid

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

type VirtualClusterAuthenticationScheme

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

VirtualClusterAuthenticationScheme defines model for VirtualClusterAuthenticationScheme.

func (VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationAnonymous

func (t VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationAnonymous() (VirtualClusterAuthenticationAnonymous, error)

AsVirtualClusterAuthenticationAnonymous returns the union data inside the VirtualClusterAuthenticationScheme as a VirtualClusterAuthenticationAnonymous

func (VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationClientCertificate

func (t VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationClientCertificate() (VirtualClusterAuthenticationClientCertificate, error)

AsVirtualClusterAuthenticationClientCertificate returns the union data inside the VirtualClusterAuthenticationScheme as a VirtualClusterAuthenticationClientCertificate

func (VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationOauthBearer

func (t VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationOauthBearer() (VirtualClusterAuthenticationOauthBearer, error)

AsVirtualClusterAuthenticationOauthBearer returns the union data inside the VirtualClusterAuthenticationScheme as a VirtualClusterAuthenticationOauthBearer

func (VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationSaslPlain

func (t VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationSaslPlain() (VirtualClusterAuthenticationSaslPlain, error)

AsVirtualClusterAuthenticationSaslPlain returns the union data inside the VirtualClusterAuthenticationScheme as a VirtualClusterAuthenticationSaslPlain

func (VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationSaslScram

func (t VirtualClusterAuthenticationScheme) AsVirtualClusterAuthenticationSaslScram() (VirtualClusterAuthenticationSaslScram, error)

AsVirtualClusterAuthenticationSaslScram returns the union data inside the VirtualClusterAuthenticationScheme as a VirtualClusterAuthenticationSaslScram

func (VirtualClusterAuthenticationScheme) Discriminator

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

func (*VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationAnonymous

func (t *VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationAnonymous(v VirtualClusterAuthenticationAnonymous) error

FromVirtualClusterAuthenticationAnonymous overwrites any union data inside the VirtualClusterAuthenticationScheme as the provided VirtualClusterAuthenticationAnonymous

func (*VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationClientCertificate

func (t *VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationClientCertificate(v VirtualClusterAuthenticationClientCertificate) error

FromVirtualClusterAuthenticationClientCertificate overwrites any union data inside the VirtualClusterAuthenticationScheme as the provided VirtualClusterAuthenticationClientCertificate

func (*VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationOauthBearer

func (t *VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationOauthBearer(v VirtualClusterAuthenticationOauthBearer) error

FromVirtualClusterAuthenticationOauthBearer overwrites any union data inside the VirtualClusterAuthenticationScheme as the provided VirtualClusterAuthenticationOauthBearer

func (*VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationSaslPlain

func (t *VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationSaslPlain(v VirtualClusterAuthenticationSaslPlain) error

FromVirtualClusterAuthenticationSaslPlain overwrites any union data inside the VirtualClusterAuthenticationScheme as the provided VirtualClusterAuthenticationSaslPlain

func (*VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationSaslScram

func (t *VirtualClusterAuthenticationScheme) FromVirtualClusterAuthenticationSaslScram(v VirtualClusterAuthenticationSaslScram) error

FromVirtualClusterAuthenticationSaslScram overwrites any union data inside the VirtualClusterAuthenticationScheme as the provided VirtualClusterAuthenticationSaslScram

func (VirtualClusterAuthenticationScheme) MarshalJSON

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

func (*VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationAnonymous

func (t *VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationAnonymous(v VirtualClusterAuthenticationAnonymous) error

MergeVirtualClusterAuthenticationAnonymous performs a merge with any union data inside the VirtualClusterAuthenticationScheme, using the provided VirtualClusterAuthenticationAnonymous

func (*VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationClientCertificate

func (t *VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationClientCertificate(v VirtualClusterAuthenticationClientCertificate) error

MergeVirtualClusterAuthenticationClientCertificate performs a merge with any union data inside the VirtualClusterAuthenticationScheme, using the provided VirtualClusterAuthenticationClientCertificate

func (*VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationOauthBearer

func (t *VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationOauthBearer(v VirtualClusterAuthenticationOauthBearer) error

MergeVirtualClusterAuthenticationOauthBearer performs a merge with any union data inside the VirtualClusterAuthenticationScheme, using the provided VirtualClusterAuthenticationOauthBearer

func (*VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationSaslPlain

func (t *VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationSaslPlain(v VirtualClusterAuthenticationSaslPlain) error

MergeVirtualClusterAuthenticationSaslPlain performs a merge with any union data inside the VirtualClusterAuthenticationScheme, using the provided VirtualClusterAuthenticationSaslPlain

func (*VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationSaslScram

func (t *VirtualClusterAuthenticationScheme) MergeVirtualClusterAuthenticationSaslScram(v VirtualClusterAuthenticationSaslScram) error

MergeVirtualClusterAuthenticationSaslScram performs a merge with any union data inside the VirtualClusterAuthenticationScheme, using the provided VirtualClusterAuthenticationSaslScram

func (*VirtualClusterAuthenticationScheme) UnmarshalJSON

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

func (VirtualClusterAuthenticationScheme) ValueByDiscriminator

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

type VirtualClusterAuthenticationSchemes

type VirtualClusterAuthenticationSchemes = []VirtualClusterAuthenticationScheme

VirtualClusterAuthenticationSchemes How to handle authentication from clients.

It tries to authenticate with every rule sequentially one by one. It succeeds on the first match, and fails if no rule matches.

type VirtualClusterAuthenticationValidate

type VirtualClusterAuthenticationValidate struct {
	// Audiences List of expected audience values. One of them has to match the audience claim in the token.
	Audiences *[]VirtualClusterAuthenticationAudience `json:"audiences,omitempty"`

	// Issuer Expected token issuer in the token.
	Issuer *string `json:"issuer,omitempty"`
}

VirtualClusterAuthenticationValidate Validation rules.

type VirtualClusterDNSLabel

type VirtualClusterDNSLabel = string

VirtualClusterDNSLabel The DNS label used in the bootstrap server URL to identify the virtual cluster when using SNI routing. The format follows the RFC1035: 1-63 chars, lowercase alphanumeric or '-', must start and end with an alphanumeric character.

Example: vcluster-1

type VirtualClusterName

type VirtualClusterName = string

VirtualClusterName The name of the virtual cluster.

type VirtualClusterNamespace

type VirtualClusterNamespace struct {
	Additional *VirtualClusterNamespaceAdditionalProperties `json:"additional,omitempty"`

	// Mode * hide_prefix - the configured prefix is hidden from clients for topics and IDs when reading.
	//   Created resources are written with the prefix on the backend cluster.
	// * enforce_prefix - the configured prefix remains visible to clients.
	//   Created resources must include the prefix or the request will fail.
	Mode VirtualClusterNamespaceMode `json:"mode"`

	// Prefix The namespace is differentiated by this chosen prefix.
	// The prefix is prepended to Kafka topic names, so it can only contain the characters Kafka allows in them: ASCII letters, digits, `.`, `_` and `-`.
	// It must contain at least one character other than `.` and be at most 100 characters long to leave room for the rest of the topic name (Kafka limits topic names to 249 characters).
	// For example, if the prefix is set to "analytics_" the topic named "analytics_user_clicks" is available to the clients
	// of the virtual cluster. Topics without the prefix will be ignored unless added via `additional.topics`.
	Prefix string `json:"prefix"`
}

VirtualClusterNamespace Namespace allows to implement multitenancy using a single backend cluster. It allows to either hide or enforce a static prefix on resources (topics, consumer group IDs, transaction IDs).

type VirtualClusterNamespaceAdditionalProperties

type VirtualClusterNamespaceAdditionalProperties struct {
	// ConsumerGroups Consumer group IDs to expose even if they don't start with the namespace prefix.
	ConsumerGroups *[]VirtualClusterNamespaceIdSelector `json:"consumer_groups,omitempty"`

	// Topics Additional backend topics to expose even if they don't match the namespace prefix.
	// The topics are not affected by the hide/enforce prefix mode.
	// If the client tries to create a topic that matches this list, the request is rejected.
	Topics *[]VirtualClusterNamespaceTopicSelector `json:"topics,omitempty"`
}

VirtualClusterNamespaceAdditionalProperties defines model for VirtualClusterNamespaceAdditionalProperties.

type VirtualClusterNamespaceIdSelector

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

VirtualClusterNamespaceIdSelector defines model for VirtualClusterNamespaceIdSelector.

func (VirtualClusterNamespaceIdSelector) AsVirtualClusterNamespaceIdSelectorExactList

func (t VirtualClusterNamespaceIdSelector) AsVirtualClusterNamespaceIdSelectorExactList() (VirtualClusterNamespaceIdSelectorExactList, error)

AsVirtualClusterNamespaceIdSelectorExactList returns the union data inside the VirtualClusterNamespaceIdSelector as a VirtualClusterNamespaceIdSelectorExactList

func (VirtualClusterNamespaceIdSelector) AsVirtualClusterNamespaceIdSelectorGlob

func (t VirtualClusterNamespaceIdSelector) AsVirtualClusterNamespaceIdSelectorGlob() (VirtualClusterNamespaceIdSelectorGlob, error)

AsVirtualClusterNamespaceIdSelectorGlob returns the union data inside the VirtualClusterNamespaceIdSelector as a VirtualClusterNamespaceIdSelectorGlob

func (VirtualClusterNamespaceIdSelector) Discriminator

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

func (*VirtualClusterNamespaceIdSelector) FromVirtualClusterNamespaceIdSelectorExactList

func (t *VirtualClusterNamespaceIdSelector) FromVirtualClusterNamespaceIdSelectorExactList(v VirtualClusterNamespaceIdSelectorExactList) error

FromVirtualClusterNamespaceIdSelectorExactList overwrites any union data inside the VirtualClusterNamespaceIdSelector as the provided VirtualClusterNamespaceIdSelectorExactList

func (*VirtualClusterNamespaceIdSelector) FromVirtualClusterNamespaceIdSelectorGlob

func (t *VirtualClusterNamespaceIdSelector) FromVirtualClusterNamespaceIdSelectorGlob(v VirtualClusterNamespaceIdSelectorGlob) error

FromVirtualClusterNamespaceIdSelectorGlob overwrites any union data inside the VirtualClusterNamespaceIdSelector as the provided VirtualClusterNamespaceIdSelectorGlob

func (VirtualClusterNamespaceIdSelector) MarshalJSON

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

func (*VirtualClusterNamespaceIdSelector) MergeVirtualClusterNamespaceIdSelectorExactList

func (t *VirtualClusterNamespaceIdSelector) MergeVirtualClusterNamespaceIdSelectorExactList(v VirtualClusterNamespaceIdSelectorExactList) error

MergeVirtualClusterNamespaceIdSelectorExactList performs a merge with any union data inside the VirtualClusterNamespaceIdSelector, using the provided VirtualClusterNamespaceIdSelectorExactList

func (*VirtualClusterNamespaceIdSelector) MergeVirtualClusterNamespaceIdSelectorGlob

func (t *VirtualClusterNamespaceIdSelector) MergeVirtualClusterNamespaceIdSelectorGlob(v VirtualClusterNamespaceIdSelectorGlob) error

MergeVirtualClusterNamespaceIdSelectorGlob performs a merge with any union data inside the VirtualClusterNamespaceIdSelector, using the provided VirtualClusterNamespaceIdSelectorGlob

func (*VirtualClusterNamespaceIdSelector) UnmarshalJSON

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

func (VirtualClusterNamespaceIdSelector) ValueByDiscriminator

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

type VirtualClusterNamespaceIdSelectorExactList

type VirtualClusterNamespaceIdSelectorExactList struct {
	ExactList *[]struct {
		Value string `json:"value"`
	} `json:"exact_list,omitempty"`
	Type VirtualClusterNamespaceIdSelectorExactListType `json:"type"`
}

VirtualClusterNamespaceIdSelectorExactList defines model for VirtualClusterNamespaceIdSelectorExactList.

type VirtualClusterNamespaceIdSelectorExactListType

type VirtualClusterNamespaceIdSelectorExactListType string

VirtualClusterNamespaceIdSelectorExactListType defines model for VirtualClusterNamespaceIdSelectorExactList.Type.

const (
	VirtualClusterNamespaceIdSelectorExactListTypeExactList VirtualClusterNamespaceIdSelectorExactListType = "exact_list"
)

Defines values for VirtualClusterNamespaceIdSelectorExactListType.

func (VirtualClusterNamespaceIdSelectorExactListType) Valid

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

type VirtualClusterNamespaceIdSelectorGlob

type VirtualClusterNamespaceIdSelectorGlob struct {
	// Glob Expose any id that matches this glob pattern (e.g., `my_id_*`).
	Glob string                                    `json:"glob"`
	Type VirtualClusterNamespaceIdSelectorGlobType `json:"type"`
}

VirtualClusterNamespaceIdSelectorGlob defines model for VirtualClusterNamespaceIdSelectorGlob.

type VirtualClusterNamespaceIdSelectorGlobType

type VirtualClusterNamespaceIdSelectorGlobType string

VirtualClusterNamespaceIdSelectorGlobType defines model for VirtualClusterNamespaceIdSelectorGlob.Type.

const (
	VirtualClusterNamespaceIdSelectorGlobTypeGlob VirtualClusterNamespaceIdSelectorGlobType = "glob"
)

Defines values for VirtualClusterNamespaceIdSelectorGlobType.

func (VirtualClusterNamespaceIdSelectorGlobType) Valid

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

type VirtualClusterNamespaceMode

type VirtualClusterNamespaceMode string

VirtualClusterNamespaceMode * hide_prefix - the configured prefix is hidden from clients for topics and IDs when reading.

	Created resources are written with the prefix on the backend cluster.
  - enforce_prefix - the configured prefix remains visible to clients.
    Created resources must include the prefix or the request will fail.
const (
	EnforcePrefix VirtualClusterNamespaceMode = "enforce_prefix"
	HidePrefix    VirtualClusterNamespaceMode = "hide_prefix"
)

Defines values for VirtualClusterNamespaceMode.

func (VirtualClusterNamespaceMode) Valid

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

type VirtualClusterNamespaceTopicSelector

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

VirtualClusterNamespaceTopicSelector defines model for VirtualClusterNamespaceTopicSelector.

func (VirtualClusterNamespaceTopicSelector) AsVirtualClusterNamespaceTopicSelectorExactList

func (t VirtualClusterNamespaceTopicSelector) AsVirtualClusterNamespaceTopicSelectorExactList() (VirtualClusterNamespaceTopicSelectorExactList, error)

AsVirtualClusterNamespaceTopicSelectorExactList returns the union data inside the VirtualClusterNamespaceTopicSelector as a VirtualClusterNamespaceTopicSelectorExactList

func (VirtualClusterNamespaceTopicSelector) AsVirtualClusterNamespaceTopicSelectorGlob

func (t VirtualClusterNamespaceTopicSelector) AsVirtualClusterNamespaceTopicSelectorGlob() (VirtualClusterNamespaceTopicSelectorGlob, error)

AsVirtualClusterNamespaceTopicSelectorGlob returns the union data inside the VirtualClusterNamespaceTopicSelector as a VirtualClusterNamespaceTopicSelectorGlob

func (VirtualClusterNamespaceTopicSelector) Discriminator

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

func (*VirtualClusterNamespaceTopicSelector) FromVirtualClusterNamespaceTopicSelectorExactList

func (t *VirtualClusterNamespaceTopicSelector) FromVirtualClusterNamespaceTopicSelectorExactList(v VirtualClusterNamespaceTopicSelectorExactList) error

FromVirtualClusterNamespaceTopicSelectorExactList overwrites any union data inside the VirtualClusterNamespaceTopicSelector as the provided VirtualClusterNamespaceTopicSelectorExactList

func (*VirtualClusterNamespaceTopicSelector) FromVirtualClusterNamespaceTopicSelectorGlob

func (t *VirtualClusterNamespaceTopicSelector) FromVirtualClusterNamespaceTopicSelectorGlob(v VirtualClusterNamespaceTopicSelectorGlob) error

FromVirtualClusterNamespaceTopicSelectorGlob overwrites any union data inside the VirtualClusterNamespaceTopicSelector as the provided VirtualClusterNamespaceTopicSelectorGlob

func (VirtualClusterNamespaceTopicSelector) MarshalJSON

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

func (*VirtualClusterNamespaceTopicSelector) MergeVirtualClusterNamespaceTopicSelectorExactList

func (t *VirtualClusterNamespaceTopicSelector) MergeVirtualClusterNamespaceTopicSelectorExactList(v VirtualClusterNamespaceTopicSelectorExactList) error

MergeVirtualClusterNamespaceTopicSelectorExactList performs a merge with any union data inside the VirtualClusterNamespaceTopicSelector, using the provided VirtualClusterNamespaceTopicSelectorExactList

func (*VirtualClusterNamespaceTopicSelector) MergeVirtualClusterNamespaceTopicSelectorGlob

func (t *VirtualClusterNamespaceTopicSelector) MergeVirtualClusterNamespaceTopicSelectorGlob(v VirtualClusterNamespaceTopicSelectorGlob) error

MergeVirtualClusterNamespaceTopicSelectorGlob performs a merge with any union data inside the VirtualClusterNamespaceTopicSelector, using the provided VirtualClusterNamespaceTopicSelectorGlob

func (*VirtualClusterNamespaceTopicSelector) UnmarshalJSON

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

func (VirtualClusterNamespaceTopicSelector) ValueByDiscriminator

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

type VirtualClusterNamespaceTopicSelectorExactList

type VirtualClusterNamespaceTopicSelectorExactList struct {
	// Conflict How to inform the user about conflicts where multiple backend topics would map to the same virtual topic name.
	// * warn - log in the Event Gateway logs. Additionally, it sets knep_namespace_topic_conflict to 1.
	// * ignore - do not do anything. It does not cause knep_namespace_topic_conflict metric to be set to 1.
	Conflict *VirtualClusterNamespaceTopicSelectorExactListConflict `json:"conflict,omitempty"`

	// ExactList Explicit allow-list of backend topic names.
	ExactList *[]NamespaceExactAllowListItem                    `json:"exact_list,omitempty"`
	Type      VirtualClusterNamespaceTopicSelectorExactListType `json:"type"`
}

VirtualClusterNamespaceTopicSelectorExactList defines model for VirtualClusterNamespaceTopicSelectorExactList.

type VirtualClusterNamespaceTopicSelectorExactListConflict

type VirtualClusterNamespaceTopicSelectorExactListConflict string

VirtualClusterNamespaceTopicSelectorExactListConflict How to inform the user about conflicts where multiple backend topics would map to the same virtual topic name. * warn - log in the Event Gateway logs. Additionally, it sets knep_namespace_topic_conflict to 1. * ignore - do not do anything. It does not cause knep_namespace_topic_conflict metric to be set to 1.

const (
	VirtualClusterNamespaceTopicSelectorExactListConflictIgnore VirtualClusterNamespaceTopicSelectorExactListConflict = "ignore"
	VirtualClusterNamespaceTopicSelectorExactListConflictWarn   VirtualClusterNamespaceTopicSelectorExactListConflict = "warn"
)

Defines values for VirtualClusterNamespaceTopicSelectorExactListConflict.

func (VirtualClusterNamespaceTopicSelectorExactListConflict) Valid

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

type VirtualClusterNamespaceTopicSelectorExactListType

type VirtualClusterNamespaceTopicSelectorExactListType string

VirtualClusterNamespaceTopicSelectorExactListType defines model for VirtualClusterNamespaceTopicSelectorExactList.Type.

const (
	VirtualClusterNamespaceTopicSelectorExactListTypeExactList VirtualClusterNamespaceTopicSelectorExactListType = "exact_list"
)

Defines values for VirtualClusterNamespaceTopicSelectorExactListType.

func (VirtualClusterNamespaceTopicSelectorExactListType) Valid

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

type VirtualClusterNamespaceTopicSelectorGlob

type VirtualClusterNamespaceTopicSelectorGlob struct {
	// Conflict How to inform the user about conflicts where multiple backend topics would map to the same virtual topic name.
	// * warn - log in the Event Gateway logs. Additionally, it sets knep_namespace_topic_conflict to 1.
	// * ignore - do not do anything. It does not cause knep_namespace_topic_conflict metric to be set to 1.
	Conflict *VirtualClusterNamespaceTopicSelectorGlobConflict `json:"conflict,omitempty"`

	// Glob Expose any backend topic that matches this glob pattern (e.g., `operations_data_*`).
	Glob string                                       `json:"glob"`
	Type VirtualClusterNamespaceTopicSelectorGlobType `json:"type"`
}

VirtualClusterNamespaceTopicSelectorGlob defines model for VirtualClusterNamespaceTopicSelectorGlob.

type VirtualClusterNamespaceTopicSelectorGlobConflict

type VirtualClusterNamespaceTopicSelectorGlobConflict string

VirtualClusterNamespaceTopicSelectorGlobConflict How to inform the user about conflicts where multiple backend topics would map to the same virtual topic name. * warn - log in the Event Gateway logs. Additionally, it sets knep_namespace_topic_conflict to 1. * ignore - do not do anything. It does not cause knep_namespace_topic_conflict metric to be set to 1.

const (
	VirtualClusterNamespaceTopicSelectorGlobConflictIgnore VirtualClusterNamespaceTopicSelectorGlobConflict = "ignore"
	VirtualClusterNamespaceTopicSelectorGlobConflictWarn   VirtualClusterNamespaceTopicSelectorGlobConflict = "warn"
)

Defines values for VirtualClusterNamespaceTopicSelectorGlobConflict.

func (VirtualClusterNamespaceTopicSelectorGlobConflict) Valid

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

type VirtualClusterNamespaceTopicSelectorGlobType

type VirtualClusterNamespaceTopicSelectorGlobType string

VirtualClusterNamespaceTopicSelectorGlobType defines model for VirtualClusterNamespaceTopicSelectorGlob.Type.

const (
	VirtualClusterNamespaceTopicSelectorGlobTypeGlob VirtualClusterNamespaceTopicSelectorGlobType = "glob"
)

Defines values for VirtualClusterNamespaceTopicSelectorGlobType.

func (VirtualClusterNamespaceTopicSelectorGlobType) Valid

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

type VirtualClusterReference

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

VirtualClusterReference A reference to a virtual cluster.

func (VirtualClusterReference) AsVirtualClusterReferenceById

func (t VirtualClusterReference) AsVirtualClusterReferenceById() (VirtualClusterReferenceById, error)

AsVirtualClusterReferenceById returns the union data inside the VirtualClusterReference as a VirtualClusterReferenceById

func (VirtualClusterReference) AsVirtualClusterReferenceByName

func (t VirtualClusterReference) AsVirtualClusterReferenceByName() (VirtualClusterReferenceByName, error)

AsVirtualClusterReferenceByName returns the union data inside the VirtualClusterReference as a VirtualClusterReferenceByName

func (*VirtualClusterReference) FromVirtualClusterReferenceById

func (t *VirtualClusterReference) FromVirtualClusterReferenceById(v VirtualClusterReferenceById) error

FromVirtualClusterReferenceById overwrites any union data inside the VirtualClusterReference as the provided VirtualClusterReferenceById

func (*VirtualClusterReference) FromVirtualClusterReferenceByName

func (t *VirtualClusterReference) FromVirtualClusterReferenceByName(v VirtualClusterReferenceByName) error

FromVirtualClusterReferenceByName overwrites any union data inside the VirtualClusterReference as the provided VirtualClusterReferenceByName

func (VirtualClusterReference) MarshalJSON

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

func (*VirtualClusterReference) MergeVirtualClusterReferenceById

func (t *VirtualClusterReference) MergeVirtualClusterReferenceById(v VirtualClusterReferenceById) error

MergeVirtualClusterReferenceById performs a merge with any union data inside the VirtualClusterReference, using the provided VirtualClusterReferenceById

func (*VirtualClusterReference) MergeVirtualClusterReferenceByName

func (t *VirtualClusterReference) MergeVirtualClusterReferenceByName(v VirtualClusterReferenceByName) error

MergeVirtualClusterReferenceByName performs a merge with any union data inside the VirtualClusterReference, using the provided VirtualClusterReferenceByName

func (*VirtualClusterReference) UnmarshalJSON

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

type VirtualClusterReferenceById

type VirtualClusterReferenceById struct {
	// Id The unique identifier of the virtual cluster.
	Id openapi_types.UUID `json:"id"`
}

VirtualClusterReferenceById Reference a virtual cluster by its unique identifier.

type VirtualClusterReferenceByName

type VirtualClusterReferenceByName struct {
	// Name The name of the virtual cluster.
	Name VirtualClusterName `json:"name"`
}

VirtualClusterReferenceByName Reference a virtual cluster by its unique name.

type VirtualClusterTopicAlias

type VirtualClusterTopicAlias struct {
	// Alias The client-visible topic name.
	Alias string `json:"alias"`

	// Condition CEL expression evaluated against the connection's auth context.
	// If omitted or empty, the alias is active for all connections.
	Condition *string `json:"condition,omitempty"`

	// Conflict How to handle conflicts where an alias shadows a physical topic.
	// * warn - activate the alias but log a warning and set the conflict metric to 1.
	// * ignore - activate the alias silently.
	Conflict *VirtualClusterTopicAliasConflict `json:"conflict,omitempty"`

	// Topic The namespace-visible topic name this alias resolves to.
	Topic string `json:"topic"`
}

VirtualClusterTopicAlias A topic alias maps an alias name to a namespace-visible topic name. Clients can produce to, consume from, and discover the topic under the alias name. The original topic name remains accessible.

**Requires a minimum runtime version of `1.2`**.

type VirtualClusterTopicAliasConflict

type VirtualClusterTopicAliasConflict string

VirtualClusterTopicAliasConflict How to handle conflicts where an alias shadows a physical topic. * warn - activate the alias but log a warning and set the conflict metric to 1. * ignore - activate the alias silently.

const (
	VirtualClusterTopicAliasConflictIgnore VirtualClusterTopicAliasConflict = "ignore"
	VirtualClusterTopicAliasConflictWarn   VirtualClusterTopicAliasConflict = "warn"
)

Defines values for VirtualClusterTopicAliasConflict.

func (VirtualClusterTopicAliasConflict) Valid

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

Jump to

Keyboard shortcuts

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