use of com.auth0.net.VoidRequest in project auth0-java by auth0.
the class ClientsEntity method delete.
/**
* Delete an existing Application. A token with scope delete:clients is needed.
* See https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
*
* @param clientId the application's client id.
* @return a Request to execute.
*/
public Request<Void> delete(String clientId) {
Asserts.assertNotNull(clientId, "client id");
String url = baseUrl.newBuilder().addPathSegments("api/v2/clients").addPathSegment(clientId).build().toString();
VoidRequest request = new VoidRequest(client, url, "DELETE");
request.addHeader("Authorization", "Bearer " + apiToken);
return request;
}
use of com.auth0.net.VoidRequest in project auth0-java by auth0.
the class ConnectionsEntity method delete.
/**
* Delete an existing Connection. A token with scope delete:connections is needed.
* See https://auth0.com/docs/api/management/v2#!/Connections/delete_connections_by_id
*
* @param connectionId the connection id.
* @return a Request to execute.
*/
public Request<Void> delete(String connectionId) {
Asserts.assertNotNull(connectionId, "connection id");
String url = baseUrl.newBuilder().addPathSegments("api/v2/connections").addPathSegment(connectionId).build().toString();
VoidRequest request = new VoidRequest(client, url, "DELETE");
request.addHeader("Authorization", "Bearer " + apiToken);
return request;
}
use of com.auth0.net.VoidRequest in project auth0-java by auth0.
the class DeviceCredentialsEntity method delete.
/**
* Delete an existing Device Credentials. A token with scope delete:device_credentials is needed.
* See https://auth0.com/docs/api/management/v2#!/Device_Credentials/post_device_credentials
*
* @param deviceCredentialsId the device credentials id
* @return a Request to execute.
*/
public Request<Void> delete(String deviceCredentialsId) {
Asserts.assertNotNull(deviceCredentialsId, "device credentials id");
String url = baseUrl.newBuilder().addPathSegments("api/v2/device-credentials").addPathSegment(deviceCredentialsId).build().toString();
VoidRequest request = new VoidRequest(client, url, "DELETE");
request.addHeader("Authorization", "Bearer " + apiToken);
return request;
}
Aggregations