src/main/java/com/ngrok/services/EventStreams.java
public CompletionStage<EventStream> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.PATCH,
                "/event_streams/" + this.id,
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("metadata", this.metadata.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("description", this.description.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("fields", this.fields.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("destination_ids", this.destinationIds.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("sampling_rate", this.samplingRate.map(Function.identity()))
                ),
                Optional.of(EventStream.class)
            );
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of {@link EventStream}
         */
Initiates the API call asynchronously.
Initiates the API call asynchronously .
public CompletionStage<EventStream> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.PATCH,
                "/event_streams/" + this.id,
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("metadata", this.metadata.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("description", this.description.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("fields", this.fields.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("destination_ids", this.destinationIds.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("sampling_rate", this.samplingRate.map(Function.identity()))
                ),
                Optional.of(EventStream.class)
            );
        }
public CompletionStage < EventStream > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . PATCH , "/event_streams/" + this . id , Stream . empty ( ) , Stream . of ( new AbstractMap . SimpleEntry < > ( "metadata" , this . metadata . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "description" , this . description . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "fields" , this . fields . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "destination_ids" , this . destinationIds . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "sampling_rate" , this . samplingRate . map ( Function . identity ( ) ) ) ) , Optional . of ( EventStream . class ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .