Class JsonSchemaPgaudit

java.lang.Object
com.exoscale.sdk.model.JsonSchemaPgaudit

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class JsonSchemaPgaudit extends Object
System-wide settings for the pgaudit extension.
  • Field Details

  • Constructor Details

    • JsonSchemaPgaudit

      public JsonSchemaPgaudit()
  • Method Details

    • role

      public JsonSchemaPgaudit role(String role)
    • getRole

      @Nullable public String getRole()
      Specifies the master role to use for object audit logging.
      Returns:
      role
    • setRole

      public void setRole(String role)
    • logParameter

      public JsonSchemaPgaudit logParameter(Boolean logParameter)
    • getLogParameter

      @Nullable public Boolean getLogParameter()
      Specifies that audit logging should include the parameters that were passed with the statement.
      Returns:
      logParameter
    • setLogParameter

      public void setLogParameter(Boolean logParameter)
    • logRows

      public JsonSchemaPgaudit logRows(Boolean logRows)
    • getLogRows

      @Nullable public Boolean getLogRows()
      Get logRows
      Returns:
      logRows
    • setLogRows

      public void setLogRows(Boolean logRows)
    • logLevel

    • getLogLevel

      @Nullable public JsonSchemaPgaudit.LogLevelEnum getLogLevel()
      Specifies the log level that will be used for log entries.
      Returns:
      logLevel
    • setLogLevel

      public void setLogLevel(JsonSchemaPgaudit.LogLevelEnum logLevel)
    • logRelation

      public JsonSchemaPgaudit logRelation(Boolean logRelation)
    • getLogRelation

      @Nullable public Boolean getLogRelation()
      Specifies whether session audit logging should create a separate log entry for each relation (TABLE, VIEW, etc.) referenced in a SELECT or DML statement.
      Returns:
      logRelation
    • setLogRelation

      public void setLogRelation(Boolean logRelation)
    • logStatementOnce

      public JsonSchemaPgaudit logStatementOnce(Boolean logStatementOnce)
    • getLogStatementOnce

      @Nullable public Boolean getLogStatementOnce()
      Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry.
      Returns:
      logStatementOnce
    • setLogStatementOnce

      public void setLogStatementOnce(Boolean logStatementOnce)
    • logMaxStringLength

      public JsonSchemaPgaudit logMaxStringLength(Integer logMaxStringLength)
    • getLogMaxStringLength

      @Nullable public Integer getLogMaxStringLength()
      Crop parameters representation and whole statements if they exceed this threshold. A (default) value of -1 disable the truncation. minimum: -1 maximum: 102400
      Returns:
      logMaxStringLength
    • setLogMaxStringLength

      public void setLogMaxStringLength(Integer logMaxStringLength)
    • logCatalog

      public JsonSchemaPgaudit logCatalog(Boolean logCatalog)
    • getLogCatalog

      @Nullable public Boolean getLogCatalog()
      Specifies that session logging should be enabled in the case where all relations in a statement are in pg_catalog.
      Returns:
      logCatalog
    • setLogCatalog

      public void setLogCatalog(Boolean logCatalog)
    • logNestedStatements

      public JsonSchemaPgaudit logNestedStatements(Boolean logNestedStatements)
    • getLogNestedStatements

      @Nullable public Boolean getLogNestedStatements()
      This GUC allows to turn off logging nested statements, that is, statements that are executed as part of another ExecutorRun.
      Returns:
      logNestedStatements
    • setLogNestedStatements

      public void setLogNestedStatements(Boolean logNestedStatements)
    • logStatement

      public JsonSchemaPgaudit logStatement(Boolean logStatement)
    • getLogStatement

      @Nullable public Boolean getLogStatement()
      Specifies whether logging will include the statement text and parameters (if enabled).
      Returns:
      logStatement
    • setLogStatement

      public void setLogStatement(Boolean logStatement)
    • logClient

      public JsonSchemaPgaudit logClient(Boolean logClient)
    • getLogClient

      @Nullable public Boolean getLogClient()
      Specifies whether log messages will be visible to a client process such as psql.
      Returns:
      logClient
    • setLogClient

      public void setLogClient(Boolean logClient)
    • featureEnabled

      public JsonSchemaPgaudit featureEnabled(Boolean featureEnabled)
    • getFeatureEnabled

      @Nullable public Boolean getFeatureEnabled()
      Enable pgaudit extension. When enabled, pgaudit extension will be automatically installed.Otherwise, extension will be uninstalled but auditing configurations will be preserved.
      Returns:
      featureEnabled
    • setFeatureEnabled

      public void setFeatureEnabled(Boolean featureEnabled)
    • log

    • addLogItem

      public JsonSchemaPgaudit addLogItem(JsonSchemaPgaudit.LogEnum logItem)
    • getLog

      @Nullable public List<JsonSchemaPgaudit.LogEnum> getLog()
      Specifies which classes of statements will be logged by session audit logging.
      Returns:
      log
    • setLog

      public void setLog(List<JsonSchemaPgaudit.LogEnum> log)
    • logParameterMaxSize

      public JsonSchemaPgaudit logParameterMaxSize(Integer logParameterMaxSize)
    • getLogParameterMaxSize

      @Nullable public Integer getLogParameterMaxSize()
      Specifies that parameter values longer than this setting (in bytes) should not be logged, but replaced with <long param suppressed>.
      Returns:
      logParameterMaxSize
    • setLogParameterMaxSize

      public void setLogParameterMaxSize(Integer logParameterMaxSize)
    • equals

      public boolean equals(Object o)
      Return true if this json-schema-pgaudit 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