@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public interface ArtifactsAsync extends AutoCloseable
API covering the Registry services. Use this API to manage resources such as container images and repositories.
close
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call
setRegion
.
If no known Region could be determined, it will create an endpoint based on the
default endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.Future<ChangeContainerRepositoryCompartmentResponse> changeContainerRepositoryCompartment(ChangeContainerRepositoryCompartmentRequest request, AsyncHandler<ChangeContainerRepositoryCompartmentRequest,ChangeContainerRepositoryCompartmentResponse> handler)
Moves a container repository into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateContainerRepositoryResponse> createContainerRepository(CreateContainerRepositoryRequest request, AsyncHandler<CreateContainerRepositoryRequest,CreateContainerRepositoryResponse> handler)
Create a new empty container repository. Avoid entering confidential information.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteContainerImageResponse> deleteContainerImage(DeleteContainerImageRequest request, AsyncHandler<DeleteContainerImageRequest,DeleteContainerImageResponse> handler)
Delete a container image.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteContainerRepositoryResponse> deleteContainerRepository(DeleteContainerRepositoryRequest request, AsyncHandler<DeleteContainerRepositoryRequest,DeleteContainerRepositoryResponse> handler)
Delete container repository.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetContainerConfigurationResponse> getContainerConfiguration(GetContainerConfigurationRequest request, AsyncHandler<GetContainerConfigurationRequest,GetContainerConfigurationResponse> handler)
Get container configuration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetContainerImageResponse> getContainerImage(GetContainerImageRequest request, AsyncHandler<GetContainerImageRequest,GetContainerImageResponse> handler)
Get container image metadata.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetContainerRepositoryResponse> getContainerRepository(GetContainerRepositoryRequest request, AsyncHandler<GetContainerRepositoryRequest,GetContainerRepositoryResponse> handler)
Get container repository.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListContainerImagesResponse> listContainerImages(ListContainerImagesRequest request, AsyncHandler<ListContainerImagesRequest,ListContainerImagesResponse> handler)
List container images in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListContainerRepositoriesResponse> listContainerRepositories(ListContainerRepositoriesRequest request, AsyncHandler<ListContainerRepositoriesRequest,ListContainerRepositoriesResponse> handler)
List container repositories in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RemoveContainerVersionResponse> removeContainerVersion(RemoveContainerVersionRequest request, AsyncHandler<RemoveContainerVersionRequest,RemoveContainerVersionResponse> handler)
Remove version from container image.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RestoreContainerImageResponse> restoreContainerImage(RestoreContainerImageRequest request, AsyncHandler<RestoreContainerImageRequest,RestoreContainerImageResponse> handler)
Restore a container image.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateContainerConfigurationResponse> updateContainerConfiguration(UpdateContainerConfigurationRequest request, AsyncHandler<UpdateContainerConfigurationRequest,UpdateContainerConfigurationResponse> handler)
Update container configuration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateContainerRepositoryResponse> updateContainerRepository(UpdateContainerRepositoryRequest request, AsyncHandler<UpdateContainerRepositoryRequest,UpdateContainerRepositoryResponse> handler)
Modify the properties of a container repository. Avoid entering confidential information.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2021. All rights reserved.