Class JsonSchemaSchemaRegistry
java.lang.Object
com.exoscale.sdk.model.JsonSchemaSchemaRegistry
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class JsonSchemaSchemaRegistry
extends Object
JsonSchemaSchemaRegistry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this json-schema-schema-registry object is equal to o.If true, Karapace / Schema Registry on the service nodes can participate in leader election.If enabled, kafka errors which can be retried or custom errors specified for the service will not be raised, instead, a warning log is emitted.If enabled, the Schema Registry validates OAuth 2.0/OIDC JWT bearer tokens.If enabled, the Schema Registry enforces role-based authorization using the JWT roles claim.Maps HTTP methods to allowed roles.The JSON path the Schema Registry uses to find the roles claim in the JWT.If enabled, causes the Karapace schema-registry service to shutdown when there are invalid schema records in the `_schemas` topic.The durable single partition topic that acts as the durable log for the data.inthashCode()leaderEligibility(Boolean leaderEligibility) retriableErrorsSilenced(Boolean retriableErrorsSilenced) saslOauthbearerAuthenticationEnabled(Boolean saslOauthbearerAuthenticationEnabled) saslOauthbearerAuthorizationEnabled(Boolean saslOauthbearerAuthorizationEnabled) saslOauthbearerMethodRoles(String saslOauthbearerMethodRoles) saslOauthbearerRolesClaimPath(String saslOauthbearerRolesClaimPath) schemaReaderStrictMode(Boolean schemaReaderStrictMode) voidsetLeaderEligibility(Boolean leaderEligibility) voidsetRetriableErrorsSilenced(Boolean retriableErrorsSilenced) voidsetSaslOauthbearerAuthenticationEnabled(Boolean saslOauthbearerAuthenticationEnabled) voidsetSaslOauthbearerAuthorizationEnabled(Boolean saslOauthbearerAuthorizationEnabled) voidsetSaslOauthbearerMethodRoles(String saslOauthbearerMethodRoles) voidsetSaslOauthbearerRolesClaimPath(String saslOauthbearerRolesClaimPath) voidsetSchemaReaderStrictMode(Boolean schemaReaderStrictMode) voidsetTopicName(String topicName) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_LEADER_ELIGIBILITY
- See Also:
-
JSON_PROPERTY_RETRIABLE_ERRORS_SILENCED
- See Also:
-
JSON_PROPERTY_SASL_OAUTHBEARER_AUTHENTICATION_ENABLED
- See Also:
-
JSON_PROPERTY_SASL_OAUTHBEARER_AUTHORIZATION_ENABLED
- See Also:
-
JSON_PROPERTY_SASL_OAUTHBEARER_METHOD_ROLES
- See Also:
-
JSON_PROPERTY_SASL_OAUTHBEARER_ROLES_CLAIM_PATH
- See Also:
-
JSON_PROPERTY_SCHEMA_READER_STRICT_MODE
- See Also:
-
JSON_PROPERTY_TOPIC_NAME
- See Also:
-
-
Constructor Details
-
JsonSchemaSchemaRegistry
public JsonSchemaSchemaRegistry()
-
-
Method Details
-
leaderEligibility
-
getLeaderEligibility
If true, Karapace / Schema Registry on the service nodes can participate in leader election. It might be needed to disable this when the schemas topic is replicated to a secondary cluster and Karapace / Schema Registry there must not participate in leader election. Defaults to `true`.- Returns:
- leaderEligibility
-
setLeaderEligibility
-
retriableErrorsSilenced
-
getRetriableErrorsSilenced
If enabled, kafka errors which can be retried or custom errors specified for the service will not be raised, instead, a warning log is emitted. This will denoise issue tracking systems, i.e. sentry. Defaults to `true`.- Returns:
- retriableErrorsSilenced
-
setRetriableErrorsSilenced
-
saslOauthbearerAuthenticationEnabled
public JsonSchemaSchemaRegistry saslOauthbearerAuthenticationEnabled(Boolean saslOauthbearerAuthenticationEnabled) -
getSaslOauthbearerAuthenticationEnabled
If enabled, the Schema Registry validates OAuth 2.0/OIDC JWT bearer tokens. Requires `sasl_oauthbearer_jwks_endpoint_url`, `sasl_oauthbearer_expected_issuer`, and `sasl_oauthbearer_expected_audience` under `kafka`. Defaults to `false`.- Returns:
- saslOauthbearerAuthenticationEnabled
-
setSaslOauthbearerAuthenticationEnabled
-
saslOauthbearerAuthorizationEnabled
public JsonSchemaSchemaRegistry saslOauthbearerAuthorizationEnabled(Boolean saslOauthbearerAuthorizationEnabled) -
getSaslOauthbearerAuthorizationEnabled
If enabled, the Schema Registry enforces role-based authorization using the JWT roles claim. It also enables `sasl_oauthbearer_authentication_enabled` if it isn't already enabled. Authorization requires authentication. Defaults to `false`.- Returns:
- saslOauthbearerAuthorizationEnabled
-
setSaslOauthbearerAuthorizationEnabled
-
saslOauthbearerMethodRoles
-
getSaslOauthbearerMethodRoles
Maps HTTP methods to allowed roles. Use a JSON object with `GET`, `POST`, `PUT`, and `DELETE` keys mapped to arrays of roles. Role names use the `karapace.` prefix. Example: `{\"GET\": [\"karapace.schema:read\"], \"POST\": [], \"PUT\": [], \"DELETE\": []}`.- Returns:
- saslOauthbearerMethodRoles
-
setSaslOauthbearerMethodRoles
-
saslOauthbearerRolesClaimPath
-
getSaslOauthbearerRolesClaimPath
The JSON path the Schema Registry uses to find the roles claim in the JWT. Defaults to `resource_access.karapace.roles`.- Returns:
- saslOauthbearerRolesClaimPath
-
setSaslOauthbearerRolesClaimPath
-
schemaReaderStrictMode
-
getSchemaReaderStrictMode
If enabled, causes the Karapace schema-registry service to shutdown when there are invalid schema records in the `_schemas` topic. Defaults to `false`.- Returns:
- schemaReaderStrictMode
-
setSchemaReaderStrictMode
-
topicName
-
getTopicName
The durable single partition topic that acts as the durable log for the data. This topic must be compacted to avoid losing data due to retention policy. Please note that changing this configuration in an existing Schema Registry / Karapace setup leads to previous schemas being inaccessible, data encoded with them potentially unreadable and schema ID sequence put out of order. It's only possible to do the switch while Schema Registry / Karapace is disabled. Defaults to `_schemas`.- Returns:
- topicName
-
setTopicName
-
equals
-
hashCode
-
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
-