-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add team.externalTeams.disconnect API (#1331)
- Loading branch information
Showing
15 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"ok": false, | ||
"error": "", | ||
"response_metadata": { | ||
"messages": [ | ||
"" | ||
] | ||
}, | ||
"needed": "", | ||
"provided": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,8 +75,7 @@ | |
"is_admin": false, | ||
"is_owner": false, | ||
"teams": [ | ||
"", | ||
"T00000000" | ||
"" | ||
], | ||
"is_primary_owner": false | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...com/slack/api/methods/request/team/external_teams/TeamExternalTeamsDisconnectRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.slack.api.methods.request.team.external_teams; | ||
|
||
import com.slack.api.methods.SlackApiRequest; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* https://api.slack.com/methods/team.externalTeams.disconnect | ||
*/ | ||
@Data | ||
@Builder | ||
public class TeamExternalTeamsDisconnectRequest implements SlackApiRequest { | ||
|
||
/** | ||
* Authentication token bearing required scopes. | ||
* Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter. | ||
*/ | ||
private String token; | ||
|
||
/** | ||
* The encoded team ID of the target team. | ||
*/ | ||
private String targetTeam; | ||
} |
21 changes: 21 additions & 0 deletions
21
...m/slack/api/methods/response/team/external_teams/TeamExternalTeamsDisconnectResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.slack.api.methods.response.team.external_teams; | ||
|
||
import com.slack.api.methods.SlackApiTextResponse; | ||
import com.slack.api.model.ResponseMetadata; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Data | ||
public class TeamExternalTeamsDisconnectResponse implements SlackApiTextResponse { | ||
|
||
private boolean ok; | ||
private String warning; | ||
private String error; | ||
private String needed; | ||
private String provided; | ||
private transient Map<String, List<String>> httpResponseHeaders; | ||
|
||
private ResponseMetadata responseMetadata; | ||
} |
Oops, something went wrong.