Package com.datadog.api.client.v2.api
Class OAuth2ClientPublicApi
java.lang.Object
com.datadog.api.client.v2.api.OAuth2ClientPublicApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class OAuth2ClientPublicApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteScopesRestriction(UUID clientUuid) Delete an OAuth2 client scopes restriction.deleteScopesRestrictionAsync(UUID clientUuid) Delete an OAuth2 client scopes restriction.deleteScopesRestrictionWithHttpInfo(UUID clientUuid) Delete the scopes restriction configured for the OAuth2 client.deleteScopesRestrictionWithHttpInfoAsync(UUID clientUuid) Delete an OAuth2 client scopes restriction.Get the API client.Get OAuth2 well-known sites.Get OAuth2 well-known sites.Retrieve the list of public OAuth2 sites available for the current environment.Get OAuth2 well-known sites.Get OpenID Connect provider metadata.Get OpenID Connect provider metadata.Retrieve OpenID Connect provider metadata for the OAuth2 v2 token endpoint.Get OpenID Connect provider metadata.getScopesRestriction(UUID clientUuid) Get an OAuth2 client scopes restriction.getScopesRestrictionAsync(UUID clientUuid) Get an OAuth2 client scopes restriction.getScopesRestrictionWithHttpInfo(UUID clientUuid) Get the scopes restriction configured for the OAuth2 client.getScopesRestrictionWithHttpInfoAsync(UUID clientUuid) Get an OAuth2 client scopes restriction.Register an OAuth2 client.Register an OAuth2 client.Register an OAuth2 client using the Dynamic Client Registration protocol defined in RFC 7591.Register an OAuth2 client.voidsetApiClient(ApiClient apiClient) Set the API client.upsertScopesRestriction(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) Upsert an OAuth2 client scopes restriction.upsertScopesRestrictionAsync(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) Upsert an OAuth2 client scopes restriction.upsertScopesRestrictionWithHttpInfo(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) Create or update the scopes restriction configured for the OAuth2 client.upsertScopesRestrictionWithHttpInfoAsync(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) Upsert an OAuth2 client scopes restriction.
-
Constructor Details
-
OAuth2ClientPublicApi
public OAuth2ClientPublicApi() -
OAuth2ClientPublicApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
deleteScopesRestriction
Delete an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Throws:
ApiException- if fails to make API call
-
deleteScopesRestrictionAsync
Delete an OAuth2 client scopes restriction.See
deleteScopesRestrictionWithHttpInfoAsync(java.util.UUID).- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Returns:
- CompletableFuture
-
deleteScopesRestrictionWithHttpInfo
Delete the scopes restriction configured for the OAuth2 client.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 400 Bad Request - 404 Not Found - 429 Too many requests -
-
deleteScopesRestrictionWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteScopesRestrictionWithHttpInfoAsync(UUID clientUuid) Delete an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getOAuth2WellKnownSites
Get OAuth2 well-known sites.- Returns:
- OAuth2WellKnownSitesResponse
- Throws:
ApiException- if fails to make API call
-
getOAuth2WellKnownSitesAsync
Get OAuth2 well-known sites.- Returns:
- CompletableFuture<OAuth2WellKnownSitesResponse>
-
getOAuth2WellKnownSitesWithHttpInfo
public ApiResponse<OAuth2WellKnownSitesResponse> getOAuth2WellKnownSitesWithHttpInfo() throws ApiExceptionRetrieve the list of public OAuth2 sites available for the current environment. This endpoint is used for OAuth2 discovery and returns sites where users can authenticate.- Returns:
- ApiResponse<OAuth2WellKnownSitesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 429 Too many requests -
-
getOAuth2WellKnownSitesWithHttpInfoAsync
public CompletableFuture<ApiResponse<OAuth2WellKnownSitesResponse>> getOAuth2WellKnownSitesWithHttpInfoAsync()Get OAuth2 well-known sites.- Returns:
- CompletableFuture<ApiResponse<OAuth2WellKnownSitesResponse>>
-
getOIDCDiscoveryDocument
Get OpenID Connect provider metadata.- Returns:
- OIDCDiscoveryDocument
- Throws:
ApiException- if fails to make API call
-
getOIDCDiscoveryDocumentAsync
Get OpenID Connect provider metadata.- Returns:
- CompletableFuture<OIDCDiscoveryDocument>
-
getOIDCDiscoveryDocumentWithHttpInfo
public ApiResponse<OIDCDiscoveryDocument> getOIDCDiscoveryDocumentWithHttpInfo() throws ApiExceptionRetrieve OpenID Connect provider metadata for the OAuth2 v2 token endpoint.- Returns:
- ApiResponse<OIDCDiscoveryDocument>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 429 Too many requests -
-
getOIDCDiscoveryDocumentWithHttpInfoAsync
public CompletableFuture<ApiResponse<OIDCDiscoveryDocument>> getOIDCDiscoveryDocumentWithHttpInfoAsync()Get OpenID Connect provider metadata.- Returns:
- CompletableFuture<ApiResponse<OIDCDiscoveryDocument>>
-
getScopesRestriction
Get an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Returns:
- OAuthScopesRestrictionResponse
- Throws:
ApiException- if fails to make API call
-
getScopesRestrictionAsync
Get an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Returns:
- CompletableFuture<OAuthScopesRestrictionResponse>
-
getScopesRestrictionWithHttpInfo
public ApiResponse<OAuthScopesRestrictionResponse> getScopesRestrictionWithHttpInfo(UUID clientUuid) throws ApiException Get the scopes restriction configured for the OAuth2 client.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Returns:
- ApiResponse<OAuthScopesRestrictionResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 429 Too many requests -
-
getScopesRestrictionWithHttpInfoAsync
public CompletableFuture<ApiResponse<OAuthScopesRestrictionResponse>> getScopesRestrictionWithHttpInfoAsync(UUID clientUuid) Get an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)- Returns:
- CompletableFuture<ApiResponse<OAuthScopesRestrictionResponse>>
-
registerOAuthClient
public OAuthClientRegistrationResponse registerOAuthClient(OAuthClientRegistrationRequest body) throws ApiException Register an OAuth2 client.See
registerOAuthClientWithHttpInfo(com.datadog.api.client.v2.model.OAuthClientRegistrationRequest).- Parameters:
body- (required)- Returns:
- OAuthClientRegistrationResponse
- Throws:
ApiException- if fails to make API call
-
registerOAuthClientAsync
public CompletableFuture<OAuthClientRegistrationResponse> registerOAuthClientAsync(OAuthClientRegistrationRequest body) Register an OAuth2 client.See
registerOAuthClientWithHttpInfoAsync(com.datadog.api.client.v2.model.OAuthClientRegistrationRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<OAuthClientRegistrationResponse>
-
registerOAuthClientWithHttpInfo
public ApiResponse<OAuthClientRegistrationResponse> registerOAuthClientWithHttpInfo(OAuthClientRegistrationRequest body) throws ApiException Register an OAuth2 client using the Dynamic Client Registration protocol defined in RFC 7591.- Parameters:
body- (required)- Returns:
- ApiResponse<OAuthClientRegistrationResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 429 Too many requests -
-
registerOAuthClientWithHttpInfoAsync
public CompletableFuture<ApiResponse<OAuthClientRegistrationResponse>> registerOAuthClientWithHttpInfoAsync(OAuthClientRegistrationRequest body) Register an OAuth2 client.See
registerOAuthClientWithHttpInfo(com.datadog.api.client.v2.model.OAuthClientRegistrationRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<OAuthClientRegistrationResponse>>
-
upsertScopesRestriction
public OAuthScopesRestrictionResponse upsertScopesRestriction(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) throws ApiException Upsert an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)body- (required)- Returns:
- OAuthScopesRestrictionResponse
- Throws:
ApiException- if fails to make API call
-
upsertScopesRestrictionAsync
public CompletableFuture<OAuthScopesRestrictionResponse> upsertScopesRestrictionAsync(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) Upsert an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)body- (required)- Returns:
- CompletableFuture<OAuthScopesRestrictionResponse>
-
upsertScopesRestrictionWithHttpInfo
public ApiResponse<OAuthScopesRestrictionResponse> upsertScopesRestrictionWithHttpInfo(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) throws ApiException Create or update the scopes restriction configured for the OAuth2 client.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)body- (required)- Returns:
- ApiResponse<OAuthScopesRestrictionResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 429 Too many requests -
-
upsertScopesRestrictionWithHttpInfoAsync
public CompletableFuture<ApiResponse<OAuthScopesRestrictionResponse>> upsertScopesRestrictionWithHttpInfoAsync(UUID clientUuid, UpsertOAuthScopesRestrictionRequest body) Upsert an OAuth2 client scopes restriction.- Parameters:
clientUuid- UUID of the OAuth2 client. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<OAuthScopesRestrictionResponse>>
-