Interface NamedTransformationServiceAsync
-
- All Implemented Interfaces:
public interface NamedTransformationServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceNamedTransformationServiceAsync.WithRawResponseA view of NamedTransformationServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract NamedTransformationServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract NamedTransformationServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<NamedTransformation> create(NamedTransformationCreateParams params)
Creates a new named transformation and returns the created object.
A named transformation is a short, reusable name for a transformation string. Use it in image and video URLs as
tr:n-<name>, and update the underlying transformation later without changing existing URLs. Learn more about named transformations.You can create up to 250 named transformations per account.
-
create
abstract CompletableFuture<NamedTransformation> create(NamedTransformationCreateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<NamedTransformation> update(String id)
Updates the named transformation identified by
idand returns the updated object. Only the fields present in the request body are updated; other fields stay unchanged.Renaming or disabling a named transformation fails with a
409error if it is still referenced (via then-<name>token) by an upload pre-transformation or post-transformation setting. This check is best-effort and can't detect references in your own application code or in previously generated URLs.
-
update
CompletableFuture<NamedTransformation> update(String id, NamedTransformationUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<NamedTransformation> update(String id, NamedTransformationUpdateParams params)
-
update
abstract CompletableFuture<NamedTransformation> update(NamedTransformationUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<NamedTransformation> update(NamedTransformationUpdateParams params)
-
update
CompletableFuture<NamedTransformation> update(String id, RequestOptions requestOptions)
-
list
CompletableFuture<List<NamedTransformation>> list()
Returns an array of all named transformations configured for your account.
-
list
abstract CompletableFuture<List<NamedTransformation>> list(NamedTransformationListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<List<NamedTransformation>> list(NamedTransformationListParams params)
-
list
CompletableFuture<List<NamedTransformation>> list(RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(String id)
Permanently deletes the named transformation identified by
id.Deletion fails with a
409error if the named transformation is still referenced (via then-<name>token) by an upload pre-transformation or post-transformation setting. This check is best-effort and can't detect references in your own application code or in previously generated URLs.
-
delete
CompletableFuture<Void> delete(String id, NamedTransformationDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(String id, NamedTransformationDeleteParams params)
-
delete
abstract CompletableFuture<Void> delete(NamedTransformationDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<Void> delete(NamedTransformationDeleteParams params)
-
delete
CompletableFuture<Void> delete(String id, RequestOptions requestOptions)
-
get
CompletableFuture<NamedTransformation> get(String id)
Retrieves the named transformation identified by
id.
-
get
CompletableFuture<NamedTransformation> get(String id, NamedTransformationGetParams params, RequestOptions requestOptions)
-
get
CompletableFuture<NamedTransformation> get(String id, NamedTransformationGetParams params)
-
get
abstract CompletableFuture<NamedTransformation> get(NamedTransformationGetParams params, RequestOptions requestOptions)
-
get
CompletableFuture<NamedTransformation> get(String id, RequestOptions requestOptions)
-
-
-
-