Class ArtifactsClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.artifacts.ArtifactsClient
-
- All Implemented Interfaces:
Artifacts,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public class ArtifactsClient extends BaseSyncClient implements Artifacts
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArtifactsClient.BuilderBuilder class for this client.
-
Field Summary
Fields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for Artifacts.
-
Constructor Summary
Constructors Constructor Description ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.artifacts.Artifacts
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Constructor Detail
-
ArtifactsClient
@Deprecated public ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
ArtifactsClient
@Deprecated public ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
ArtifactsClient
@Deprecated public ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
ArtifactsClient
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
ArtifactsClient
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
ArtifactsClient
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)
-
ArtifactsClient
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
ArtifactsClient
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactoriesexecutorService-ArtifactsClient.Builder.executorService
-
-
Method Detail
-
builder
public static ArtifactsClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:ArtifactsSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:ArtifactsSets 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 callsetEndpoint.
-
changeContainerRepositoryCompartment
public ChangeContainerRepositoryCompartmentResponse changeContainerRepositoryCompartment(ChangeContainerRepositoryCompartmentRequest request)
Description copied from interface:ArtifactsMoves 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.
- Specified by:
changeContainerRepositoryCompartmentin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeRepositoryCompartment
public ChangeRepositoryCompartmentResponse changeRepositoryCompartment(ChangeRepositoryCompartmentRequest request)
Description copied from interface:ArtifactsMoves a repository into a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment.
- Specified by:
changeRepositoryCompartmentin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createContainerImageSignature
public CreateContainerImageSignatureResponse createContainerImageSignature(CreateContainerImageSignatureRequest request)
Description copied from interface:ArtifactsUpload a signature to an image.- Specified by:
createContainerImageSignaturein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createContainerRepository
public CreateContainerRepositoryResponse createContainerRepository(CreateContainerRepositoryRequest request)
Description copied from interface:ArtifactsCreate a new empty container repository.Avoid entering confidential information.
- Specified by:
createContainerRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createRepository
public CreateRepositoryResponse createRepository(CreateRepositoryRequest request)
Description copied from interface:ArtifactsCreates a new repository for storing artifacts.- Specified by:
createRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteContainerImage
public DeleteContainerImageResponse deleteContainerImage(DeleteContainerImageRequest request)
Description copied from interface:ArtifactsDelete a container image.- Specified by:
deleteContainerImagein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteContainerImageSignature
public DeleteContainerImageSignatureResponse deleteContainerImageSignature(DeleteContainerImageSignatureRequest request)
Description copied from interface:ArtifactsDelete a container image signature.- Specified by:
deleteContainerImageSignaturein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteContainerRepository
public DeleteContainerRepositoryResponse deleteContainerRepository(DeleteContainerRepositoryRequest request)
Description copied from interface:ArtifactsDelete container repository.- Specified by:
deleteContainerRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteGenericArtifact
public DeleteGenericArtifactResponse deleteGenericArtifact(DeleteGenericArtifactRequest request)
Description copied from interface:ArtifactsDeletes an artifact with a specified OCID.- Specified by:
deleteGenericArtifactin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteGenericArtifactByPath
public DeleteGenericArtifactByPathResponse deleteGenericArtifactByPath(DeleteGenericArtifactByPathRequest request)
Description copied from interface:ArtifactsDeletes an artifact with a specifiedartifactPathandversion.- Specified by:
deleteGenericArtifactByPathin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteRepository
public DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest request)
Description copied from interface:ArtifactsDeletes 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.
- Specified by:
deleteRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getContainerConfiguration
public GetContainerConfigurationResponse getContainerConfiguration(GetContainerConfigurationRequest request)
Description copied from interface:ArtifactsGet container configuration.- Specified by:
getContainerConfigurationin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getContainerImage
public GetContainerImageResponse getContainerImage(GetContainerImageRequest request)
Description copied from interface:ArtifactsGet container image metadata.- Specified by:
getContainerImagein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getContainerImageSignature
public GetContainerImageSignatureResponse getContainerImageSignature(GetContainerImageSignatureRequest request)
Description copied from interface:ArtifactsGet container image signature metadata.- Specified by:
getContainerImageSignaturein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getContainerRepository
public GetContainerRepositoryResponse getContainerRepository(GetContainerRepositoryRequest request)
Description copied from interface:ArtifactsGet container repository.- Specified by:
getContainerRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getGenericArtifact
public GetGenericArtifactResponse getGenericArtifact(GetGenericArtifactRequest request)
Description copied from interface:ArtifactsGets information about an artifact with a specified OCID.- Specified by:
getGenericArtifactin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getGenericArtifactByPath
public GetGenericArtifactByPathResponse getGenericArtifactByPath(GetGenericArtifactByPathRequest request)
Description copied from interface:ArtifactsGets information about an artifact with a specifiedartifactPathandversion.- Specified by:
getGenericArtifactByPathin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getRepository
public GetRepositoryResponse getRepository(GetRepositoryRequest request)
Description copied from interface:ArtifactsGets the specified repository’s information.- Specified by:
getRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listContainerImageSignatures
public ListContainerImageSignaturesResponse listContainerImageSignatures(ListContainerImageSignaturesRequest request)
Description copied from interface:ArtifactsList container image signatures in an image.- Specified by:
listContainerImageSignaturesin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listContainerImages
public ListContainerImagesResponse listContainerImages(ListContainerImagesRequest request)
Description copied from interface:ArtifactsList container images in a compartment.- Specified by:
listContainerImagesin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listContainerRepositories
public ListContainerRepositoriesResponse listContainerRepositories(ListContainerRepositoriesRequest request)
Description copied from interface:ArtifactsList container repositories in a compartment.- Specified by:
listContainerRepositoriesin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listGenericArtifacts
public ListGenericArtifactsResponse listGenericArtifacts(ListGenericArtifactsRequest request)
Description copied from interface:ArtifactsLists artifacts in the specified repository.- Specified by:
listGenericArtifactsin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listRepositories
public ListRepositoriesResponse listRepositories(ListRepositoriesRequest request)
Description copied from interface:ArtifactsLists repositories in the specified compartment.- Specified by:
listRepositoriesin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removeContainerVersion
public RemoveContainerVersionResponse removeContainerVersion(RemoveContainerVersionRequest request)
Description copied from interface:ArtifactsRemove version from container image.- Specified by:
removeContainerVersionin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
restoreContainerImage
public RestoreContainerImageResponse restoreContainerImage(RestoreContainerImageRequest request)
Description copied from interface:ArtifactsRestore a container image.- Specified by:
restoreContainerImagein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateContainerConfiguration
public UpdateContainerConfigurationResponse updateContainerConfiguration(UpdateContainerConfigurationRequest request)
Description copied from interface:ArtifactsUpdate container configuration.- Specified by:
updateContainerConfigurationin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateContainerImage
public UpdateContainerImageResponse updateContainerImage(UpdateContainerImageRequest request)
Description copied from interface:ArtifactsModify the properties of a container image.Avoid entering confidential information.
- Specified by:
updateContainerImagein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateContainerImageSignature
public UpdateContainerImageSignatureResponse updateContainerImageSignature(UpdateContainerImageSignatureRequest request)
Description copied from interface:ArtifactsModify the properties of a container image signature.Avoid entering confidential information.
- Specified by:
updateContainerImageSignaturein interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateContainerRepository
public UpdateContainerRepositoryResponse updateContainerRepository(UpdateContainerRepositoryRequest request)
Description copied from interface:ArtifactsModify the properties of a container repository.Avoid entering confidential information.
- Specified by:
updateContainerRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateGenericArtifact
public UpdateGenericArtifactResponse updateGenericArtifact(UpdateGenericArtifactRequest request)
Description copied from interface:ArtifactsUpdates the artifact with the specified OCID.You can only update the tags of an artifact.
- Specified by:
updateGenericArtifactin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateGenericArtifactByPath
public UpdateGenericArtifactByPathResponse updateGenericArtifactByPath(UpdateGenericArtifactByPathRequest request)
Description copied from interface:ArtifactsUpdates an artifact with a specifiedartifactPathandversion.You can only update the tags of an artifact.
- Specified by:
updateGenericArtifactByPathin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateRepository
public UpdateRepositoryResponse updateRepository(UpdateRepositoryRequest request)
Description copied from interface:ArtifactsUpdates the properties of a repository.You can update the
displayNameanddescriptionproperties.- Specified by:
updateRepositoryin interfaceArtifacts- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public ArtifactsWaiters getWaiters()
Description copied from interface:ArtifactsGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceArtifacts- Returns:
- The service waiters.
-
getPaginators
public ArtifactsPaginators getPaginators()
Description copied from interface:ArtifactsGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
getPaginatorsin interfaceArtifacts- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint- The endpoint template in userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-