Class WorkspaceRateLimit

    • Constructor Detail

    • Method Detail

      • limits

         final List<WorkspaceRateLimitValue> limits()

        The workspace's limiter values for this group. By default only the limiter types with a workspace-level override are listed. With include_inherited set to true, the limiter types the workspace inherits from the organization are listed too, each marked by source.

      • models

         final Optional<List<String>> models()

        Model names this entry's limits apply to, including aliases. null when group.type is not "model_group". The list covers the models this workspace has access to, so it can differ between workspaces.

      • rateLimitId

         final String rateLimitId()

        The id of the organization's RateLimit entry this entry applies to.

      • _type

         final JsonValue _type()

        Object type. Always workspace_rate_limit for workspace rate-limit entries.

        Expected to always return the following:

        JsonValue.from("workspace_rate_limit")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _models

         final JsonField<List<String>> _models()

        Returns the raw JSON value of models.

        Unlike models, this method doesn't throw if the JSON field has an unexpected type.

      • _rateLimitId

         final JsonField<String> _rateLimitId()

        Returns the raw JSON value of rateLimitId.

        Unlike rateLimitId, this method doesn't throw if the JSON field has an unexpected type.

      • _workspaceId

         final JsonField<String> _workspaceId()

        Returns the raw JSON value of workspaceId.

        Unlike workspaceId, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final WorkspaceRateLimit validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.