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 Details

    • JSON_PROPERTY_LEADER_ELIGIBILITY

      public static final String JSON_PROPERTY_LEADER_ELIGIBILITY
      See Also:
    • JSON_PROPERTY_RETRIABLE_ERRORS_SILENCED

      public static final String JSON_PROPERTY_RETRIABLE_ERRORS_SILENCED
      See Also:
    • JSON_PROPERTY_SASL_OAUTHBEARER_AUTHENTICATION_ENABLED

      public static final String JSON_PROPERTY_SASL_OAUTHBEARER_AUTHENTICATION_ENABLED
      See Also:
    • JSON_PROPERTY_SASL_OAUTHBEARER_AUTHORIZATION_ENABLED

      public static final String JSON_PROPERTY_SASL_OAUTHBEARER_AUTHORIZATION_ENABLED
      See Also:
    • JSON_PROPERTY_SASL_OAUTHBEARER_METHOD_ROLES

      public static final String JSON_PROPERTY_SASL_OAUTHBEARER_METHOD_ROLES
      See Also:
    • JSON_PROPERTY_SASL_OAUTHBEARER_ROLES_CLAIM_PATH

      public static final String JSON_PROPERTY_SASL_OAUTHBEARER_ROLES_CLAIM_PATH
      See Also:
    • JSON_PROPERTY_SCHEMA_READER_STRICT_MODE

      public static final String JSON_PROPERTY_SCHEMA_READER_STRICT_MODE
      See Also:
    • JSON_PROPERTY_TOPIC_NAME

      public static final String JSON_PROPERTY_TOPIC_NAME
      See Also:
  • Constructor Details

    • JsonSchemaSchemaRegistry

      public JsonSchemaSchemaRegistry()
  • Method Details

    • leaderEligibility

      public JsonSchemaSchemaRegistry leaderEligibility(Boolean leaderEligibility)
    • getLeaderEligibility

      @Nullable public Boolean 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

      public void setLeaderEligibility(Boolean leaderEligibility)
    • retriableErrorsSilenced

      public JsonSchemaSchemaRegistry retriableErrorsSilenced(Boolean retriableErrorsSilenced)
    • getRetriableErrorsSilenced

      @Nullable public Boolean 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

      public void setRetriableErrorsSilenced(Boolean retriableErrorsSilenced)
    • saslOauthbearerAuthenticationEnabled

      public JsonSchemaSchemaRegistry saslOauthbearerAuthenticationEnabled(Boolean saslOauthbearerAuthenticationEnabled)
    • getSaslOauthbearerAuthenticationEnabled

      @Nullable public Boolean 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

      public void setSaslOauthbearerAuthenticationEnabled(Boolean saslOauthbearerAuthenticationEnabled)
    • saslOauthbearerAuthorizationEnabled

      public JsonSchemaSchemaRegistry saslOauthbearerAuthorizationEnabled(Boolean saslOauthbearerAuthorizationEnabled)
    • getSaslOauthbearerAuthorizationEnabled

      @Nullable public Boolean 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

      public void setSaslOauthbearerAuthorizationEnabled(Boolean saslOauthbearerAuthorizationEnabled)
    • saslOauthbearerMethodRoles

      public JsonSchemaSchemaRegistry saslOauthbearerMethodRoles(String saslOauthbearerMethodRoles)
    • getSaslOauthbearerMethodRoles

      @Nullable public String 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

      public void setSaslOauthbearerMethodRoles(String saslOauthbearerMethodRoles)
    • saslOauthbearerRolesClaimPath

      public JsonSchemaSchemaRegistry saslOauthbearerRolesClaimPath(String saslOauthbearerRolesClaimPath)
    • getSaslOauthbearerRolesClaimPath

      @Nullable public String 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

      public void setSaslOauthbearerRolesClaimPath(String saslOauthbearerRolesClaimPath)
    • schemaReaderStrictMode

      public JsonSchemaSchemaRegistry schemaReaderStrictMode(Boolean schemaReaderStrictMode)
    • getSchemaReaderStrictMode

      @Nullable public Boolean 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

      public void setSchemaReaderStrictMode(Boolean schemaReaderStrictMode)
    • topicName

      public JsonSchemaSchemaRegistry topicName(String topicName)
    • getTopicName

      @Nullable public String 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

      public void setTopicName(String topicName)
    • equals

      public boolean equals(Object o)
      Return true if this json-schema-schema-registry object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string