Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage showAsButton(Boolean showAsButton) {
+ this.showAsButton = Optional.ofNullable(showAsButton);
+ return this;
+ }
+
+ /**
+ * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP)
+ public _FinalStage showAsButton(Optional showAsButton) {
+ this.showAsButton = showAsButton;
+ return this;
+ }
+
+ /**
+ * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage assignMembershipOnLogin(Boolean assignMembershipOnLogin) {
+ this.assignMembershipOnLogin = Optional.ofNullable(assignMembershipOnLogin);
+ return this;
+ }
+
+ /**
+ * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "assign_membership_on_login", nulls = Nulls.SKIP)
+ public _FinalStage assignMembershipOnLogin(Optional assignMembershipOnLogin) {
+ this.assignMembershipOnLogin = assignMembershipOnLogin;
+ return this;
+ }
+
+ /**
+ * Name of the connection in the scope of this organization.
+ * @return Reference to {@code this} so that method calls can be chained together.
+ */
+ @java.lang.Override
+ public _FinalStage organizationConnectionName(String organizationConnectionName) {
+ this.organizationConnectionName = Optional.ofNullable(organizationConnectionName);
+ return this;
+ }
+
+ /**
+ * Name of the connection in the scope of this organization.
+ */
+ @java.lang.Override
+ @JsonSetter(value = "organization_connection_name", nulls = Nulls.SKIP)
+ public _FinalStage organizationConnectionName(Optional organizationConnectionName) {
+ this.organizationConnectionName = organizationConnectionName;
+ return this;
+ }
+
+ @java.lang.Override
+ public CreateOrganizationAllConnectionRequestParameters build() {
+ return new CreateOrganizationAllConnectionRequestParameters(
+ organizationConnectionName,
+ assignMembershipOnLogin,
+ showAsButton,
+ isSignupEnabled,
+ organizationAccessLevel,
+ isEnabled,
+ connectionId,
+ additionalProperties);
+ }
+
+ @java.lang.Override
+ public Builder additionalProperty(String key, Object value) {
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ @java.lang.Override
+ public Builder additionalProperties(Map additionalProperties) {
+ this.additionalProperties.putAll(additionalProperties);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java
new file mode 100644
index 000000000..1932f7051
--- /dev/null
+++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java
@@ -0,0 +1,301 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.auth0.client.mgmt.organizations.types;
+
+import com.auth0.client.mgmt.core.Nullable;
+import com.auth0.client.mgmt.core.NullableNonemptyFilter;
+import com.auth0.client.mgmt.core.ObjectMappers;
+import com.auth0.client.mgmt.core.OptionalNullable;
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+
+@JsonInclude(JsonInclude.Include.NON_ABSENT)
+@JsonDeserialize(builder = ListOrganizationAllConnectionsRequestParameters.Builder.class)
+public final class ListOrganizationAllConnectionsRequestParameters {
+ private final OptionalNullable page;
+
+ private final OptionalNullable perPage;
+
+ private final OptionalNullable includeTotals;
+
+ private final OptionalNullable isEnabled;
+
+ private final Map additionalProperties;
+
+ private ListOrganizationAllConnectionsRequestParameters(
+ OptionalNullable page,
+ OptionalNullable perPage,
+ OptionalNullable includeTotals,
+ OptionalNullable isEnabled,
+ Map additionalProperties) {
+ this.page = page;
+ this.perPage = perPage;
+ this.includeTotals = includeTotals;
+ this.isEnabled = isEnabled;
+ this.additionalProperties = additionalProperties;
+ }
+
+ /**
+ * @return Page index of the results to return. First page is 0.
+ */
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("page")
+ public OptionalNullable getPage() {
+ return page;
+ }
+
+ /**
+ * @return Number of results per page. Defaults to 50.
+ */
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("per_page")
+ public OptionalNullable getPerPage() {
+ return perPage;
+ }
+
+ /**
+ * @return Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
+ */
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("include_totals")
+ public OptionalNullable getIncludeTotals() {
+ return includeTotals;
+ }
+
+ /**
+ * @return Filter connections by enabled status.
+ */
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("is_enabled")
+ public OptionalNullable getIsEnabled() {
+ if (isEnabled == null) {
+ return OptionalNullable.absent();
+ }
+ return isEnabled;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("is_enabled")
+ private OptionalNullable _getIsEnabled() {
+ return isEnabled;
+ }
+
+ @java.lang.Override
+ public boolean equals(Object other) {
+ if (this == other) return true;
+ return other instanceof ListOrganizationAllConnectionsRequestParameters
+ && equalTo((ListOrganizationAllConnectionsRequestParameters) other);
+ }
+
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ private boolean equalTo(ListOrganizationAllConnectionsRequestParameters other) {
+ return page.equals(other.page)
+ && perPage.equals(other.perPage)
+ && includeTotals.equals(other.includeTotals)
+ && isEnabled.equals(other.isEnabled);
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return Objects.hash(this.page, this.perPage, this.includeTotals, this.isEnabled);
+ }
+
+ @java.lang.Override
+ public String toString() {
+ return ObjectMappers.stringify(this);
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static final class Builder {
+ private OptionalNullable page = OptionalNullable.absent();
+
+ private OptionalNullable perPage = OptionalNullable.absent();
+
+ private OptionalNullable includeTotals = OptionalNullable.absent();
+
+ private OptionalNullable isEnabled = OptionalNullable.absent();
+
+ @JsonAnySetter
+ private Map additionalProperties = new HashMap<>();
+
+ private Builder() {}
+
+ public Builder from(ListOrganizationAllConnectionsRequestParameters other) {
+ page(other.getPage());
+ perPage(other.getPerPage());
+ includeTotals(other.getIncludeTotals());
+ isEnabled(other.getIsEnabled());
+ return this;
+ }
+
+ /**
+ * Page index of the results to return. First page is 0.
+ */
+ @JsonSetter(value = "page", nulls = Nulls.SKIP)
+ public Builder page(OptionalNullable page) {
+ this.page = page;
+ return this;
+ }
+
+ public Builder page(Integer page) {
+ this.page = OptionalNullable.of(page);
+ return this;
+ }
+
+ public Builder page(Optional page) {
+ if (page.isPresent()) {
+ this.page = OptionalNullable.of(page.get());
+ } else {
+ this.page = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder page(Nullable page) {
+ if (page.isNull()) {
+ this.page = OptionalNullable.ofNull();
+ } else if (page.isEmpty()) {
+ this.page = OptionalNullable.absent();
+ } else {
+ this.page = OptionalNullable.of(page.get());
+ }
+ return this;
+ }
+
+ /**
+ * Number of results per page. Defaults to 50.
+ */
+ @JsonSetter(value = "per_page", nulls = Nulls.SKIP)
+ public Builder perPage(OptionalNullable perPage) {
+ this.perPage = perPage;
+ return this;
+ }
+
+ public Builder perPage(Integer perPage) {
+ this.perPage = OptionalNullable.of(perPage);
+ return this;
+ }
+
+ public Builder perPage(Optional perPage) {
+ if (perPage.isPresent()) {
+ this.perPage = OptionalNullable.of(perPage.get());
+ } else {
+ this.perPage = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder perPage(Nullable perPage) {
+ if (perPage.isNull()) {
+ this.perPage = OptionalNullable.ofNull();
+ } else if (perPage.isEmpty()) {
+ this.perPage = OptionalNullable.absent();
+ } else {
+ this.perPage = OptionalNullable.of(perPage.get());
+ }
+ return this;
+ }
+
+ /**
+ * Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
+ */
+ @JsonSetter(value = "include_totals", nulls = Nulls.SKIP)
+ public Builder includeTotals(OptionalNullable includeTotals) {
+ this.includeTotals = includeTotals;
+ return this;
+ }
+
+ public Builder includeTotals(Boolean includeTotals) {
+ this.includeTotals = OptionalNullable.of(includeTotals);
+ return this;
+ }
+
+ public Builder includeTotals(Optional includeTotals) {
+ if (includeTotals.isPresent()) {
+ this.includeTotals = OptionalNullable.of(includeTotals.get());
+ } else {
+ this.includeTotals = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder includeTotals(Nullable includeTotals) {
+ if (includeTotals.isNull()) {
+ this.includeTotals = OptionalNullable.ofNull();
+ } else if (includeTotals.isEmpty()) {
+ this.includeTotals = OptionalNullable.absent();
+ } else {
+ this.includeTotals = OptionalNullable.of(includeTotals.get());
+ }
+ return this;
+ }
+
+ /**
+ * Filter connections by enabled status.
+ */
+ @JsonSetter(value = "is_enabled", nulls = Nulls.SKIP)
+ public Builder isEnabled(@org.jetbrains.annotations.Nullable OptionalNullable isEnabled) {
+ this.isEnabled = isEnabled;
+ return this;
+ }
+
+ public Builder isEnabled(Boolean isEnabled) {
+ this.isEnabled = OptionalNullable.of(isEnabled);
+ return this;
+ }
+
+ public Builder isEnabled(Optional isEnabled) {
+ if (isEnabled.isPresent()) {
+ this.isEnabled = OptionalNullable.of(isEnabled.get());
+ } else {
+ this.isEnabled = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder isEnabled(Nullable isEnabled) {
+ if (isEnabled.isNull()) {
+ this.isEnabled = OptionalNullable.ofNull();
+ } else if (isEnabled.isEmpty()) {
+ this.isEnabled = OptionalNullable.absent();
+ } else {
+ this.isEnabled = OptionalNullable.of(isEnabled.get());
+ }
+ return this;
+ }
+
+ public ListOrganizationAllConnectionsRequestParameters build() {
+ return new ListOrganizationAllConnectionsRequestParameters(
+ page, perPage, includeTotals, isEnabled, additionalProperties);
+ }
+
+ public Builder additionalProperty(String key, Object value) {
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ public Builder additionalProperties(Map additionalProperties) {
+ this.additionalProperties.putAll(additionalProperties);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestParameters.java
new file mode 100644
index 000000000..b5ef77532
--- /dev/null
+++ b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestParameters.java
@@ -0,0 +1,369 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.auth0.client.mgmt.organizations.types;
+
+import com.auth0.client.mgmt.core.NullableNonemptyFilter;
+import com.auth0.client.mgmt.core.ObjectMappers;
+import com.auth0.client.mgmt.core.OptionalNullable;
+import com.auth0.client.mgmt.types.OrganizationAccessLevelEnumWithNull;
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSetter;
+import com.fasterxml.jackson.annotation.Nulls;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
+
+@JsonInclude(JsonInclude.Include.NON_ABSENT)
+@JsonDeserialize(builder = UpdateOrganizationConnectionRequestParameters.Builder.class)
+public final class UpdateOrganizationConnectionRequestParameters {
+ private final OptionalNullable organizationConnectionName;
+
+ private final Optional assignMembershipOnLogin;
+
+ private final Optional showAsButton;
+
+ private final Optional isSignupEnabled;
+
+ private final OptionalNullable organizationAccessLevel;
+
+ private final OptionalNullable isEnabled;
+
+ private final Map additionalProperties;
+
+ private UpdateOrganizationConnectionRequestParameters(
+ OptionalNullable organizationConnectionName,
+ Optional assignMembershipOnLogin,
+ Optional showAsButton,
+ Optional isSignupEnabled,
+ OptionalNullable organizationAccessLevel,
+ OptionalNullable isEnabled,
+ Map additionalProperties) {
+ this.organizationConnectionName = organizationConnectionName;
+ this.assignMembershipOnLogin = assignMembershipOnLogin;
+ this.showAsButton = showAsButton;
+ this.isSignupEnabled = isSignupEnabled;
+ this.organizationAccessLevel = organizationAccessLevel;
+ this.isEnabled = isEnabled;
+ this.additionalProperties = additionalProperties;
+ }
+
+ /**
+ * @return Name of the connection in the scope of this organization.
+ */
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("organization_connection_name")
+ public OptionalNullable getOrganizationConnectionName() {
+ if (organizationConnectionName == null) {
+ return OptionalNullable.absent();
+ }
+ return organizationConnectionName;
+ }
+
+ /**
+ * @return When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.
+ */
+ @JsonProperty("assign_membership_on_login")
+ public Optional getAssignMembershipOnLogin() {
+ return assignMembershipOnLogin;
+ }
+
+ /**
+ * @return Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true.
+ */
+ @JsonProperty("show_as_button")
+ public Optional getShowAsButton() {
+ return showAsButton;
+ }
+
+ /**
+ * @return Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false.
+ */
+ @JsonProperty("is_signup_enabled")
+ public Optional getIsSignupEnabled() {
+ return isSignupEnabled;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("organization_access_level")
+ public OptionalNullable getOrganizationAccessLevel() {
+ if (organizationAccessLevel == null) {
+ return OptionalNullable.absent();
+ }
+ return organizationAccessLevel;
+ }
+
+ /**
+ * @return Whether the connection is enabled for the organization.
+ */
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("is_enabled")
+ public OptionalNullable getIsEnabled() {
+ if (isEnabled == null) {
+ return OptionalNullable.absent();
+ }
+ return isEnabled;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("organization_connection_name")
+ private OptionalNullable _getOrganizationConnectionName() {
+ return organizationConnectionName;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("organization_access_level")
+ private OptionalNullable _getOrganizationAccessLevel() {
+ return organizationAccessLevel;
+ }
+
+ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
+ @JsonProperty("is_enabled")
+ private OptionalNullable _getIsEnabled() {
+ return isEnabled;
+ }
+
+ @java.lang.Override
+ public boolean equals(Object other) {
+ if (this == other) return true;
+ return other instanceof UpdateOrganizationConnectionRequestParameters
+ && equalTo((UpdateOrganizationConnectionRequestParameters) other);
+ }
+
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ private boolean equalTo(UpdateOrganizationConnectionRequestParameters other) {
+ return organizationConnectionName.equals(other.organizationConnectionName)
+ && assignMembershipOnLogin.equals(other.assignMembershipOnLogin)
+ && showAsButton.equals(other.showAsButton)
+ && isSignupEnabled.equals(other.isSignupEnabled)
+ && organizationAccessLevel.equals(other.organizationAccessLevel)
+ && isEnabled.equals(other.isEnabled);
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ return Objects.hash(
+ this.organizationConnectionName,
+ this.assignMembershipOnLogin,
+ this.showAsButton,
+ this.isSignupEnabled,
+ this.organizationAccessLevel,
+ this.isEnabled);
+ }
+
+ @java.lang.Override
+ public String toString() {
+ return ObjectMappers.stringify(this);
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static final class Builder {
+ private OptionalNullable organizationConnectionName = OptionalNullable.absent();
+
+ private Optional assignMembershipOnLogin = Optional.empty();
+
+ private Optional showAsButton = Optional.empty();
+
+ private Optional isSignupEnabled = Optional.empty();
+
+ private OptionalNullable organizationAccessLevel =
+ OptionalNullable.absent();
+
+ private OptionalNullable isEnabled = OptionalNullable.absent();
+
+ @JsonAnySetter
+ private Map additionalProperties = new HashMap<>();
+
+ private Builder() {}
+
+ public Builder from(UpdateOrganizationConnectionRequestParameters other) {
+ organizationConnectionName(other.getOrganizationConnectionName());
+ assignMembershipOnLogin(other.getAssignMembershipOnLogin());
+ showAsButton(other.getShowAsButton());
+ isSignupEnabled(other.getIsSignupEnabled());
+ organizationAccessLevel(other.getOrganizationAccessLevel());
+ isEnabled(other.getIsEnabled());
+ return this;
+ }
+
+ /**
+ * Name of the connection in the scope of this organization.
+ */
+ @JsonSetter(value = "organization_connection_name", nulls = Nulls.SKIP)
+ public Builder organizationConnectionName(@Nullable OptionalNullable organizationConnectionName) {
+ this.organizationConnectionName = organizationConnectionName;
+ return this;
+ }
+
+ public Builder organizationConnectionName(String organizationConnectionName) {
+ this.organizationConnectionName = OptionalNullable.of(organizationConnectionName);
+ return this;
+ }
+
+ public Builder organizationConnectionName(Optional organizationConnectionName) {
+ if (organizationConnectionName.isPresent()) {
+ this.organizationConnectionName = OptionalNullable.of(organizationConnectionName.get());
+ } else {
+ this.organizationConnectionName = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder organizationConnectionName(
+ com.auth0.client.mgmt.core.Nullable organizationConnectionName) {
+ if (organizationConnectionName.isNull()) {
+ this.organizationConnectionName = OptionalNullable.ofNull();
+ } else if (organizationConnectionName.isEmpty()) {
+ this.organizationConnectionName = OptionalNullable.absent();
+ } else {
+ this.organizationConnectionName = OptionalNullable.of(organizationConnectionName.get());
+ }
+ return this;
+ }
+
+ /**
+ * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.
+ */
+ @JsonSetter(value = "assign_membership_on_login", nulls = Nulls.SKIP)
+ public Builder assignMembershipOnLogin(Optional assignMembershipOnLogin) {
+ this.assignMembershipOnLogin = assignMembershipOnLogin;
+ return this;
+ }
+
+ public Builder assignMembershipOnLogin(Boolean assignMembershipOnLogin) {
+ this.assignMembershipOnLogin = Optional.ofNullable(assignMembershipOnLogin);
+ return this;
+ }
+
+ /**
+ * Determines whether a connection should be displayed on this organization’s login prompt. Only applicable for enterprise connections. Default: true.
+ */
+ @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP)
+ public Builder showAsButton(Optional showAsButton) {
+ this.showAsButton = showAsButton;
+ return this;
+ }
+
+ public Builder showAsButton(Boolean showAsButton) {
+ this.showAsButton = Optional.ofNullable(showAsButton);
+ return this;
+ }
+
+ /**
+ * Determines whether organization signup should be enabled for this organization connection. Only applicable for database connections. Default: false.
+ */
+ @JsonSetter(value = "is_signup_enabled", nulls = Nulls.SKIP)
+ public Builder isSignupEnabled(Optional isSignupEnabled) {
+ this.isSignupEnabled = isSignupEnabled;
+ return this;
+ }
+
+ public Builder isSignupEnabled(Boolean isSignupEnabled) {
+ this.isSignupEnabled = Optional.ofNullable(isSignupEnabled);
+ return this;
+ }
+
+ @JsonSetter(value = "organization_access_level", nulls = Nulls.SKIP)
+ public Builder organizationAccessLevel(
+ @Nullable OptionalNullable organizationAccessLevel) {
+ this.organizationAccessLevel = organizationAccessLevel;
+ return this;
+ }
+
+ public Builder organizationAccessLevel(OrganizationAccessLevelEnumWithNull organizationAccessLevel) {
+ this.organizationAccessLevel = OptionalNullable.of(organizationAccessLevel);
+ return this;
+ }
+
+ public Builder organizationAccessLevel(Optional organizationAccessLevel) {
+ if (organizationAccessLevel.isPresent()) {
+ this.organizationAccessLevel = OptionalNullable.of(organizationAccessLevel.get());
+ } else {
+ this.organizationAccessLevel = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder organizationAccessLevel(
+ com.auth0.client.mgmt.core.Nullable organizationAccessLevel) {
+ if (organizationAccessLevel.isNull()) {
+ this.organizationAccessLevel = OptionalNullable.ofNull();
+ } else if (organizationAccessLevel.isEmpty()) {
+ this.organizationAccessLevel = OptionalNullable.absent();
+ } else {
+ this.organizationAccessLevel = OptionalNullable.of(organizationAccessLevel.get());
+ }
+ return this;
+ }
+
+ /**
+ * Whether the connection is enabled for the organization.
+ */
+ @JsonSetter(value = "is_enabled", nulls = Nulls.SKIP)
+ public Builder isEnabled(@Nullable OptionalNullable isEnabled) {
+ this.isEnabled = isEnabled;
+ return this;
+ }
+
+ public Builder isEnabled(Boolean isEnabled) {
+ this.isEnabled = OptionalNullable.of(isEnabled);
+ return this;
+ }
+
+ public Builder isEnabled(Optional isEnabled) {
+ if (isEnabled.isPresent()) {
+ this.isEnabled = OptionalNullable.of(isEnabled.get());
+ } else {
+ this.isEnabled = OptionalNullable.absent();
+ }
+ return this;
+ }
+
+ public Builder isEnabled(com.auth0.client.mgmt.core.Nullable isEnabled) {
+ if (isEnabled.isNull()) {
+ this.isEnabled = OptionalNullable.ofNull();
+ } else if (isEnabled.isEmpty()) {
+ this.isEnabled = OptionalNullable.absent();
+ } else {
+ this.isEnabled = OptionalNullable.of(isEnabled.get());
+ }
+ return this;
+ }
+
+ public UpdateOrganizationConnectionRequestParameters build() {
+ return new UpdateOrganizationConnectionRequestParameters(
+ organizationConnectionName,
+ assignMembershipOnLogin,
+ showAsButton,
+ isSignupEnabled,
+ organizationAccessLevel,
+ isEnabled,
+ additionalProperties);
+ }
+
+ public Builder additionalProperty(String key, Object value) {
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ public Builder additionalProperties(Map additionalProperties) {
+ this.additionalProperties.putAll(additionalProperties);
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickrStrategy.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java
similarity index 53%
rename from src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickrStrategy.java
rename to src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java
index 28c502003..cb4e688af 100644
--- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickrStrategy.java
+++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionDpopSigningAlgEnum.java
@@ -6,15 +6,17 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
-public final class CreateConnectionRequestContentFlickrStrategy {
- public static final CreateConnectionRequestContentFlickrStrategy FLICKR =
- new CreateConnectionRequestContentFlickrStrategy(Value.FLICKR, "flickr");
+public final class ConnectionDpopSigningAlgEnum {
+ public static final ConnectionDpopSigningAlgEnum ES256 = new ConnectionDpopSigningAlgEnum(Value.ES256, "ES256");
+
+ public static final ConnectionDpopSigningAlgEnum ED25519 =
+ new ConnectionDpopSigningAlgEnum(Value.ED25519, "Ed25519");
private final Value value;
private final String string;
- CreateConnectionRequestContentFlickrStrategy(Value value, String string) {
+ ConnectionDpopSigningAlgEnum(Value value, String string) {
this.value = value;
this.string = string;
}
@@ -32,8 +34,8 @@ public String toString() {
@java.lang.Override
public boolean equals(Object other) {
return (this == other)
- || (other instanceof CreateConnectionRequestContentFlickrStrategy
- && this.string.equals(((CreateConnectionRequestContentFlickrStrategy) other).string));
+ || (other instanceof ConnectionDpopSigningAlgEnum
+ && this.string.equals(((ConnectionDpopSigningAlgEnum) other).string));
}
@java.lang.Override
@@ -43,8 +45,10 @@ public int hashCode() {
public T visit(Visitor visitor) {
switch (value) {
- case FLICKR:
- return visitor.visitFlickr();
+ case ES256:
+ return visitor.visitEs256();
+ case ED25519:
+ return visitor.visitEd25519();
case UNKNOWN:
default:
return visitor.visitUnknown(string);
@@ -52,23 +56,29 @@ public T visit(Visitor visitor) {
}
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
- public static CreateConnectionRequestContentFlickrStrategy valueOf(String value) {
+ public static ConnectionDpopSigningAlgEnum valueOf(String value) {
switch (value) {
- case "flickr":
- return FLICKR;
+ case "ES256":
+ return ES256;
+ case "Ed25519":
+ return ED25519;
default:
- return new CreateConnectionRequestContentFlickrStrategy(Value.UNKNOWN, value);
+ return new ConnectionDpopSigningAlgEnum(Value.UNKNOWN, value);
}
}
public enum Value {
- FLICKR,
+ ES256,
+
+ ED25519,
UNKNOWN
}
public interface Visitor {
- T visitFlickr();
+ T visitEs256();
+
+ T visitEd25519();
T visitUnknown(String unknownType);
}
diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java
index 27f6e9b25..0fe7ab6db 100644
--- a/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java
+++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionIdentityProviderEnum.java
@@ -15,9 +15,6 @@ public final class ConnectionIdentityProviderEnum {
public static final ConnectionIdentityProviderEnum DWOLLA =
new ConnectionIdentityProviderEnum(Value.DWOLLA, "dwolla");
- public static final ConnectionIdentityProviderEnum FLICKR =
- new ConnectionIdentityProviderEnum(Value.FLICKR, "flickr");
-
public static final ConnectionIdentityProviderEnum OKTA = new ConnectionIdentityProviderEnum(Value.OKTA, "okta");
public static final ConnectionIdentityProviderEnum PLANNINGCENTER =
@@ -195,8 +192,6 @@ public T visit(Visitor visitor) {
return visitor.visitAuth0Oidc();
case DWOLLA:
return visitor.visitDwolla();
- case FLICKR:
- return visitor.visitFlickr();
case OKTA:
return visitor.visitOkta();
case PLANNINGCENTER:
@@ -316,8 +311,6 @@ public static ConnectionIdentityProviderEnum valueOf(String value) {
return AUTH0OIDC;
case "dwolla":
return DWOLLA;
- case "flickr":
- return FLICKR;
case "okta":
return OKTA;
case "planningcenter":
@@ -468,8 +461,6 @@ public enum Value {
FITBIT,
- FLICKR,
-
GITHUB,
GOOGLE_APPS,
@@ -584,8 +575,6 @@ public interface Visitor {
T visitFitbit();
- T visitFlickr();
-
T visitGithub();
T visitGoogleApps();
diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java
index 0c5874440..46a055635 100644
--- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java
+++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java
@@ -35,6 +35,8 @@ public final class ConnectionOptionsCommonOidc implements IConnectionOptionsComm
private final Optional> domainAliases;
+ private final Optional dpopSigningAlg;
+
private final OptionalNullable federatedConnectionsAccessTokens;
private final Optional iconUrl;
@@ -74,6 +76,7 @@ private ConnectionOptionsCommonOidc(
Optional clientSecret,
Optional connectionSettings,
Optional> domainAliases,
+ Optional dpopSigningAlg,
OptionalNullable federatedConnectionsAccessTokens,
Optional iconUrl,
OptionalNullable> idTokenSignedResponseAlgs,
@@ -95,6 +98,7 @@ private ConnectionOptionsCommonOidc(
this.clientSecret = clientSecret;
this.connectionSettings = connectionSettings;
this.domainAliases = domainAliases;
+ this.dpopSigningAlg = dpopSigningAlg;
this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens;
this.iconUrl = iconUrl;
this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs;
@@ -143,6 +147,12 @@ public Optional> getDomainAliases() {
return domainAliases;
}
+ @JsonProperty("dpop_signing_alg")
+ @java.lang.Override
+ public Optional getDpopSigningAlg() {
+ return dpopSigningAlg;
+ }
+
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
@JsonProperty("federated_connections_access_tokens")
@java.lang.Override
@@ -301,6 +311,7 @@ private boolean equalTo(ConnectionOptionsCommonOidc other) {
&& clientSecret.equals(other.clientSecret)
&& connectionSettings.equals(other.connectionSettings)
&& domainAliases.equals(other.domainAliases)
+ && dpopSigningAlg.equals(other.dpopSigningAlg)
&& federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens)
&& iconUrl.equals(other.iconUrl)
&& idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs)
@@ -326,6 +337,7 @@ public int hashCode() {
this.clientSecret,
this.connectionSettings,
this.domainAliases,
+ this.dpopSigningAlg,
this.federatedConnectionsAccessTokens,
this.iconUrl,
this.idTokenSignedResponseAlgs,
@@ -381,6 +393,10 @@ public interface _FinalStage {
_FinalStage domainAliases(List domainAliases);
+ _FinalStage dpopSigningAlg(Optional dpopSigningAlg);
+
+ _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg);
+
_FinalStage federatedConnectionsAccessTokens(
@Nullable
OptionalNullable federatedConnectionsAccessTokens);
@@ -525,6 +541,8 @@ public static final class Builder implements ClientIdStage, _FinalStage {
private OptionalNullable federatedConnectionsAccessTokens =
OptionalNullable.absent();
+ private Optional dpopSigningAlg = Optional.empty();
+
private Optional> domainAliases = Optional.empty();
private Optional connectionSettings = Optional.empty();
@@ -545,6 +563,7 @@ public Builder from(ConnectionOptionsCommonOidc other) {
clientSecret(other.getClientSecret());
connectionSettings(other.getConnectionSettings());
domainAliases(other.getDomainAliases());
+ dpopSigningAlg(other.getDpopSigningAlg());
federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens());
iconUrl(other.getIconUrl());
idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs());
@@ -902,6 +921,19 @@ public _FinalStage federatedConnectionsAccessTokens(
return this;
}
+ @java.lang.Override
+ public _FinalStage dpopSigningAlg(ConnectionDpopSigningAlgEnum dpopSigningAlg) {
+ this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP)
+ public _FinalStage dpopSigningAlg(Optional dpopSigningAlg) {
+ this.dpopSigningAlg = dpopSigningAlg;
+ return this;
+ }
+
@java.lang.Override
public _FinalStage domainAliases(List domainAliases) {
this.domainAliases = Optional.ofNullable(domainAliases);
@@ -962,6 +994,7 @@ public ConnectionOptionsCommonOidc build() {
clientSecret,
connectionSettings,
domainAliases,
+ dpopSigningAlg,
federatedConnectionsAccessTokens,
iconUrl,
idTokenSignedResponseAlgs,
diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java
deleted file mode 100644
index 3e35fdfda..000000000
--- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java
+++ /dev/null
@@ -1,276 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-package com.auth0.client.mgmt.types;
-
-import com.auth0.client.mgmt.core.NullableNonemptyFilter;
-import com.auth0.client.mgmt.core.ObjectMappers;
-import com.auth0.client.mgmt.core.OptionalNullable;
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSetter;
-import com.fasterxml.jackson.annotation.Nulls;
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Optional;
-import org.jetbrains.annotations.Nullable;
-
-@JsonInclude(JsonInclude.Include.NON_ABSENT)
-@JsonDeserialize(builder = ConnectionOptionsFlickr.Builder.class)
-public final class ConnectionOptionsFlickr implements IConnectionOptionsOAuth1Common, IConnectionOptionsCommon {
- private final Optional clientId;
-
- private final Optional clientSecret;
-
- private final Optional setUserRootAttributes;
-
- private final OptionalNullable