@digitalocean/dots - v1.0.1
    Preparing search index...

    Builds and executes requests for operations under /v2/databases/{database_cluster_uuid}/schema-registry/config

    interface ConfigRequestBuilder {
        bySubject_name(subject_name: string): WithSubject_nameItemRequestBuilder;
        get(
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ConfigGetResponse>;
        put(
            body: ConfigPutRequestBody,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ConfigPutResponse>;
        toGetRequestInformation(
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        toPutRequestInformation(
            body: ConfigPutRequestBody,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): ConfigRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    • To retrieve the Schema Registry configuration for a Kafka cluster, send a GET request to/v2/databases/$DATABASE_ID/schema-registry/config.The response is a JSON object with a compatibility_level key, which is set to an objectcontaining any database configuration parameters.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns Promise<undefined | ConfigGetResponse>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • To update the Schema Registry configuration for a Kafka cluster, send a PUT request to/v2/databases/$DATABASE_ID/schema-registry/config.The response is a JSON object with a compatibility_level key, which is set to an objectcontaining any database configuration parameters.

      Parameters

      • body: ConfigPutRequestBody

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns Promise<undefined | ConfigPutResponse>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • To retrieve the Schema Registry configuration for a Kafka cluster, send a GET request to/v2/databases/$DATABASE_ID/schema-registry/config.The response is a JSON object with a compatibility_level key, which is set to an objectcontaining any database configuration parameters.

      Parameters

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns RequestInformation

    • To update the Schema Registry configuration for a Kafka cluster, send a PUT request to/v2/databases/$DATABASE_ID/schema-registry/config.The response is a JSON object with a compatibility_level key, which is set to an objectcontaining any database configuration parameters.

      Parameters

      • body: ConfigPutRequestBody

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns ConfigRequestBuilder