@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public class ArtifactsClient extends BaseSyncClient implements Artifacts
Modifier and Type | Class and Description |
---|---|
static class |
ArtifactsClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
String |
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
|
Optional<String> |
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.
|
static Service |
SERVICE
Service instance for Artifacts.
|
Constructor and Description |
---|
ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for Artifacts.
public final String clientCommonLibraryVersion
@Deprecated public ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public ArtifactsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
@Deprecated public ArtifactsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see ArtifactsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
- ArtifactsClient.Builder.executorService
public static ArtifactsClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
Artifacts
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.
public void setRegion(String regionId)
Artifacts
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
.
public ChangeContainerRepositoryCompartmentResponse changeContainerRepositoryCompartment(ChangeContainerRepositoryCompartmentRequest request)
Artifacts
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.
changeContainerRepositoryCompartment
in interface Artifacts
request
- The request object containing the details to sendpublic ChangeRepositoryCompartmentResponse changeRepositoryCompartment(ChangeRepositoryCompartmentRequest request)
Artifacts
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.
changeRepositoryCompartment
in interface Artifacts
request
- The request object containing the details to sendpublic CreateContainerImageSignatureResponse createContainerImageSignature(CreateContainerImageSignatureRequest request)
Artifacts
Upload a signature to an image.
createContainerImageSignature
in interface Artifacts
request
- The request object containing the details to sendpublic CreateContainerRepositoryResponse createContainerRepository(CreateContainerRepositoryRequest request)
Artifacts
Create a new empty container repository. Avoid entering confidential information.
createContainerRepository
in interface Artifacts
request
- The request object containing the details to sendpublic CreateRepositoryResponse createRepository(CreateRepositoryRequest request)
Artifacts
Creates a new repository for storing artifacts.
createRepository
in interface Artifacts
request
- The request object containing the details to sendpublic DeleteContainerImageResponse deleteContainerImage(DeleteContainerImageRequest request)
Artifacts
Delete a container image.
deleteContainerImage
in interface Artifacts
request
- The request object containing the details to sendpublic DeleteContainerImageSignatureResponse deleteContainerImageSignature(DeleteContainerImageSignatureRequest request)
Artifacts
Delete a container image signature.
deleteContainerImageSignature
in interface Artifacts
request
- The request object containing the details to sendpublic DeleteContainerRepositoryResponse deleteContainerRepository(DeleteContainerRepositoryRequest request)
Artifacts
Delete container repository.
deleteContainerRepository
in interface Artifacts
request
- The request object containing the details to sendpublic DeleteGenericArtifactResponse deleteGenericArtifact(DeleteGenericArtifactRequest request)
Artifacts
Deletes an artifact with a specified OCID.
deleteGenericArtifact
in interface Artifacts
request
- The request object containing the details to sendpublic DeleteGenericArtifactByPathResponse deleteGenericArtifactByPath(DeleteGenericArtifactByPathRequest request)
Artifacts
Deletes an artifact with a specified artifactPath
and version
.
deleteGenericArtifactByPath
in interface Artifacts
request
- The request object containing the details to sendpublic DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest request)
Artifacts
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.
deleteRepository
in interface Artifacts
request
- The request object containing the details to sendpublic GetContainerConfigurationResponse getContainerConfiguration(GetContainerConfigurationRequest request)
Artifacts
Get container configuration.
getContainerConfiguration
in interface Artifacts
request
- The request object containing the details to sendpublic GetContainerImageResponse getContainerImage(GetContainerImageRequest request)
Artifacts
Get container image metadata.
getContainerImage
in interface Artifacts
request
- The request object containing the details to sendpublic GetContainerImageSignatureResponse getContainerImageSignature(GetContainerImageSignatureRequest request)
Artifacts
Get container image signature metadata.
getContainerImageSignature
in interface Artifacts
request
- The request object containing the details to sendpublic GetContainerRepositoryResponse getContainerRepository(GetContainerRepositoryRequest request)
Artifacts
Get container repository.
getContainerRepository
in interface Artifacts
request
- The request object containing the details to sendpublic GetGenericArtifactResponse getGenericArtifact(GetGenericArtifactRequest request)
Artifacts
Gets information about an artifact with a specified OCID.
getGenericArtifact
in interface Artifacts
request
- The request object containing the details to sendpublic GetGenericArtifactByPathResponse getGenericArtifactByPath(GetGenericArtifactByPathRequest request)
Artifacts
Gets information about an artifact with a specified artifactPath
and version
.
getGenericArtifactByPath
in interface Artifacts
request
- The request object containing the details to sendpublic GetRepositoryResponse getRepository(GetRepositoryRequest request)
Artifacts
Gets the specified repository’s information.
getRepository
in interface Artifacts
request
- The request object containing the details to sendpublic ListContainerImageSignaturesResponse listContainerImageSignatures(ListContainerImageSignaturesRequest request)
Artifacts
List container image signatures in an image.
listContainerImageSignatures
in interface Artifacts
request
- The request object containing the details to sendpublic ListContainerImagesResponse listContainerImages(ListContainerImagesRequest request)
Artifacts
List container images in a compartment.
listContainerImages
in interface Artifacts
request
- The request object containing the details to sendpublic ListContainerRepositoriesResponse listContainerRepositories(ListContainerRepositoriesRequest request)
Artifacts
List container repositories in a compartment.
listContainerRepositories
in interface Artifacts
request
- The request object containing the details to sendpublic ListGenericArtifactsResponse listGenericArtifacts(ListGenericArtifactsRequest request)
Artifacts
Lists artifacts in the specified repository.
listGenericArtifacts
in interface Artifacts
request
- The request object containing the details to sendpublic ListRepositoriesResponse listRepositories(ListRepositoriesRequest request)
Artifacts
Lists repositories in the specified compartment.
listRepositories
in interface Artifacts
request
- The request object containing the details to sendpublic RemoveContainerVersionResponse removeContainerVersion(RemoveContainerVersionRequest request)
Artifacts
Remove version from container image.
removeContainerVersion
in interface Artifacts
request
- The request object containing the details to sendpublic RestoreContainerImageResponse restoreContainerImage(RestoreContainerImageRequest request)
Artifacts
Restore a container image.
restoreContainerImage
in interface Artifacts
request
- The request object containing the details to sendpublic UpdateContainerConfigurationResponse updateContainerConfiguration(UpdateContainerConfigurationRequest request)
Artifacts
Update container configuration.
updateContainerConfiguration
in interface Artifacts
request
- The request object containing the details to sendpublic UpdateContainerImageResponse updateContainerImage(UpdateContainerImageRequest request)
Artifacts
Modify the properties of a container image. Avoid entering confidential information.
updateContainerImage
in interface Artifacts
request
- The request object containing the details to sendpublic UpdateContainerImageSignatureResponse updateContainerImageSignature(UpdateContainerImageSignatureRequest request)
Artifacts
Modify the properties of a container image signature. Avoid entering confidential information.
updateContainerImageSignature
in interface Artifacts
request
- The request object containing the details to sendpublic UpdateContainerRepositoryResponse updateContainerRepository(UpdateContainerRepositoryRequest request)
Artifacts
Modify the properties of a container repository. Avoid entering confidential information.
updateContainerRepository
in interface Artifacts
request
- The request object containing the details to sendpublic UpdateGenericArtifactResponse updateGenericArtifact(UpdateGenericArtifactRequest request)
Artifacts
Updates the artifact with the specified OCID. You can only update the tags of an artifact.
updateGenericArtifact
in interface Artifacts
request
- The request object containing the details to sendpublic UpdateGenericArtifactByPathResponse updateGenericArtifactByPath(UpdateGenericArtifactByPathRequest request)
Artifacts
Updates an artifact with a specified artifactPath
and version
. You can only update the
tags of an artifact.
updateGenericArtifactByPath
in interface Artifacts
request
- The request object containing the details to sendpublic UpdateRepositoryResponse updateRepository(UpdateRepositoryRequest request)
Artifacts
Updates the properties of a repository. You can update the displayName
and description
properties.
updateRepository
in interface Artifacts
request
- The request object containing the details to sendpublic ArtifactsWaiters getWaiters()
Artifacts
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface Artifacts
public ArtifactsPaginators getPaginators()
Artifacts
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data. These paginators provide an Iterable
interface so that service responses, or resources/records, can be iterated through without
having to manually deal with pagination and page tokens.
getPaginators
in interface Artifacts
protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
Copyright © 2016–2024. All rights reserved.