@Generated public class OAuthEnrollmentAPI extends Object
**Note:** Your account must be on the E2 version to use these APIs, this is because OAuth is only supported on the E2 version.
| Constructor and Description |
|---|
OAuthEnrollmentAPI(ApiClient apiClient)
Regular-use constructor
|
OAuthEnrollmentAPI(OAuthEnrollmentService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
void |
create(CreateOAuthEnrollment request)
Create OAuth Enrollment request.
|
OAuthEnrollmentStatus |
get()
Get OAuth enrollment status.
|
OAuthEnrollmentService |
impl() |
public OAuthEnrollmentAPI(ApiClient apiClient)
public OAuthEnrollmentAPI(OAuthEnrollmentService mock)
public void create(CreateOAuthEnrollment request)
Create an OAuth Enrollment request to enroll OAuth for this account and optionally enable the OAuth integration for all the partner applications in the account.
The parter applications are: - Power BI - Tableau Desktop - Databricks CLI
The enrollment is executed asynchronously, so the API will return 204 immediately. The actual enrollment take a few minutes, you can check the status via API :method:OAuthEnrollment/get.
public OAuthEnrollmentStatus get()
Gets the OAuth enrollment status for this Account.
You can only add/use the OAuth published/custom application integrations when OAuth enrollment status is enabled.
public OAuthEnrollmentService impl()
Copyright © 2023. All rights reserved.