src/main/java/com/ngrok/services/IpPolicies.java
public CompletionStage<IpPolicy> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/ip_policies",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("action", Optional.of(this.action))
                ),
                Optional.of(IpPolicy.class)
            );
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of {@link IpPolicy}
         */
Initiates the API call asynchronously.
Initiates the API call asynchronously .
public CompletionStage<IpPolicy> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/ip_policies",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("action", Optional.of(this.action))
                ),
                Optional.of(IpPolicy.class)
            );
        }
public CompletionStage < IpPolicy > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . POST , "/ip_policies" , Stream . empty ( ) , Stream . of ( new AbstractMap . SimpleEntry < > ( "description" , Optional . of ( this . description ) ) , new AbstractMap . SimpleEntry < > ( "metadata" , Optional . of ( this . metadata ) ) , new AbstractMap . SimpleEntry < > ( "action" , Optional . of ( this . action ) ) ) , Optional . of ( IpPolicy . class ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .