oauth_scope_profile parameter). Empty for apps that don't define any.
+ */
+ @JsonProperty("scope_profiles")
+ public ListNamed subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the oauth_scope_profile parameter). Empty for apps that don't define any.
Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the oauth_scope_profile parameter). Empty for apps that don't define any.
Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the oauth_scope_profile parameter). Empty for apps that don't define any.
Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the oauth_scope_profile parameter). Empty for apps that don't define any.
Categories associated with the app
* @return Reference to {@code this} so that method calls can be chained together. @@ -461,6 +522,7 @@ public App build() { customFieldsJson, categories, featuredWeight, + scopeProfiles, additionalProperties); } diff --git a/src/main/java/com/pipedream/api/types/AppScopeProfilesItem.java b/src/main/java/com/pipedream/api/types/AppScopeProfilesItem.java new file mode 100644 index 0000000..9c139df --- /dev/null +++ b/src/main/java/com/pipedream/api/types/AppScopeProfilesItem.java @@ -0,0 +1,191 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.pipedream.api.types; + +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 com.pipedream.api.core.ObjectMappers; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = AppScopeProfilesItem.Builder.class) +public final class AppScopeProfilesItem { + private final AppScopeProfilesItemName name; + + private final Listoauth_scope_profile when starting the OAuth flow for this app.
+ */
+ @JsonProperty("name")
+ public AppScopeProfilesItemName getName() {
+ return name;
+ }
+
+ /**
+ * @return The actual OAuth scopes of the upstream API that the user will be asked to authorize when this profile is selected.
+ */
+ @JsonProperty("scopes")
+ public ListThe profile name. Pass this back as oauth_scope_profile when starting the OAuth flow for this app.
The actual OAuth scopes of the upstream API that the user will be asked to authorize when this profile is selected.
+ */ + _FinalStage scopes(ListThe profile name. Pass this back as oauth_scope_profile when starting the OAuth flow for this app.
The profile name. Pass this back as oauth_scope_profile when starting the OAuth flow for this app.
The actual OAuth scopes of the upstream API that the user will be asked to authorize when this profile is selected.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllScopes(ListThe actual OAuth scopes of the upstream API that the user will be asked to authorize when this profile is selected.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addScopes(String scopes) { + this.scopes.add(scopes); + return this; + } + + /** + *The actual OAuth scopes of the upstream API that the user will be asked to authorize when this profile is selected.
+ */ + @java.lang.Override + @JsonSetter(value = "scopes", nulls = Nulls.SKIP) + public _FinalStage scopes(List