diff --git a/CHANGELOG.md b/CHANGELOG.md index 8de398a..71f142f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ +## 0.16.0 +* Add support for `resolves_to` on Reserved Domains. +* Deprecate API filtering via `id` and `url` query parameters. Please migrate to the filtering syntax described in [API Filtering](https://ngrok.com/docs/api/api-filtering). + ## 0.15.0 * Add support for CEL filtering when listing resources. * Add support for service users diff --git a/src/main/java/com/ngrok/definitions/Credential.java b/src/main/java/com/ngrok/definitions/Credential.java index b4b9527..a458eab 100644 --- a/src/main/java/com/ngrok/definitions/Credential.java +++ b/src/main/java/com/ngrok/definitions/Credential.java @@ -50,7 +50,7 @@ public class Credential { * @param metadata arbitrary user-defined machine-readable data of this credential. Optional, max 4096 bytes. * @param token the credential's authtoken that can be used to authenticate an ngrok agent. This value is only available one time, on the API response from credential creation, otherwise it is null. * @param acl optional list of ACL rules. If unspecified, the credential will have no restrictions. The only allowed ACL rule at this time is the bind rule. The bind rule allows the caller to restrict what domains, addresses, and labels the token is allowed to bind. For example, to allow the token to open a tunnel on example.ngrok.io your ACL would include the rule bind:example.ngrok.io. Bind rules for domains may specify a leading wildcard to match multiple domains with a common suffix. For example, you may specify a rule of bind:*.example.com which will allow x.example.com, y.example.com, *.example.com, etc. Bind rules for labels may specify a wildcard key and/or value to match multiple labels. For example, you may specify a rule of bind:*=example which will allow x=example, y=example, etc. A rule of '*' is equivalent to no acl at all and will explicitly permit all actions. - * @param ownerId If supplied at credential creation, ownership will be assigned to the specified User or Bot. Only admins may specify an owner other than themselves. Defaults to the authenticated User or Bot. + * @param ownerId If supplied at credential creation, ownership will be assigned to the specified User or Service User. Only admins may specify an owner other than themselves. Defaults to the authenticated User or Service User. Accepts one of: User ID, User email, or SCIM User ID. */ @JsonCreator public Credential( @@ -155,8 +155,9 @@ public class Credential { /** * If supplied at credential creation, ownership will be assigned to the specified - * User or Bot. Only admins may specify an owner other than themselves. Defaults to - * the authenticated User or Bot. + * User or Service User. Only admins may specify an owner other than themselves. + * Defaults to the authenticated User or Service User. Accepts one of: User ID, + * User email, or SCIM User ID. * * @return the value of the property as a {@link String} wrapped in an {@link Optional} */ diff --git a/src/main/java/com/ngrok/definitions/ReservedDomain.java b/src/main/java/com/ngrok/definitions/ReservedDomain.java index ef61e05..60a5bd2 100644 --- a/src/main/java/com/ngrok/definitions/ReservedDomain.java +++ b/src/main/java/com/ngrok/definitions/ReservedDomain.java @@ -51,6 +51,9 @@ public class ReservedDomain { @JsonProperty("acme_challenge_cname_target") @JsonInclude(value = JsonInclude.Include.NON_ABSENT) private final Optional acmeChallengeCnameTarget; + @JsonProperty("resolves_to") + @JsonInclude(value = JsonInclude.Include.NON_ABSENT) + private final Optional> resolvesTo; /** * Creates a new instance of {@link ReservedDomain}. @@ -67,6 +70,7 @@ public class ReservedDomain { * @param certificateManagementPolicy configuration for automatic management of TLS certificates for this domain, or null if automatic management is disabled * @param certificateManagementStatus status of the automatic certificate management for this domain, or null if automatic management is disabled * @param acmeChallengeCnameTarget DNS CNAME target for the host _acme-challenge.example.com, where example.com is your reserved domain name. This is required to issue certificates for wildcard, non-ngrok reserved domains. Must be null for non-wildcard domains and ngrok subdomains. + * @param resolvesTo DNS resolver targets configured for the reserved domain, or empty for "global" resolution. */ @JsonCreator public ReservedDomain( @@ -81,7 +85,8 @@ public class ReservedDomain { @JsonProperty("certificate") final Optional certificate, @JsonProperty("certificate_management_policy") final Optional certificateManagementPolicy, @JsonProperty("certificate_management_status") final Optional certificateManagementStatus, - @JsonProperty("acme_challenge_cname_target") final Optional acmeChallengeCnameTarget + @JsonProperty("acme_challenge_cname_target") final Optional acmeChallengeCnameTarget, + @JsonProperty("resolves_to") final Optional> resolvesTo ) { this.id = Objects.requireNonNull(id, "id is required"); this.uri = Objects.requireNonNull(uri, "uri is required"); @@ -95,6 +100,7 @@ public class ReservedDomain { this.certificateManagementPolicy = certificateManagementPolicy != null ? certificateManagementPolicy : Optional.empty(); this.certificateManagementStatus = certificateManagementStatus != null ? certificateManagementStatus : Optional.empty(); this.acmeChallengeCnameTarget = acmeChallengeCnameTarget != null ? acmeChallengeCnameTarget : Optional.empty(); + this.resolvesTo = resolvesTo != null ? resolvesTo : Optional.empty(); } /** @@ -217,6 +223,16 @@ public class ReservedDomain { return this.acmeChallengeCnameTarget; } + /** + * DNS resolver targets configured for the reserved domain, or empty for + * "global" resolution. + * + * @return the value of the property as a {@link java.util.List} of {@link ReservedDomainResolvesToEntry} wrapped in an {@link Optional} + */ + public Optional> getResolvesTo() { + return this.resolvesTo; + } + @Override public boolean equals(final Object o) { if (this == o) { @@ -239,7 +255,8 @@ public class ReservedDomain { this.certificate.equals(other.certificate)&& this.certificateManagementPolicy.equals(other.certificateManagementPolicy)&& this.certificateManagementStatus.equals(other.certificateManagementStatus)&& - this.acmeChallengeCnameTarget.equals(other.acmeChallengeCnameTarget); + this.acmeChallengeCnameTarget.equals(other.acmeChallengeCnameTarget)&& + this.resolvesTo.equals(other.resolvesTo); } @@ -257,7 +274,8 @@ public class ReservedDomain { this.certificate, this.certificateManagementPolicy, this.certificateManagementStatus, - this.acmeChallengeCnameTarget + this.acmeChallengeCnameTarget, + this.resolvesTo ); } @@ -276,6 +294,7 @@ public class ReservedDomain { "', certificateManagementPolicy='" + this.certificateManagementPolicy.map(Object::toString).orElse("(null)") + "', certificateManagementStatus='" + this.certificateManagementStatus.map(Object::toString).orElse("(null)") + "', acmeChallengeCnameTarget='" + this.acmeChallengeCnameTarget.orElse("(null)") + + "', resolvesTo='" + this.resolvesTo.map(Object::toString).orElse("(null)") + "'}"; } } diff --git a/src/main/java/com/ngrok/definitions/ReservedDomainResolvesToEntry.java b/src/main/java/com/ngrok/definitions/ReservedDomainResolvesToEntry.java new file mode 100644 index 0000000..0ffcf83 --- /dev/null +++ b/src/main/java/com/ngrok/definitions/ReservedDomainResolvesToEntry.java @@ -0,0 +1,126 @@ +/* Code generated for API Clients. DO NOT EDIT. */ + +package com.ngrok.definitions; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.Optional; + +/** + * A class encapsulating the {@link ReservedDomainResolvesToEntry} resource. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class ReservedDomainResolvesToEntry { + /** + * Builder class for {@link ReservedDomainResolvesToEntry}. + */ + public static class Builder { + private Optional value = Optional.empty(); + + private Builder( + ) { + } + + /** + * accepts an ngrok point-of-presence shortcode, or "global" + * + * @param value the value of the value parameter as a {@link String} + * @return this builder instance + */ + public Builder value(final String value) { + this.value = Optional.of(Objects.requireNonNull(value, "value is required")); + return this; + } + + /** + * accepts an ngrok point-of-presence shortcode, or "global" + * + * @param value the value of the value parameter as a {@link String}, wrapped in an {@link Optional} + * @return this builder instance + */ + public Builder value(final Optional value) { + this.value = Objects.requireNonNull(value, "value is required"); + return this; + } + + /** + * Constructs the {@link ReservedDomainResolvesToEntry} instance. + * + * @return a new {@link ReservedDomainResolvesToEntry} + */ + public ReservedDomainResolvesToEntry build() { + return new ReservedDomainResolvesToEntry( + this.value.orElse("") + ); + } + } + + /** + * Creates a new builder for the {@link ReservedDomainResolvesToEntry} type. + * + * @return a new {@link Builder} + */ + public static Builder newBuilder( + ) { + return new Builder ( + ); + } + + @JsonProperty("value") + @JsonInclude(value = JsonInclude.Include.NON_ABSENT) + private final String value; + + /** + * Creates a new instance of {@link ReservedDomainResolvesToEntry}. + * + * @param value accepts an ngrok point-of-presence shortcode, or "global" + */ + @JsonCreator + private ReservedDomainResolvesToEntry( + @JsonProperty("value") final String value + ) { + this.value = Objects.requireNonNull(value, "value is required"); + } + + /** + * accepts an ngrok point-of-presence shortcode, or "global" + * + * @return the value of the property as a {@link String} + */ + public String getValue() { + return this.value; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + + final ReservedDomainResolvesToEntry other = (ReservedDomainResolvesToEntry) o; + return + this.value.equals(other.value); + + } + + @Override + public int hashCode() { + return Objects.hash( + this.value + ); + } + + @Override + public String toString() { + return "ReservedDomainResolvesToEntry{" + + "value='" + this.value + + "'}"; + } +} diff --git a/src/main/java/com/ngrok/services/AgentIngresses.java b/src/main/java/com/ngrok/services/AgentIngresses.java index 41030b4..4f14251 100644 --- a/src/main/java/com/ngrok/services/AgentIngresses.java +++ b/src/main/java/com/ngrok/services/AgentIngresses.java @@ -297,7 +297,8 @@ public class AgentIngresses { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -308,7 +309,8 @@ public class AgentIngresses { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -319,7 +321,8 @@ public class AgentIngresses { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -330,7 +333,8 @@ public class AgentIngresses { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -341,7 +345,11 @@ public class AgentIngresses { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -352,7 +360,11 @@ public class AgentIngresses { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/ApiKeys.java b/src/main/java/com/ngrok/services/ApiKeys.java index 737bc9c..e4bac75 100644 --- a/src/main/java/com/ngrok/services/ApiKeys.java +++ b/src/main/java/com/ngrok/services/ApiKeys.java @@ -297,7 +297,8 @@ public class ApiKeys { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -308,7 +309,8 @@ public class ApiKeys { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -319,7 +321,8 @@ public class ApiKeys { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -330,7 +333,8 @@ public class ApiKeys { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -341,7 +345,11 @@ public class ApiKeys { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -352,7 +360,11 @@ public class ApiKeys { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/CertificateAuthorities.java b/src/main/java/com/ngrok/services/CertificateAuthorities.java index 4a2d771..b42d7cf 100644 --- a/src/main/java/com/ngrok/services/CertificateAuthorities.java +++ b/src/main/java/com/ngrok/services/CertificateAuthorities.java @@ -274,7 +274,8 @@ public class CertificateAuthorities { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -285,7 +286,8 @@ public class CertificateAuthorities { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -296,7 +298,8 @@ public class CertificateAuthorities { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -307,7 +310,8 @@ public class CertificateAuthorities { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -318,7 +322,11 @@ public class CertificateAuthorities { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -329,7 +337,11 @@ public class CertificateAuthorities { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/Credentials.java b/src/main/java/com/ngrok/services/Credentials.java index ff389ba..04546f2 100644 --- a/src/main/java/com/ngrok/services/Credentials.java +++ b/src/main/java/com/ngrok/services/Credentials.java @@ -145,8 +145,9 @@ public class Credentials { /** * If supplied at credential creation, ownership will be assigned to the specified - * User or Bot. Only admins may specify an owner other than themselves. Defaults to - * the authenticated User or Bot. + * User or Service User. Only admins may specify an owner other than themselves. + * Defaults to the authenticated User or Service User. Accepts one of: User ID, + * User email, or SCIM User ID. * * @param ownerId the value of the owner_id parameter as a {@link String} * @return the call builder instance @@ -158,8 +159,9 @@ public class Credentials { /** * If supplied at credential creation, ownership will be assigned to the specified - * User or Bot. Only admins may specify an owner other than themselves. Defaults to - * the authenticated User or Bot. + * User or Service User. Only admins may specify an owner other than themselves. + * Defaults to the authenticated User or Service User. Accepts one of: User ID, + * User email, or SCIM User ID. * * @param ownerId the value of the owner_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -348,7 +350,8 @@ public class Credentials { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -359,7 +362,8 @@ public class Credentials { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -370,7 +374,8 @@ public class Credentials { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -381,7 +386,8 @@ public class Credentials { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -392,7 +398,11 @@ public class Credentials { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -403,7 +413,11 @@ public class Credentials { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/Endpoints.java b/src/main/java/com/ngrok/services/Endpoints.java index 829e132..343d82b 100644 --- a/src/main/java/com/ngrok/services/Endpoints.java +++ b/src/main/java/com/ngrok/services/Endpoints.java @@ -217,7 +217,8 @@ public class Endpoints { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -228,7 +229,8 @@ public class Endpoints { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -239,7 +241,8 @@ public class Endpoints { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -250,7 +253,8 @@ public class Endpoints { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -261,7 +265,7 @@ public class Endpoints { } /** - * Sets the id parameter. + * Filter results by endpoint IDs. Deprecated: use filter instead. * * @param id the value of the id parameter as a {@link java.util.List} of {@link String} * @return the call builder instance @@ -272,7 +276,7 @@ public class Endpoints { } /** - * Sets (or unsets) the id parameter. + * Filter results by endpoint IDs. Deprecated: use filter instead. * * @param id the value of the id parameter as an {@link Optional} of {@link java.util.List} of {@link String} * @return the call builder instance @@ -283,7 +287,7 @@ public class Endpoints { } /** - * Sets the url parameter. + * Filter results by endpoint URLs. Deprecated: use filter instead. * * @param url the value of the url parameter as a {@link java.util.List} of {@link String} * @return the call builder instance @@ -294,7 +298,7 @@ public class Endpoints { } /** - * Sets (or unsets) the url parameter. + * Filter results by endpoint URLs. Deprecated: use filter instead. * * @param url the value of the url parameter as an {@link Optional} of {@link java.util.List} of {@link String} * @return the call builder instance @@ -305,7 +309,11 @@ public class Endpoints { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -316,7 +324,11 @@ public class Endpoints { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/EventDestinations.java b/src/main/java/com/ngrok/services/EventDestinations.java index 4fcc66e..0d171b6 100644 --- a/src/main/java/com/ngrok/services/EventDestinations.java +++ b/src/main/java/com/ngrok/services/EventDestinations.java @@ -319,7 +319,8 @@ public class EventDestinations { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -330,7 +331,8 @@ public class EventDestinations { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -341,7 +343,8 @@ public class EventDestinations { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -352,7 +355,8 @@ public class EventDestinations { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -363,7 +367,11 @@ public class EventDestinations { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -374,7 +382,11 @@ public class EventDestinations { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/EventSubscriptions.java b/src/main/java/com/ngrok/services/EventSubscriptions.java index 89e30e1..3626cdc 100644 --- a/src/main/java/com/ngrok/services/EventSubscriptions.java +++ b/src/main/java/com/ngrok/services/EventSubscriptions.java @@ -313,7 +313,8 @@ public class EventSubscriptions { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -324,7 +325,8 @@ public class EventSubscriptions { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -335,7 +337,8 @@ public class EventSubscriptions { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -346,7 +349,8 @@ public class EventSubscriptions { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -357,7 +361,11 @@ public class EventSubscriptions { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -368,7 +376,11 @@ public class EventSubscriptions { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/IpPolicies.java b/src/main/java/com/ngrok/services/IpPolicies.java index 129817b..52f335a 100644 --- a/src/main/java/com/ngrok/services/IpPolicies.java +++ b/src/main/java/com/ngrok/services/IpPolicies.java @@ -270,7 +270,8 @@ public class IpPolicies { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -281,7 +282,8 @@ public class IpPolicies { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -292,7 +294,8 @@ public class IpPolicies { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -303,7 +306,8 @@ public class IpPolicies { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -314,7 +318,11 @@ public class IpPolicies { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -325,7 +333,11 @@ public class IpPolicies { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/IpPolicyRules.java b/src/main/java/com/ngrok/services/IpPolicyRules.java index 2e9f8ff..a41f497 100644 --- a/src/main/java/com/ngrok/services/IpPolicyRules.java +++ b/src/main/java/com/ngrok/services/IpPolicyRules.java @@ -285,7 +285,8 @@ public class IpPolicyRules { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -296,7 +297,8 @@ public class IpPolicyRules { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -307,7 +309,8 @@ public class IpPolicyRules { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -318,7 +321,8 @@ public class IpPolicyRules { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -329,7 +333,11 @@ public class IpPolicyRules { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -340,7 +348,11 @@ public class IpPolicyRules { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/IpRestrictions.java b/src/main/java/com/ngrok/services/IpRestrictions.java index fac3645..1d571bc 100644 --- a/src/main/java/com/ngrok/services/IpRestrictions.java +++ b/src/main/java/com/ngrok/services/IpRestrictions.java @@ -306,7 +306,8 @@ public class IpRestrictions { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -317,7 +318,8 @@ public class IpRestrictions { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -328,7 +330,8 @@ public class IpRestrictions { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -339,7 +342,8 @@ public class IpRestrictions { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -350,7 +354,11 @@ public class IpRestrictions { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -361,7 +369,11 @@ public class IpRestrictions { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/ReservedAddrs.java b/src/main/java/com/ngrok/services/ReservedAddrs.java index 20787bf..9304edd 100644 --- a/src/main/java/com/ngrok/services/ReservedAddrs.java +++ b/src/main/java/com/ngrok/services/ReservedAddrs.java @@ -289,7 +289,8 @@ public class ReservedAddrs { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -300,7 +301,8 @@ public class ReservedAddrs { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -311,7 +313,8 @@ public class ReservedAddrs { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -322,7 +325,8 @@ public class ReservedAddrs { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -333,7 +337,11 @@ public class ReservedAddrs { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -344,7 +352,11 @@ public class ReservedAddrs { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/ReservedDomains.java b/src/main/java/com/ngrok/services/ReservedDomains.java index 09beac6..3b89da0 100644 --- a/src/main/java/com/ngrok/services/ReservedDomains.java +++ b/src/main/java/com/ngrok/services/ReservedDomains.java @@ -43,6 +43,7 @@ public class ReservedDomains { private Optional metadata = Optional.empty(); private Optional certificateId = Optional.empty(); private Optional certificateManagementPolicy = Optional.empty(); + private Optional> resolvesTo = Optional.empty(); private CreateCallBuilder( ) { @@ -196,6 +197,30 @@ public class ReservedDomains { return this; } + /** + * DNS resolver targets configured for the reserved domain, or empty for + * "global" resolution. + * + * @param resolvesTo the value of the resolves_to parameter as a {@link java.util.List} of {@link ReservedDomainResolvesToEntry} + * @return the call builder instance + */ + public CreateCallBuilder resolvesTo(final java.util.List resolvesTo) { + this.resolvesTo = Optional.of(Objects.requireNonNull(resolvesTo, "resolvesTo is required")); + return this; + } + + /** + * DNS resolver targets configured for the reserved domain, or empty for + * "global" resolution. + * + * @param resolvesTo the value of the resolves_to parameter as an {@link Optional} of {@link java.util.List} of {@link ReservedDomainResolvesToEntry} + * @return the call builder instance + */ + public CreateCallBuilder resolvesTo(final Optional> resolvesTo) { + this.resolvesTo = Objects.requireNonNull(resolvesTo, "resolvesTo is required"); + return this; + } + /** * Initiates the API call asynchronously. * @@ -212,7 +237,8 @@ public class ReservedDomains { new AbstractMap.SimpleEntry<>("description", this.description.map(Function.identity())), new AbstractMap.SimpleEntry<>("metadata", this.metadata.map(Function.identity())), new AbstractMap.SimpleEntry<>("certificate_id", this.certificateId.map(Function.identity())), - new AbstractMap.SimpleEntry<>("certificate_management_policy", this.certificateManagementPolicy.map(Function.identity())) + new AbstractMap.SimpleEntry<>("certificate_management_policy", this.certificateManagementPolicy.map(Function.identity())), + new AbstractMap.SimpleEntry<>("resolves_to", Optional.of(this.resolvesTo).filter(resolvesTo -> !resolvesTo.isEmpty()).map(Function.identity())) ), Optional.of(ReservedDomain.class) ); @@ -374,7 +400,8 @@ public class ReservedDomains { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -385,7 +412,8 @@ public class ReservedDomains { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -396,7 +424,8 @@ public class ReservedDomains { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -407,7 +436,8 @@ public class ReservedDomains { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -418,7 +448,11 @@ public class ReservedDomains { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -429,7 +463,11 @@ public class ReservedDomains { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -495,6 +533,7 @@ public class ReservedDomains { private Optional metadata = Optional.empty(); private Optional certificateId = Optional.empty(); private Optional certificateManagementPolicy = Optional.empty(); + private Optional> resolvesTo = Optional.empty(); private UpdateCallBuilder( final String id @@ -600,6 +639,30 @@ public class ReservedDomains { return this; } + /** + * DNS resolver targets configured for the reserved domain, or empty for + * "global" resolution. + * + * @param resolvesTo the value of the resolves_to parameter as a {@link java.util.List} of {@link ReservedDomainResolvesToEntry} + * @return the call builder instance + */ + public UpdateCallBuilder resolvesTo(final java.util.List resolvesTo) { + this.resolvesTo = Optional.of(Objects.requireNonNull(resolvesTo, "resolvesTo is required")); + return this; + } + + /** + * DNS resolver targets configured for the reserved domain, or empty for + * "global" resolution. + * + * @param resolvesTo the value of the resolves_to parameter as an {@link Optional} of {@link java.util.List} of {@link ReservedDomainResolvesToEntry} + * @return the call builder instance + */ + public UpdateCallBuilder resolvesTo(final Optional> resolvesTo) { + this.resolvesTo = Objects.requireNonNull(resolvesTo, "resolvesTo is required"); + return this; + } + /** * Initiates the API call asynchronously. * @@ -614,7 +677,8 @@ public class ReservedDomains { new AbstractMap.SimpleEntry<>("description", this.description.map(Function.identity())), new AbstractMap.SimpleEntry<>("metadata", this.metadata.map(Function.identity())), new AbstractMap.SimpleEntry<>("certificate_id", this.certificateId.map(Function.identity())), - new AbstractMap.SimpleEntry<>("certificate_management_policy", this.certificateManagementPolicy.map(Function.identity())) + new AbstractMap.SimpleEntry<>("certificate_management_policy", this.certificateManagementPolicy.map(Function.identity())), + new AbstractMap.SimpleEntry<>("resolves_to", Optional.of(this.resolvesTo).filter(resolvesTo -> !resolvesTo.isEmpty()).map(Function.identity())) ), Optional.of(ReservedDomain.class) ); diff --git a/src/main/java/com/ngrok/services/Secrets.java b/src/main/java/com/ngrok/services/Secrets.java index 030e71b..c04ba65 100644 --- a/src/main/java/com/ngrok/services/Secrets.java +++ b/src/main/java/com/ngrok/services/Secrets.java @@ -511,7 +511,8 @@ public class Secrets { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -522,7 +523,8 @@ public class Secrets { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -533,7 +535,8 @@ public class Secrets { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -544,7 +547,8 @@ public class Secrets { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -555,7 +559,11 @@ public class Secrets { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -566,7 +574,11 @@ public class Secrets { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/ServiceUsers.java b/src/main/java/com/ngrok/services/ServiceUsers.java index 3176699..e403a98 100644 --- a/src/main/java/com/ngrok/services/ServiceUsers.java +++ b/src/main/java/com/ngrok/services/ServiceUsers.java @@ -259,7 +259,8 @@ public class ServiceUsers { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -270,7 +271,8 @@ public class ServiceUsers { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -281,7 +283,8 @@ public class ServiceUsers { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -292,7 +295,8 @@ public class ServiceUsers { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -303,7 +307,11 @@ public class ServiceUsers { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -314,7 +322,11 @@ public class ServiceUsers { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/SshCertificateAuthorities.java b/src/main/java/com/ngrok/services/SshCertificateAuthorities.java index 5ee0878..165dbab 100644 --- a/src/main/java/com/ngrok/services/SshCertificateAuthorities.java +++ b/src/main/java/com/ngrok/services/SshCertificateAuthorities.java @@ -340,7 +340,8 @@ public class SshCertificateAuthorities { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -351,7 +352,8 @@ public class SshCertificateAuthorities { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -362,7 +364,8 @@ public class SshCertificateAuthorities { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -373,7 +376,8 @@ public class SshCertificateAuthorities { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -384,7 +388,11 @@ public class SshCertificateAuthorities { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -395,7 +403,11 @@ public class SshCertificateAuthorities { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/SshCredentials.java b/src/main/java/com/ngrok/services/SshCredentials.java index 99d3c60..7b8a258 100644 --- a/src/main/java/com/ngrok/services/SshCredentials.java +++ b/src/main/java/com/ngrok/services/SshCredentials.java @@ -350,7 +350,8 @@ public class SshCredentials { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -361,7 +362,8 @@ public class SshCredentials { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -372,7 +374,8 @@ public class SshCredentials { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -383,7 +386,8 @@ public class SshCredentials { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -394,7 +398,11 @@ public class SshCredentials { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -405,7 +413,11 @@ public class SshCredentials { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/TlsCertificates.java b/src/main/java/com/ngrok/services/TlsCertificates.java index 7eacc73..6daa193 100644 --- a/src/main/java/com/ngrok/services/TlsCertificates.java +++ b/src/main/java/com/ngrok/services/TlsCertificates.java @@ -279,7 +279,8 @@ public class TlsCertificates { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -290,7 +291,8 @@ public class TlsCertificates { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -301,7 +303,8 @@ public class TlsCertificates { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -312,7 +315,8 @@ public class TlsCertificates { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -323,7 +327,11 @@ public class TlsCertificates { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -334,7 +342,11 @@ public class TlsCertificates { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/TunnelSessions.java b/src/main/java/com/ngrok/services/TunnelSessions.java index 21759f1..7865aa0 100644 --- a/src/main/java/com/ngrok/services/TunnelSessions.java +++ b/src/main/java/com/ngrok/services/TunnelSessions.java @@ -45,7 +45,8 @@ public class TunnelSessions { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -56,7 +57,8 @@ public class TunnelSessions { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -67,7 +69,8 @@ public class TunnelSessions { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -78,7 +81,8 @@ public class TunnelSessions { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -89,7 +93,11 @@ public class TunnelSessions { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -100,7 +108,11 @@ public class TunnelSessions { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance diff --git a/src/main/java/com/ngrok/services/Vaults.java b/src/main/java/com/ngrok/services/Vaults.java index 7ecabfa..e8c182b 100644 --- a/src/main/java/com/ngrok/services/Vaults.java +++ b/src/main/java/com/ngrok/services/Vaults.java @@ -522,7 +522,8 @@ public class Vaults { } /** - * Sets the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as a {@link String} * @return the call builder instance @@ -533,7 +534,8 @@ public class Vaults { } /** - * Sets (or unsets) the before_id parameter. + * Expects a resource ID as its input. Returns earlier entries in the result set, + * sorted by ID. * * @param beforeId the value of the before_id parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -544,7 +546,8 @@ public class Vaults { } /** - * Sets the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as a {@link String} * @return the call builder instance @@ -555,7 +558,8 @@ public class Vaults { } /** - * Sets (or unsets) the limit parameter. + * Constrains the number of results in the dataset. See the API Overview for details. * * @param limit the value of the limit parameter as an {@link Optional} of {@link String} * @return the call builder instance @@ -566,7 +570,11 @@ public class Vaults { } /** - * Sets the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as a {@link String} * @return the call builder instance @@ -577,7 +585,11 @@ public class Vaults { } /** - * Sets (or unsets) the filter parameter. + * A CEL expression to filter the list results. Supports logical and comparison + * operators to match on fields such as id, metadata, + * created_at, and more. See ngrok API Filtering for syntax and field + * details: https://ngrok.com/docs/api/api-filtering. * * @param filter the value of the filter parameter as an {@link Optional} of {@link String} * @return the call builder instance