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