@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public interface ArtifactsAsync extends AutoCloseable
API covering the Artifacts and Registry services. Use this API to manage resources such as generic artifacts and container images.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
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.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<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<ChangeRepositoryCompartmentResponse> changeRepositoryCompartment(ChangeRepositoryCompartmentRequest request, AsyncHandler<ChangeRepositoryCompartmentRequest,ChangeRepositoryCompartmentResponse> handler)
Moves a 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<CreateContainerImageSignatureResponse> createContainerImageSignature(CreateContainerImageSignatureRequest request, AsyncHandler<CreateContainerImageSignatureRequest,CreateContainerImageSignatureResponse> handler)
Upload a signature to an image.
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<CreateRepositoryResponse> createRepository(CreateRepositoryRequest request, AsyncHandler<CreateRepositoryRequest,CreateRepositoryResponse> handler)
Creates a new repository for storing artifacts.
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<DeleteContainerImageSignatureResponse> deleteContainerImageSignature(DeleteContainerImageSignatureRequest request, AsyncHandler<DeleteContainerImageSignatureRequest,DeleteContainerImageSignatureResponse> handler)
Delete a container image signature.
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<DeleteGenericArtifactResponse> deleteGenericArtifact(DeleteGenericArtifactRequest request, AsyncHandler<DeleteGenericArtifactRequest,DeleteGenericArtifactResponse> handler)
Deletes an artifact with a specified OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteGenericArtifactByPathResponse> deleteGenericArtifactByPath(DeleteGenericArtifactByPathRequest request, AsyncHandler<DeleteGenericArtifactByPathRequest,DeleteGenericArtifactByPathResponse> handler)
Deletes an artifact with a specified artifactPath
and version
.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteRepositoryResponse> deleteRepository(DeleteRepositoryRequest request, AsyncHandler<DeleteRepositoryRequest,DeleteRepositoryResponse> handler)
Deletes the specified repository. This operation fails unless all associated artifacts are in a DELETED state. You must delete all associated artifacts before deleting a 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<GetContainerImageSignatureResponse> getContainerImageSignature(GetContainerImageSignatureRequest request, AsyncHandler<GetContainerImageSignatureRequest,GetContainerImageSignatureResponse> handler)
Get container image signature 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<GetGenericArtifactResponse> getGenericArtifact(GetGenericArtifactRequest request, AsyncHandler<GetGenericArtifactRequest,GetGenericArtifactResponse> handler)
Gets information about an artifact with a specified OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetGenericArtifactByPathResponse> getGenericArtifactByPath(GetGenericArtifactByPathRequest request, AsyncHandler<GetGenericArtifactByPathRequest,GetGenericArtifactByPathResponse> handler)
Gets information about an artifact with a specified artifactPath
and version
.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetRepositoryResponse> getRepository(GetRepositoryRequest request, AsyncHandler<GetRepositoryRequest,GetRepositoryResponse> handler)
Gets the specified repository’s information.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListContainerImageSignaturesResponse> listContainerImageSignatures(ListContainerImageSignaturesRequest request, AsyncHandler<ListContainerImageSignaturesRequest,ListContainerImageSignaturesResponse> handler)
List container image signatures in an image.
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<ListGenericArtifactsResponse> listGenericArtifacts(ListGenericArtifactsRequest request, AsyncHandler<ListGenericArtifactsRequest,ListGenericArtifactsResponse> handler)
Lists artifacts in the specified repository.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListRepositoriesResponse> listRepositories(ListRepositoriesRequest request, AsyncHandler<ListRepositoriesRequest,ListRepositoriesResponse> handler)
Lists repositories in the specified 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<UpdateContainerImageResponse> updateContainerImage(UpdateContainerImageRequest request, AsyncHandler<UpdateContainerImageRequest,UpdateContainerImageResponse> handler)
Modify the properties of a container image. Avoid entering confidential information.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateContainerImageSignatureResponse> updateContainerImageSignature(UpdateContainerImageSignatureRequest request, AsyncHandler<UpdateContainerImageSignatureRequest,UpdateContainerImageSignatureResponse> handler)
Modify the properties of a container image signature. Avoid entering confidential information.
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.Future<UpdateGenericArtifactResponse> updateGenericArtifact(UpdateGenericArtifactRequest request, AsyncHandler<UpdateGenericArtifactRequest,UpdateGenericArtifactResponse> handler)
Updates the artifact with the specified OCID. You can only update the tags of an artifact.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateGenericArtifactByPathResponse> updateGenericArtifactByPath(UpdateGenericArtifactByPathRequest request, AsyncHandler<UpdateGenericArtifactByPathRequest,UpdateGenericArtifactByPathResponse> handler)
Updates an artifact with a specified artifactPath
and version
. You can only update the
tags of an artifact.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateRepositoryResponse> updateRepository(UpdateRepositoryRequest request, AsyncHandler<UpdateRepositoryRequest,UpdateRepositoryResponse> handler)
Updates the properties of a repository. You can update the displayName
and description
properties.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.