src/main/java/com/ngrok/services/SshHostCertificates.java
public CompletionStage<SshHostCertificate> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/ssh_host_certificates",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("ssh_certificate_authority_id", Optional.of(this.sshCertificateAuthorityId)),
                    new AbstractMap.SimpleEntry<>("public_key", Optional.of(this.publicKey)),
                    new AbstractMap.SimpleEntry<>("principals", Optional.of(this.principals)),
                    new AbstractMap.SimpleEntry<>("valid_after", Optional.of(this.validAfter)),
                    new AbstractMap.SimpleEntry<>("valid_until", Optional.of(this.validUntil)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata))
                ),
                Optional.of(SshHostCertificate.class)
            );
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of {@link SshHostCertificate}
         */
Initiates the API call asynchronously.
Initiates the API call asynchronously .
public CompletionStage<SshHostCertificate> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/ssh_host_certificates",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("ssh_certificate_authority_id", Optional.of(this.sshCertificateAuthorityId)),
                    new AbstractMap.SimpleEntry<>("public_key", Optional.of(this.publicKey)),
                    new AbstractMap.SimpleEntry<>("principals", Optional.of(this.principals)),
                    new AbstractMap.SimpleEntry<>("valid_after", Optional.of(this.validAfter)),
                    new AbstractMap.SimpleEntry<>("valid_until", Optional.of(this.validUntil)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata))
                ),
                Optional.of(SshHostCertificate.class)
            );
        }
public CompletionStage < SshHostCertificate > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . POST , "/ssh_host_certificates" , Stream . empty ( ) , Stream . of ( new AbstractMap . SimpleEntry < > ( "ssh_certificate_authority_id" , Optional . of ( this . sshCertificateAuthorityId ) ) , new AbstractMap . SimpleEntry < > ( "public_key" , Optional . of ( this . publicKey ) ) , new AbstractMap . SimpleEntry < > ( "principals" , Optional . of ( this . principals ) ) , new AbstractMap . SimpleEntry < > ( "valid_after" , Optional . of ( this . validAfter ) ) , new AbstractMap . SimpleEntry < > ( "valid_until" , Optional . of ( this . validUntil ) ) , new AbstractMap . SimpleEntry < > ( "description" , Optional . of ( this . description ) ) , new AbstractMap . SimpleEntry < > ( "metadata" , Optional . of ( this . metadata ) ) ) , Optional . of ( SshHostCertificate . class ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .